:root {
  --bg: #f6f7f5;
  --bg-strong: #eef2ee;
  --panel: #ffffff;
  --ink: #103d39;
  --text: #20231f;
  --muted: #68716c;
  --line: #d9ded8;
  --line-strong: #c8d0c8;
  --rose: #bc4f5b;
  --danger: #b94655;
  --green: #176d51;
  --soft: #e9f3ee;
  --brand-main: #103d39;
  --brand-on-main: #ffffff;
  --brand-accent: #bc4f5b;
  --brand-soft: #e9f3ee;
  --brand-line: #d9ded8;
  --shadow: 0 20px 60px rgba(20, 36, 32, 0.12);
}
* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}
a { color: inherit; }
.auth-page {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 24px;
}
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 460px;
  padding: 28px;
  width: 100%;
}
.eyebrow {
  color: var(--brand-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--ink); line-height: 1.08; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); font-size: 0.92rem; }
form { display: grid; gap: 14px; }
label { color: var(--ink); display: grid; font-weight: 700; gap: 7px; }
label, .grid-2 > *, .grid-3 > *, .day-row > *, .service-editor > * { min-width: 0; }
input, textarea, select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: color-mix(in srgb, var(--brand-main) 58%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-main) 13%, transparent);
  outline: 0;
}
input[type="file"] {
  background: transparent;
  border-style: dashed;
}
input[type="range"] {
  accent-color: var(--brand-main);
  border: 0;
  min-height: 34px;
  padding: 0;
}
textarea { min-height: 110px; resize: vertical; }
button, .button {
  align-items: center;
  background: var(--brand-main);
  border: 0;
  border-radius: 999px;
  color: var(--brand-on-main);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
}
button.secondary, .button.secondary { background: transparent; border: 1px solid var(--brand-main); color: var(--brand-main); }
.compact-button {
  margin-top: 10px;
  min-height: 38px;
  padding: 0 14px;
}
.alert {
  background: #fff7df;
  border: 1px solid #eadca8;
  border-radius: 10px;
  color: #604d14;
  padding: 11px 12px;
}
.alert.error { background: #fff1f2; border-color: #efbec4; color: #8c1e2b; }
.alert.success { background: #e9f7ef; border-color: #b9e2c9; color: #12583e; }
.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  overflow-x: hidden;
}
.sidebar {
  background: var(--brand-main);
  color: var(--brand-on-main);
  padding: 22px;
}
.brand { border-bottom: 1px solid rgba(255,255,255,0.14); margin-bottom: 18px; padding-bottom: 18px; }
.brand strong { display: block; font-size: 1.22rem; }
.brand span { color: inherit; font-size: 0.88rem; opacity: .72; }
.nav-tabs { display: grid; gap: 8px; }
.nav-tabs button {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  justify-content: flex-start;
}
.nav-tabs button.is-active { background: white; color: var(--brand-main); }
.side-actions { display: grid; gap: 10px; margin-top: 24px; }
.main {
  max-width: 100%;
  min-width: 0;
  padding: clamp(18px, 4vw, 34px);
}
.topbar {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 22px;
  max-width: 1180px;
}
.status-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(20, 36, 32, 0.06);
  flex: 0 0 min(320px, 100%);
  padding: 18px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(20, 36, 32, 0.06);
  display: none;
  max-width: 1180px;
  padding: clamp(18px, 2.4vw, 26px);
}
.panel.is-active { display: block; }
.panel[data-panel="meldung"].is-active {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.78fr);
}
.panel[data-panel="meldung"] > h2,
.panel[data-panel="meldung"] > .muted {
  grid-column: 1 / -1;
}
.notice-tabs {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 6px;
}
.notice-tabs button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  min-height: 42px;
}
.notice-tabs button.is-active {
  background: white;
  border-color: var(--line);
  box-shadow: 0 5px 16px rgba(20, 36, 32, 0.08);
  color: var(--ink);
}
.notice-content {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
}
.notice-content[hidden] { display: none !important; }
.notice-form {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.notice-preview-stack {
  align-self: start;
  display: grid;
  gap: 12px;
  min-width: 0;
  position: sticky;
  top: 18px;
}
.notice-content > .upload-library { grid-column: 1 / -1; }
.notice-archive {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  grid-column: 1 / -1;
  overflow: hidden;
}
.notice-archive > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 800;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 12px 14px;
}
.notice-archive > summary::-webkit-details-marker { display: none; }
.notice-archive > summary::after {
  color: var(--muted);
  content: '+';
  font-size: 1.25rem;
  line-height: 1;
}
.notice-archive[open] > summary::after { content: '−'; }
.notice-archive-count {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  margin-left: auto;
}
.notice-archive-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 14px;
}
.notice-archive-body > p { margin: 0; }
.notice-archive-list {
  display: grid;
  gap: 8px;
  max-height: 310px;
  overflow: auto;
}
.notice-archive-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) 210px;
  padding: 11px;
}
.notice-archive-preview {
  align-items: center;
  aspect-ratio: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
}
.notice-archive-preview-banner {
  align-content: center;
  align-self: center;
  display: grid;
  height: 40px;
  justify-self: end;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 154px;
}
.notice-archive-preview-banner {
  font-size: 0.68rem;
  font-weight: 800;
  gap: 1px 6px;
  line-height: 1.2;
  padding: 7px;
  text-align: center;
}
.notice-archive-preview-banner .notice-archive-preview-label {
  color: currentColor;
  font-size: 0.46rem;
  grid-column: 1 / -1;
  letter-spacing: 0.08em;
  line-height: 1;
  overflow: hidden;
  text-transform: uppercase;
  white-space: nowrap;
}
.notice-archive-preview-banner strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-archive-preview-banner small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
  font-size: 0.58rem;
  max-width: 100%;
  width: max-content;
}
.notice-archive-preview-popup {
  background: var(--soft);
  color: var(--muted);
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  font-size: 0.72rem;
  font-weight: 800;
  isolation: isolate;
  align-self: stretch;
  height: auto;
  min-height: 100%;
  position: relative;
  width: 210px;
}
.notice-archive-preview-popup-image {
  display: block;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: var(--archive-image-position, center center);
  opacity: var(--archive-image-opacity, 1);
  transform: scale(var(--archive-image-zoom, 1));
  transform-origin: center;
  width: 100%;
}
.notice-archive-preview-popup-content {
  background: rgba(255, 255, 255, 0.88);
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
  padding: 5px;
  position: relative;
  z-index: 1;
}
.notice-archive-preview-popup-content small {
  color: #b94e59;
  font-size: 0.42rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  overflow: hidden;
  text-transform: uppercase;
  white-space: nowrap;
}
.notice-archive-preview-popup-content strong,
.notice-archive-preview-popup-content span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-archive-preview-popup-content strong {
  color: var(--ink);
  font-size: 0.68rem;
  line-height: 1.1;
}
.notice-archive-preview-popup-content span {
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 600;
  line-height: 1.2;
}
.notice-archive-preview-popup-content i {
  background: var(--ink);
  border-radius: 999px;
  color: white;
  font-size: 0.5rem;
  font-style: normal;
  justify-self: start;
  line-height: 1;
  padding: 3px 8px;
}
.notice-archive-layout-top,
.notice-archive-layout-bottom {
  grid-template-rows: minmax(0, 0.8fr) minmax(0, 1.2fr);
}
.notice-archive-layout-bottom .notice-archive-preview-popup-image {
  order: 2;
}
.notice-archive-layout-left,
.notice-archive-layout-right {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}
.notice-archive-layout-right .notice-archive-preview-popup-image {
  order: 2;
}
.notice-archive-layout-background {
  display: block;
}
.notice-archive-layout-background .notice-archive-preview-popup-image {
  inset: 0;
  position: absolute;
}
.notice-archive-layout-background .notice-archive-preview-popup-content {
  inset: 5px;
  position: absolute;
}
.notice-archive-preview-popup:not(.notice-archive-layout-background) img {
  min-height: 0;
}
.notice-archive-preview-popup:not(.notice-archive-layout-background) .notice-archive-preview-popup-content {
  min-height: 0;
}
.notice-archive-preview-popup.notice-archive-no-image {
  background: white;
}
.notice-archive-preview-popup.notice-archive-no-image .notice-archive-preview-popup-content {
  align-content: center;
  background: transparent;
  height: 100%;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}
.notice-archive-preview-popup img {
  height: 100%;
  width: 100%;
}
.notice-archive-item-content {
  display: grid;
  gap: 7px;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.notice-archive-item p { margin: 0; }
.notice-archive-item-head {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.notice-archive-item-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.notice-archive-item time {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.76rem;
}
.grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.day-row {
  align-items: end;
  background: linear-gradient(180deg, #fbfcfb 0%, var(--bg) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(190px, 0.55fr) minmax(170px, 1fr) minmax(170px, 1fr);
  margin-bottom: 10px;
  padding: 12px;
}
.service-editor {
  background: linear-gradient(180deg, #fbfcfb 0%, var(--bg) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
}
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.price-editor-intro {
  align-items: center;
  background: #eef6f2;
  border: 1px solid #cfe3d8;
  border-radius: 12px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 16px 0 8px;
  padding: 14px;
}
.price-editor-intro h3 { color: var(--ink); margin: 0; }
.price-editor-intro p { margin: 4px 0 0; max-width: 780px; }
.price-editor-intro-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.price-editor-save-state {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.82rem;
  gap: 7px;
  margin: 0 2px 12px;
}
.price-editor-save-state::before { background: #9aa59f; border-radius: 50%; content: ""; height: 7px; width: 7px; }
.price-editor-save-state.is-dirty { color: #805f13; font-weight: 750; }
.price-editor-save-state.is-dirty::before { background: #d39b24; }
.price-editor-save-state.is-saved { color: var(--green); font-weight: 750; }
.price-editor-save-state.is-saved::before { background: var(--green); }
.price-areas-editor { display: grid; gap: 10px; min-width: 0; }
.price-area-editor {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  overflow: visible;
}
.price-area-editor.is-open { border-color: #b8d5c7; box-shadow: 0 12px 28px rgba(20, 36, 32, 0.06); }
.price-area-summary { align-items: stretch; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.price-area-summary-main {
  align-items: center;
  background: transparent;
  border-radius: 12px 0 0 12px;
  color: var(--text);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 76px;
  padding: 13px 16px;
  text-align: left;
  width: 100%;
}
.price-area-summary-main:hover { background: #f8faf8; }
.price-area-summary-main:focus-visible { box-shadow: inset 0 0 0 3px rgba(23, 109, 81, 0.17); outline: 0; }
.price-area-summary-copy { display: grid; gap: 4px; min-width: 0; }
.price-area-summary-copy strong { color: var(--ink); font-size: 1rem; overflow-wrap: anywhere; }
.price-area-summary-copy > span { color: var(--muted); font-size: 0.8rem; overflow-wrap: anywhere; }
.price-area-summary-right { align-items: center; display: flex; flex: 0 0 auto; gap: 12px; }
.price-summary-status { border: 1px solid; border-radius: 999px; font-size: 0.7rem; font-weight: 800; padding: 4px 8px; white-space: nowrap; }
.price-summary-status.is-visible { background: #e8f5ed; border-color: #bedfca; color: var(--green); }
.price-summary-status.is-hidden { background: #f2f3f2; border-color: #d7dbd8; color: #737c77; }
.price-area-edit-label { color: var(--green); font-size: 0.82rem; font-weight: 850; white-space: nowrap; }
.price-area-summary-order { align-items: center; border-left: 1px solid var(--line); display: flex; gap: 5px; padding: 10px; }
.price-area-summary-order .compact-button { margin: 0; min-height: 34px; min-width: 34px; padding: 0 9px; }
.price-area-detail { border-top: 1px solid var(--line); display: grid; gap: 14px; padding: 16px; }
.price-area-detail[hidden] { display: none !important; }
.price-area-detail-toolbar { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.price-back-button { background: transparent; color: var(--green); min-height: 36px; padding: 0; }
.price-back-button:hover { text-decoration: underline; }
.price-area-basic-fields { align-items: end; display: grid; gap: 14px; grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.65fr); }
.price-area-basic-fields .switch-field { margin: 0; min-height: 44px; }
.price-area-detail > label > textarea { min-height: 66px; }
.price-editor-section-head {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-top: 14px;
}
.price-editor-section-head > div { display: grid; gap: 2px; min-width: 0; }
.price-editor-section-head .muted { font-size: 0.78rem; }
.price-table-wrap { border: 1px solid var(--line); border-radius: 10px; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.price-editor-table { border-collapse: collapse; min-width: 760px; width: 100%; }
.price-editor-table th,
.price-editor-table td { border-bottom: 1px solid var(--line); padding: 8px; vertical-align: top; }
.price-editor-table thead th { background: var(--soft); color: var(--ink); font-size: 0.76rem; min-width: 126px; text-align: left; }
.price-editor-table thead th:first-child { min-width: 270px; width: 42%; }
.price-editor-table thead th:last-child { min-width: 150px; width: 150px; }
.price-editor-table tbody th { background: white; min-width: 270px; text-align: left; }
.price-editor-table tbody td { background: #fcfdfc; }
.price-editor-table tbody tr:last-child th,
.price-editor-table tbody tr:last-child td { border-bottom: 0; }
.price-editor-table input,
.price-editor-table textarea { background: white; font-size: 0.86rem; margin: 0; min-height: 38px; padding: 8px 9px; }
.price-editor-table [data-price-row-title] { font-weight: 780; }
.price-editor-table textarea { line-height: 1.35; min-height: 46px; resize: vertical; }
.price-editor-table tbody td input { min-width: 110px; white-space: nowrap; }
.price-column-heading { display: grid; gap: 6px; }
.price-column-heading input { font-weight: 800; min-width: 108px; }
.price-column-actions,
.price-row-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 4px; }
.price-column-actions .compact-button,
.price-row-actions .compact-button { margin: 0; min-height: 30px; padding: 0 8px; }
.price-column-actions .danger-button { font-size: 0.9rem; }
.price-row-actions { min-width: 142px; }
.price-row-more { position: relative; }
.price-row-more > summary {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  list-style: none;
  min-width: 36px;
  padding: 0 8px;
}
.price-row-more > summary::-webkit-details-marker { display: none; }
.price-row-more-menu {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(20, 36, 32, 0.14);
  display: grid;
  gap: 6px;
  min-width: 126px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: 36px;
  z-index: 8;
}
.price-row-more-menu .compact-button { justify-content: flex-start; width: 100%; }
.inline-visibility { align-items: center; color: var(--muted); display: flex; font-size: 0.74rem; gap: 6px; margin-top: 6px; }
.inline-visibility input { min-height: 0; width: auto; }
.price-add-row { justify-self: start; margin-top: 0; }
.price-note-editor {
  background: #fbf8ee;
  border: 1px solid #eadca8;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 13px;
}
.price-note-editor p { margin: 3px 0 0; }
.price-note-editor .switch-field { margin: 0; }
.price-note-editor textarea { min-height: 76px; }
.price-save-footer { align-items: center; display: flex; gap: 12px; justify-content: space-between; margin-top: 12px; }
.panel[data-panel="preise"] > .service-display-settings,
.panel[data-panel="preise"] > .service-group-manager,
.panel[data-panel="preise"] > .service-editor-toolbar,
.panel[data-panel="preise"] > #servicesEditor { display: none !important; }
.service-editor-head,
.service-group-manager-head,
.service-group-card-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.service-editor-head strong,
.service-group-manager-head h3,
.service-group-card-head h4 {
  color: var(--ink);
  margin: 0;
}
.service-summary {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.service-summary [data-service-summary-meta] {
  color: var(--muted);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.service-editor.is-collapsed > :not(.service-editor-head) {
  display: none;
}
.service-order-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-order-actions .compact-button {
  margin-top: 0;
  min-width: 38px;
  padding: 0 10px;
}
.service-group-manager {
  background: #eef6f2;
  border: 1px solid #cfe3d8;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
}
.service-group-manager-head {
  align-items: start;
}
.service-group-manager-head p,
.service-editor-toolbar p {
  margin: 3px 0 0;
}
.service-group-manager-list,
.service-list-view,
.service-groups-view {
  display: grid;
  gap: 10px;
}
.service-group-manager-item {
  align-items: end;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}
.service-group-manager-item label {
  min-width: 0;
}
.service-editor-toolbar {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 18px 0 12px;
}
.service-groups-view[hidden] {
  display: none;
}
.service-group-card {
  background: #eef6f2;
  border: 1px solid #cfe3d8;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
}
.service-group-card-head {
  padding: 2px 2px 0;
}
.service-group-toggle {
  align-items: center;
  background: var(--soft);
  border: 1px solid #b8d4c5;
  border-radius: 50%;
  color: var(--green);
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  line-height: 1;
  min-height: 34px;
  padding: 0;
  width: 34px;
}
.service-group-toggle:hover {
  background: #dceee5;
  color: var(--ink);
}
.service-group-toggle:focus-visible {
  outline: 3px solid rgba(23, 109, 81, 0.2);
  outline-offset: 2px;
}
.service-group-card-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.service-group-card.is-collapsed > .service-group-card-list {
  display: none;
}
.service-group-card-list .service-editor {
  margin-bottom: 0;
}
.service-group-empty {
  background: rgba(255,255,255,0.7);
  border: 1px dashed #b8d4c5;
  border-radius: 9px;
  color: var(--muted);
  margin: 0;
  padding: 14px;
}
.channel-card {
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1fr);
}
.channel-card .grid-2 {
  align-items: end;
}
.service-editor textarea { min-height: 78px; }
.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.switch-actions {
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  margin-top: 0;
}
.switch-field {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  min-height: 58px;
  padding: 10px 12px;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.switch-field:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 24px rgba(20, 36, 32, 0.07);
}
.switch-field input[type="checkbox"] {
  height: 1px;
  opacity: 0;
  padding: 0;
  position: absolute;
  width: 1px;
}
.switch-control {
  background: #cfd8d1;
  border: 1px solid #bac6be;
  border-radius: 999px;
  display: inline-block;
  height: 28px;
  position: relative;
  transition: background-color 160ms ease, border-color 160ms ease;
  width: 50px;
}
.switch-control::after {
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(20, 36, 32, 0.22);
  content: "";
  height: 22px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 160ms ease;
  width: 22px;
}
.switch-field input[type="checkbox"]:checked + .switch-control {
  background: var(--green);
  border-color: var(--green);
}
.switch-field input[type="checkbox"]:checked + .switch-control::after {
  transform: translateX(22px);
}
.switch-field input[type="checkbox"]:focus-visible + .switch-control {
  box-shadow: 0 0 0 3px rgba(23, 109, 81, 0.2);
}
.switch-field.is-danger input[type="checkbox"]:checked + .switch-control {
  background: var(--danger);
  border-color: var(--danger);
}
.switch-field.is-danger input[type="checkbox"]:focus-visible + .switch-control {
  box-shadow: 0 0 0 3px rgba(185, 70, 85, 0.18);
}
.switch-text {
  color: var(--ink);
  display: grid;
  gap: 2px;
  line-height: 1.2;
}
.switch-text strong {
  font-size: 0.96rem;
}
.switch-text small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.day-switch {
  min-height: 64px;
}
.day-switch .switch-text strong {
  font-size: 1.05rem;
}
.panel-switch {
  margin: 16px 0;
  max-width: 520px;
}
.range-field span {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 78px;
  min-height: 44px;
  padding: 6px 10px;
}
.range-field output {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}
.theme-workspace {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(340px, 0.72fr) minmax(460px, 1fr);
  align-items: start;
}
.theme-controls {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.theme-presets {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  padding: 14px;
}
.theme-presets > div:first-child {
  display: grid;
  gap: 3px;
}
.theme-presets strong { color: var(--ink); }
.theme-preset-buttons {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.theme-preset {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  display: grid;
  gap: 8px;
  grid-template-columns: 54px minmax(0, 1fr);
  justify-content: start;
  min-height: 48px;
  padding: 7px 9px;
  text-align: left;
}
.theme-preset-swatch {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 20px;
  overflow: hidden;
  width: 54px;
}
.theme-preset-swatch i:nth-child(1) { background: var(--preset-main); }
.theme-preset-swatch i:nth-child(2) { background: var(--preset-accent); }
.theme-preset-swatch i:nth-child(3) { background: var(--preset-bg); }
.theme-preset-label { overflow-wrap: anywhere; }
.theme-preset:hover,
.theme-preset.is-active {
  border-color: var(--brand-main);
  box-shadow: inset 0 0 0 1px var(--brand-main);
  color: var(--brand-main);
}
.theme-preset.is-active::after {
  color: var(--brand-main);
  content: "✓";
  font-weight: 900;
  justify-self: end;
  grid-column: 2;
  grid-row: 1;
}
.theme-primary-grid {
  display: grid;
  gap: 10px;
}
.color-field {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(160px, 1fr) minmax(150px, 0.78fr);
  padding: 11px 12px;
}
.color-field-copy {
  align-content: center;
  display: grid;
  gap: 2px;
}
.color-field-copy strong {
  color: var(--ink);
  font-size: 0.92rem;
}
.color-field-copy small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
}
.color-inputs {
  display: grid;
  gap: 8px;
  grid-template-columns: 48px 1fr;
}
.color-inputs input[type="color"] {
  cursor: pointer;
  min-height: 44px;
  padding: 4px;
}
.theme-contrast {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 3px;
  padding: 11px 13px;
}
.theme-contrast strong { font-size: 0.9rem; }
.theme-contrast span { color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.theme-contrast.is-good { background: #edf8f1; border-color: #bfe3ca; }
.theme-contrast.is-good strong { color: #17633a; }
.theme-contrast.is-warning { background: #fff8e7; border-color: #ead69c; }
.theme-contrast.is-warning strong { color: #7a5914; }
.advanced-colors {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
}
.advanced-colors summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}
.advanced-colors > .muted { margin: 8px 0 0; }
.advanced-color-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.theme-reset-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.theme-reset-row .muted {
  flex: 1 1 260px;
  font-size: 0.78rem;
}
.theme-live-preview {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
  position: sticky;
  top: 18px;
}
.theme-live-preview-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  padding: 12px 14px;
}
.theme-live-preview-head > div:first-child {
  display: grid;
  gap: 2px;
}
.theme-live-preview-head strong { color: var(--ink); }
.theme-live-preview-head .muted { font-size: 0.76rem; }
.theme-preview-size {
  display: flex;
  gap: 6px;
}
.theme-preview-size .is-active {
  background: var(--ink);
  color: white;
}
.theme-preview-frame-wrap {
  background: #eef1ef;
  display: flex;
  justify-content: center;
  overflow: auto;
  padding: 12px;
}
.theme-preview-frame-wrap iframe {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  height: 640px;
  width: 100%;
}
.theme-preview-frame-wrap.is-mobile iframe {
  width: min(390px, 100%);
}
.preview-image {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 76px;
  padding: 12px;
}
.preview-image img {
  border-radius: 10px;
  display: block;
  height: auto;
  max-width: 220px;
  width: 100%;
}
.preview-image img[hidden],
.popup-preview-dialog img[hidden] {
  display: none;
}
.live-preview-block {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 12px;
}
.live-preview-block > p {
  margin: 0;
}
.live-preview-heading {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.live-preview-heading span {
  background: #e5f3eb;
  border: 1px solid #b8ddc6;
  border-radius: 999px;
  color: #0d5d3b;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 8px;
  white-space: nowrap;
}
.promo-preview-banner {
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  min-height: 54px;
  padding: 8px 10px;
  text-align: center;
}
.promo-preview-banner p,
.promo-preview-banner a {
  color: inherit;
  margin: 0;
}
.promo-preview-banner p {
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}
.promo-preview-banner a {
  border-bottom: 1px solid currentColor;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}
.promo-preview-banner.promo-banner-accent { background: #f4e7e6; color: #953f47; }
.promo-preview-banner.promo-banner-dark { background: var(--ink); color: white; }
.promo-preview-banner.promo-banner-soft { background: #e8efeb; color: var(--ink); }
.promo-preview-banner.is-disabled {
  opacity: 0.56;
}
.image-preview-frame {
  align-items: center;
  background: white;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  display: grid;
  justify-items: start;
  min-height: 170px;
  padding: 12px;
}
.image-preview-frame img {
  aspect-ratio: 16 / 10;
  max-width: 100%;
  object-fit: cover;
}
.popup-preview-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
}
.popup-preview-shell {
  align-items: center;
  background: linear-gradient(135deg, rgba(16, 61, 57, 0.88), rgba(16, 61, 57, 0.62));
  border-radius: 12px;
  display: block;
  min-height: 360px;
  overflow: auto;
  padding: 18px;
}
.popup-preview-card {
  align-self: start;
}
.popup-preview-dialog {
  box-sizing: border-box;
  background: white;
  background-position: var(--popup-preview-image-position, center center);
  background-repeat: no-repeat;
  border-radius: 14px;
  box-shadow: 0 18px 54px rgba(0,0,0,0.24);
  display: grid;
  margin: 0 auto;
  min-height: 0;
  min-width: 420px;
  overflow: auto;
  resize: both;
  width: var(--popup-preview-width, 640px);
  height: var(--popup-preview-height, 360px);
}
.popup-preview-dialog > img {
  aspect-ratio: 16 / 7;
  display: block;
  max-height: none;
  object-fit: contain;
  object-position: var(--popup-preview-image-position, center center);
  opacity: var(--popup-preview-image-opacity, 1);
  transform: scale(var(--popup-preview-image-zoom, 1));
  width: 100%;
}
.popup-layout-left,
.popup-layout-right {
  align-items: stretch;
  grid-template-columns: minmax(160px, 0.8fr) minmax(210px, 1fr);
}
.popup-layout-right > img {
  order: 2;
}
.popup-layout-bottom > img {
  order: 2;
}
.popup-layout-background {
  background-color: white;
}
.popup-layout-background .popup-preview-content {
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(2px);
}
.popup-layout-left > img,
.popup-layout-right > img {
  aspect-ratio: auto;
  height: 100%;
  max-height: none;
}
.popup-preview-content {
  padding: 20px;
}
.popup-preview-content p { white-space: pre-line; }
.notice-upload-card {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 8px 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
}
.notice-upload-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.notice-upload-copy .muted { font-size: 0.78rem; }
.notice-upload-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.notice-upload-controls input[type="file"] {
  max-width: min(100%, 260px);
  font-size: 0.78rem;
}
.notice-upload-card > #uploadStatus {
  grid-column: 1 / -1;
  margin: 0;
}
.upload-library {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.upload-library-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin-top: 12px;
}
.upload-library-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 8px;
}
.upload-library-item img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  height: auto;
  object-fit: contain;
  width: 100%;
}
.upload-library-item small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.module-editor-grid {
  display: grid;
  gap: 16px;
}
.module-media-tools {
  align-items: center;
  background: #eef6f2;
  border: 1px solid #cfe3d8;
  border-radius: 12px;
  display: grid;
  gap: 12px 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 16px;
  padding: 10px 12px;
}
.module-upload-actions {
  align-items: center;
  display: grid;
  gap: 8px 10px;
  grid-template-columns: auto minmax(90px, 1fr) auto minmax(90px, 1fr);
}
.module-media-tools p {
  margin: 3px 0 0;
}
.upload-control {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
}
.upload-control input {
  display: none;
}
.media-module-row {
  align-items: start;
}
.media-field,
.media-field-inline {
  display: grid;
  gap: 8px;
}
.media-select-fallback {
  display: none;
}
.media-choice-details {
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
}
.media-choice-details summary {
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}
.media-choice-details[open] summary {
  margin-bottom: 8px;
}
.media-choice-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  max-height: 230px;
  overflow: auto;
  padding: 2px;
}
.media-choice {
  align-items: stretch;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 5px;
  text-align: left;
}
.media-choice:hover,
.media-choice.is-selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(16, 61, 57, 0.12);
}
.media-choice.is-selected {
  background: #eef6f2;
}
.media-choice img {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
}
.media-choice span {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-choice-empty {
  color: var(--muted);
  font-size: 0.82rem;
  grid-column: 1 / -1;
  padding: 8px 2px;
}
.media-field-preview {
  align-items: center;
  background: #eef2ef;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 92px;
  overflow: hidden;
}

.module-editor-card[data-module-subpanel="gallery"],
.module-editor-card[data-module-subpanel="team"] {
  gap: 10px;
  padding: 12px;
}
.module-editor-card[data-module-subpanel="gallery"] > .switch-field,
.module-editor-card[data-module-subpanel="team"] > .switch-field {
  margin: 0;
  max-width: none;
}
.module-editor-card[data-module-subpanel="gallery"] h4,
.module-editor-card[data-module-subpanel="team"] h4 {
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  margin: 4px 0 0;
  padding-bottom: 6px;
}
.module-editor-card[data-module-subpanel="gallery"] .compact-module-row {
  gap: 8px;
  padding: 8px;
}
.module-editor-card[data-module-subpanel="gallery"] .repeater-list,
.module-editor-card[data-module-subpanel="team"] .repeater-list {
  gap: 8px;
}
.module-editor-card[data-module-subpanel="gallery"] .media-field-preview,
.module-editor-card[data-module-subpanel="team"] .media-field-preview {
  min-height: 64px;
  max-height: 78px;
}
.module-editor-card[data-module-subpanel="gallery"] .media-choice-details,
.module-editor-card[data-module-subpanel="team"] .media-choice-details {
  padding: 6px 8px;
}
.module-editor-card[data-module-subpanel="gallery"] .media-choice-grid,
.module-editor-card[data-module-subpanel="team"] .media-choice-grid {
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  max-height: 170px;
}
.module-editor-card[data-module-subpanel="gallery"] .media-choice,
.module-editor-card[data-module-subpanel="team"] .media-choice {
  min-height: 88px;
}
.module-editor-card[data-module-subpanel="team"] .module-member-row {
  gap: 8px;
  padding: 8px;
}
.career-job-details {
  display: grid;
  gap: 8px;
}
.career-job-details label {
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
}
.media-field-preview.small {
  min-height: 44px;
  max-height: 92px;
}
.media-field-preview img {
  height: 100%;
  max-height: 150px;
  object-fit: contain;
  width: 100%;
}
.media-field-preview span {
  color: var(--muted);
  font-size: 0.82rem;
  padding: 10px;
  text-align: center;
}
.career-job-editor {
  display: grid;
  gap: 8px;
}
.career-job-editor textarea {
  min-height: 92px;
}
.grid-3 {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.module-tabs {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
  padding: 8px;
}
.module-tabs button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-height: 50px;
  padding: 10px 12px;
}
.module-tabs button strong {
  color: inherit;
}
.module-tabs button span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 8px;
  text-align: right;
}
.module-tabs button.is-active {
  background: white;
  border-color: var(--line);
  box-shadow: 0 8px 22px rgba(20, 36, 32, 0.08);
  color: var(--ink);
}
.module-editor-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: none;
  gap: 14px;
  padding: 14px;
}
.module-editor-card.is-active {
  display: grid;
}
.module-card-head {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}
.module-card-head h3 {
  margin: 0 0 4px;
}
.module-card-head p {
  margin: 0;
}
.module-state {
  background: #f4efe2;
  border: 1px solid #dfd3b9;
  border-radius: 999px;
  color: #6f5718;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 10px;
}
.module-state.is-on {
  background: #e5f3eb;
  border-color: #b8ddc6;
  color: #0d5d3b;
}
.module-editor-card h4 {
  margin: 8px 0 0;
}
.compact-module-row {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}
.repeater-list {
  display: grid;
  gap: 10px;
}
.repeater-item {
  min-width: 0;
}
.repeater-item-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.repeater-item-head .compact-button,
.repeater-field-stack .compact-button {
  margin-top: 0;
}
.repeater-field-stack {
  align-content: start;
  display: grid;
  gap: 10px;
}
.empty-repeater {
  background: white;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  margin: 0;
  padding: 16px;
}
.repeater-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.module-member-row {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(140px, 0.8fr) minmax(130px, 0.7fr) minmax(150px, 0.9fr) minmax(200px, 1.3fr);
  padding: 10px;
}
.module-member-row .repeater-item-head {
  grid-column: 1 / -1;
}
.before-after-editor-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  padding: 10px;
}
.compact-row {
  gap: 6px;
  margin-top: 0;
}
.danger-button {
  border-color: var(--danger) !important;
  color: var(--danger) !important;
}
.service-display-settings {
  align-items: end;
  background: #eef6f2;
  border: 1px solid #cfe3d8;
  border-radius: 12px;
  display: grid;
  gap: 12px 18px;
  grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1fr);
  margin: 16px 0;
  padding: 14px;
}
.service-display-settings p {
  margin: 0 0 9px;
}
.promo-banner-editor {
  background: #fff8e7;
  border: 1px solid #eadca8;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
}
.promo-banner-editor h3 {
  color: var(--ink);
  margin: 0 0 4px;
}
.promo-banner-editor p {
  margin: 0;
}
.promo-banner-editor textarea {
  min-height: 74px;
}
.popup-preview-content h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  margin-bottom: 8px;
}
.popup-preview-content p:last-of-type {
  color: var(--muted);
  margin-bottom: 0;
}
.preview-ok {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  margin-top: 16px;
  min-height: 40px;
  min-width: 104px;
  padding: 0 18px;
}
code {
  background: var(--soft);
  border-radius: 6px;
  padding: 2px 5px;
}
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .panel[data-panel="meldung"].is-active { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .day-row, .channel-card, .switch-actions, .notice-content, .theme-workspace, .theme-controls, .module-tabs, .module-media-tools, .module-upload-actions, .service-display-settings { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .color-field { grid-template-columns: 1fr; }
  .popup-preview-shell { min-height: 260px; padding: 12px; }
  .notice-preview-stack { position: static; }
  .notice-archive-item-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .notice-archive-item { grid-template-columns: minmax(0, 1fr) 112px; padding: 8px; }
  .notice-archive-preview-banner { height: 32px; width: 100px; }
  .notice-archive-preview-popup { width: 112px; }
  .popup-layout-left,
  .popup-layout-right { grid-template-columns: 1fr; }
  .popup-layout-right > img { order: 0; }
  .popup-preview-dialog { min-width: 0; resize: vertical; width: var(--popup-preview-width, 640px); }
  .notice-upload-card { align-items: flex-start; grid-template-columns: 1fr; }
  .notice-upload-controls { justify-content: flex-start; }
  .module-member-row { grid-template-columns: 1fr; }
  .module-member-row .repeater-item-head { grid-column: auto; }
  .repeater-item-head { align-items: flex-start; flex-direction: column; }
  .service-group-manager-item { grid-template-columns: 1fr; }
  .service-editor-toolbar, .service-group-manager-head { align-items: flex-start; flex-direction: column; }
  .service-order-actions { width: 100%; }
  .price-editor-intro,
  .price-editor-section-head { align-items: flex-start; flex-direction: column; }
  .price-editor-intro-actions { justify-content: flex-start; width: 100%; }
  .price-area-summary-main { align-items: flex-start; flex-direction: column; gap: 8px; }
  .price-area-summary-right { flex-wrap: wrap; justify-content: flex-start; }
  .price-area-basic-fields { grid-template-columns: 1fr; }
  .price-area-detail-toolbar,
  .price-save-footer { align-items: flex-start; flex-direction: column; }
  .price-editor-table { min-width: 720px; }
  .module-card-head { flex-direction: column; }
  .popup-preview-dialog > img { aspect-ratio: 4 / 3; max-height: 170px; }
  .popup-preview-content { padding: 16px; }
  .theme-live-preview { position: static; }
}


/* Rechtliches */
.legal-tabs {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
  padding: 8px;
}
.legal-tabs button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 50px;
  padding: 10px 12px;
}
.legal-tabs button.is-active {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 8px 22px rgba(20, 36, 32, 0.08);
  color: var(--ink);
}
.legal-state, .legal-fixed-badge {
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 850;
  padding: 4px 8px;
  white-space: nowrap;
}
.legal-state { background: #edf0ee; color: var(--muted); }
.legal-state.is-fixed, .legal-state.is-on, .legal-fixed-badge { background: #e7f4ec; color: var(--green); }
.legal-editor { display: none; gap: 14px; }
.legal-editor.is-active { display: grid; }
.legal-editor-head { align-items: flex-start; display: flex; gap: 14px; justify-content: space-between; }
.legal-editor-head h3 { margin: 0 0 4px; }
.legal-editor-head p { margin: 0; }
.legal-section-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  padding: 16px;
}
.legal-section-card h4 { margin: 0; }
.legal-section-card textarea { min-height: 72px; }
.legal-copy-editor textarea {
  min-height: 520px;
  resize: vertical;
  line-height: 1.55;
  font-family: inherit;
  font-size: 0.95rem;
}
.legal-copy-editor code { font-size: .92em; }
.legal-tech-note {
  background: #eef6f2;
  border: 1px solid #cfe3d8;
  border-radius: 12px;
  color: var(--ink);
  padding: 14px 16px;
}
.legal-tech-note strong { display: block; margin-bottom: 4px; }
.legal-tech-note p { color: var(--muted); margin: 0; }
.privacy-section-list { display: grid; gap: 10px; }
.privacy-section-editor { display: block; padding: 0; }
.privacy-section-editor > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  list-style: none;
  padding: 14px 16px;
}
.privacy-section-editor > summary::-webkit-details-marker { display: none; }
.privacy-section-editor > summary span { color: var(--muted); font-size: .82rem; font-weight: 750; }
.privacy-section-fields { border-top: 1px solid var(--line); display: grid; gap: 12px; padding: 14px 16px 16px; }
.field-help { color: var(--muted); font-size: .82rem; margin: 0; }
.legal-terms-switch { margin: 0; }
@media (max-width: 900px) {
  .legal-tabs { grid-template-columns: 1fr; }
  .legal-editor-head { flex-direction: column; }
}

/* Preis-Editor Feinschliff: kontextbezogene Aktionen und ruhigere Gefahrenfunktionen */
.price-area-more { position: relative; }
.price-area-more > summary {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 800;
  min-height: 34px;
  list-style: none;
  padding: 0 12px;
}
.price-area-more > summary::after { content: "▾"; font-size: .68rem; margin-left: 7px; }
.price-area-more[open] > summary::after { content: "▴"; }
.price-area-more > summary::-webkit-details-marker { display: none; }
.price-area-more-menu {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(20,36,32,.14);
  display: grid;
  min-width: 190px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: 40px;
  z-index: 12;
}
.price-area-more-menu .compact-button { justify-content: flex-start; margin: 0; width: 100%; }
.price-area-summary-order [hidden],
.price-column-actions [hidden],
.price-row-actions [hidden] { display: none !important; }
.price-editor-table thead th:last-child { min-width: 130px; width: 130px; }
.price-row-actions { min-width: 122px; }
#globalSaveActions[hidden] { display: none !important; }

/* Preis-Editor: ruhiger Normalmodus, Preisstufen nur bei Bedarf editieren */
.price-editor-section-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.price-add-column-button { display: none; }
.price-area-editor.is-editing-price-columns .price-add-column-button { display: inline-flex; }
.price-column-heading { min-width: 0; }
.price-column-label-display {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: .86rem;
  font-weight: 850;
  min-height: 38px;
  padding: 2px 2px;
  overflow-wrap: anywhere;
}
.price-column-edit-controls {
  display: none;
  gap: 6px;
}
.price-area-editor.is-editing-price-columns .price-column-label-display { display: none; }
.price-area-editor.is-editing-price-columns .price-column-edit-controls { display: grid; }
.price-column-edit-controls > input { font-weight: 800; min-width: 108px; }
.price-area-editor.is-editing-price-columns [data-price-columns-toggle] {
  background: #e8f3ee;
  border-color: #b9d5c7;
  color: var(--green);
}
.price-editor-table thead th:last-child { min-width: 104px; width: 104px; }
.price-row-actions { min-width: 96px; }

/* Nur bei ungespeicherten Preisänderungen sichtbar; nimmt sonst keinen Platz ein. */
.price-dirty-bar {
  align-items: center;
  background: #fffdf7;
  border: 1px solid #e7cf92;
  border-radius: 13px;
  bottom: 18px;
  box-shadow: 0 14px 34px rgba(24, 43, 36, .16);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  max-width: min(520px, calc(100vw - 36px));
  padding: 11px 12px 11px 15px;
  position: fixed;
  right: 20px;
  z-index: 80;
}
.price-dirty-bar[hidden] { display: none !important; }
.price-dirty-bar > span { display: grid; gap: 1px; min-width: 0; }
.price-dirty-bar strong { color: var(--ink); font-size: .88rem; }
.price-dirty-bar small { color: var(--muted); font-size: .74rem; }
.price-dirty-bar button { flex: 0 0 auto; margin: 0; white-space: nowrap; }

@media (max-width: 720px) {
  .price-editor-section-actions { justify-content: flex-start; width: 100%; }
  .price-dirty-bar {
    bottom: 10px;
    left: 10px;
    max-width: none;
    right: 10px;
  }
  .price-dirty-bar small { display: none; }
}

@media (max-width: 560px) { .theme-preset-buttons { grid-template-columns: 1fr; } }
