: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) auto;
  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 {
  hyphens: none;
  min-width: 0;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: normal;
}
.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: 3;
  grid-row: 1;
  margin-left: 2px;
}
.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; } }

/* SalonManager 1.5 – Preislisten-Leistung direkt online buchbar */
.price-row-settings{align-items:center;display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:8px}
.price-row-settings .inline-visibility,.price-row-settings .inline-booking{align-items:center;color:var(--muted);display:inline-flex;font-size:.73rem;font-weight:700;gap:6px;margin:0}
.price-row-settings input[type="checkbox"]{min-height:0;width:auto}
.price-row-settings .inline-booking{color:var(--brand-main)}
.price-booking-setup{background:var(--soft);border:1px solid var(--line);border-radius:9px;display:grid;gap:7px;margin-top:9px;padding:9px 10px}
.price-booking-setup[hidden]{display:none!important}
.price-booking-setup>label{align-items:center;display:flex;flex-direction:row;font-size:.71rem;gap:9px;justify-content:space-between;margin:0}
.price-booking-setup>label>span{align-items:center;display:inline-flex;gap:5px;white-space:nowrap}
.price-booking-setup input[type="number"]{min-height:32px;padding:4px 7px;width:74px}
.price-booking-setup small{color:var(--muted);font-size:.66rem;line-height:1.4}
.price-booking-status{border-radius:999px;display:inline-flex;font-size:.64rem;font-weight:850;justify-self:start;padding:4px 7px}
.price-booking-status.is-ready{background:#e8f4ed;color:#286047}
.price-booking-status.needs-setup{background:#fff2d8;color:#765615}
.price-editor-table tr.is-booking-enabled>th{box-shadow:inset 3px 0 0 var(--brand-accent)}
@media(max-width:760px){.price-row-settings{align-items:flex-start;flex-direction:column;gap:7px}.price-booking-setup>label{align-items:flex-start;flex-direction:column}.price-booking-setup>label>span{width:100%}}

/* Admin-Navigation 1.5: klare Trennung Salon / Verwaltung / Website */
.sidebar-section-label {
  color: rgba(255,255,255,.55);
  display: block;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
  margin: 14px 10px 5px;
  text-transform: uppercase;
}
.nav-tabs .sidebar-section-label:first-child { margin-top: 2px; }
@media (max-width: 900px) {
  .sidebar-section-label { margin-top: 10px; }
}

.price-booking-status[href]{text-decoration:none}.price-booking-status[href]:hover{text-decoration:underline;text-underline-offset:2px}

.price-booking-info{background:#eef5f2;border:1px solid #d2e1db;border-radius:11px;display:grid;gap:4px;margin:12px 0 16px;padding:12px 14px}.price-booking-info strong{color:var(--ink);font-size:.78rem}.price-booking-info span{color:var(--muted);font-size:.72rem;line-height:1.5}.price-booking-info b{color:var(--brand-main)}

/* SalonManager 1.11 – gesperrtes Zusatzmodul */
.booking-nav-link.is-locked{opacity:.78}.module-state:not(.is-on){background:#f1eee8;color:#645f54}

/* ITCS 2.0 – mobile Verwaltung: Inhalt zuerst, Navigation als Drawer */
.admin-mobile-bar,.admin-nav-backdrop{display:none}
@media (max-width:900px){
  body.admin-nav-open{overflow:hidden}
  .admin-shell{display:block;min-height:100vh}
  .admin-mobile-bar{align-items:center;background:var(--panel);border-bottom:1px solid var(--line);box-shadow:0 6px 22px rgba(20,36,32,.08);display:grid;gap:10px;grid-template-columns:42px minmax(0,1fr) 42px;min-height:58px;padding:7px 10px;position:sticky;top:0;z-index:105}
  .admin-mobile-menu{align-items:center;background:var(--brand-main);border:0;border-radius:11px;display:flex;flex-direction:column;gap:4px;height:40px;justify-content:center;min-height:40px;padding:0;width:40px}
  .admin-mobile-menu span{background:var(--brand-on-main);border-radius:999px;display:block;height:2px;width:17px}
  .admin-mobile-context{display:grid;gap:0;min-width:0}
  .admin-mobile-context small{color:var(--muted);font-size:.62rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
  .admin-mobile-context strong{color:var(--ink);font-size:.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .admin-mobile-brand{align-items:center;background:var(--soft);border-radius:10px;color:var(--brand-main);display:flex;font-size:.68rem;font-weight:900;height:36px;justify-content:center;width:36px}
  .sidebar{bottom:0;box-shadow:18px 0 48px rgba(9,31,27,.24);left:0;max-width:88vw;overflow-y:auto;padding:20px;position:fixed!important;top:0;transform:translateX(-105%);transition:transform .2s ease;width:320px;z-index:120}
  .sidebar.is-mobile-open{transform:translateX(0)}
  .admin-nav-backdrop{background:rgba(9,22,20,.42);border:0;bottom:0;display:block;left:0;opacity:0;pointer-events:none;position:fixed;right:0;top:0;transition:opacity .2s ease;z-index:115}
  .admin-nav-backdrop.is-visible{opacity:1;pointer-events:auto}
  .main{padding:16px 12px 28px}
  .topbar{margin-bottom:14px}
  .status-card{padding:13px 14px;width:100%}
  .panel{border-radius:12px;padding:16px 12px}
  .mobile-gallery-editor{background:var(--panel);border:1px solid var(--line);border-radius:12px;margin:8px 0;overflow:hidden}
  .mobile-gallery-editor>summary{align-items:center;cursor:pointer;display:flex;gap:10px;justify-content:space-between;list-style:none;padding:12px 13px}
  .mobile-gallery-editor>summary::-webkit-details-marker{display:none}
  .mobile-gallery-editor>summary span{color:var(--ink);font-size:.84rem;font-weight:800;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mobile-gallery-editor>summary strong{color:var(--brand-main);font-size:.7rem;white-space:nowrap}
  .mobile-gallery-editor[open]>summary{background:var(--soft);border-bottom:1px solid var(--line)}
  .mobile-gallery-editor>[data-repeater-item]{border:0!important;border-radius:0!important;margin:0!important;padding:12px!important}
}


/* ITCS 2.0.6 – Lesbarkeit, ruhiger Seitenwechsel und konsistente Typografie */
html {
  background: #f6f7f5;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
body,
button,
input,
textarea,
select {
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 120ms; }

/* Kleine Verwaltungs-Texte sollen nicht durch künstliche 850/900er Schriftschnitte ausfransen. */
.sidebar-section-label,
.nav-tabs a,
.nav-tabs button,
.booking-nav-link,
.admin-mobile-context strong,
.admin-mobile-context small {
  font-weight: 700;
}


/* =========================================================
   ITCS 2.1.3 – SalonManager PWA: mobile Nebenbereiche
   Nur im installierten Standalone-Modus. Desktop/Browser bleiben unverändert.
   ========================================================= */
@media (max-width:900px){
  body.admin-pwa-mode{
    background:#f5f7f5;
    min-height:100dvh;
    padding-bottom:env(safe-area-inset-bottom);
  }
  body.admin-pwa-mode .admin-mobile-bar{
    background:var(--brand-main);
    border-bottom:1px solid rgba(255,255,255,.12);
    box-shadow:0 8px 24px rgba(8,31,27,.18);
    grid-template-columns:42px minmax(0,1fr) 38px;
    min-height:54px;
    padding:calc(6px + env(safe-area-inset-top)) max(9px,env(safe-area-inset-right)) 6px max(9px,env(safe-area-inset-left));
    top:0;
  }
  body.admin-pwa-mode .admin-mobile-menu{
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.16);
    border-radius:11px;
  }
  body.admin-pwa-mode .admin-mobile-context small{color:rgba(255,255,255,.64);font-size:.58rem;letter-spacing:.07em}
  body.admin-pwa-mode .admin-mobile-context strong{color:#fff;font-size:.88rem}
  body.admin-pwa-mode .admin-mobile-brand{
    background:rgba(255,255,255,.12);
    color:#fff;
    font-size:0;
  }
  body.admin-pwa-mode .admin-mobile-brand::after{content:'SM';font-size:.65rem;font-weight:800}
  body.admin-pwa-mode .sidebar{
    max-width:min(330px,88vw);
    padding:calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
  }
  body.admin-pwa-mode .main{
    padding:11px max(9px,env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left));
  }
  body.admin-pwa-mode .topbar{
    align-items:flex-start;
    gap:10px;
    margin:0 0 11px;
  }
  body.admin-pwa-mode .topbar>div{min-width:0}
  body.admin-pwa-mode .topbar .eyebrow{font-size:.58rem;margin-bottom:3px}
  body.admin-pwa-mode .topbar h1{font-size:clamp(1.15rem,5vw,1.42rem);line-height:1.15;margin:0 0 4px}
  body.admin-pwa-mode .topbar .muted{font-size:.7rem;line-height:1.4;margin:0;max-width:60ch}
  body.admin-pwa-mode .topbar>.button{
    flex:0 0 auto;
    min-height:40px;
    padding:0 11px;
    white-space:nowrap;
  }
  body.admin-pwa-mode .panel,
  body.admin-pwa-mode .booking-panel,
  body.admin-pwa-mode .setting-card,
  body.admin-pwa-mode .status-card{
    border-radius:12px;
    box-shadow:0 6px 18px rgba(20,36,32,.045);
  }
  body.admin-pwa-mode input,
  body.admin-pwa-mode select,
  body.admin-pwa-mode textarea{
    font-size:16px; /* verhindert iOS/PWA-Zoom in Formularfeldern */
  }
  body.admin-pwa-mode input,
  body.admin-pwa-mode select,
  body.admin-pwa-mode button,
  body.admin-pwa-mode .button{min-height:46px}
}
@media (max-width:620px){
  body.admin-pwa-mode .topbar{display:grid;grid-template-columns:1fr}
  body.admin-pwa-mode .topbar>.button{width:100%}
  body.admin-pwa-mode .admin-flash{border-radius:10px;font-size:.72rem;margin:8px 0;padding:10px 11px}
  body.admin-pwa-mode .settings-grid{grid-template-columns:1fr!important}
  body.admin-pwa-mode .settings-grid .full{grid-column:auto!important}
}

/* =========================================================
   ITCS 2.1.4 – PWA-Navigation wie im Salonmodus
   Nur installierte PWA: helle App-Leiste + heller Menü-Drawer.
   Desktop und normaler Browser bleiben unverändert.
   ========================================================= */
@media (max-width:900px){
  body.admin-pwa-mode .admin-mobile-bar{
    background:#fff;
    border-bottom:1px solid var(--line);
    box-shadow:0 5px 18px rgba(20,36,32,.07);
  }
  body.admin-pwa-mode .admin-mobile-menu{
    background:#fff;
    border:1px solid var(--line);
    box-shadow:none;
  }
  body.admin-pwa-mode .admin-mobile-menu span{background:var(--ink)}
  body.admin-pwa-mode .admin-mobile-context small{color:var(--muted)}
  body.admin-pwa-mode .admin-mobile-context strong{color:var(--ink)}
  body.admin-pwa-mode .admin-mobile-brand{
    background:var(--soft);
    border:1px solid color-mix(in srgb,var(--brand-main) 8%,var(--line));
    color:var(--brand-main);
  }

  body.admin-pwa-mode .sidebar{
    background:#fff;
    color:var(--text);
    box-shadow:18px 0 54px rgba(11,30,27,.20);
    padding:calc(14px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));
  }
  body.admin-pwa-mode .sidebar .brand{
    border-bottom:1px solid var(--line);
    margin-bottom:10px;
    min-height:50px;
    padding:4px 48px 13px 2px;
    position:relative;
  }
  body.admin-pwa-mode .sidebar .brand strong{color:var(--ink);font-size:.92rem;line-height:1.25}
  body.admin-pwa-mode .sidebar .brand span{color:var(--muted);font-size:.68rem;opacity:1}
  body.admin-pwa-mode .admin-mobile-close{
    align-items:center;
    background:var(--soft);
    border:0;
    border-radius:50%;
    color:var(--ink);
    display:flex;
    font-size:1.2rem;
    font-weight:500;
    height:36px;
    justify-content:center;
    min-height:36px;
    padding:0;
    position:absolute;
    right:0;
    top:0;
    width:36px;
  }
  body.admin-pwa-mode .sidebar-section-label{
    color:var(--muted);
    font-size:.58rem;
    letter-spacing:.10em;
    margin:12px 9px 4px;
  }
  body.admin-pwa-mode .nav-tabs{gap:4px}
  body.admin-pwa-mode .nav-tabs a.booking-nav-link{
    align-items:center;
    background:transparent;
    border:0;
    border-radius:11px;
    color:var(--ink);
    display:grid;
    gap:10px;
    grid-template-columns:34px minmax(0,1fr) auto;
    min-height:54px;
    padding:7px 9px;
  }
  body.admin-pwa-mode .nav-tabs a.booking-nav-link::before{
    align-items:center;
    background:var(--soft);
    border-radius:9px;
    color:var(--brand-main);
    content:'•';
    display:flex;
    font-size:1rem;
    font-weight:800;
    height:34px;
    justify-content:center;
    width:34px;
  }
  body.admin-pwa-mode .nav-tabs a.booking-nav-link[href="salon.php"]::before{content:'▦'}
  body.admin-pwa-mode .nav-tabs a.booking-nav-link[href="termine.php"]::before{content:'≡'}
  body.admin-pwa-mode .nav-tabs a.booking-nav-link[href="kunden.php"]::before{content:'◎'}
  body.admin-pwa-mode .nav-tabs a.booking-nav-link[href="abwesenheiten.php"]::before{content:'○'}
  body.admin-pwa-mode .nav-tabs a.booking-nav-link[href="termin-einstellungen.php"]::before{content:'⚙'}
  body.admin-pwa-mode .nav-tabs a.booking-nav-link[href="benutzer.php"]::before{content:'♙'}
  body.admin-pwa-mode .nav-tabs a.booking-nav-link[href="index.php"]::before{content:'◇'}
  body.admin-pwa-mode .nav-tabs a.booking-nav-link::after{
    color:var(--muted);
    content:'›';
    font-size:1rem;
    opacity:.7;
  }
  body.admin-pwa-mode .nav-tabs a.booking-nav-link:hover,
  body.admin-pwa-mode .nav-tabs a.booking-nav-link.is-active,
  body.admin-pwa-mode .nav-tabs a.booking-nav-link[aria-current="page"]{
    background:var(--soft);
    color:var(--ink);
  }
  body.admin-pwa-mode .nav-tabs a.booking-nav-link.is-active::before,
  body.admin-pwa-mode .nav-tabs a.booking-nav-link[aria-current="page"]::before{
    background:#fff;
    box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--brand-main) 12%,var(--line));
  }
  body.admin-pwa-mode .side-actions{
    border-top:1px solid var(--line);
    gap:6px;
    margin-top:14px;
    padding-top:13px;
  }
  body.admin-pwa-mode .side-actions .button{
    background:transparent;
    border:0;
    border-radius:11px;
    color:var(--ink);
    justify-content:flex-start;
    min-height:46px;
    padding:0 10px;
  }
  body.admin-pwa-mode .side-actions .button:hover{background:var(--soft)}
  body.admin-pwa-mode .side-actions a[href="logout.php"]{color:#953d3d}
}

/* =========================================================
   ITCS 2.1.6 – einheitlicher PWA-Drawer
   Fullscreen-PWA wird wie Standalone erkannt; Unterseiten verwenden
   dieselbe ruhige Navigationssprache wie der Salon-Modus.
   ========================================================= */
@media (max-width:900px){
  body.admin-pwa-mode .admin-nav-backdrop{
    appearance:none;
    -webkit-appearance:none;
    border-radius:0!important;
    box-shadow:none!important;
    height:auto;
    margin:0;
    min-height:0!important;
    padding:0!important;
    width:auto;
  }
  body.admin-pwa-mode .sidebar.pwa-unified-drawer{
    background:#fff;
    color:var(--ink);
    max-width:min(340px,88vw);
    padding:calc(14px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));
    width:100%;
  }
  body.admin-pwa-mode .sidebar.pwa-unified-drawer .pwa-unified-brand{
    align-items:center;
    border-bottom:1px solid var(--line);
    display:grid;
    gap:10px;
    grid-template-columns:40px minmax(0,1fr) 38px;
    margin:0 0 10px;
    min-height:60px;
    padding:0 0 13px;
  }
  body.admin-pwa-mode .pwa-unified-mark{
    align-items:center;
    background:var(--soft);
    border-radius:11px;
    color:var(--brand-main);
    display:flex;
    font-size:.75rem;
    font-weight:850;
    height:40px;
    justify-content:center;
    letter-spacing:.02em;
    width:40px;
  }
  body.admin-pwa-mode .pwa-unified-brand-copy{display:grid;gap:1px;min-width:0}
  body.admin-pwa-mode .sidebar .pwa-unified-brand-copy strong{
    color:var(--ink);
    font-size:.9rem;
    line-height:1.2;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  body.admin-pwa-mode .sidebar .pwa-unified-brand-copy small{
    color:var(--muted);
    font-size:.68rem;
    line-height:1.25;
  }
  body.admin-pwa-mode .pwa-unified-brand .admin-mobile-close{
    grid-column:3;
    position:static;
  }
  body.admin-pwa-mode .sidebar.pwa-unified-drawer .salon-manager-nav{
    display:grid;
    gap:5px;
    padding:3px 0 10px;
  }
  body.admin-pwa-mode .sidebar.pwa-unified-drawer .sidebar-section-label{display:none!important}
  body.admin-pwa-mode .sidebar.pwa-unified-drawer .nav-tabs a.pwa-unified-link{
    align-items:center;
    background:transparent;
    border:0;
    border-radius:11px;
    color:var(--ink);
    display:grid;
    gap:10px;
    grid-template-columns:34px minmax(0,1fr);
    min-height:54px;
    padding:7px 9px;
    text-decoration:none;
  }
  body.admin-pwa-mode .sidebar.pwa-unified-drawer .nav-tabs a.pwa-unified-link::before,
  body.admin-pwa-mode .sidebar.pwa-unified-drawer .nav-tabs a.pwa-unified-link::after{content:none!important;display:none!important}
  body.admin-pwa-mode .pwa-unified-icon{
    align-items:center;
    background:var(--soft);
    border-radius:9px;
    color:var(--brand-main);
    display:flex;
    font-size:1rem;
    height:34px;
    justify-content:center;
    width:34px;
  }
  body.admin-pwa-mode .pwa-unified-copy{display:block;min-width:0}
  body.admin-pwa-mode .pwa-unified-copy strong{
    color:var(--ink);
    display:block;
    font-size:.79rem;
    font-weight:800;
    line-height:1.2;
  }
  body.admin-pwa-mode .pwa-unified-copy small{
    color:var(--muted);
    display:block;
    font-size:.64rem;
    line-height:1.3;
    margin-top:2px;
  }
  body.admin-pwa-mode .sidebar.pwa-unified-drawer .nav-tabs a.pwa-unified-link:hover,
  body.admin-pwa-mode .sidebar.pwa-unified-drawer .nav-tabs a.pwa-unified-link.is-active,
  body.admin-pwa-mode .sidebar.pwa-unified-drawer .nav-tabs a.pwa-unified-link[aria-current="page"]{
    background:var(--soft);
  }
  body.admin-pwa-mode .sidebar.pwa-unified-drawer .nav-tabs a.pwa-unified-link.is-active .pwa-unified-icon,
  body.admin-pwa-mode .sidebar.pwa-unified-drawer .nav-tabs a.pwa-unified-link[aria-current="page"] .pwa-unified-icon{
    background:#fff;
    box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--brand-main) 12%,var(--line));
  }
  body.admin-pwa-mode .sidebar.pwa-unified-drawer .pwa-unified-actions{
    border-top:1px solid var(--line);
    display:grid;
    gap:5px;
    margin-top:2px;
    padding-top:10px;
  }
  body.admin-pwa-mode .sidebar.pwa-unified-drawer .pwa-unified-actions>a.pwa-unified-link{
    align-items:center;
    background:transparent;
    border:0;
    border-radius:11px;
    color:var(--ink);
    display:grid;
    gap:10px;
    grid-template-columns:34px minmax(0,1fr);
    min-height:54px;
    padding:7px 9px;
    text-decoration:none;
  }
  body.admin-pwa-mode .sidebar.pwa-unified-drawer .pwa-unified-actions>a.pwa-unified-link:hover,
  body.admin-pwa-mode .sidebar.pwa-unified-drawer .pwa-unified-actions>a.pwa-unified-link.is-active{background:var(--soft)}
  body.admin-pwa-mode .sidebar.pwa-unified-drawer .pwa-unified-actions>.button{
    border-radius:11px;
    font-size:.72rem;
    min-height:46px;
    padding:0 10px;
  }
}


/* ITCS 2.1.13 – SalonManager Branding */
.salon-brand{align-items:center;display:flex;gap:12px}.salon-brand>div{min-width:0}.salon-brand-logo{border-radius:14px;display:block;flex:0 0 auto;height:44px;width:44px}.brand.salon-brand strong{margin:0}.brand.salon-brand span{display:block}
