:root { color-scheme: light; --line: #e3e5e8; --line-soft: #f0f1f3; --ink: #202123; --muted: #6f6f6f; --bg: #f7f7f5; --panel: #fff; --brand: #10a37f; --brand-soft: #eef8f4; --danger: #b42318; --ok: #168253; --shadow: 0 1px 2px rgba(0, 0, 0, .04); }
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.5; font-size: 14px; }
a { color: var(--brand); text-decoration: none; }
.layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; background: #fbfbfa; color: var(--ink); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar h2 { margin: 4px 10px 22px; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.sidebar-group { display: grid; gap: 2px; margin: 0 0 10px; }
.sidebar-label { margin: 10px 10px 6px; color: #8b8b8b; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sidebar a, .sidebar-logout button { color: #4a4a4a; display: block; width: 100%; padding: 9px 10px; border-radius: 8px; font-weight: 450; text-align: left; background: transparent; border: 0; font: inherit; }
.sidebar a:hover, .sidebar-logout button:hover { background: #f0f0ee; color: var(--ink); }
.sidebar a.active { background: #ededeb; color: var(--ink); }
.sidebar-logout { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-frontend-shortcut {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
  color: var(--ink);
  font-weight: 480;
}
.admin-frontend-shortcut:hover {
  border-color: #c8ded6;
  background: var(--brand-soft);
  color: var(--ink);
}
.admin-frontend-shortcut svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
}
.main { padding: 28px 34px; width: min(1180px, 100%); }
h1 { margin: 0 0 20px; font-size: 28px; line-height: 1.15; font-weight: 500; letter-spacing: 0; }
h2 { margin: 0 0 14px; font-size: 17px; font-weight: 500; letter-spacing: 0; }
.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.page-title-row h1 { margin: 0; }
.title-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.thumbnail-refresh-form {
  margin: 0;
}
button.thumbnail-refresh-button[type=submit] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: #4a4a4a;
  font-weight: 480;
}
button.thumbnail-refresh-button[type=submit]:hover {
  border-color: #cfd4d1;
  background: #f0f0ee;
  color: var(--ink);
  filter: none;
}
.thumbnail-refresh-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.85;
}
.panel-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.undo-import-form {
  margin: 0;
}
button.undo-import-button,
button.undo-import-button[type=submit] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid #f1c5c0;
  background: #fff7f5;
  color: var(--danger);
  font-weight: 480;
}
button.undo-import-button:hover,
button.undo-import-button[type=submit]:hover {
  border-color: #e6aca5;
  background: #ffece8;
  color: var(--danger);
  filter: none;
}
.undo-import-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.85;
}
button.undo-import-button:disabled {
  border-color: var(--line);
  background: #fafaf9;
  color: #929292;
  cursor: not-allowed;
  opacity: .8;
}
.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -4px 0 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfa;
  box-shadow: var(--shadow);
}
.admin-subnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 8px;
  padding: 8px 12px;
  color: #4a4a4a;
  font-size: 13px;
  font-weight: 480;
}
.admin-subnav a:hover {
  background: #f0f0ee;
  color: var(--ink);
}
.admin-subnav a.active {
  background: var(--ink);
  color: #fff;
}
.managed-page-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.managed-page-switch a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #4a4a4a;
  font-weight: 480;
}
.managed-page-switch a:hover,
.managed-page-switch a.active {
  border-color: #bddfd6;
  background: var(--brand-soft);
  color: var(--ink);
}
.managed-page-switch svg {
  width: 19px;
  height: 19px;
  color: var(--brand);
}
.automation-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfbfa;
  color: var(--muted);
  font-size: 13px;
  font-weight: 480;
}
.automation-status svg {
  width: 16px;
  height: 16px;
}
.automation-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}
.automation-flow article {
  display: grid;
  gap: 9px;
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: #fbfbfa;
}
.automation-flow svg,
.automation-placeholder svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
  stroke-width: 1.8;
}
.automation-flow strong {
  font-size: 13.5px;
  font-weight: 520;
}
.automation-flow p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}
.automation-placeholder {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed #d7dad8;
  border-radius: 11px;
  background: #fbfbfa;
}
.automation-placeholder div {
  display: grid;
  gap: 3px;
}
.automation-placeholder strong {
  font-weight: 520;
}
.automation-placeholder span {
  color: var(--muted);
  font-size: 13px;
}
.automation-empty {
  display: flex;
  gap: 9px;
  justify-content: center;
  align-items: center;
}
.automation-empty svg {
  width: 18px;
  height: 18px;
}
.panel, .card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.panel-head h2,
.panel-head p { margin: 0; }
.panel-head p { margin-top: 4px; }
.narrow { max-width: 420px; margin: 10vh auto; }
.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 20px; }
.card strong { display: block; font-size: 28px; font-weight: 500; }
.card span { color: var(--muted); }
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(135px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.dashboard-stat {
  display: grid;
  grid-template-columns: 39px 1fr;
  gap: 1px 12px;
  align-items: center;
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.dashboard-stat svg {
  grid-row: span 2;
  width: 39px;
  height: 39px;
  padding: 10px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}
.dashboard-stat strong {
  font-size: 25px;
  line-height: 1.15;
  font-weight: 520;
}
.dashboard-stat span {
  color: var(--muted);
  font-size: 12px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(330px, .9fr);
  gap: 18px;
}
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.coverage-grid article {
  display: grid;
  gap: 5px;
  padding: 14px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fbfbfa;
}
.coverage-grid svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
}
.coverage-grid strong {
  font-size: 25px;
  line-height: 1.2;
  font-weight: 520;
}
.coverage-grid span {
  font-size: 13px;
}
.coverage-grid code {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.dashboard-item-list {
  display: grid;
  gap: 5px;
}
.dashboard-item-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink);
}
.dashboard-item-list a:hover {
  background: #f6f6f4;
}
.dashboard-item-list span {
  display: grid;
  gap: 2px;
}
.dashboard-item-list strong {
  font-weight: 500;
}
.dashboard-item-list small {
  color: var(--muted);
}
.status-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f3f5;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}
.status-pill.status-published {
  background: var(--brand-soft);
  color: var(--ok);
}
.database-backups .panel-head {
  align-items: start;
}
.database-backups .panel-head form {
  margin: 0;
}
.database-backups button svg,
.backup-list a svg,
.backup-list button svg {
  width: 16px;
  height: 16px;
}
.database-backups button,
.backup-list a,
.backup-list button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.backup-list {
  display: grid;
  gap: 8px;
}
.backup-list article {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fbfbfa;
}
.backup-list article > div {
  display: grid;
  gap: 3px;
}
.backup-list article > div strong {
  font-weight: 500;
}
.backup-list article > div small {
  color: var(--muted);
}
.backup-list form {
  margin: 0;
}
button.restore-button[type=submit] {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
button.restore-button[type=submit]:hover {
  border-color: #d8d9dc;
  background: #f6f6f4;
  color: var(--ink);
}
label { display: grid; gap: 6px; margin: 0 0 16px; font-weight: 450; color: #3f3f3f; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; align-items: end; }
.form-grid label { margin: 0; }
.check { display: flex; gap: 8px; align-items: center; min-height: 42px; }
.check input { width: auto; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(16, 163, 127, .18); border-color: var(--brand); }
button { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: #fff; color: var(--ink); font-weight: 500; cursor: pointer; }
a.button { display: inline-flex; align-items: center; border-radius: 8px; padding: 10px 14px; background: var(--brand); color: #fff; font-weight: 500; }
button.button { display: inline-flex; align-items: center; gap: 8px; }
a.button.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
button.primary, button[type=submit] { background: var(--brand); color: #fff; }
button:hover { background: #f6f6f4; }
a.button:hover, button.primary:hover, button[type=submit]:hover {
  border-color: #0d8f70;
  background: #0d8f70;
  color: #fff;
  filter: none;
}
a.button.secondary:hover {
  background: #f6f6f4;
  color: var(--ink);
  filter: none;
}
.sidebar-logout button[type=submit] {
  border: 0;
  background: transparent;
  color: #4a4a4a;
}
.sidebar-logout button[type=submit]:hover {
  background: #f0f0ee;
  color: var(--ink);
}
.actions { display: flex; gap: 10px; align-items: center; }
.inline-upload { display: flex; gap: 10px; align-items: center; margin: 0; }
.inline-upload input { max-width: 280px; }
.settings-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.settings-media-card {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px;
  background: #fbfbfa;
}
.settings-media-card strong {
  font-weight: 520;
}
.settings-preview {
  display: grid;
  place-items: center;
  min-height: 128px;
  border: 1px dashed #d6d8dc;
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
}
.settings-preview img {
  max-width: min(220px, 80%);
  max-height: 92px;
  object-fit: contain;
}
.favicon-preview {
  min-height: 96px;
}
.favicon-preview img {
  width: 48px;
  height: 48px;
}
.theme-settings-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 20px;
  align-items: start;
}
.theme-color-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px;
  background: #fbfbfa;
}
.theme-color-card label {
  margin: 0;
}
.theme-color-card input[type=color] {
  height: 50px;
  padding: 4px;
  cursor: pointer;
}
.theme-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}
.theme-preview span {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--theme-preview-color);
}
.theme-preview strong {
  flex: 1;
  color: var(--theme-preview-color);
  font-weight: 520;
}
.theme-preview button {
  border-color: var(--theme-preview-color);
  background: var(--theme-preview-color);
  color: #fff;
  pointer-events: none;
}
.theme-font-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}
.compliance-check {
  margin-top: 20px;
  padding: 15px 16px;
  border: 1px solid #f0d5a0;
  border-radius: 11px;
  background: #fffaf0;
}
.compliance-check.is-ready {
  border-color: #bce2d3;
  background: #f1fbf7;
}
.compliance-check label {
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 500;
}
.compliance-check p,
.setting-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.ads-txt-preview {
  display: grid;
  gap: 6px;
  margin: 10px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #fbfbfa;
}
.ads-txt-preview small {
  color: var(--muted);
}
.ads-txt-preview code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
}
.placement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 14px;
}
.placement-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fbfbfa;
}
.placement-card.status-preview { border-color: #d4dce9; }
.placement-card.status-active { border-color: #bce2d3; }
.placement-card-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.placement-card-head > span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
}
.placement-card-head select {
  width: 128px;
  padding: 7px 9px;
}
.placement-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 540;
}
.placement-card p {
  min-height: 40px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}
.placement-fields {
  grid-template-columns: 160px 1fr;
  align-items: start;
}
.placement-preview {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 62px;
  margin-top: 15px;
  border: 1px dashed #cbd3df;
  border-radius: 8px;
  color: #697386;
  background: #fff;
  text-align: center;
}
.placement-preview small {
  font-size: 10px;
  text-transform: uppercase;
}
.placement-preview strong {
  font-size: 12px;
  font-weight: 500;
}
.placement-preview-rectangle { max-width: 220px; min-height: 90px; margin-inline: auto; }
.placement-preview-vertical { max-width: 150px; min-height: 118px; margin-inline: auto; }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.guide-grid article {
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  padding: 15px;
  background: #fbfbfa;
}
.guide-grid svg {
  width: 20px;
  height: 20px;
  margin-bottom: 10px;
  color: var(--brand);
}
.guide-grid h3 {
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 540;
}
.guide-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}
.adops-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: #414141;
}
.theme-size-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}
.item-create-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.item-roundtrip-panel .panel-head {
  margin-bottom: 18px;
}
.roundtrip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}
.roundtrip-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 13px;
  min-height: 268px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbfbfa;
}
.roundtrip-step {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}
.roundtrip-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 34px;
}
.roundtrip-card-head svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
  stroke-width: 1.8;
}
.roundtrip-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 540;
}
.roundtrip-card p {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.55;
}
.roundtrip-card p code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #f0f0ee;
}
.roundtrip-card > a.button {
  gap: 8px;
  justify-self: start;
  margin-top: auto;
}
.roundtrip-card > a.button svg {
  width: 16px;
  height: 16px;
}
.roundtrip-upload {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
}
.roundtrip-export-form {
  display: grid;
  gap: 12px;
  margin: 0;
}
.roundtrip-export-form label {
  margin: 0;
}
.roundtrip-export-form label > small {
  color: var(--muted);
  font-weight: 400;
}
.roundtrip-data-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
}
.roundtrip-data-options .check {
  min-height: auto;
  font-size: 13px;
}
.roundtrip-field-selector {
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}
.roundtrip-field-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
}
.roundtrip-field-head strong {
  font-weight: 500;
}
.roundtrip-field-head span {
  display: flex;
  gap: 5px;
}
button.text-action,
button.text-action:hover {
  padding: 3px 7px;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  font-weight: 500;
  filter: none;
}
.roundtrip-fields {
  display: grid;
  gap: 2px;
  max-height: 216px;
  padding: 7px;
  overflow-y: auto;
}
.roundtrip-fields .check {
  gap: 7px;
  min-height: auto;
  padding: 5px 4px;
  color: var(--ink);
  font-size: 12.5px;
}
.roundtrip-fields .check span {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: baseline;
}
.roundtrip-fields small {
  color: var(--muted);
  font-size: 11px;
}
.roundtrip-export-form > button,
.roundtrip-upload button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.roundtrip-export-form > button svg {
  width: 16px;
  height: 16px;
}
.roundtrip-export-form > button {
  justify-self: start;
}
.roundtrip-upload button {
  justify-self: start;
}
.create-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.create-card:hover {
  background: #fbfbfa;
  border-color: #cfd4d1;
}
.create-card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}
.create-card-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}
.create-card strong,
.create-card small {
  display: block;
}
.create-card strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 520;
}
.create-card small {
  color: var(--muted);
  margin-top: 3px;
  font-weight: 400;
}
.create-item-upload {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  flex: 1;
  min-width: 420px;
  margin: 0;
}
.upload-drop {
  display: grid;
  gap: 3px;
  width: 100%;
  margin: 0;
  border: 1px dashed #c9cfcc;
  border-radius: 10px;
  background: #fbfbfa;
  padding: 12px 14px;
  cursor: pointer;
}
.upload-drop:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.upload-drop.has-file {
  border-color: #94d8c4;
  background: var(--brand-soft);
}
.upload-drop span {
  color: var(--ink);
  font-weight: 500;
}
.upload-drop small {
  color: var(--muted);
  font-weight: 400;
}
.upload-drop input {
  max-width: none;
  margin-top: 6px;
  padding: 8px;
  background: #fff;
}
.create-item-upload button {
  align-self: end;
  min-height: 42px;
  white-space: nowrap;
}
.admin-modal {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .18);
}
.admin-modal::backdrop {
  background: rgba(32, 33, 35, .34);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.modal-head h2,
.modal-head p {
  margin: 0;
}
.modal-head p {
  margin-top: 5px;
}
.modal-close {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}
.modal-close:hover {
  background: #f6f6f4;
  color: var(--ink);
}
.modal-close svg {
  width: 18px;
  height: 18px;
}
.section-modal,
.plugin-install-modal {
  width: min(980px, calc(100% - 32px));
}
.modal-upload {
  margin-top: 16px;
  min-width: 0;
}
.single-file-upload {
  grid-template-columns: 1fr auto;
}
.homepage-hero-form {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.hero-settings-form {
  display: grid;
  gap: 16px;
}
.hero-settings-layout {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(240px, .75fr);
  gap: 14px;
  align-items: stretch;
}
.hero-settings-card {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px;
  background: #fbfbfa;
}
.hero-settings-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 540;
}
.hero-settings-card p {
  margin: 0;
}
.hero-settings-card label {
  margin: 0;
}
.hero-settings-card-wide {
  grid-column: 1 / -1;
}
.hero-settings-card-wide > label:not(.check) {
  margin-top: 2px;
}
.hero-settings-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.settings-kicker {
  color: var(--brand);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-note-toggle {
  justify-content: flex-start;
  min-height: auto;
  padding: 10px 0 0;
  border-top: 1px solid var(--line-soft);
  color: var(--ink);
}
.hero-admin-preview,
.hero-settings-card .admin-thumb {
  width: 100%;
  max-width: none;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: #fff;
}
.hero-settings-form > button[type=submit] {
  justify-self: end;
}
.link-editor {
  display: grid;
  gap: 14px;
}
.link-editor-row {
  display: grid;
  grid-template-columns: minmax(160px, .7fr) minmax(180px, .8fr) minmax(260px, 1.5fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 12px;
  background: #fbfbfa;
}
.link-editor-row label {
  margin: 0;
}
.layout-editor,
.section-editor {
  display: grid;
  gap: 12px;
}
.layout-editor-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 140px 130px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 12px;
  background: #fbfbfa;
}
.layout-editor-row span {
  display: grid;
  gap: 2px;
}
.layout-editor-row strong {
  font-weight: 520;
}
.layout-editor-row small {
  color: var(--muted);
}
.layout-editor-row label,
.section-editor-row label {
  margin: 0;
}
.section-editor-row {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 14px;
  background: #fbfbfa;
}
.section-editor-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}
.section-editor textarea,
.link-editor textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}
.managed-page-panel .panel-head {
  align-items: center;
}
.managed-page-panel a.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 480;
}
.managed-page-panel a.button-link:hover {
  border-color: #cfd4d1;
  background: #f0f0ee;
}
.managed-info-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(270px, 1fr));
  gap: 14px;
}
.settings-surface {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbfbfa;
}
.settings-surface label,
.managed-section-fields label {
  margin: 0;
}
.managed-help {
  margin: 0;
  font-size: 12px;
}
.managed-data-rule {
  display: flex;
  gap: 10px;
  align-items: start;
  margin: 0 0 16px;
  padding: 12px 13px;
  border: 1px solid #d9ece6;
  border-radius: 10px;
  background: var(--brand-soft);
  color: #3f514b;
  font-size: 13px;
}
.managed-data-rule svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--brand);
}
.managed-data-rule code {
  padding: 1px 5px;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
}
.managed-info-form .sticky-actions {
  grid-column: 1 / -1;
}
.managed-button-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px;
}
.layout-sortable {
  display: grid;
  gap: 9px;
}
.layout-sortable-row {
  display: grid;
  grid-template-columns: 40px minmax(220px, 1fr) 120px;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 10px 13px 10px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fbfbfa;
}
.layout-sortable-row.dragging {
  opacity: .45;
  background: var(--brand-soft);
}
.layout-sortable-row .drag-handle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: grab;
}
.layout-sortable-row .drag-handle:active {
  cursor: grabbing;
}
.layout-sortable-row .drag-handle svg {
  width: 18px;
  height: 18px;
}
.layout-sortable-row > div {
  display: grid;
  gap: 2px;
}
.layout-sortable-row strong {
  font-weight: 520;
}
.layout-sortable-row small {
  color: var(--muted);
}
.layout-sortable-row label {
  margin: 0;
}
.managed-section-library {
  display: grid;
  gap: 10px;
}
.managed-section-editor {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbfbfa;
}
.managed-section-editor[open] {
  background: #fff;
  border-color: var(--line);
}
.managed-section-editor.is-pending-delete {
  border-color: #f1b8b1;
  background: #fff8f7;
}
.managed-section-editor.is-pending-delete summary span {
  background: #ffe9e5;
  color: var(--danger);
}
.managed-section-editor summary {
  display: grid;
  grid-template-columns: 38px minmax(200px, 1fr) minmax(160px, .8fr);
  gap: 12px;
  align-items: center;
  padding: 13px;
  cursor: pointer;
  list-style: none;
}
.managed-section-editor summary::-webkit-details-marker {
  display: none;
}
.managed-section-editor summary span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
}
.managed-section-editor summary svg {
  width: 18px;
  height: 18px;
}
.managed-section-editor summary strong {
  font-weight: 520;
}
.managed-section-editor summary small {
  color: var(--muted);
  text-align: right;
}
.managed-section-fields {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto minmax(260px, 1.2fr);
  gap: 13px;
  align-items: end;
  padding: 0 14px 15px;
}
.managed-assignments {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
}
.managed-assignments legend {
  padding: 0 5px;
  color: var(--muted);
  font-size: 12px;
}
.managed-section-code {
  grid-column: 1 / -1;
}
.managed-section-code textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}
.managed-section-editor .section-editor-row {
  border: 0;
  border-radius: 0;
  padding: 0 14px 15px;
  background: transparent;
}
.global-sections-intro {
  display: flex;
  gap: 16px;
  align-items: start;
  background: var(--brand-soft);
  border-color: #c9eadf;
}
.global-sections-intro > svg {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  color: var(--brand);
}
.global-sections-intro h2 {
  margin-bottom: 5px;
}
.global-section-fields {
  align-items: start;
}
.section-render-options {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fbfbfa;
}
.section-render-options .check {
  min-height: 30px;
  margin: 0;
}
.section-modal .global-section-fields {
  padding: 0;
}
.section-modal-help {
  margin: 0 0 16px;
  padding: 14px;
}
.section-component-preview .editorial-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.section-component-preview .editorial-info-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbfbfa;
}
.section-component-preview .editorial-info-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}
.section-component-preview .editorial-info-card strong {
  font-weight: 520;
}
.section-component-preview .editorial-info-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}
.section-editor-toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fbfbfa;
}
.section-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f0f0ee;
  color: #686868;
  font-size: 12px;
  font-weight: 520;
}
.section-state.is-active {
  background: var(--brand-soft);
  color: var(--brand);
}
.danger-check {
  min-height: auto;
  margin: 0;
  color: var(--danger);
  font-weight: 500;
}
.global-section-media {
  display: grid;
  gap: 13px;
  align-content: start;
}
.section-focus-controls {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #fbfbfa;
}
.section-focus-controls > p {
  margin: 0 0 3px;
  font-weight: 500;
}
.section-focus-controls label {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(90px, 1fr) 42px;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-size: 12px;
}
.section-focus-controls input[type=range] {
  padding: 0;
}
.section-focus-controls output {
  color: var(--muted);
  text-align: right;
}
.portal-settings-panel form {
  display: grid;
  gap: 16px;
}
.portal-active {
  margin: 0;
}
.portal-settings-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 12px;
}
.portal-settings-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: #fbfbfa;
}
.portal-settings-card label {
  margin: 0;
  font-size: 12px;
}
.portal-settings-card textarea {
  min-height: 68px;
  resize: vertical;
}
.portal-settings-preview {
  display: grid;
  place-items: center;
  height: 92px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
}
.portal-settings-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal-settings-preview svg {
  width: 28px;
  height: 28px;
}
.plugin-intro {
  display: flex;
  gap: 16px;
  align-items: start;
  background: var(--brand-soft);
  border-color: #c9eadf;
}
.plugin-intro > svg {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 11px;
  border-radius: 10px;
  background: #fff;
  color: var(--brand);
}
.plugin-intro h2,
.plugin-intro p {
  margin: 0 0 6px;
}
.plugin-install-form {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(380px, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plugin-upload-drop {
  position: relative;
  display: grid;
  place-content: center;
  gap: 7px;
  min-height: 224px;
  margin: 0;
  padding: 22px;
  border: 1px dashed #c9cfcc;
  border-radius: 12px;
  background: #fbfbfa;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}
.plugin-upload-drop:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.plugin-upload-drop.has-file {
  border-color: #94d8c4;
  background: var(--brand-soft);
  color: var(--ink);
}
.plugin-upload-drop.has-file strong::after {
  content: " geladen";
  color: var(--brand);
  font-weight: 500;
}
.plugin-upload-drop svg {
  width: 28px;
  height: 28px;
  margin: 0 auto 5px;
  color: var(--brand);
}
.plugin-upload-drop strong {
  color: var(--ink);
  font-weight: 540;
}
.plugin-upload-drop span {
  font-size: 12px;
}
.plugin-upload-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.plugin-install-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 12px;
  align-content: start;
}
.plugin-install-fields label,
.plugin-fields label {
  margin: 0;
}
.plugin-install-fields .full,
.plugin-fields .full {
  grid-column: 1 / -1;
}
.plugin-install-fields button {
  grid-column: 1 / -1;
  justify-self: start;
}
.plugin-library {
  display: grid;
  gap: 10px;
}
.plugin-entry {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbfbfa;
}
.plugin-entry[open] {
  border-color: var(--line);
  background: #fff;
}
.plugin-entry.is-pending-delete {
  border-color: #f1b8b1;
  background: #fff8f7;
}
.plugin-entry.is-pending-delete .plugin-icon {
  background: #ffe9e5;
  color: var(--danger);
}
.plugin-entry summary {
  display: grid;
  grid-template-columns: 40px minmax(190px, 1fr) minmax(150px, .7fr) 98px;
  gap: 12px;
  align-items: center;
  padding: 13px;
  cursor: pointer;
  list-style: none;
}
.plugin-entry summary::-webkit-details-marker {
  display: none;
}
.plugin-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}
.plugin-icon svg {
  width: 19px;
  height: 19px;
}
.plugin-entry summary strong {
  font-weight: 530;
}
.plugin-entry summary small {
  color: var(--muted);
}
.plugin-entry summary em {
  justify-self: end;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f0f0ee;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.plugin-entry summary em.active {
  background: var(--brand-soft);
  color: var(--brand);
}
.plugin-fields {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 0 14px 15px;
}
.plugin-state {
  align-self: center;
}
.plugin-source {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.plugin-delete-choice {
  grid-column: 1 / -1;
  width: fit-content;
  padding: 9px 11px;
  border: 1px solid #f1c5c0;
  border-radius: 9px;
  background: #fff7f5;
}
@media (max-width: 1260px) {
  .portal-settings-grid {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
  }
}
.tree { list-style: none; padding-left: 18px; }
.tree:first-child { padding-left: 0; }
.tree li { border-left: 1px solid var(--line); margin: 6px 0; padding: 6px 0 6px 12px; }
.tree span { display: block; color: var(--muted); font-size: 13px; }
.menu-create-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, .8fr) auto;
  gap: 12px;
  align-items: end;
}
.menu-create-form label { margin: 0; }
.menu-tree-panel .panel-head {
  align-items: flex-start;
}
.menu-drop-root {
  display: grid;
  place-items: center;
  min-height: 42px;
  margin-bottom: 12px;
  border: 1px dashed #c9cfcc;
  border-radius: 10px;
  background: #fbfbfa;
  color: var(--muted);
  font-size: 13px;
}
.menu-drop-root.is-drag-over,
.menu-builder.is-drag-over,
.menu-children.is-drag-over {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.menu-builder,
.menu-children {
  display: grid;
  gap: 10px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid transparent;
  border-radius: 10px;
}
.menu-children {
  margin: 10px 0 0 42px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  border-radius: 0;
}
.menu-children:empty::before {
  content: "Unterpunkt hier ablegen";
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
}
.menu-children.is-drag-over:empty::before {
  border-color: var(--brand);
  color: var(--brand);
}
.menu-node-item {
  display: block;
}
.menu-node-item.is-dragging {
  opacity: .45;
}
.menu-node-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.menu-node-row:hover {
  border-color: #cfd4d1;
  background: #fbfbfa;
}
.drag-handle {
  width: 34px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: #f6f6f4;
  cursor: grab;
}
.drag-handle:active {
  cursor: grabbing;
}
.drag-handle svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}
.menu-node-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, .9fr) auto auto;
  gap: 10px;
  align-items: center;
  margin: 0;
}
.menu-node-form label {
  margin: 0;
}
.menu-node-form input[name=label] {
  font-weight: 500;
}
.menu-node-path {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-visible {
  min-height: auto;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
}
.secondary-button {
  background: #fff;
  color: var(--ink);
}
.secondary-button:hover {
  background: #f6f6f4;
  color: var(--ink);
}
.menu-delete-form {
  margin: 0;
}
table { width: 100%; border-collapse: collapse; background: #fff; }
.muted { color: var(--muted); }
th, td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; vertical-align: top; }
th { color: #6f6f6f; font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 500; }
td { font-weight: 400; }
tr:hover td { background: #fafafa; }
.table-actions {
  width: 1%;
  white-space: nowrap;
}
.row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.table-actions form {
  display: inline-flex;
  margin: 0;
}
.item-title-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 480;
}
.item-title-preview:hover {
  color: var(--brand);
}
.item-title-preview img {
  display: block;
  width: 48px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  object-fit: cover;
  object-position: 70% center;
}
.editable-table input,
.editable-table select,
.editable-table textarea {
  border-color: transparent;
  background: transparent;
  padding-left: 0;
}
.editable-row:hover input,
.editable-row:hover select,
.editable-row:hover textarea,
.editable-table input:focus,
.editable-table select:focus,
.editable-table textarea:focus {
  border-color: var(--line);
  background: #fff;
  padding-left: 11px;
}
.edit-icon {
  float: right;
  opacity: 0;
  color: var(--brand);
  font-size: 11px;
  font-weight: 500;
}
.editable-row:hover .edit-icon { opacity: 1; }
.admin-thumb {
  display: block;
  width: 220px;
  max-width: 100%;
  height: 120px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
}
.admin-thumb.small { width: 92px; height: 72px; }
.admin-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.admin-gallery img {
  width: 96px;
  height: 68px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.hero-upload-cell {
  min-width: 118px;
}
.hero-list-upload {
  display: grid;
  grid-template-columns: 86px auto;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.hero-image-picker {
  display: block;
  margin: 0;
  cursor: pointer;
}
.hero-image-picker input {
  display: none;
}
.hero-list-thumb,
.hero-list-empty {
  width: 86px;
  height: 54px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.hero-list-thumb {
  display: block;
  object-fit: cover;
}
.hero-list-empty {
  display: grid;
  place-items: center;
  background: #f6f6f4;
  color: var(--muted);
  font-size: 12px;
}
.hero-list-empty svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}
.upload-status {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.status-form { margin: 0; }
.status-form select {
  min-width: 126px;
  padding: 8px 10px;
}
.icon-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.icon-actions form { margin: 0; }
.icon-button,
button.icon-button,
button.icon-button[type=submit] {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}
.icon-button:hover,
button.icon-button:hover {
  color: var(--ink);
  background: #f6f6f4;
}
.icon-button.danger:hover,
button.icon-button.danger:hover {
  color: var(--danger);
  border-color: #ffd6d1;
  background: #fff8f7;
}
.icon-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}
.sticky-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 14px 0 0;
  background: transparent;
}
.items-library .panel-head {
  margin-bottom: 16px;
}
.item-filter-bar {
  display: grid;
  grid-template-columns: minmax(210px, 1.45fr) repeat(3, minmax(140px, .82fr)) auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fbfbfa;
}
.item-filter-bar label {
  margin: 0;
  gap: 5px;
}
.item-filter-bar label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.item-filter-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.item-filter-actions button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
}
.item-filter-actions svg {
  width: 16px;
  height: 16px;
}
.table-empty {
  padding: 32px 12px;
  color: var(--muted);
  text-align: center;
}
.item-detail-modal {
  width: min(980px, calc(100% - 32px));
  max-height: min(92vh, 940px);
}
.item-detail-form {
  display: grid;
  min-height: 0;
}
.item-detail-scroll {
  max-height: calc(86vh - 125px);
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}
.item-detail-scroll .editable-table {
  margin: 0;
}
.item-detail-scroll .editable-table th {
  width: 235px;
}
.item-detail-modal .sticky-actions {
  padding-top: 12px;
}
pre { overflow: auto; background: #0b1020; color: #d8e2ff; padding: 16px; border-radius: 8px; }
.error { color: var(--danger); }
.ok { color: var(--ok); }
.alert { padding: 11px 13px; border-radius: 8px; background: #fff8f7; border: 1px solid #ffd6d1; }
.alert.ok { background: var(--brand-soft); border-color: #c9eadf; }
.schema-import-note {
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfbfa;
  color: #444;
}
.schema-import-note code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #f0f0ee;
  font-size: 13px;
}
.design-code-editor {
  grid-column: 1 / -1;
  margin-top: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fbfbfa;
  overflow: hidden;
}
.design-code-editor summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.design-code-editor summary::-webkit-details-marker {
  display: none;
}
.design-code-editor summary svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
}
.design-code-editor > p,
.design-code-editor > label {
  margin: 0 12px 12px;
}
.design-code-editor textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.5;
}
.ai-admin-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 500;
}
.ai-admin-status.aktiv {
  border-color: #c9eadf;
  background: var(--brand-soft);
  color: var(--ok);
}
.ai-admin-status svg {
  width: 16px;
  height: 16px;
}
.ai-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.ai-kpi {
  display: grid;
  gap: 7px;
  align-content: start;
}
.ai-kpi svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
}
.ai-kpi strong {
  font-size: 20px;
  font-weight: 520;
}
.ai-kpi span {
  color: var(--muted);
  font-size: 13px;
}
.ai-preview-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbfbfa;
}
.ai-preview-row.compact {
  padding: 8px;
}
.ai-badge {
  --ai-badge-bg: rgba(255,255,255,.82);
  --ai-badge-border: rgba(127, 148, 178, .35);
  --ai-badge-color: #202123;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 32px;
  min-height: 30px;
  max-width: 190px;
  padding: 5px 8px;
  border: 1px solid var(--ai-badge-border);
  border-radius: 999px;
  background: var(--ai-badge-bg);
  color: var(--ai-badge-color);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 11px;
  line-height: 1;
  font-weight: 520;
  white-space: nowrap;
  transition: max-width .2s ease, border-color .16s ease, background .16s ease;
}
.ai-badge-symbol {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.ai-badge-symbol svg,
.ai-admin-badge-custom svg {
  width: 15px;
  height: 15px;
}
.ai-badge-text {
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width .2s ease, opacity .16s ease;
}
.ai-badge-display-hover:hover .ai-badge-text,
.ai-badge-display-hover:focus-visible .ai-badge-text,
.ai-badge-display-full .ai-badge-text {
  max-width: 140px;
  opacity: 1;
}
.ai-badge-display-full {
  max-width: 190px;
}
.ai-badge-dark {
  --ai-badge-bg: rgba(32,33,35,.86);
  --ai-badge-border: rgba(255,255,255,.22);
  --ai-badge-color: #fff;
}
.ai-badge-minimal {
  --ai-badge-bg: transparent;
  box-shadow: none;
}
.ai-page-state-list,
.ai-page-edit-list {
  display: grid;
  gap: 10px;
}
.ai-page-state-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fbfbfa;
  color: var(--ink);
}
.ai-page-state-list small,
.ai-config-card small,
.ai-image-row small,
.ai-page-editor small {
  color: var(--muted);
}
.ai-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ai-disclosure-table td:first-child,
.ai-content-table td:first-child {
  min-width: 220px;
}
.ai-disclosure-table td > strong,
.ai-content-table td > strong,
.ai-disclosure-table td > small,
.ai-content-table td > small {
  display: block;
}
.ai-disclosure-table input,
.ai-disclosure-table select {
  min-width: 150px;
}
.ai-disclosure-table .check.compact {
  margin: 0;
  white-space: nowrap;
}
.ai-content-table code {
  color: var(--muted);
  font-size: 12px;
}
.ai-page-modal {
  width: min(1040px, calc(100% - 32px));
}
.ai-page-modal-form {
  display: grid;
  gap: 13px;
}
.ai-page-modal-form .sticky-actions {
  margin-top: 2px;
}
.status-pill.status-draft {
  background: #f7f1e7;
  color: #8a5a16;
}
.ai-config-card,
.ai-page-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbfbfa;
}
.compact-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ai-image-list {
  display: grid;
  gap: 10px;
}
.ai-image-row {
  display: grid;
  grid-template-columns: 70px minmax(150px, 1fr) repeat(4, minmax(120px, .75fr));
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbfbfa;
}
.ai-image-row img {
  width: 70px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.ai-page-editor header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ai-icon-test-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.ai-icon-test-grid > div {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fff;
}
.ai-icon-test-grid > div.is-dark {
  background: #111827;
  color: #fff;
}
.ai-icon-test-grid small {
  color: var(--muted);
}
.ai-icon-test-grid .is-dark small {
  color: rgba(255,255,255,.68);
}
.ai-cookie-preview {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbfbfa;
}
.consent-ai-note {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  background: #fff;
}
.consent-ai-note span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}
.consent-ai-note p {
  margin: 0;
  color: #444;
  font-size: 12px;
}
.consent-ai-note a {
  font-size: 12px;
  font-weight: 500;
}
@media (max-width: 1100px) {
  .dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .ai-overview-grid,
  .ai-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ai-image-row {
    grid-template-columns: 70px minmax(0, 1fr);
  }
  .ai-image-row select,
  .ai-image-row input {
    grid-column: 2;
  }
}
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .sidebar-logout { margin-top: 12px; }
  .admin-frontend-shortcut {
    top: auto;
    right: 16px;
    bottom: 16px;
  }
  .main { padding: 18px; }
  .dashboard-stats,
  .coverage-grid {
    grid-template-columns: 1fr;
  }
  .database-backups .panel-head {
    align-items: stretch;
    flex-direction: column;
  }
  .backup-list article {
    grid-template-columns: 1fr;
  }
  .admin-subnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .managed-page-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .automation-flow { grid-template-columns: 1fr; }
  .page-title-row,
  .actions, .inline-upload { align-items: stretch; flex-direction: column; }
  .title-actions { align-items: stretch; flex-direction: column; }
  .panel-actions { align-items: stretch; flex-direction: column; }
  .panel-actions .button,
  .panel-actions .undo-import-button { justify-content: center; width: 100%; }
  .inline-upload input { max-width: none; }
  .create-item-upload,
  .single-file-upload { grid-template-columns: 1fr; min-width: 0; }
  .roundtrip-grid { grid-template-columns: 1fr; }
  .roundtrip-card { min-height: 0; }
  .roundtrip-export-form > button,
  .roundtrip-upload button,
  .roundtrip-card > a.button { justify-self: stretch; justify-content: center; }
  .menu-create-form,
  .menu-node-row,
  .menu-node-form,
  .layout-editor-row,
  .section-editor-meta,
  .hero-settings-layout { grid-template-columns: 1fr; }
  .managed-info-form,
  .managed-button-fields,
  .managed-section-fields { grid-template-columns: 1fr; }
  .portal-settings-grid { grid-template-columns: 1fr; }
  .plugin-install-form,
  .plugin-install-fields,
  .plugin-fields { grid-template-columns: 1fr; }
  .plugin-entry summary { grid-template-columns: 40px minmax(0, 1fr); }
  .plugin-entry summary small,
  .plugin-entry summary em {
    grid-column: 2;
    justify-self: start;
  }
  .layout-sortable-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .layout-sortable-row label {
    grid-column: 2;
  }
  .managed-section-editor summary {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .managed-section-editor summary small {
    grid-column: 2;
    text-align: left;
  }
  .hero-settings-title-row { flex-direction: column; }
  .hero-settings-form > button[type=submit] { justify-self: stretch; }
  .menu-children { margin-left: 14px; }
  .drag-handle { width: 100%; height: 36px; }
  .modal-head { align-items: flex-start; }
  .link-editor-row { grid-template-columns: 1fr; }
  .theme-settings-grid,
  .theme-font-grid,
  .theme-size-grid,
  .placement-grid,
  .placement-fields,
  .guide-grid { grid-template-columns: 1fr; }
  .item-filter-bar {
    grid-template-columns: 1fr;
  }
  .item-filter-actions {
    flex-wrap: wrap;
  }
  .item-detail-modal {
    padding: 16px;
  }
  .item-detail-scroll .editable-table th {
    width: auto;
  }
  .ai-overview-grid,
  .ai-page-grid,
  .compact-fields {
    grid-template-columns: 1fr;
  }
  .consent-ai-note {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .consent-ai-note a {
    grid-column: 2;
  }
}
