
:root {
  color-scheme: light;
  --bg: #f1f1f1;
  --surface: #ffffff;
  --surface-sub: #f7f7f7;
  --surface-hover: #fafafa;
  --border: #e3e3e3;
  --border-input: #c9c9c9;
  --divider: #ebebeb;
  --text: #303030;
  --text-sub: #616161;
  --text-faint: #8a8a8a;
  --link: #005bd3;
  --primary: #303030;
  --primary-hover: #1a1a1a;
  --focus: #005bd3;
  --danger: #c70a24;
  --success-bg: #cdfee1;
  --success-ink: #0c5132;
  --attention-bg: #fff1b8;
  --attention-ink: #4f4700;
  --critical-bg: #fee9e8;
  --critical-ink: #8e0b21;
  --info-bg: #eaf4ff;
  --info-ink: #00527c;
  --radius: 12px;
  --radius-s: 8px;
  --shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-pop: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.14);
  --side-bg: #ebebeb;
  --side-hover: #e1e1e1;
  --top-bg: #1a1a1a;
  
  --panel: var(--surface);
  --line: var(--border);
  --muted: var(--text-sub);
  --accent: #005bd3;
  --ok: var(--success-ink);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 14px/20px ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
h1 { font-size: 20px; line-height: 28px; font-weight: 650; margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 16px; line-height: 24px; font-weight: 650; margin: 28px 0 12px; }
h3 { font-size: 14px; line-height: 20px; font-weight: 650; margin: 0 0 4px; }
p { margin: 0 0 8px; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.muted { color: var(--text-sub); }
.hint { font-size: 13px; color: var(--text-sub); margin: 0; }
.nowrap { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }


.top { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; background: var(--top-bg); color: #e3e3e3; }
.top .brand { color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 8px; }
.top .brand:hover { text-decoration: none; }
.top .brand::before { content: ""; width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(135deg, #8fb3ff 0%, #4cc9b0 100%); }
.top .note { background: #3a3a3a; color: #e3e3e3; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 550; }
.top .spacer { flex: 1; }
.account { position: relative; }
.account summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 10px; cursor: pointer; color: #e3e3e3; }
.account summary::-webkit-details-marker { display: none; }
.account summary:hover, .account[open] summary { background: #303030; }
.avatar { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #4cc9b0; color: #0b3b33; font-size: 12px; font-weight: 700; flex: none; }
.account__name { font-size: 13px; font-weight: 550; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 240px; background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 6px; display: grid; }
.account__who { display: grid; gap: 2px; padding: 8px 10px 10px; margin: 0 0 4px; border-bottom: 1px solid var(--divider); font-size: 13px; }
.account__who span { color: var(--text-sub); overflow-wrap: anywhere; }
.account__menu a, .menu-button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--radius-s); color: var(--text); font: inherit; font-size: 13px; font-weight: 450; background: none; border: 0; box-shadow: none; cursor: pointer; }
.account__menu a:hover, .menu-button:hover { background: var(--surface-sub); text-decoration: none; }
.logout { margin: 0; }


.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.side { background: var(--side-bg); }
.side-nav { position: sticky; top: 0; min-height: calc(100vh - 56px); max-height: 100vh; overflow-y: auto; padding: 12px 8px 16px; display: flex; flex-direction: column; gap: 1px; }
.side-item { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 8px; border-radius: var(--radius-s); color: var(--text); font-size: 13px; font-weight: 550; }
.side-item:hover { background: var(--side-hover); text-decoration: none; }
.side-item.is-active { background: var(--surface); box-shadow: var(--shadow); font-weight: 650; }
.side-icon { width: 18px; height: 18px; flex: none; color: #4a4a4a; }
.side-icon path { stroke-width: 1.7; }
.side-sub { margin: 1px 0 4px 17px; padding-left: 10px; border-left: 1px solid #d4d4d4; display: grid; gap: 1px; }
.side-sub .side-icon { display: none; }
.side-sub .side-item { min-height: 28px; padding: 4px 8px; font-weight: 450; color: var(--text-sub); }
.side-sub .side-item.is-active { background: none; box-shadow: none; color: var(--text); font-weight: 650; }
.side-label { margin: 16px 8px 4px; font-size: 12px; font-weight: 650; color: var(--text-sub); }
.side-bottom { margin-top: auto; padding-top: 12px; }
.side-site { margin: 8px 0 8px; }
.side-site__card, .side-switch summary { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.side-switch summary { cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
.side-switch summary::-webkit-details-marker { display: none; }
.side-switch summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; border-right: 1.6px solid var(--text-sub); border-bottom: 1.6px solid var(--text-sub); transform: translateY(-70%) rotate(45deg); }
.side-switch[open] summary { border-radius: var(--radius) var(--radius) 0 0; }
.side-switch__list { padding: 6px; background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); display: grid; gap: 2px; margin-top: 1px; }
.side-switch__list a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius-s); color: var(--text); font-size: 13px; }
.side-switch__list a:hover { background: var(--surface-sub); text-decoration: none; }
.side-avatar { width: 32px; height: 32px; flex: none; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; background: #2c6ecb; }
.side-avatar--small { width: 22px; height: 22px; border-radius: 6px; font-size: 10px; }
.side-site__text { display: grid; min-width: 0; }
.side-site__name { font-weight: 650; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-site__host { font-size: 12px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-site__view { display: inline-flex; gap: 6px; align-items: center; margin: 6px 8px 0; font-size: 12px; color: var(--text-sub); }
.side-site__view .side-icon { width: 14px; height: 14px; }
.main { max-width: 1000px; margin: 0 auto; padding: 24px 16px 64px; }
.shell .main { width: 100%; padding: 20px 32px 64px; }
.crumbs { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--text-sub); margin-bottom: 12px; }
.crumbs a { color: var(--text-sub); }
.crumbs strong { color: var(--text); font-weight: 550; }


.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.head h1, .head h2 { margin: 0; }
.head__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.subtitle { color: var(--text-sub); margin: -8px 0 16px; }


.button, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 6px 12px;
  font: inherit; font-size: 13px; font-weight: 600; line-height: 20px; color: #fff; background: var(--primary);
  border: 0; border-radius: var(--radius-s); cursor: pointer; text-decoration: none;
  box-shadow: inset 0 -1px 0 #000, inset 0 0 0 1px #1a1a1a, inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.button:hover, button:hover { background: var(--primary-hover); text-decoration: none; }
.button--secondary, .button--ghost, button.secondary {
  color: var(--text); background: var(--surface);
  box-shadow: inset 0 -1px 0 #d4d4d4, inset 0 0 0 1px #e3e3e3, 0 1px 0 rgba(0, 0, 0, 0.04);
}
.button--secondary:hover, .button--ghost:hover, button.secondary:hover { background: var(--surface-sub); }
button.secondary { min-height: 28px; padding: 4px 10px; }
button.danger { color: #fff; background: var(--danger); box-shadow: inset 0 -1px 0 #8e0b21; }
button.danger:hover { background: #a3071d; }
a.danger { color: var(--danger); }
button.link { background: none; border: 0; box-shadow: none; padding: 0; min-height: 0; color: var(--link); font: inherit; font-weight: 450; cursor: pointer; }
button.link:hover { background: none; text-decoration: underline; }
button:disabled { opacity: 0.5; cursor: default; }

.links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 16px; }
.links a { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: var(--radius-s); font-size: 13px; font-weight: 600; color: var(--text); background: var(--surface); box-shadow: inset 0 -1px 0 #d4d4d4, inset 0 0 0 1px #e3e3e3; }
.links a:hover { background: var(--surface-sub); text-decoration: none; }
.links a.danger { color: var(--danger); }


.card, .panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card h2, .panel h2 { font-size: 14px; line-height: 20px; margin: 0 0 8px; }
.card h3, .panel h3 { margin: 0 0 4px; }
.card--alert { background: #fffbeb; box-shadow: 0 0 0 1px #f3d58a, 0 1px 2px rgba(0, 0, 0, 0.06); }
.card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.cards { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.big { font-size: 24px; line-height: 32px; font-weight: 650; margin: 4px 0 0; }
.summary { margin: 0 0 12px; }
.layout-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.panel-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
meter { width: 100%; height: 10px; }


.cards--ext { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.ext-card { padding: 0; }
.ext-card__head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; }
.ext-card__head h3 { margin: 0; }
.ext-rows { list-style: none; margin: 0; padding: 0; }
.ext-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--divider); }
.ext-row__text { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ext-row__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.upload-card { display: grid; gap: 6px; justify-items: start; margin-bottom: 20px; }
.upload-card .card__actions { margin-top: 6px; }
.upload-card input[name=neuer_ordner] { width: min(100%, 320px); }


.media-search { display: flex; gap: 8px; }
.media-search input { width: min(260px, 50vw); }
.folder-path { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; font-size: 14px; }
.folder-path span { color: var(--text-faint); }
.folder-grid { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.folder-tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border-radius: var(--radius-s); box-shadow: var(--shadow); color: var(--text); font-weight: 550; }
.folder-tile:hover { background: var(--surface-hover); text-decoration: none; }
.folder-tile .side-icon { color: #b98900; }
.folder-tile__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-grid li { position: relative; }
.media-pick { position: absolute; top: 12px; left: 12px; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; background: rgba(255, 255, 255, 0.9); border-radius: 6px; box-shadow: var(--shadow); cursor: pointer; }
.media-pick input { width: 16px; height: 16px; margin: 0; }
.media-grid li:has(.media-pick input:checked) { outline: 2px solid var(--focus); }
.move-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.move-bar .ed-label { margin: 0; flex-basis: 100%; }
.move-bar select, .move-bar input { width: auto; flex: 1 1 180px; min-width: 0; }
.ed-search { display: flex; gap: 6px; margin: 0 0 10px; }
.ed-search input { flex: 1; min-width: 0; }
.ed-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; margin: 0 0 10px; }
.ed-folder { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 0.82rem; background: #fff; }
.ed-folder:hover { border-color: var(--accent); text-decoration: none; }
.ed-folder span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-folder .side-icon { width: 16px; height: 16px; color: #b98900; }
.ed-media-tile, .ed-preset { box-shadow: none; }


.customer { margin-bottom: 40px; }
.customer__head { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.customer__title { display: grid; gap: 2px; flex: 1; min-width: 0; }
.customer__title h2 { margin: 0; font-size: 18px; line-height: 26px; }
.tile { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; background: #2c6ecb; }
.tile--large { width: 48px; height: 48px; border-radius: 12px; font-size: 16px; }
.tone-1 { background: #2c6ecb; }
.tone-2 { background: #0f8a6c; }
.tone-3 { background: #7b4fd6; }
.tone-4 { background: #c4572a; }
.tone-5 { background: #b8326a; }
.tone-6 { background: #3d6a85; }
.section-head { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; }
.section-head h3 { margin: 0; font-size: 13px; color: var(--text-sub); font-weight: 650; }
.cards--sites { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 28px; }
.cards--small { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.site-tile { display: flex; flex-direction: column; gap: 14px; }
.site-tile__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.site-tile__name { display: grid; min-width: 0; }
.site-tile__name h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-tile__name .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-tile__stat { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.site-tile__stat .big { margin: 0; }
.site-tile .card__actions { margin-top: auto; }
.chart { margin: 0; }
.chart svg { display: block; width: 100%; height: 72px; overflow: visible; }
.chart__area { fill: rgba(44, 110, 203, 0.12); }
.chart__line { fill: none; stroke: #2c6ecb; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart__hit { fill: transparent; }
.chart__hit:hover { fill: rgba(0, 0, 0, 0.05); }
.chart figcaption { display: flex; justify-content: space-between; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--divider); font-size: 12px; color: var(--text-faint); }
.stat-tile { display: flex; flex-direction: column; gap: 2px; }
.stat-tile__label { font-size: 13px; font-weight: 600; color: var(--text-sub); margin-bottom: 4px; }
.stat-tile__value { font-size: 20px; line-height: 28px; font-weight: 650; }
.stat-tile__value--none { font-size: 14px; line-height: 20px; font-weight: 450; color: var(--text-sub); }
.stat-tile__link { align-self: flex-start; margin-top: auto; }
.stat-tile > :has(+ .stat-tile__link) { margin-bottom: 12px; }
.bar { display: block; width: 100%; height: 8px; border-radius: 999px; overflow: hidden; margin-top: 10px; }
.bar__track { fill: var(--divider); }
.bar__fill { fill: #2c6ecb; }
.bar--full .bar__fill { fill: var(--danger); }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.kpis .card { padding: 14px 16px; }
.otp { font-family: ui-monospace, Consolas, monospace; font-size: 20px; background: #fff; border: 2px dashed var(--focus); border-radius: var(--radius-s); padding: 12px 16px; display: inline-block; }
.badge, .tag { display: inline-flex; align-items: center; font-size: 12px; line-height: 16px; font-weight: 550; padding: 2px 8px; border-radius: 999px; background: #e3e3e3; color: var(--text); white-space: nowrap; }
.tag { margin-left: 4px; }
.badge--attention, .tag--new { background: #ffef9d; color: var(--attention-ink); }
.badge--success { background: var(--success-bg); color: var(--success-ink); }
.flash { background: var(--success-bg); color: var(--success-ink); border-radius: var(--radius-s); padding: 10px 12px; font-weight: 550; margin: 0 0 16px; }
.flash--error { background: var(--critical-bg); color: var(--critical-ink); }
.list { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin: 0 0 24px; }
.list th, .list td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--divider); vertical-align: middle; font-size: 13px; }
.list th { background: var(--surface-sub); color: var(--text-sub); font-weight: 600; font-size: 12px; }
.list tr:last-child td { border-bottom: 0; }
.list tbody tr:hover td { background: var(--surface-hover); }
.list a { font-weight: 550; }
.card .list { box-shadow: none; border-radius: 0; margin: 0; }
.list tr.is-draft td { color: var(--text-sub); }
.list tr.st-cancelled td { color: var(--text-faint); text-decoration: line-through; }
.list tr.st-waitlist td { background: #fffbeb; }
.list--wide { display: block; overflow-x: auto; }
.list--wide th { white-space: nowrap; }
.actions-cell { text-align: right; white-space: nowrap; }


.settings { padding: 16px 0 6px; margin-bottom: 16px; }
.settings h2, .settings > .muted { padding: 0 16px; }
.settings > .muted { margin: -6px 0 8px; font-size: 13px; }
.setlist { list-style: none; padding: 0; margin: 0; }
.setrow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text); border-top: 1px solid var(--divider); }
.setrow:hover { background: var(--surface-hover); text-decoration: none; }
.setrow .side-icon { width: 20px; height: 20px; }
.setrow__text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.setrow__text strong { font-weight: 650; }
.setrow__text span { color: var(--text-sub); font-size: 13px; }
.setrow .side-icon:last-child { width: 16px; height: 16px; color: var(--text-faint); }


.login-form { max-width: 400px; margin: 64px auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.login-form h1 { margin-bottom: 20px; }
.login-form button { width: 100%; margin-top: 8px; min-height: 36px; }
.login-form button.passkey-login { margin-top: 10px; }
.record-form fieldset { background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 16px 4px; margin: 0 0 16px; }
.record-form legend { font-weight: 650; padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.record-form legend + * { clear: both; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; }
.field { margin-bottom: 12px; }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; font-weight: 550; font-size: 13px; margin-bottom: 4px; }
.field--check label { display: flex; gap: 8px; align-items: center; padding-top: 24px; }
.req { color: var(--danger); }
input[type="text"], input[type="date"], input[type="time"], input[type="number"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="url"], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: 13px; min-height: 32px; padding: 5px 10px; border: 1px solid var(--border-input); border-radius: var(--radius-s); background: #fff; color: var(--text);
}
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: var(--focus); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.error { color: var(--danger); font-size: 13px; margin: 4px 0 0; }
.pair { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.rows { width: 100%; border-collapse: collapse; }
.rows th { text-align: left; font-size: 12px; color: var(--text-sub); padding: 0 6px 4px 0; font-weight: 600; }
.rows td { padding: 0 6px 6px 0; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--border); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 550; }
.status-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.status-form select { width: auto; min-height: 28px; padding: 2px 6px; }
.inline { margin-top: 24px; }
.inline-form { display: inline; margin: 0; }


.filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; margin: 0 0 16px; }
.filters label { display: grid; gap: 4px; font-size: 12px; color: var(--text-sub); font-weight: 600; }
.filters select, .filters input { width: auto; min-width: 140px; }
.filters__search input { min-width: 200px; }
.filters__actions { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.stat-row { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.stat-row a { display: grid; gap: 2px; padding: 12px 14px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text-sub); font-size: 13px; }
.stat-row a:hover { text-decoration: none; background: var(--surface-hover); }
.stat-row .is-active a { box-shadow: 0 0 0 2px var(--text), 0 1px 2px rgba(0, 0, 0, 0.08); color: var(--text); }
.stat__n { font-size: 22px; font-weight: 650; color: var(--text); line-height: 28px; }
.stat-row .st-new .stat__n { color: #8a6116; }
.per-entry { margin-bottom: 16px; }
.per-entry summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }


.media-grid { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-grid li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 4px; font-size: 0.85rem; overflow-wrap: anywhere; }
.media-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #eee; }
.ext-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }


body.editor { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.ed-dev { position: absolute; opacity: 0; pointer-events: none; }
.ed-top { display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: var(--top-bg); color: #fff; flex-wrap: wrap; }
.ed-top a, .ed-top .link { color: #e6e6e6; }

.ed-demo { background: #3a3a3a; color: #e3e3e3; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 550; }
.ed-home { text-decoration: none; font-weight: 600; }
.ed-pagepick { display: flex; align-items: center; gap: 8px; margin: 0; }
.ed-pagepick label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #c9c9c9; }
.ed-pagepick select { width: auto; min-width: 220px; padding: 5px 8px; }
.ed-spacer { flex: 1; }
.ed-devices { display: flex; gap: 2px; background: #2e2e31; border-radius: 8px; padding: 2px; }
.ed-devices label { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 6px; color: #aaa; cursor: pointer; }
.ed-devices svg { width: 18px; height: 18px; }
#dev-desktop:checked ~ .ed-top label[for="dev-desktop"], #dev-phone:checked ~ .ed-top label[for="dev-phone"] { background: #fff; color: #1d1d1f; }
.ed-status { font-size: 0.88rem; color: #b7e0bf; }
.ed-status.has-pending { color: #ffd98a; }
.ed-inline { margin: 0; }
.ed-publish { background: #34c27a; color: #0b2a17; }
.ed-publish:disabled, .ed-discard:disabled { opacity: 0.45; cursor: default; }
.ed-body { flex: 1; display: grid; grid-template-columns: minmax(320px, 400px) 1fr; min-height: 0; }
.ed-side { background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; }
.ed-tabs { display: flex; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.ed-tabs a { flex: 1; text-align: center; padding: 12px 8px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; }
.ed-tabs a.is-active { color: var(--text); border-bottom-color: var(--accent); }
.ed-panel { padding: 16px 18px 40px; }
.ed-panel h2 { font-size: 1.15rem; margin: 6px 0 6px; }
.ed-panel h3 { font-size: 0.95rem; margin: 20px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ed-preview { background: #e4e2dc; display: flex; justify-content: center; min-height: 0; }
.ed-preview iframe { width: 100%; height: 100%; border: 0; background: #fff; transition: width 0.2s; }
#dev-phone:checked ~ .ed-body .ed-preview { padding: 16px 0; }
#dev-phone:checked ~ .ed-body .ed-preview iframe { width: 390px; border-radius: 18px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); }
.ed-back { display: inline-block; margin-bottom: 10px; text-decoration: none; font-size: 0.92rem; }
.ed-pagehead { padding-bottom: 6px; }
.ed-pagehead p { margin: 0 0 6px; font-size: 0.9rem; }
.ed-blocks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.ed-blocks li { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ed-blocks li:hover { border-color: var(--accent); }
.ed-blocks li.has-problem { border-color: #f0c36d; background: #fffaf0; }

.ed-blocks li.ed-bar { background: var(--soft, #f4f5f7); border-style: dashed; }
.ed-blocks li.ed-bar:hover { border-color: var(--line); }
.ed-block--fixed { color: var(--muted); cursor: default; }
.ed-block { flex: 1; display: flex; gap: 10px; align-items: center; padding: 8px 10px; text-decoration: none; color: var(--text); min-width: 0; }
.ed-block span { display: grid; min-width: 0; }
.ed-block small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-block small.ed-missing { color: #8a5a00; white-space: normal; }
.bicon { width: 48px; height: 36px; flex: none; }
.ed-rowtools { display: flex; gap: 2px; padding-right: 6px; }
.ed-rowtools button { padding: 4px 7px; font-size: 1rem; text-decoration: none; color: var(--muted); }
.ed-rowtools button:hover { color: var(--text); }
.ed-add { display: block; text-align: center; }
.ed-blockhead { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.ed-blockhead h2 { margin: 0 0 2px; }
.ed-form { display: grid; gap: 2px; }
.ed-default { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.ed-field { margin-bottom: 14px; }
.ed-label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 5px; }
.ed-label output { float: right; font-weight: 400; color: var(--muted); }
.ed-sub { display: grid; gap: 3px; font-size: 0.85rem; color: var(--muted); }
.ed-link { display: grid; gap: 8px; }
.ed-field .error.is-warning { color: #8a5a00; }
.ed-actions { display: flex; align-items: center; gap: 12px; position: sticky; bottom: 0; background: var(--panel); padding: 10px 0; border-top: 1px solid var(--line); margin-top: 6px; z-index: 1; }
.ed-saved { font-size: 0.85rem; color: var(--muted); }
.ed-blocktools { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; padding: 12px 0 0; font-size: 0.92rem; }
.ed-blocktools button.link, .ed-itemtools button.link { color: var(--accent); text-decoration: none; font-size: 0.9rem; }
.ed-blocktools button.danger, .ed-itemtools button.danger, .ed-rowtools button.danger { color: var(--danger); background: none; }
button.link { background: none; border: 0; padding: 0; font: inherit; font-weight: 400; cursor: pointer; color: var(--accent); text-decoration: underline; }

.ed-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.ed-choice { position: relative; display: grid; gap: 4px; justify-items: center; align-content: start; text-align: center; font-size: 0.82rem; cursor: pointer; padding: 6px 4px 7px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.ed-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ed-choice:hover { border-color: #a9b8e8; }
.ed-choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); background: #f3f6ff; }
.ed-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ed-choice__pic { display: block; width: 100%; }
.pic { width: 100%; height: auto; display: block; }
.ed-choices--text { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); }
.ed-choices--text .ed-choice { padding: 8px 6px; font-size: 0.88rem; align-content: center; }

.ed-switch { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.ed-switch input { appearance: none; flex: none; width: 38px; height: 22px; border-radius: 999px; background: #c9c6bf; position: relative; margin: 0; cursor: pointer; transition: background 0.15s; }
.ed-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.ed-switch input:checked { background: var(--accent); }
.ed-switch input:checked::after { left: 19px; }

.ed-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.ed-color { display: flex; gap: 8px; align-items: center; font-size: 0.86rem; cursor: pointer; }
.ed-color input { width: 38px; height: 30px; padding: 0 2px; border: 1px solid #c9c6bf; border-radius: 6px; background: #fff; flex: none; cursor: pointer; }
.ed-group { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.ed-group summary { padding: 10px 12px; font-weight: 700; cursor: pointer; }
.ed-group__body { padding: 4px 12px 2px; }
.ed-group__body > .hint { margin: 0 0 12px; }
.ed-design-link { font-weight: 600; white-space: nowrap; }
.ed-range { display: flex; align-items: center; gap: 10px; }
.ed-range input[type=range] { flex: 1; min-width: 0; accent-color: var(--primary); }
.ed-range input[type=range].is-empty { opacity: 0.45; }
.ed-range input[type=number] { width: 76px; flex: none; }
.ed-unit { color: var(--text-sub); font-size: 13px; white-space: nowrap; }
.ed-presets .ed-presetlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.ed-preset { display: grid; gap: 6px; background: #fff; color: var(--text); border: 1.5px solid var(--line); padding: 8px; font-weight: 600; font-size: 0.88rem; }
.ed-preset:hover { border-color: var(--accent); }
.pic--strip { border-radius: 4px; }

.ed-items { display: grid; gap: 6px; }
.ed-item { border: 1px solid var(--line); border-radius: 8px; background: #fbfaf8; }
.ed-item summary { padding: 8px 10px; cursor: pointer; font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-item > .ed-field { padding: 0 10px; }
.ed-itemtools { display: flex; gap: 14px; padding: 0 10px 10px; }
.ed-additem { justify-self: start; }

.ed-media-field { display: grid; grid-template-columns: 72px 1fr; gap: 4px 10px; align-items: center; }
.ed-media-field img, .ed-media-field .ed-file { grid-row: span 2; width: 72px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.ed-media-field__name { font-size: 0.82rem; color: var(--muted); overflow-wrap: anywhere; }
.ed-media-field__tools { display: flex; gap: 10px; align-items: center; }
.ed-file { display: grid; place-items: center; background: #eef1f7; color: #374a73; font-weight: 700; font-size: 0.8rem; text-align: center; }
.ed-file--none { background: #f4f3f0; color: var(--muted); font-weight: 400; font-size: 0.72rem; }
.ed-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 12px; }
.ed-media-tile { display: grid; gap: 4px; padding: 4px; background: #fff; color: var(--text); border: 1.5px solid var(--line); font-weight: 400; font-size: 0.72rem; text-align: left; overflow-wrap: anywhere; }
.ed-media-tile img, .ed-media-tile .ed-file { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.ed-media-tile span { max-height: 2.6em; overflow: hidden; }
.ed-media-tile.is-current, .ed-media-tile:hover { border-color: var(--accent); }
.ed-upload { background: #f7f6f3; border: 1px dashed #c9c6bf; border-radius: 10px; padding: 12px; display: grid; gap: 6px; }

.ed-catalog { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ed-catgroup { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; }
.ed-catgroup__icon .bicon { width: 32px; height: 24px; }
.ed-cat { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; }
.ed-cat__head { display: flex; gap: 10px; align-items: flex-start; }
.ed-cat__head p { margin: 2px 0 0; font-size: 0.85rem; color: var(--muted); }
.ed-cat__presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.ed-suggest { background: #f3f6ff; color: var(--accent); border: 1px solid #c9d5f7; padding: 5px 10px; font-size: 0.86rem; }
.ed-suggest:hover { background: #e6edff; }

.ed-menu { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 4px; margin: 0 0 14px; background: #fff; }
.ed-menu legend { font-weight: 700; padding: 0 4px; }
.ed-menurow { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; margin-bottom: 6px; align-items: center; }
.ed-menurow input { padding: 6px 8px; }
.ed-menurow--new input { background: #fbfaf8; }
.ed-menurow .error { grid-column: 1 / -1; }
.ed-danger { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); }

.rt { border: 1px solid #c9c6bf; border-radius: 8px; background: #fff; }
.rt-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-bottom: 1px solid var(--line); background: #f7f6f3; border-radius: 8px 8px 0 0; }
.rt-bar button { background: #fff; color: var(--text); border: 1px solid var(--line); padding: 3px 8px; font-size: 0.8rem; font-weight: 600; }
.rt-bar .rt-i { font-style: italic; }
.rt-edit { min-height: 140px; max-height: 420px; overflow-y: auto; padding: 8px 10px; outline: none; font-size: 0.95rem; }
.rt-edit:focus { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 0 0 8px 8px; }
.rt-edit h2 { font-size: 1.2rem; margin: 0.6em 0 0.3em; }
.rt-edit h3 { font-size: 1.05rem; margin: 0.6em 0 0.3em; }
.rt-edit p { margin: 0 0 0.6em; }
@media (max-width: 900px) {
  body.editor { height: auto; overflow: visible; }
  .ed-body { grid-template-columns: 1fr; }
  .ed-preview { height: 75vh; order: -1; }
  .ed-side { border-right: 0; overflow: visible; }
}
[hidden] { display: none !important; }
.ed-rowtools button { border: 1px solid var(--line); border-radius: 6px; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; background: #fff; }
.ed-rowtools button:hover { border-color: var(--accent); color: var(--accent); }
.ed-pagepick select { min-width: 160px; }
.ed-menurow { grid-template-columns: 26px 1fr 1fr auto; }
.ed-indent { display: grid; place-items: center; width: 26px; height: 30px; border-radius: 6px; cursor: pointer; color: var(--muted); }
.ed-indent input { position: absolute; opacity: 0; pointer-events: none; }
.ed-indent:has(input:checked) { background: #e6edff; color: var(--accent); font-weight: 700; }
.ed-indent:has(input:focus-visible) { outline: 2px solid var(--accent); }
.ed-menurow.is-sub input[name$=".label"] { margin-left: 18px; width: calc(100% - 18px); }
.pic-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pic-row { display: grid; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; font-size: 0.85rem; }
.pic-row img, .pic-file { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #f1f0ec; display: grid; place-items: center; }
.pic-sub { display: grid; gap: 2px; color: var(--muted); }
.pic-sub input { padding: 5px 7px; }
.pic-remove { font-weight: 400; color: var(--danger); }
.upload-box fieldset { background: #f7f6f3; border-style: dashed; }
.ed-nopublish { font-size: 0.85rem; color: #c9c9c9; }
.rights { display: grid; gap: 12px; }
.rights-site { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.rights-site legend { font-weight: 700; padding: 0 6px; }
.rights-site .field select { width: auto; min-width: 220px; }
.rights-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.rights-list li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.rights-list .check { font-weight: 600; }
.ed-menurow { grid-template-columns: 26px minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 4px; }
.ed-menurow input { min-width: 0; padding: 6px 7px; font-size: 0.9rem; }
.ed-menurow.is-sub input[name$=".label"] { margin-left: 0; width: 100%; }
.ed-menurow.is-sub { padding-left: 14px; }
.ed-indent { border: 1px dashed var(--line); }
.ed-indent:has(input:checked) { border-style: solid; border-color: #c9d5f7; }
.ed-rowtools button { width: 24px; height: 26px; }
.dns-steps { padding-left: 1.2em; display: grid; gap: 10px; }
.list.dns { margin-top: 6px; font-size: 0.88rem; }
.list.dns code, .dns-steps code { overflow-wrap: anywhere; }
.dom-claim { margin-bottom: 14px; }
.inline-form { display: inline; margin: 0; }


.side-open { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.side-button, .side-backdrop { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .top { gap: 10px; padding: 0 12px; }
  .top .note, .account__name { display: none; }
  .list { display: block; overflow-x: auto; }
  .side-button { display: grid; place-items: center; width: 36px; height: 32px; cursor: pointer; margin-right: -4px; }
  .side-button span, .side-button span::before, .side-button span::after { display: block; width: 20px; height: 2px; background: #fff; position: relative; border-radius: 1px; }
  .side-button span::before, .side-button span::after { content: ""; position: absolute; left: 0; }
  .side-button span::before { top: -6px; }
  .side-button span::after { top: 6px; }
  .side-open:focus-visible + .top .side-button { outline: 2px solid #fff; }
  .side { position: fixed; top: 0; left: 0; bottom: 0; width: min(290px, 84vw); z-index: 60; transform: translateX(-105%); visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s; box-shadow: 10px 0 30px rgba(0, 0, 0, 0.22); }
  .side-open:checked ~ .shell .side { transform: none; visibility: visible; transition: transform 0.25s ease; }
  .side-open:checked ~ .shell .side-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, 0.42); }
  body:has(.side-open:checked) { overflow: hidden; }
  .side-nav { min-height: 100vh; }
  .shell .main { padding: 16px 16px 48px; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) { .side, .side-open:checked ~ .shell .side { transition: none; } }


.login-page { min-height: 100vh; margin: 0; display: flex; align-items: center; padding: 16px 16px 16px max(16px, 7vw); background: #e8dac8 url(/anmeldung-hintergrund.webp) center / cover no-repeat; }
.login-glass { width: min(420px, 100%); padding: 28px; border-radius: 18px; color: #1f1f1f; background: rgba(255, 255, 255, 0.66); -webkit-backdrop-filter: blur(20px) saturate(1.15); backdrop-filter: blur(20px) saturate(1.15); border: 1px solid rgba(255, 255, 255, 0.75); box-shadow: 0 12px 40px rgba(60, 40, 20, 0.18); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .login-glass { background: rgba(255, 255, 255, 0.93); } }
@media (prefers-reduced-transparency: reduce) { .login-glass { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (max-width: 720px) { .login-page { justify-content: center; padding: 16px; } }
.login-brand { margin: 0 0 16px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.login-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; margin-bottom: 20px; border-radius: 10px; background: rgba(0, 0, 0, 0.07); }
.login-tabs a { padding: 8px 0; border-radius: 8px; text-align: center; font-weight: 600; color: #4a4a4a; text-decoration: none; }
.takeover-catalog { white-space: pre-wrap; }
.login-tabs a.is-active { background: #fff; color: #1f1f1f; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.login-glass .login-form { max-width: none; margin: 0; padding: 0; background: none; box-shadow: none; }
.login-glass input { background: rgba(255, 255, 255, 0.9); }
.login-glass:has(.login-form--wide) { width: min(520px, 100%); }
.login-glass textarea { width: 100%; background: rgba(255, 255, 255, 0.9); }
.login-form fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.login-form fieldset .check { margin: 4px 0; font-weight: 500; }

.apply-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }


.qr-figure { margin: 0.5rem auto 1rem; width: min(240px, 100%); background: #fff; border-radius: 8px; padding: 4px; }
.qr-figure .qr { display: block; width: 100%; height: auto; }
.setup-manual { margin: 0 0 1rem; }
.setup-manual .secret { font-size: 1.05rem; letter-spacing: 0.08em; word-break: break-all; user-select: all; }
.recovery-codes { columns: 2; column-gap: 2rem; margin: 0.5rem 0 1.25rem; padding-left: 1.5rem; }
.recovery-codes code { font-size: 1rem; letter-spacing: 0.05em; user-select: all; }
.login-cancel { margin-top: 0.75rem; text-align: center; }


.passkey-form { margin: 0 0 0.5rem; }
.passkey-form button { width: 100%; min-height: 40px; }
.passkey-or { margin: 1rem 0 0.25rem; text-align: center; }
.login-glass .passkey-offer { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.passkey-offer h2 { margin: 0 0 0.25rem; font-size: 16px; }

.invite-way { margin: 1rem 0 0; padding-top: 0.75rem; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.invite-way h2 { margin: 0 0 0.25rem; font-size: 16px; }
.invite-way button { width: 100%; min-height: 36px; margin-top: 4px; }


.problems { margin: 0.5rem 0 1rem; padding-left: 1.25rem; }
.problems code { white-space: pre-wrap; word-break: break-word; }
.note { white-space: pre-wrap; }


.tabs { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; margin: 0 0 16px; border-radius: 10px; background: rgba(0, 0, 0, 0.06); }
.tabs a { padding: 6px 14px; border-radius: 8px; font-weight: 600; color: #4a4a4a; text-decoration: none; }
.tabs a.is-active { background: #fff; color: #1f1f1f; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.file { margin: 0.25rem 0; }
.file-text { max-height: 420px; overflow: auto; padding: 0.75rem; background: rgba(0, 0, 0, 0.04); border-radius: 6px; font-size: 0.85rem; white-space: pre; }


.fe-name { font-size: 20px; font-weight: 650; padding: 6px 10px; min-width: min(420px, 100%); }
.fe-default { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.fe-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 24px; align-items: start; }
.fe-side { position: sticky; top: 16px; }
.fe-preview { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.fe-field, .fe-add { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px 8px; margin: 0 0 12px; }
.fe-field legend, .fe-add legend { font-weight: 600; font-size: 13px; padding: 0 4px; color: var(--text-sub); }
.fe-field--layout { background: var(--surface-sub); }
.fe-field.has-error { border-color: #d72c0d; }
.fe-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 8px; }
.fe-row label, .fe-block { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 550; }
.fe-block { margin-bottom: 8px; }
.fe-grow { flex: 1 1 220px; }
.fe-req { flex-direction: row !important; align-items: center; gap: 6px !important; padding-bottom: 8px; }
.fe-tools { display: flex; gap: 12px; justify-content: flex-end; }
.choice-cards { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.choice-cards legend { font-weight: 550; font-size: 13px; margin-bottom: 6px; }
.choice-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface); cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }
.choice-card span { display: flex; flex-direction: column; gap: 4px; }
.choice-card small { color: var(--text-sub); }
.danger-zone { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--divider); }

.site-form--preview { display: grid; gap: 4px; }
.site-form--preview p { margin: 0 0 10px; }
.site-form--preview label { display: block; font-weight: 600; margin-bottom: 4px; }
.site-form--preview :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { width: 100%; }
.site-form--preview fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px 4px; margin: 0 0 10px; }
.site-form--preview .site-form__choice, .site-form--preview .site-form__check label, .site-form--preview .site-form__consent label { font-weight: 400; display: flex; gap: 8px; align-items: baseline; }
.site-form--preview .site-form__help, .site-form--preview .site-form__info { color: var(--text-sub); font-size: 13px; font-weight: 400; display: block; }
.site-form--preview .site-form__req { color: #d72c0d; }
@media (max-width: 900px) { .fe-cols { grid-template-columns: 1fr; } .fe-side { position: static; } }
.site-form--preview .site-form__fixed { display: flex; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface-sub); }
.site-form--preview .site-form__fixed-label { font-weight: 600; }
.ed-form-values { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin: 10px 0; }
.ed-form-values legend { font-weight: 600; font-size: 13px; padding: 0 4px; }
