.e8-ab {
	--e8-ab-accent: #9b1b4a;
	--e8-ab-accent-strong: #741237;
	--e8-ab-accent-soft: #f6e6ec;
	--e8-ab-ink: #23232a;
	--e8-ab-muted: #5f5f6a;
	--e8-ab-line: #dedee5;
	--e8-ab-soft: #f7f4f5;
	--e8-ab-surface: #ffffff;
	--e8-ab-ok: #2d7a53;
	--e8-ab-ok-soft: #e3f2ea;
	--e8-ab-warn: #b0461b;
	--e8-ab-warn-soft: #fbece4;
	--e8-ab-mark: #ffe7a3;
	--e8-ab-radius: 10px;
	box-sizing: border-box;
	display: grid;
	gap: 24px;
	max-width: 1180px;
	margin: 2rem auto;
	color: var(--e8-ab-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.55;
}
.e8-ab *, .e8-ab *::before, .e8-ab *::after { box-sizing: inherit; }
.e8-ab [hidden] { display: none !important; }
.e8-ab :focus-visible { outline: 2px solid var(--e8-ab-accent); outline-offset: 2px; }

/* Header */
.e8-ab__header { display: grid; gap: 8px; max-width: 70ch; }
.e8-ab__title { margin: 0; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; }
.e8-ab__lead { margin: 0; color: var(--e8-ab-muted); }

/* Layout */
.e8-ab__layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
@media (max-width: 1080px) { .e8-ab__layout { grid-template-columns: 200px minmax(0, 1fr); } .e8-ab__aside { grid-column: 1 / -1; } }
@media (max-width: 760px) { .e8-ab__layout { grid-template-columns: minmax(0, 1fr); } }

/* Navigation */
.e8-ab__nav { position: -webkit-sticky; position: sticky; top: 16px; }
.e8-ab__nav-label { margin: 0 0 8px 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--e8-ab-muted); }
.e8-ab__steps { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none !important; }
.e8-ab__steps-item { margin: 0; }
.e8-ab__step-link { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--e8-ab-muted); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.e8-ab__step-link:hover { background: var(--e8-ab-soft); color: var(--e8-ab-ink); }
.e8-ab__step-link[aria-current="step"] { background: var(--e8-ab-surface); box-shadow: 0 0 0 1px var(--e8-ab-line); color: var(--e8-ab-ink); font-weight: 600; }
.e8-ab__step-num { display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--e8-ab-line); border-radius: 50%; background: var(--e8-ab-surface); font-size: 13px; font-variant-numeric: tabular-nums; }
.e8-ab__step-link[aria-current="step"] .e8-ab__step-num { border-color: var(--e8-ab-accent); background: var(--e8-ab-accent); color: #fff; }
.e8-ab__step-state { font-size: 12px; font-weight: 500; }
.e8-ab__step-state--ok { color: var(--e8-ab-ok); }
.e8-ab__step-state--open { color: var(--e8-ab-warn); }
@media (max-width: 760px) {
	.e8-ab__nav { position: static; }
	.e8-ab__nav-label { display: none; }
	.e8-ab__steps { display: flex; gap: 6px; padding-bottom: 4px; overflow-x: auto; }
	.e8-ab__steps-item { flex: 0 0 auto; }
	.e8-ab__step-link { grid-template-columns: 22px auto auto; white-space: nowrap; }
}

/* Form card */
.e8-ab__form { overflow: hidden; border: 1px solid var(--e8-ab-line); border-radius: 14px; background: var(--e8-ab-surface); }
.e8-ab__hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.e8-ab__progress { height: 4px; background: var(--e8-ab-soft); }
.e8-ab__progress-bar { display: block; width: 0; height: 100%; background: var(--e8-ab-accent); transition: width .3s ease; }
.e8-ab__panel { display: grid; gap: 24px; padding: clamp(20px, 3.5vw, 36px); }
.e8-ab__panel-head { display: grid; gap: 6px; }
.e8-ab__panel-title { margin: 0; font-size: 24px; line-height: 1.2; }
.e8-ab__panel-intro { margin: 0; max-width: 62ch; color: var(--e8-ab-muted); }
.e8-ab__fields { display: grid; gap: 20px; }

/* Fields */
.e8-ab__field { display: grid; gap: 6px; min-width: 0; }
.e8-ab__label { font-size: 15px; font-weight: 600; }
.e8-ab__req { margin-left: 2px; color: var(--e8-ab-accent); }
.e8-ab__hint { margin: 0; font-size: 13px; color: var(--e8-ab-muted); }
.e8-ab__error { margin: 0; font-size: 13px; font-weight: 600; color: var(--e8-ab-warn); }
.e8-ab__error:empty { display: none; }
.e8-ab__input, .e8-ab__select, .e8-ab__textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #b9bac2; border-radius: 8px; background: var(--e8-ab-surface); color: var(--e8-ab-ink); font: inherit; }
.e8-ab__textarea { min-height: 120px; resize: vertical; }
.e8-ab__field.is-invalid > .e8-ab__input,
.e8-ab__field.is-invalid > .e8-ab__select,
.e8-ab__field.is-invalid > .e8-ab__textarea,
.e8-ab__field.is-invalid .e8-ab__drop,
.e8-ab__field.is-invalid .e8-ab__url { border-color: var(--e8-ab-warn); background: var(--e8-ab-warn-soft); }
.e8-ab__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Rich text */
.e8-ab__rte { border: 1px solid var(--e8-ab-line); border-radius: var(--e8-ab-radius); background: var(--e8-ab-surface); }
.e8-ab__rte:focus-within { border-color: var(--e8-ab-accent); box-shadow: 0 0 0 3px var(--e8-ab-accent-soft); }
.e8-ab__field.is-invalid .e8-ab__rte { border-color: var(--e8-ab-warn); }
.e8-ab__rte-area:focus-visible { outline: 0; }
.e8-ab__rte-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-bottom: 1px solid var(--e8-ab-line); background: var(--e8-ab-soft); border-radius: var(--e8-ab-radius) var(--e8-ab-radius) 0 0; }
.e8-ab__rte-btn { min-width: 32px; padding: 4px 8px; border: 0; border-radius: 6px; background: none; color: var(--e8-ab-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.e8-ab__rte-btn:hover, .e8-ab__rte-btn:focus-visible { background: var(--e8-ab-surface); }
.e8-ab__rte-btn--italic { font-style: italic; }
.e8-ab__rte-btn--clear { font-weight: 400; color: var(--e8-ab-muted); }
.e8-ab__rte-area { min-height: 140px; max-height: 480px; overflow-y: auto; padding: 10px 12px; font-size: 15px; font-weight: 400; line-height: 1.55; outline: 0; }
.e8-ab__rte-area strong, .e8-ab__rte-area b { font-weight: 700; }
.e8-ab__rte-area > :first-child { margin-top: 0; }
.e8-ab__rte-area > :last-child { margin-bottom: 0; }
.e8-ab__rte-area p, .e8-ab__rte-area ul, .e8-ab__rte-area ol { margin: 0 0 .7em; }
.e8-ab__rte-area ul, .e8-ab__rte-area ol { padding-left: 1.4em; }
.e8-ab__rte-area ul { list-style: disc !important; }
.e8-ab__rte-area ol { list-style: decimal !important; }
.e8-ab__rte-area h2, .e8-ab__rte-area h3 { margin: .9em 0 .4em; padding: 0; line-height: 1.3; }
.e8-ab__rte-area h2 { font-size: 20px; }
.e8-ab__rte-area h3 { font-size: 17px; }
.e8-ab__rte-area a { text-decoration: underline; }

/* Segmented choice */
.e8-ab__segmented { display: inline-flex; flex-wrap: wrap; width: -webkit-fit-content; width: -moz-fit-content; width: fit-content; max-width: 100%; padding: 3px; border: 1px solid var(--e8-ab-line); border-radius: 9px; background: var(--e8-ab-soft); }
.e8-ab__segment { position: relative; margin: 0; }
.e8-ab__segment-input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.e8-ab__segment-label { display: block; padding: 6px 16px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--e8-ab-muted); }
.e8-ab__segment-input:checked + .e8-ab__segment-label { background: var(--e8-ab-surface); box-shadow: 0 1px 2px rgb(0 0 0 / .12); color: var(--e8-ab-ink); }
.e8-ab__segment-input:focus-visible + .e8-ab__segment-label { outline: 2px solid var(--e8-ab-accent); outline-offset: 1px; }
.e8-ab__mode { display: grid; gap: 6px; }

/* Choices */
.e8-ab__choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.e8-ab__choice { display: flex; gap: 10px; align-items: center; margin: 0; padding: 12px 14px; border: 1px solid var(--e8-ab-line); border-radius: var(--e8-ab-radius); background: var(--e8-ab-surface); cursor: pointer; }
.e8-ab__choice:has(input:checked) { border-color: var(--e8-ab-accent); background: var(--e8-ab-accent-soft); }
.e8-ab__choice-input { width: 18px; height: 18px; margin: 0 !important; accent-color: var(--e8-ab-accent); }
.e8-ab__choice-label { font-weight: 600; }

/* Upload */
.e8-ab__drop { position: relative; display: block; padding: 16px; border: 1.5px dashed #b9bac2; border-radius: var(--e8-ab-radius); background: var(--e8-ab-surface); cursor: pointer; }
.e8-ab__drop:hover, .e8-ab__drop.is-dragover { border-color: var(--e8-ab-accent); background: var(--e8-ab-accent-soft); }
.e8-ab__drop-text { display: grid; gap: 2px; font-size: 14px; }
.e8-ab__drop-types { color: var(--e8-ab-muted); }
.e8-ab__file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.e8-ab__file-list:empty { display: none; }
.e8-ab__file { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--e8-ab-line); border-radius: var(--e8-ab-radius); }
.e8-ab__file-thumb { width: 72px; max-width: 100%; aspect-ratio: 4 / 3; -o-object-fit: cover; object-fit: cover; border-radius: 6px; }
.e8-ab__file-meta { display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.e8-ab__file-name { font-weight: 500; overflow-wrap: anywhere; }
.e8-ab__file-size { font-size: 13px; color: var(--e8-ab-muted); }

/* Wunsch-URL */
.e8-ab__url { display: flex; min-height: 44px; overflow: hidden; border: 1px solid #b9bac2; border-radius: 8px; background: var(--e8-ab-surface); }
.e8-ab__url:focus-within { outline: 2px solid var(--e8-ab-accent); outline-offset: 2px; }
.e8-ab__url-prefix { display: flex; align-items: center; max-width: 60%; padding: 0 10px; overflow-x: auto; border-right: 1px solid var(--e8-ab-line); background: var(--e8-ab-soft); color: var(--e8-ab-muted); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; white-space: nowrap; }
.e8-ab__url-input { flex: 1; min-width: 0; padding: 10px 12px; border: 0; background: transparent; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.e8-ab__url-input:focus-visible { outline: 0; }
.e8-ab__url-preview { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--e8-ab-soft); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.e8-ab__url-preview:empty { display: none; }
.e8-ab__url-preview-label { display: block; margin-bottom: 2px; font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--e8-ab-muted); }

/* Post search */
.e8-ab__search { position: relative; }
.e8-ab__suggest { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0; max-height: 320px; margin: 0; padding: 4px; overflow-y: auto; list-style: none; border: 1px solid var(--e8-ab-line); border-radius: var(--e8-ab-radius); background: var(--e8-ab-surface); box-shadow: 0 10px 30px rgb(0 0 0 / .14); }
.e8-ab__suggest-item { display: grid; gap: 3px; padding: 9px 10px; border-radius: 7px; cursor: pointer; }
.e8-ab__suggest-item[aria-selected="true"], .e8-ab__suggest-item:hover { background: var(--e8-ab-soft); }
.e8-ab__suggest-title { font-weight: 500; }
.e8-ab__suggest-title mark, .e8-ab__tag mark { padding: 0 1px; border-radius: 2px; background: var(--e8-ab-mark); color: inherit; }
.e8-ab__suggest-cats { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.e8-ab__suggest-empty { padding: 10px; font-size: 14px; color: var(--e8-ab-muted); }
.e8-ab__tag { padding: 1px 8px; border: 1px solid var(--e8-ab-line); border-radius: 99px; background: var(--e8-ab-soft); color: var(--e8-ab-muted); }
.e8-ab__tag--match { border-color: transparent; background: var(--e8-ab-accent-soft); color: var(--e8-ab-accent-strong); }
.e8-ab__picked { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.e8-ab__picked:empty { display: none; }
.e8-ab__picked-item { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 8px 8px 10px; border: 1px solid var(--e8-ab-line); border-radius: 8px; }
.e8-ab__picked-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--e8-ab-soft); font-size: 13px; font-weight: 600; }
.e8-ab__picked-body { display: grid; gap: 2px; min-width: 0; }
.e8-ab__picked-title { font-weight: 500; }
.e8-ab__picked-path { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--e8-ab-muted); overflow-wrap: anywhere; }

/* Repeater */
.e8-ab__repeater, .e8-ab__repeater-items { display: grid; gap: 12px; }
.e8-ab__repeat-item { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--e8-ab-line); border-radius: var(--e8-ab-radius); background: var(--e8-ab-soft); }
.e8-ab__repeat-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.e8-ab__repeat-title { font-size: 15px; font-weight: 600; }

/* Buttons */
.e8-ab__button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1px solid var(--e8-ab-accent); border-radius: 8px; background: var(--e8-ab-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.e8-ab__button:hover { background: var(--e8-ab-accent-strong); }
.e8-ab__button:disabled { opacity: .6; cursor: wait; }
.e8-ab__button--secondary { background: var(--e8-ab-surface); color: var(--e8-ab-accent); }
.e8-ab__button--secondary:hover { background: var(--e8-ab-accent-soft); }
.e8-ab__button--ghost { min-height: 32px; padding: 4px 10px; border-color: transparent; background: none; color: var(--e8-ab-muted); font-size: 14px; font-weight: 500; }
.e8-ab__button--ghost:hover { background: var(--e8-ab-soft); color: var(--e8-ab-ink); }
.e8-ab__button--add { justify-self: start; border-style: dashed; background: none; color: var(--e8-ab-accent); }
.e8-ab__button--add:hover { background: var(--e8-ab-accent-soft); }
.e8-ab__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 16px clamp(20px, 3.5vw, 36px); border-top: 1px solid var(--e8-ab-line); background: var(--e8-ab-soft); }
.e8-ab__actions-note { margin: 0; font-size: 13px; color: var(--e8-ab-muted); }
.e8-ab__actions-buttons { display: flex; gap: 10px; margin-left: auto; }
.e8-ab__alert { margin: 0 clamp(20px, 3.5vw, 36px) 16px; padding: 12px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.e8-ab__alert--warn { background: var(--e8-ab-warn-soft); color: var(--e8-ab-warn); }
.e8-ab__alert--ok { background: var(--e8-ab-ok-soft); color: var(--e8-ab-ok); }
@media (max-width: 680px) { .e8-ab__actions { position: -webkit-sticky; position: sticky; bottom: 0; } .e8-ab__actions-buttons { flex: 1; } .e8-ab__actions-buttons .e8-ab__button { flex: 1; } }

/* Aside */
.e8-ab__aside { position: -webkit-sticky; position: sticky; top: 16px; display: grid; gap: 12px; padding: 18px; border: 1px solid var(--e8-ab-line); border-radius: 14px; background: var(--e8-ab-surface); }
@media (max-width: 1080px) { .e8-ab__aside { position: static; } }
.e8-ab__aside-title { margin: 0; font-size: 15px; }
.e8-ab__aside-text { margin: 0; font-size: 13px; color: var(--e8-ab-muted); }
.e8-ab__meter { height: 6px; overflow: hidden; border-radius: 99px; background: var(--e8-ab-soft); }
.e8-ab__meter-bar { display: block; width: 0; height: 100%; background: var(--e8-ab-ok); transition: width .3s ease; }
.e8-ab__missing { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.e8-ab__missing-step { display: grid; gap: 4px; }
.e8-ab__missing-head { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.e8-ab__missing-list { margin: 0; padding-left: 18px; font-size: 13px; color: var(--e8-ab-muted); }
.e8-ab__missing-ok { font-size: 13px; font-weight: 500; color: var(--e8-ab-ok); }

/* Review */
.e8-ab__review { display: grid; gap: 16px; }
.e8-ab__review-block { overflow: hidden; border: 1px solid var(--e8-ab-line); border-radius: var(--e8-ab-radius); }
.e8-ab__review-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; background: var(--e8-ab-soft); }
.e8-ab__review-title { margin: 0; font-size: 15px; }
.e8-ab__review-list { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; margin: 0; }
.e8-ab__review-key, .e8-ab__review-val { margin: 0; padding: 8px 14px; border-top: 1px solid var(--e8-ab-line); font-size: 14px; }
.e8-ab__review-key { color: var(--e8-ab-muted); }
.e8-ab__review-val { white-space: pre-line; overflow-wrap: anywhere; }
.e8-ab__review-val--missing { font-weight: 600; color: var(--e8-ab-warn); }
@media (max-width: 520px) { .e8-ab__review-list { grid-template-columns: 1fr; } .e8-ab__review-val { padding-top: 0; border-top: 0; } }

/* Gate and notices */
.e8-ab__card { max-width: 540px; margin: auto; padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--e8-ab-line); border-radius: 14px; background: var(--e8-ab-surface); }
.e8-ab__card-title { margin: 0 0 .5rem; line-height: 1.2; }
.e8-ab__card-text { margin: 0 0 1rem; }
.e8-ab__gate-form { display: grid; gap: .6rem; }
.e8-ab__message { margin: 0; font-weight: 600; color: #a3102e; }
.e8-ab__notice { padding: 1rem 1.2rem; border-left: 5px solid var(--e8-ab-accent); border-radius: 5px; background: var(--e8-ab-soft); }
.e8-ab__notice--success { border-color: #24844d; background: #effaf3; }
.e8-ab__notice--warning { border-color: #a66a00; background: #fff8e8; }

@media (prefers-reduced-motion: reduce) {
	.e8-ab__progress-bar, .e8-ab__meter-bar { transition: none; }
}
