:root {
    --ink: #17231d;
    --muted: #6d7a73;
    --line: #dfe6e1;
    --paper: #f4f7f4;
    --white: #ffffff;
    --forest: #173c2d;
    --forest-dark: #0d291e;
    --accent: #b6ef82;
    --danger: #b42318;
    --success: #227a43;
    --shadow: 0 28px 70px rgba(22, 51, 39, 0.12);
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

/* Projektbezogene Website-Einstellungen */

.website-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.website-module-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 12rem;
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--paper);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.website-module-card:hover {
    border-color: #a8b9ae;
}

.website-module-card.is-enabled {
    border-color: #99d068;
    background: #f4fbee;
    box-shadow: inset 0 0 0 1px rgba(34, 122, 67, 0.08);
}

.website-module-copy {
    display: grid;
    gap: 0.6rem;
}

.website-module-copy > strong {
    color: var(--forest-dark);
    font-size: 1.25rem;
}

.website-module-copy > small,
.website-settings-note {
    color: var(--muted);
    line-height: 1.6;
}

.website-module-state {
    width: fit-content;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    color: var(--muted);
    background: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.website-module-card.is-enabled .website-module-state {
    color: var(--success);
    background: #dff7cf;
}

.website-switch {
    position: relative;
    flex: 0 0 auto;
    width: 3.5rem;
    height: 2rem;
}

.website-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.website-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #c9d2cc;
    transition: background 160ms ease;
}

.website-switch span::after {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 2px 6px rgba(13, 41, 30, 0.2);
    content: '';
    transition: transform 160ms ease;
}

.website-switch input:checked + span {
    background: var(--success);
}

.website-switch input:checked + span::after {
    transform: translateX(1.5rem);
}

.website-switch input:focus-visible + span {
    outline: 3px solid rgba(34, 122, 67, 0.25);
    outline-offset: 3px;
}

.website-settings-note {
    margin: 1.25rem 0 0;
}

.website-language-settings {
    display: grid;
    gap: 1rem;
    margin-top: 1.4rem;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--white);
}

.website-language-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.website-language-heading h3,
.website-language-heading p {
    margin: 0;
}

.website-language-heading p {
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.website-language-heading > strong {
    padding: 0.42rem 0.65rem;
    border-radius: 999px;
    color: var(--forest-dark);
    background: var(--accent);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.website-additional-languages {
    display: grid;
    gap: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.website-additional-languages[hidden] {
    display: none;
}

.website-language-list {
    display: grid;
    gap: 0.65rem;
}

.website-language-row {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) minmax(8rem, 1fr) minmax(9rem, 1fr) auto auto;
    align-items: end;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: var(--paper);
}

.website-language-enabled {
    min-height: 2.7rem;
    padding-bottom: 0.55rem;
}

.website-language-row .button-danger {
    min-height: 2.7rem;
    color: #8d2a23;
    border-color: #efc7c2;
    background: #fff4f2;
}

@media (max-width: 760px) {
    .website-module-grid {
        grid-template-columns: 1fr;
    }

    .website-module-card {
        min-height: 10rem;
    }

    .website-language-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .website-language-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .website-language-enabled {
        min-height: auto;
    }
}

/* FAEXL Forms */
.forms-view-nav {
    display: flex;
    gap: 0.35rem;
    margin: 0 0 1.25rem;
    padding: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: var(--white);
}

.forms-view-nav button {
    padding: 0.65rem 1rem;
    border: 0;
    border-radius: 0.6rem;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-weight: 800;
}

.forms-view-nav button.is-active {
    color: var(--forest-dark);
    background: var(--accent);
}

.forms-builder-layout {
    display: grid;
    grid-template-columns: minmax(210px, 0.28fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.forms-list,
.forms-builder,
.forms-palette,
.forms-canvas-wrap,
.forms-field-inspector,
.forms-settings,
.forms-entry {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--white);
}

.forms-list {
    display: grid;
    gap: 0.45rem;
    padding: 0.65rem;
}

.forms-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.85rem;
    border: 0;
    border-radius: 0.75rem;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.forms-list-item:hover,
.forms-list-item.is-active {
    background: #edf4ee;
}

.forms-list-item.is-active {
    box-shadow: inset 3px 0 var(--forest);
}

.forms-list-item > span:first-child {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
}

.forms-list-item small,
.forms-list-item > span:last-child {
    color: var(--muted);
    font-size: 0.75rem;
}

.forms-builder {
    min-width: 0;
    padding: 1.25rem;
}

.forms-workbench {
    display: grid;
    grid-template-columns: minmax(155px, 0.22fr) minmax(280px, 1fr) minmax(220px, 0.32fr);
    gap: 1rem;
    margin: 1.25rem 0;
    align-items: start;
}

.forms-palette,
.forms-canvas-wrap,
.forms-field-inspector {
    padding: 1rem;
}

.forms-palette > p,
.forms-field-inspector p {
    margin: 0.25rem 0 0.9rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.forms-palette-grid {
    display: grid;
    gap: 0.4rem;
}

.forms-palette-grid button {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 0.55rem;
    color: var(--ink);
    background: var(--paper);
    cursor: grab;
    text-align: left;
}

.forms-palette-grid button:hover {
    border-color: #8ead99;
    background: #edf4ee;
}

.forms-canvas-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.forms-canvas-heading span {
    color: var(--muted);
    font-size: 0.8rem;
}

.forms-canvas {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
    min-height: 13rem;
    padding: 0.7rem;
    border: 1px dashed #b7c6bc;
    border-radius: 0.75rem;
    background: #f7faf7;
}

.forms-canvas > .empty-state {
    grid-column: 1 / -1;
    align-self: center;
}

.forms-field-card {
    display: grid;
    grid-column: span 6;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    color: var(--ink);
    background: var(--white);
    cursor: pointer;
    text-align: left;
}

.forms-field-card[style*="--form-field-width: 50"] {
    grid-column: span 3;
}

.forms-field-card[style*="--form-field-width: 33"] {
    grid-column: span 2;
}

.forms-field-card:hover,
.forms-field-card.is-active {
    border-color: #76a184;
    box-shadow: 0 0 0 2px rgba(118, 161, 132, 0.12);
}

.forms-field-card > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 0.15rem;
}

.forms-field-card small,
.forms-field-order,
.forms-field-handle {
    color: var(--muted);
    font-size: 0.75rem;
}

.forms-field-handle {
    cursor: grab;
    letter-spacing: -0.2em;
}

.forms-field-inspector {
    display: grid;
    gap: 0.85rem;
}

.forms-field-inspector [data-form-inspector] {
    display: grid;
    gap: 0.85rem;
}

.forms-settings {
    margin-top: 1rem;
    overflow: hidden;
}

.forms-settings > summary {
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-weight: 850;
}

.forms-settings-body {
    display: grid;
    gap: 1rem;
    padding: 0 1.2rem 1.2rem;
}

.forms-entry-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 260px));
    gap: 1rem;
    margin-bottom: 1rem;
}

.forms-entries {
    display: grid;
    gap: 0.75rem;
}

.forms-entry {
    overflow: hidden;
}

.forms-entry > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    cursor: pointer;
}

.forms-entry > summary > span:first-child {
    display: grid;
    gap: 0.15rem;
}

.forms-entry > summary small,
.forms-entry-source {
    color: var(--muted);
    font-size: 0.8rem;
}

.forms-entry-status {
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    color: #315a46;
    background: #edf4ee;
    font-size: 0.72rem;
    font-weight: 850;
}

.forms-entry.is-new .forms-entry-status {
    color: #4e3c00;
    background: #fff3bf;
}

.forms-entry.is-email_failed .forms-entry-status {
    color: var(--danger);
    background: #fde8e7;
}

.forms-entry-body {
    padding: 0 1.15rem 1.15rem;
}

.forms-entry-body dl {
    display: grid;
    grid-template-columns: minmax(130px, 0.25fr) minmax(0, 1fr);
    margin: 0;
    border-top: 1px solid var(--line);
}

.forms-entry-body dt,
.forms-entry-body dd {
    margin: 0;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.forms-entry-body dt {
    padding-right: 1rem;
    color: var(--muted);
    font-weight: 800;
}

.forms-entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (max-width: 1180px) {
    .forms-workbench {
        grid-template-columns: minmax(140px, 0.25fr) minmax(280px, 1fr);
    }

    .forms-field-inspector {
        grid-column: 1 / -1;
    }
}

@media (max-width: 850px) {
    .forms-builder-layout,
    .forms-workbench {
        grid-template-columns: 1fr;
    }

    .forms-field-card[style*="--form-field-width: 50"],
    .forms-field-card[style*="--form-field-width: 33"] {
        grid-column: span 6;
    }

    .forms-entry-toolbar {
        grid-template-columns: 1fr;
    }

    .forms-entry-body dl {
        grid-template-columns: 1fr;
    }

    .forms-entry-body dt {
        padding-bottom: 0.2rem;
        border-bottom: 0;
    }

    .forms-entry-body dd {
        padding-top: 0.2rem;
    }
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

code,
textarea {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
    padding: 0.1rem 0.35rem;
    border-radius: 0.35rem;
    color: #315a46;
    background: #edf3ee;
    font-size: 0.9em;
}

.eyebrow {
    margin: 0 0 0.85rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.brand-mark {
    display: inline-grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border-radius: 0.9rem;
    color: var(--forest-dark);
    background: var(--accent);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: normal;
}

.brand-mark-image {
    display: block;
    object-fit: cover;
}

.brand-wordmark {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

.brand-wordmark-home {
    width: clamp(14rem, 28vw, 20rem);
    margin-bottom: 3.25rem;
}

.brand-wordmark-auth {
    width: 12rem;
}

.brand-wordmark-sidebar {
    width: 12.5rem;
}

.brand-wordmark-error {
    width: clamp(11rem, 24vw, 16rem);
}

.button {
    display: inline-flex;
    min-height: 3.1rem;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 0.8rem;
    cursor: pointer;
    font-weight: 750;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.main-nav a:focus-visible {
    outline: 3px solid rgba(182, 239, 130, 0.65);
    outline-offset: 3px;
}

.button-primary {
    color: var(--white);
    background: var(--forest);
}

.button-primary:hover {
    background: var(--forest-dark);
}

.button-full {
    width: 100%;
}

.button-small {
    min-height: 2.5rem;
    padding: 0.55rem 0.9rem;
    border-color: var(--line);
    background: var(--white);
    font-size: 0.85rem;
}

.landing-page {
    display: grid;
    place-items: center;
    padding: 2rem;
    color: var(--white);
    background:
        radial-gradient(circle at 75% 15%, rgba(182, 239, 130, 0.18), transparent 28rem),
        var(--forest-dark);
}

.landing-shell {
    width: min(100%, 68rem);
}

.landing-shell h1,
.auth-intro h1,
.dashboard-header h1,
.error-page h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 7.6rem);
    line-height: 0.92;
    letter-spacing: -0.065em;
}

.landing-shell .eyebrow {
    margin-top: 3rem;
    color: var(--accent);
}

.landing-copy {
    max-width: 38rem;
    margin: 2rem 0;
    color: #c9d6cf;
    font-size: 1.15rem;
    line-height: 1.7;
}

.landing-page .button-primary {
    color: var(--forest-dark);
    background: var(--accent);
}

.auth-page {
    padding: 1.25rem;
    background: var(--paper);
}

.auth-layout {
    display: grid;
    width: min(100%, 76rem);
    min-height: calc(100vh - 2.5rem);
    margin: 0 auto;
    grid-template-columns: 1.15fr 0.85fr;
    overflow: hidden;
    border-radius: 1.5rem;
    background: var(--white);
    box-shadow: var(--shadow);
}

.auth-intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 6vw, 5.5rem);
    color: var(--white);
    background:
        radial-gradient(circle at 80% 20%, rgba(182, 239, 130, 0.2), transparent 20rem),
        var(--forest-dark);
}

.auth-intro .eyebrow {
    color: var(--accent);
}

.auth-intro h1 {
    font-size: clamp(3.3rem, 7vw, 6rem);
}

.auth-intro p:last-child {
    max-width: 31rem;
    color: #bed0c7;
    line-height: 1.65;
}

.auth-card {
    display: grid;
    align-items: center;
    padding: clamp(2rem, 6vw, 5.5rem);
}

.form-heading {
    margin-bottom: 2.4rem;
}

.form-heading h2,
.panel-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.045em;
}

.field {
    display: grid;
    gap: 0.55rem;
    color: #3f4e46;
    font-size: 0.86rem;
    font-weight: 700;
}

.auth-card .field {
    margin-bottom: 1.25rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    color: var(--ink);
    background: #fbfcfb;
}

.field input {
    min-height: 3.25rem;
}

.field select {
    min-height: 3.25rem;
}

.field textarea {
    resize: vertical;
    line-height: 1.55;
    tab-size: 4;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #74a78c;
    background: var(--white);
}

.form-message {
    min-height: 1.25rem;
    margin: 0.35rem 0 1rem;
    color: var(--danger);
    font-size: 0.85rem;
}

.form-message.is-success {
    color: var(--success);
}

.form-hint,
.auth-copy {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.form-hint {
    margin: -0.5rem 0 0.75rem;
}

.auth-copy {
    margin: 0 0 2rem;
}

.auth-link {
    display: block;
    margin-top: 1.1rem;
    color: var(--forest);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-page-login {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: clamp(1rem, 3vw, 2.25rem);
    background:
        radial-gradient(circle at 12% 88%, rgba(214, 111, 31, 0.28), transparent 26rem),
        radial-gradient(circle at 88% 12%, rgba(41, 104, 139, 0.38), transparent 30rem),
        #061d33;
}

.auth-login-layout {
    display: grid;
    width: min(100%, 82rem);
    min-height: min(52rem, calc(100vh - clamp(2rem, 6vw, 4.5rem)));
    grid-template-columns: minmax(0, 1.08fr) minmax(25rem, 0.92fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.65rem;
    background: #f7f8f8;
    box-shadow: 0 35px 90px rgba(0, 9, 20, 0.42);
}

.auth-login-visual {
    position: relative;
    min-height: 38rem;
    overflow: hidden;
    background: #07375d;
}

.auth-login-visual::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    content: "";
    pointer-events: none;
}

.auth-login-art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.auth-login-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 5vw, 4.75rem);
    background:
        radial-gradient(circle at 100% 0, rgba(7, 55, 93, 0.07), transparent 20rem),
        #f8faf9;
}

.auth-login-content {
    width: min(100%, 28rem);
    margin: auto;
}

.auth-login-brand {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: #07375d;
    box-shadow: 0 12px 25px rgba(7, 55, 93, 0.14);
}

.auth-login-brand img {
    display: block;
    width: 12.5rem;
    height: auto;
}

.auth-login-heading {
    margin: clamp(3.5rem, 8vh, 6rem) 0 2.5rem;
}

.auth-login-heading .eyebrow {
    color: #b56225;
}

.auth-login-heading h1 {
    margin: 0;
    color: #082c49;
    font-size: clamp(3.2rem, 5vw, 5.1rem);
    line-height: 0.92;
    letter-spacing: -0.065em;
}

.auth-login-heading > p:last-child {
    margin: 1.5rem 0 0;
    color: #667781;
    line-height: 1.65;
}

.auth-login-form .field {
    margin-bottom: 1.15rem;
    color: #344b59;
}

.auth-login-form .field input {
    border-color: #d8e0e3;
    border-radius: 0.85rem;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(7, 55, 93, 0.03);
}

.auth-login-form .field input:focus {
    border-color: #c77534;
    outline-color: rgba(199, 117, 52, 0.24);
    box-shadow: 0 0 0 4px rgba(199, 117, 52, 0.1);
}

.auth-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.1rem 0 0.25rem;
    color: #71808a;
    font-size: 0.78rem;
}

.auth-login-row a {
    color: #0c4b75;
    font-weight: 750;
}

.auth-login-row a:hover {
    text-decoration: underline;
}

.auth-login-secure {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.auth-login-secure i {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #3b9a66;
    box-shadow: 0 0 0 4px rgba(59, 154, 102, 0.12);
}

.auth-login-form .form-message {
    margin: 0.55rem 0 0.9rem;
}

.auth-login-form .button-primary {
    min-height: 3.4rem;
    border-radius: 0.85rem;
    background: #07375d;
    box-shadow: 0 14px 28px rgba(7, 55, 93, 0.18);
}

.auth-login-form .button-primary:hover {
    background: #052b49;
}

.auth-login-footer {
    width: min(100%, 28rem);
    margin: 3rem auto 0;
    color: #8a969c;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.admin-layout {
    --sidebar-width: 17rem;
    display: grid;
    min-height: 100vh;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    transition: grid-template-columns 180ms ease;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    padding: 2rem 1.5rem;
    color: var(--white);
    background: var(--forest-dark);
    transition: padding 180ms ease;
}

.sidebar-top {
    display: flex;
    min-height: 7rem;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.sidebar-brand-compact {
    display: none;
    width: 2.9rem;
    height: 2.9rem;
    place-items: center;
    border-radius: 0.8rem;
    color: var(--forest-dark);
    background: var(--accent);
    font-size: 1.45rem;
    font-weight: 950;
    letter-spacing: -0.08em;
}

.sidebar-toggle {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.55rem;
    cursor: pointer;
    color: #c8d5ce;
    background: rgba(255, 255, 255, 0.04);
    font-size: 1.25rem;
    line-height: 1;
    transition: color 160ms ease, background 160ms ease, transform 180ms ease;
}

.sidebar-toggle:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.main-nav {
    display: grid;
    gap: 0.3rem;
    margin: 1rem 0 auto;
}

.main-nav a {
    padding: 0.9rem 1rem;
    border-radius: 0.7rem;
    color: #aebfb6;
    font-weight: 650;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.button-ghost {
    color: #c8d5ce;
    border-color: rgba(255, 255, 255, 0.14);
    background: transparent;
}

#logout-button {
    gap: 0.55rem;
}

#logout-button > span {
    display: none;
}

#logout-button > b {
    font: inherit;
}

body.is-sidebar-collapsed .admin-layout {
    --sidebar-width: 5.25rem;
}

body.is-sidebar-collapsed .sidebar {
    padding: 1.25rem 0.7rem;
}

body.is-sidebar-collapsed .sidebar-top {
    min-height: 5rem;
    flex-direction: column;
    align-items: center;
}

body.is-sidebar-collapsed .brand-wordmark-sidebar {
    display: none;
}

body.is-sidebar-collapsed .sidebar-brand-compact {
    display: grid;
}

body.is-sidebar-collapsed .sidebar-toggle {
    align-self: center;
    transform: rotate(180deg);
}

body.is-sidebar-collapsed .main-nav {
    width: 100%;
    margin-top: 0.5rem;
}

body.is-sidebar-collapsed .main-nav a {
    display: grid;
    min-height: 3.1rem;
    padding: 0;
    place-items: center;
    font-size: 0;
}

body.is-sidebar-collapsed .main-nav a::before {
    content: attr(data-nav-icon);
    font-size: 0.9rem;
    font-weight: 850;
}

body.is-sidebar-collapsed .sidebar-project-label {
    display: none;
}

body.is-sidebar-collapsed #logout-button {
    min-width: 0;
    padding: 0;
}

body.is-sidebar-collapsed #logout-button > span {
    display: inline;
    font-size: 1rem;
}

body.is-sidebar-collapsed #logout-button > b {
    display: none;
}

.dashboard {
    min-width: 0;
    padding: clamp(2rem, 5vw, 5rem);
}

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.dashboard-header h1 {
    font-size: clamp(2.7rem, 6vw, 5.5rem);
}

.status-badge {
    flex: 0 0 auto;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    color: #225333;
    background: #dff7cf;
    font-size: 0.78rem;
    font-weight: 750;
}

.status-badge.is-error {
    color: #7a271a;
    background: #fee4e2;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.stat-card {
    min-height: 16rem;
    padding: 1.6rem;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: var(--white);
}

.stat-card-accent {
    border-color: transparent;
    background: var(--accent);
}

.stat-number {
    display: block;
    margin-bottom: 2.5rem;
    color: var(--forest);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 850;
    letter-spacing: -0.06em;
}

.stat-card h2 {
    margin: 0 0 0.55rem;
    font-size: 1.15rem;
}

.stat-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.stat-card-accent p {
    color: #36552c;
}

.panel {
    margin-top: 1.2rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: var(--white);
}

.panel-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.panel-heading > p {
    max-width: 31rem;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.publisher-form {
    display: grid;
    gap: 1.25rem;
}

.system-checks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.system-check {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: #fbfcfb;
}

.system-check::before {
    width: 0.55rem;
    height: 0.55rem;
    margin-bottom: 0.35rem;
    border-radius: 50%;
    background: var(--muted);
    content: "";
}

.system-check.is-ok::before {
    background: #32a05b;
}

.system-check.is-error::before {
    background: var(--danger);
}

.system-check span {
    color: var(--muted);
    font-size: 0.82rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.form-row-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-row-code textarea {
    min-height: 15rem;
    color: #d7eadf;
    border-color: #29483a;
    background: #10291f;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.form-actions .form-message {
    margin: 0;
}

.published-list {
    display: grid;
    gap: 0.75rem;
}

.published-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: #fbfcfb;
}

.published-item div {
    display: grid;
    gap: 0.25rem;
}

.published-item span,
.empty-state {
    color: var(--muted);
    font-size: 0.86rem;
}

.user-list {
    display: grid;
    gap: 0.7rem;
}

.user-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: #fbfcfb;
}

.user-avatar {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border-radius: 0.8rem;
    color: var(--forest-dark);
    background: var(--accent);
    font-weight: 850;
}

.user-details {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
}

.user-details span {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.85rem;
    text-overflow: ellipsis;
}

.role-badge,
.user-state {
    padding: 0.5rem 0.7rem;
    border-radius: 999px;
    color: var(--muted);
    background: #edf3ee;
    font-size: 0.76rem;
    font-weight: 750;
}

.user-state.is-active {
    color: #225333;
    background: #dff7cf;
}

.empty-state {
    margin: 0;
    padding: 1rem 0;
}

.dashboard-lead {
    max-width: 42rem;
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.cms-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.cms-setup-notice {
    display: grid;
    max-width: 52rem;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.2rem;
    padding: 1.5rem;
    border: 1px solid #f0c36a;
    border-radius: 1rem;
    background: #fff9e9;
}

.cms-setup-notice > span {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border-radius: 0.8rem;
    color: #684600;
    background: #ffe3a5;
    font-weight: 850;
}

.cms-setup-notice h2 {
    margin: 0;
    font-size: 1.5rem;
}

.cms-setup-notice p:last-child {
    margin-bottom: 0;
    color: #6c6047;
    line-height: 1.6;
}

.cms-project-card {
    display: grid;
    min-height: 13rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    color: inherit;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(22, 51, 39, 0.04);
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cms-project-card:hover {
    border-color: #aebcb4;
    box-shadow: 0 18px 38px rgba(22, 51, 39, 0.09);
    transform: translateY(-2px);
}

.cms-project-card strong,
.cms-project-card small,
.cms-project-card span {
    display: block;
}

.cms-project-icon,
.cms-project-plus {
    display: grid !important;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border-radius: 0.95rem;
    color: #ffffff;
    background: #07375d;
    font-size: 1.15rem;
    font-weight: 850;
}

.cms-project-copy {
    display: grid !important;
    min-width: 0;
    gap: 0.4rem;
}

.cms-project-copy strong,
.cms-project-create strong {
    font-size: 1.15rem;
}

.cms-project-copy small,
.cms-project-create small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.8rem;
    text-overflow: ellipsis;
}

.cms-project-copy > span {
    margin-top: 2.6rem;
    color: #75827b;
    font-size: 0.78rem;
}

.cms-card-arrow {
    color: #87948d;
    font-size: 1.4rem;
}

.cms-project-create {
    appearance: none;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    border-style: dashed;
    cursor: pointer;
}

.cms-project-plus {
    color: var(--forest-dark);
    background: var(--accent);
    font-size: 1.8rem;
    font-weight: 400;
}

.cms-project-create > span:last-child {
    display: grid;
    gap: 0.45rem;
}

.cms-empty-welcome {
    max-width: 45rem;
    margin-top: 3.5rem;
    padding: 2rem 0;
}

.cms-empty-welcome h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.7rem);
    letter-spacing: -0.05em;
}

.cms-empty-welcome > p:last-child {
    max-width: 36rem;
    color: var(--muted);
    line-height: 1.7;
}

.system-details {
    margin-top: 3.5rem;
    border-top: 1px solid var(--line);
}

.system-details summary {
    padding: 1.4rem 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
}

.system-details .system-checks {
    padding-bottom: 1.5rem;
}

.cms-dialog {
    width: min(calc(100% - 2rem), 36rem);
    padding: 0;
    border: 0;
    border-radius: 1.3rem;
    background: transparent;
    box-shadow: 0 30px 80px rgba(8, 32, 23, 0.25);
}

.cms-dialog::backdrop {
    background: rgba(8, 25, 18, 0.62);
    backdrop-filter: blur(7px);
}

.cms-dialog-card {
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border-radius: 1.3rem;
    background: var(--white);
}

.cms-dialog-card .field {
    margin-bottom: 1rem;
}

.cms-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.cms-dialog-header h2 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -0.045em;
}

.cms-dialog-close {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: var(--muted);
    background: var(--paper);
    font-size: 1.4rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cms-project-assistant-dialog {
    width: min(calc(100% - 2rem), 74rem);
}

.cms-project-assistant-dialog .cms-dialog-card {
    max-height: min(56rem, calc(100vh - 2rem));
    max-height: min(56rem, calc(100dvh - 2rem));
    overflow: auto;
}

.cms-assistant-mode-switch {
    display: inline-flex;
    gap: 0.25rem;
    margin: -0.5rem 0 1.5rem;
    padding: 0.25rem;
    border-radius: 0.8rem;
    background: #edf2ef;
}

.cms-assistant-mode-switch button {
    padding: 0.65rem 0.95rem;
    border: 0;
    border-radius: 0.62rem;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 760;
}

.cms-assistant-mode-switch button.is-active {
    color: var(--forest-dark);
    background: var(--white);
    box-shadow: 0 3px 12px rgba(17, 50, 38, 0.09);
}

.cms-project-mode[hidden],
.cms-assistant-create[hidden],
.cms-assistant-composer[hidden] {
    display: none !important;
}

.cms-assistant-status-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #cfe3d8;
    border-radius: 0.9rem;
    background: linear-gradient(120deg, #f2faf5, #f8fbff);
}

.cms-ai-orb,
.cms-assistant-avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: #ffffff;
    background: #07375d;
}

.cms-ai-orb {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.78rem;
    font-size: 1.15rem;
}

.cms-assistant-status-row > div {
    display: grid;
    min-width: 0;
    gap: 0.12rem;
}

.cms-assistant-status-row > div span {
    color: #61736a;
    font-size: 0.76rem;
}

.cms-assistant-status-row > div span.is-warning {
    color: #8a5600;
}

.cms-assistant-progress {
    margin-left: auto;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    color: #285c44;
    background: #dff3e7;
    font-size: 0.75rem;
    font-weight: 780;
    white-space: nowrap;
}

.cms-assistant-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(17rem, 0.75fr);
    gap: 1rem;
}

.cms-assistant-conversation,
.cms-assistant-summary {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 1rem;
}

.cms-assistant-conversation {
    padding: 1rem;
    background: #fbfcfb;
}

.cms-assistant-messages {
    display: grid;
    max-height: 23rem;
    gap: 0.85rem;
    overflow-y: auto;
    padding: 0.25rem 0.25rem 1rem;
    scroll-behavior: smooth;
}

.cms-assistant-message {
    display: flex;
    max-width: 88%;
    align-items: flex-start;
    gap: 0.65rem;
}

.cms-assistant-message.is-user {
    justify-self: end;
    flex-direction: row-reverse;
}

.cms-assistant-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    font-size: 0.68rem;
    font-weight: 850;
}

.cms-assistant-message.is-user .cms-assistant-avatar {
    color: #07375d;
    background: #dce8ee;
}

.cms-assistant-message p {
    margin: 0;
    padding: 0.78rem 0.9rem;
    border: 1px solid #dce5e0;
    border-radius: 0.2rem 0.9rem 0.9rem;
    background: var(--white);
    font-size: 0.88rem;
    line-height: 1.55;
    white-space: pre-line;
}

.cms-assistant-message.is-user p {
    border-color: #07375d;
    border-radius: 0.9rem 0.2rem 0.9rem 0.9rem;
    color: #ffffff;
    background: #07375d;
}

.cms-assistant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.2rem 0 0.8rem 2.65rem;
}

.cms-assistant-options:empty {
    display: none;
}

.cms-assistant-options button {
    padding: 0.48rem 0.7rem;
    border: 1px solid #b8cdc1;
    border-radius: 999px;
    color: #234d39;
    background: #f5fbf7;
    cursor: pointer;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 720;
}

.cms-assistant-options button:hover {
    border-color: #6c927e;
    background: #eaf6ef;
}

.cms-assistant-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.65rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line);
}

.cms-assistant-composer textarea {
    min-height: 3.2rem;
    max-height: 9rem;
    resize: vertical;
}

.cms-assistant-composer .button {
    min-height: 3.2rem;
}

.cms-assistant-conversation > .form-message {
    margin: 0.65rem 0 0;
}

.cms-assistant-summary {
    align-self: start;
    padding: 1.25rem;
    background: #f4f7f5;
}

.cms-assistant-summary h3 {
    margin: 0.35rem 0 1.1rem;
    color: #07375d;
    font-size: 1.25rem;
    line-height: 1.2;
}

.cms-assistant-summary dl,
.cms-assistant-summary dl div {
    display: grid;
    gap: 0.25rem;
}

.cms-assistant-summary dl {
    gap: 0.85rem;
    margin: 0;
}

.cms-assistant-summary dt {
    color: #718078;
    font-size: 0.68rem;
    font-weight: 820;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cms-assistant-summary dd {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
}

.cms-assistant-draft-note {
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #d8e1dc;
    color: #61736a;
    font-size: 0.76rem;
    line-height: 1.5;
}

.cms-assistant-create {
    margin-top: 1rem;
    padding: 1.2rem;
    border: 1px solid #b9d9c8;
    border-radius: 1rem;
    background: #f1faf5;
}

.cms-assistant-create h3 {
    margin: 0.2rem 0 1rem;
}

.cms-assistant-create-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 0.8rem;
}

.cms-assistant-description-field {
    grid-column: 1 / -1;
}

.cms-media-picker-dialog {
    width: min(calc(100% - 2rem), 74rem);
}

.cms-media-picker-dialog .cms-dialog-card {
    max-height: min(52rem, calc(100vh - 2rem));
    overflow: auto;
}

.cms-picker-upload {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) minmax(12rem, 1fr) minmax(10rem, 0.7fr) auto;
    align-items: end;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: #f8faf8;
}

.cms-picker-upload .field { margin: 0; }
.cms-picker-upload .form-message { grid-column: 1 / -1; margin: 0; }

.cms-picker-folders {
    display: flex;
    overflow-x: auto;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
}

.cms-picker-folders button {
    flex: 0 0 auto;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    cursor: pointer;
    color: var(--ink);
    background: var(--white);
}

.cms-picker-folders button.is-active { color: var(--white); border-color: var(--forest); background: var(--forest); }

.cms-picker-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.cms-picker-grid button {
    display: grid;
    overflow: hidden;
    padding: 0 0 0.65rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    cursor: pointer;
    color: var(--ink);
    background: #f8faf8;
    text-align: left;
}

.cms-picker-grid button:hover,
.cms-picker-grid button:focus-visible { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(26, 79, 55, 0.1); }

.cms-picker-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 0.55rem;
    object-fit: cover;
    background: #e9eeeb;
}

.cms-picker-grid span,
.cms-picker-grid small { overflow: hidden; padding: 0 0.6rem; text-overflow: ellipsis; white-space: nowrap; }
.cms-picker-grid span { font-size: 0.76rem; font-weight: 750; }
.cms-picker-grid small { margin-top: 0.2rem; color: var(--muted); font-size: 0.64rem; }

.sidebar-project-label {
    overflow: hidden;
    margin: 1.25rem 1rem 0.15rem;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.cms-workspace {
    padding-top: clamp(1rem, 2vw, 1.75rem);
    padding-right: clamp(1.25rem, 3vw, 3rem);
    padding-left: clamp(1.25rem, 3vw, 3rem);
}

.cms-project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.cms-project-header h1 {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 3.1rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.cms-project-heading {
    display: grid;
    gap: 0.55rem;
}

.cms-project-heading > div {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.cms-project-header .eyebrow {
    display: none;
}

.cms-project-heading > div > p:last-child {
    margin: 0;
    color: var(--muted);
}

.cms-back-link {
    color: #547062;
    font-size: 0.82rem;
    font-weight: 750;
}

.cms-tabs {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    margin-bottom: 0.85rem;
    padding: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: #edf2ef;
}

.cms-tabs button,
.cms-settings-nav button {
    padding: 0.75rem 1.05rem;
    border: 0;
    border-radius: 0.65rem;
    cursor: pointer;
    color: #617067;
    background: transparent;
    font-size: 0.86rem;
    font-weight: 750;
    white-space: nowrap;
}

.cms-tabs button.is-active,
.cms-settings-nav button.is-active {
    color: var(--forest-dark);
    background: var(--white);
    box-shadow: 0 4px 14px rgba(22, 51, 39, 0.08);
}

.cms-tabs button span {
    display: inline-grid;
    min-width: 1.4rem;
    height: 1.4rem;
    margin-left: 0.35rem;
    place-items: center;
    border-radius: 999px;
    background: #dfe8e2;
    font-size: 0.68rem;
}

.cms-tab-panel {
    min-height: 34rem;
    padding: clamp(1.1rem, 2.4vw, 1.65rem);
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: var(--white);
}

.cms-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.cms-section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.045em;
}

.cms-pages-layout {
    display: grid;
    grid-template-columns: minmax(15rem, 0.34fr) minmax(0, 1fr);
    gap: 1.25rem;
}

.cms-template-layout {
    display: grid;
    grid-template-columns: minmax(16rem, 0.34fr) minmax(0, 1fr);
    gap: 1.25rem;
}

.cms-template-library {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: linear-gradient(135deg, #f4f8f5, #fbfcfb 58%, #f5f8ee);
}

.cms-template-library-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 0.9rem;
}

.cms-template-library-heading h3,
.cms-template-library-heading p {
    margin: 0;
}

.cms-template-library-heading h3 {
    font-size: 1.15rem;
    letter-spacing: -0.025em;
}

.cms-template-library-heading > p {
    max-width: 34rem;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.cms-template-preset-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.cms-template-preset {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding: 0.6rem;
    border: 1px solid #dce5de;
    border-radius: 0.85rem;
    cursor: pointer;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    text-align: left;
    box-shadow: 0 10px 24px rgba(26, 50, 38, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cms-template-preset:hover,
.cms-template-preset:focus-visible,
.cms-template-preset.is-active {
    border-color: #84a891;
    box-shadow: 0 14px 28px rgba(26, 50, 38, 0.1);
    transform: translateY(-2px);
}

.cms-template-preset.is-active {
    outline: 2px solid rgba(158, 240, 107, 0.6);
    outline-offset: 1px;
}

.cms-template-preset-preview {
    position: relative;
    display: block;
    overflow: hidden;
    height: 5.2rem;
    grid-column: 1 / -1;
    border: 1px solid rgba(25, 45, 35, 0.09);
    border-radius: 0.6rem;
    background: #f8faf8;
}

.cms-template-preset-preview i {
    position: absolute;
    display: block;
    height: 0.3rem;
    border-radius: 999px;
    background: #c8d4cc;
}

.cms-template-preset-preview i:nth-child(1) { top: 0.75rem; left: 0.8rem; width: 24%; background: #315c46; }
.cms-template-preset-preview i:nth-child(2) { top: 0.78rem; right: 0.8rem; width: 34%; }
.cms-template-preset-preview i:nth-child(3) { top: 2.35rem; left: 0.8rem; width: 54%; height: 0.42rem; }
.cms-template-preset-preview i:nth-child(4) { top: 3.25rem; left: 0.8rem; width: 38%; }

.cms-template-preset[data-template-preset-key="header-zentriert"] .cms-template-preset-preview i:nth-child(1) { left: 38%; width: 24%; }
.cms-template-preset[data-template-preset-key="header-zentriert"] .cms-template-preset-preview i:nth-child(2) { top: 1.8rem; right: 27%; width: 46%; }
.cms-template-preset[data-template-preset-key="header-fokus"] .cms-template-preset-preview { background: #183429; }
.cms-template-preset[data-template-preset-key="header-fokus"] .cms-template-preset-preview i:nth-child(1) { background: #f7fbf8; }
.cms-template-preset[data-template-preset-key="header-fokus"] .cms-template-preset-preview i:nth-child(2) { right: 24%; width: 31%; background: #70887d; }
.cms-template-preset[data-template-preset-key="header-fokus"] .cms-template-preset-preview i:nth-child(3) { top: 0.58rem; right: 0.75rem; left: auto; width: 17%; height: 0.72rem; background: #9ef06b; }
.cms-template-preset[data-template-preset-key="header-fokus"] .cms-template-preset-preview i:nth-child(4) { background: #526e61; }
.cms-template-preset[data-template-preset-key^="footer-"] .cms-template-preset-preview i:nth-child(1) { top: 1rem; width: 43%; background: #dce4df; }
.cms-template-preset[data-template-preset-key^="footer-"] .cms-template-preset-preview i:nth-child(2) { top: 2rem; right: auto; left: 0.8rem; width: 29%; }
.cms-template-preset[data-template-preset-key^="footer-"] .cms-template-preset-preview i:nth-child(3) { top: auto; bottom: 0.6rem; width: 22%; height: 0.32rem; background: #315c46; }
.cms-template-preset[data-template-preset-key^="footer-"] .cms-template-preset-preview i:nth-child(4) { top: auto; right: 0.8rem; bottom: 0.6rem; left: auto; width: 34%; }
.cms-template-preset[data-template-preset-key="footer-navigation"] .cms-template-preset-preview { background: #edf4ef; }
.cms-template-preset[data-template-preset-key="footer-navigation"] .cms-template-preset-preview i:nth-child(1) { top: 2.65rem; width: 23%; background: #315c46; }
.cms-template-preset[data-template-preset-key="footer-navigation"] .cms-template-preset-preview i:nth-child(2) { top: 2.68rem; right: 0.8rem; left: auto; width: 42%; }
.cms-template-preset[data-template-preset-key="footer-cta"] .cms-template-preset-preview { background: #183429; }
.cms-template-preset[data-template-preset-key="footer-cta"] .cms-template-preset-preview i:nth-child(1) { top: 1rem; width: 48%; height: 0.62rem; background: #f7fbf8; }
.cms-template-preset[data-template-preset-key="footer-cta"] .cms-template-preset-preview i:nth-child(2) { top: 2rem; width: 32%; background: #f7fbf8; }
.cms-template-preset[data-template-preset-key="footer-cta"] .cms-template-preset-preview i:nth-child(3) { right: 0.8rem; bottom: 1.15rem; left: auto; width: 20%; height: 0.75rem; background: #9ef06b; }
.cms-template-preset[data-template-preset-key="footer-cta"] .cms-template-preset-preview i:nth-child(4) { background: #789084; }

.cms-template-preset-copy {
    display: grid;
    min-width: 0;
    gap: 0.12rem;
}

.cms-template-preset-copy small {
    color: #557263;
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.cms-template-preset-copy strong {
    overflow: hidden;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-template-preset-copy > span {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-template-preset-state {
    align-self: start;
    padding: 0.32rem 0.45rem;
    border-radius: 999px;
    color: #315c46;
    background: #edf5ef;
    font-size: 0.62rem;
    font-weight: 800;
    white-space: nowrap;
}

.cms-menu-layout {
    display: grid;
    grid-template-columns: minmax(16rem, 0.3fr) minmax(0, 1fr);
    gap: 1.25rem;
}

.cms-template-list {
    min-height: 35rem;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: #f6f8f6;
}

.cms-menu-list {
    min-height: 35rem;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: #f6f8f6;
}

.cms-menu-list-item {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
    padding: 0.85rem;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    cursor: pointer;
    color: var(--ink);
    background: transparent;
    text-align: left;
}

.cms-menu-list-item:hover,
.cms-menu-list-item.is-active {
    border-color: var(--line);
    background: var(--white);
}

.cms-menu-list-item span {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
}

.cms-menu-list-item strong,
.cms-menu-list-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-menu-list-item strong { font-size: 0.86rem; }
.cms-menu-list-item small,
.cms-menu-list-item > span:last-child { color: var(--muted); font-size: 0.7rem; }

.cms-menu-placeholder {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    background: #f2f6f3;
}

.cms-menu-placeholder > span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cms-menu-placeholder code {
    overflow: hidden;
    margin-right: auto;
    color: #214f3a;
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-menu-placeholder button {
    padding: 0.4rem 0.55rem;
    border: 1px solid #d9e4dc;
    border-radius: 0.45rem;
    cursor: pointer;
    color: var(--forest-dark);
    background: var(--white);
    font-size: 0.7rem;
    font-weight: 750;
}

.cms-menu-adders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.cms-menu-adders section {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: #fbfcfb;
}

.cms-menu-adders section > strong {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.82rem;
}

.cms-menu-adders .field { margin: 0 0 0.65rem; }

.cms-menu-items-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0 0.75rem;
}

.cms-menu-items-heading > div { display: grid; gap: 0.2rem; }
.cms-menu-items-heading strong { font-size: 0.95rem; }
.cms-menu-items-heading small,
.cms-menu-items-heading > span { color: var(--muted); font-size: 0.7rem; }

.cms-menu-items { display: grid; gap: 0.55rem; }

.cms-menu-item {
    display: grid;
    width: calc(100% - (var(--menu-depth, 0) * 1.15rem));
    grid-template-columns: auto minmax(9rem, 1.05fr) minmax(7rem, 0.75fr) minmax(8rem, 0.85fr) minmax(7rem, 0.65fr) auto;
    align-items: end;
    gap: 0.55rem;
    margin-left: calc(var(--menu-depth, 0) * 1.15rem);
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: #fbfcfb;
}

.cms-menu-item .field { min-width: 0; margin: 0; }
.cms-menu-item input,
.cms-menu-item select { min-height: 2.75rem; padding: 0.55rem 0.65rem; font-size: 0.75rem; }

.cms-menu-item-handle {
    align-self: center;
    color: #90a098;
    font-size: 1rem;
    letter-spacing: -0.15em;
}

.cms-menu-item-destination {
    display: grid;
    min-width: 0;
    align-self: center;
    gap: 0.25rem;
}

.cms-menu-item-destination span {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cms-menu-item-destination strong {
    overflow: hidden;
    font-size: 0.72rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-menu-item-actions {
    display: flex;
    align-self: center;
    gap: 0.25rem;
}

.cms-menu-item-actions button {
    display: grid;
    width: 2rem;
    height: 2rem;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    cursor: pointer;
    color: var(--forest-dark);
    background: var(--white);
    font-weight: 850;
}

.cms-menu-item-actions button:hover { border-color: #9eb4a7; background: #edf4ef; }
.cms-menu-item-actions [data-remove-menu-item] { color: #b42318; }

.cms-template-group-label {
    margin: 1rem 0.7rem 0.45rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.cms-template-group-label:first-child {
    margin-top: 0.45rem;
}

.cms-template-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.5rem;
    align-items: stretch;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.cms-template-item {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    padding: 0.8rem;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    cursor: pointer;
    color: var(--ink);
    background: transparent;
    text-align: left;
}

.cms-template-item:hover,
.cms-template-item.is-active {
    border-color: var(--line);
    background: var(--white);
}

.cms-template-item > span:first-child {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
}

.cms-template-item strong,
.cms-template-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-template-item strong {
    font-size: 0.86rem;
}

.cms-template-item small,
.cms-template-item > span:last-child {
    color: var(--muted);
    font-size: 0.7rem;
}

.cms-template-ae-shortcut {
    display: grid;
    place-items: center;
    min-width: 2.5rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    color: var(--forest-dark);
    background: rgba(158, 240, 107, 0.18);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.cms-template-ae-shortcut:hover,
.cms-template-ae-shortcut:focus-visible {
    border-color: var(--accent);
    background: var(--accent);
    transform: translateY(-1px);
}

.cms-template-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.35rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.56);
}

.cms-template-toolbar p {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.cms-template-help,
.cms-block-shortcuts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    padding: 0.9rem;
    border-radius: 0.8rem;
    background: #f2f6f3;
}

.cms-template-help strong,
.cms-block-shortcuts > span {
    margin-right: 0.3rem;
    color: var(--muted);
    font-size: 0.74rem;
}

.cms-template-help code {
    padding: 0.35rem 0.5rem;
    border: 1px solid #d9e4dc;
    border-radius: 0.4rem;
    color: #214f3a;
    background: var(--white);
    font-size: 0.72rem;
}

.cms-block-shortcuts {
    margin-top: 1.2rem;
    margin-bottom: 0;
}

.cms-field-tools { display: flex; justify-content: flex-end; margin: -0.2rem 0 0.45rem; }
.cms-media-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.55rem; }
.cms-media-field .button { min-height: 3rem; align-self: stretch; }

.cms-page-list {
    min-height: 35rem;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: linear-gradient(180deg, #f3f7f4 0%, #fafcfb 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 34px rgba(20, 55, 39, 0.07);
}

.cms-page-row {
    display: grid;
    width: calc(100% - (var(--page-level) * 1rem));
    grid-template-columns: minmax(0, 1fr) 2.5rem;
    align-items: stretch;
    gap: 0.35rem;
    margin: 0 0 0.35rem calc(var(--page-level) * 1rem);
}

.cms-page-row.has-translations {
    grid-template-columns: minmax(0, 1fr) 2.5rem 2.5rem;
}

.cms-page-item {
    display: grid;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    padding: 0.8rem;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    cursor: pointer;
    color: var(--ink);
    background: transparent;
    text-align: left;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cms-page-item:hover,
.cms-page-item.is-active {
    border-color: #bfd2c5;
    background: var(--white);
    box-shadow: 0 8px 22px rgba(20, 55, 39, 0.09);
    transform: translateY(-1px);
}

.cms-page-item > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
}

.cms-page-item strong,
.cms-page-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-page-item strong {
    font-size: 0.86rem;
}

.cms-page-item small,
.cms-page-status {
    color: var(--muted);
    font-size: 0.7rem;
}

.cms-page-state {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #b7c0bb;
}

.cms-page-state.is-published {
    background: #32a05b;
    box-shadow: 0 0 0 4px rgba(50, 160, 91, 0.1);
}

.cms-page-ae-shortcut,
.cms-page-translation-shortcut {
    display: grid;
    place-items: center;
    min-width: 2.5rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    color: var(--forest-dark);
    background: rgba(158, 240, 107, 0.18);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.cms-page-translation-shortcut {
    color: #315a46;
    background: #edf4ee;
    font-size: 0.9rem;
}

.cms-page-ae-shortcut:hover,
.cms-page-ae-shortcut:focus-visible,
.cms-page-translation-shortcut:hover,
.cms-page-translation-shortcut:focus-visible {
    border-color: var(--accent);
    background: var(--accent);
    transform: translateY(-1px);
}

.cms-page-toolbar {
    display: grid;
    grid-template-columns: auto minmax(10rem, 14rem) minmax(12rem, 1fr);
    align-items: end;
    gap: 0.8rem;
    margin-bottom: 1.4rem;
    padding: 0.85rem;
    border: 1px solid #c6d9cc;
    border-radius: 1rem;
    background: linear-gradient(135deg, #edf6ef 0%, #ffffff 70%);
    box-shadow: 0 12px 28px rgba(20, 55, 39, 0.07);
}

.cms-ae-open { min-height: 3.35rem; }
.cms-ae-open span { font-size: 1.1rem; font-weight: 900; }
.cms-page-visibility { display: grid; gap: 0.35rem; }
.cms-page-visibility > span { color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.cms-page-visibility select { min-height: 3.35rem; }
.cms-autosave-state {
    align-self: center;
    justify-self: end;
    color: #3d6953;
    font-size: 0.75rem;
    font-weight: 750;
    text-align: right;
}
.cms-autosave-state.is-saving { color: #8a6526; }
.cms-autosave-state.is-error { color: #b42318; }

.cms-editor {
    min-width: 0;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: linear-gradient(145deg, #fbfdfb 0%, #f4f8f5 100%);
    box-shadow: 0 18px 44px rgba(20, 55, 39, 0.08);
}

.cms-editor-empty {
    display: grid;
    min-height: 31rem;
    place-items: center;
    align-content: center;
    color: var(--muted);
    text-align: center;
}

.cms-editor-empty > span {
    display: grid;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    place-items: center;
    border-radius: 1.2rem;
    color: var(--forest-dark);
    background: var(--accent);
    font-size: 1.4rem;
}

.cms-editor-empty h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.25rem;
}

.cms-editor-empty p {
    max-width: 25rem;
    line-height: 1.6;
}

.cms-editor-fields .field {
    margin-bottom: 1.2rem;
}

.field-check {
    display: flex;
    min-height: 5rem;
    flex-direction: row;
    align-items: center;
    padding: 1.7rem 0 0;
}

.field-check input {
    width: 1.15rem;
    min-height: auto;
    height: 1.15rem;
}

.cms-code-editor {
    min-height: 19rem;
    color: #dbeee4 !important;
    border-color: #27483a !important;
    background: #10291f !important;
    line-height: 1.6 !important;
    tab-size: 4;
}

.cms-code-editor-small {
    min-height: 10rem;
}

.cms-editor-details {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
}

.cms-editor-details summary {
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 750;
}

.cms-editor-details .form-row {
    margin-top: 1.2rem;
}

.cms-page-editor .cms-editor-fields {
    display: grid;
    gap: 0.85rem;
}

.cms-page-section {
    overflow: hidden;
    margin: 0;
    padding: 0;
    border-color: #d6e1d9;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(20, 55, 39, 0.055);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cms-page-section:hover { border-color: #bdd1c3; }

.cms-page-section[open] {
    border-color: #abc7b5;
    box-shadow: 0 16px 36px rgba(20, 55, 39, 0.09);
}

.cms-page-section > summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.85rem;
    min-height: 4.6rem;
    padding: 0.85rem 1rem;
    list-style: none;
    background: linear-gradient(100deg, rgba(240, 247, 242, 0.95), rgba(255, 255, 255, 0.98));
}

.cms-page-section > summary::-webkit-details-marker { display: none; }

.cms-page-section > summary::after {
    content: '⌄';
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    color: var(--forest-dark);
    background: #e8f1eb;
    font-size: 1rem;
    transition: transform 0.18s ease, background 0.18s ease;
}

.cms-page-section[open] > summary::after {
    background: rgba(158, 240, 107, 0.42);
    transform: rotate(180deg);
}

.cms-section-number {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border: 1px solid #c9dbce;
    border-radius: 0.72rem;
    color: #315a46;
    background: #ffffff;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    box-shadow: 0 5px 12px rgba(20, 55, 39, 0.07);
}

.cms-section-copy {
    display: grid;
    min-width: 0;
    gap: 0.18rem;
}

.cms-section-copy strong {
    color: var(--ink);
    font-size: 0.92rem;
}

.cms-section-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 550;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-section-badge {
    padding: 0.42rem 0.68rem;
    border-radius: 999px;
    color: #315a46;
    background: #e7f3e9;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.cms-page-section-body {
    padding: 1.15rem;
    border-top: 1px solid #e1e8e3;
}

.cms-page-template-panel {
    margin-top: 0.35rem;
    padding: 1rem;
    border: 1px solid #dce6df;
    border-radius: 0.9rem;
    background: #f7faf8;
}

.cms-subsection-heading {
    display: grid;
    gap: 0.18rem;
    margin-bottom: 0.9rem;
}

.cms-subsection-heading strong { font-size: 0.85rem; }
.cms-subsection-heading small { color: var(--muted); font-size: 0.7rem; }

.cms-content-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-bottom: 0.8rem;
}

.cms-seo-fields {
    display: grid;
    gap: 1rem;
    margin-top: 1.2rem;
}

.cms-seo-fields .form-row {
    margin-top: 0;
}

.field small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.45;
}

.cms-seo-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 0.8rem;
    background: #f2f6f3;
}

.cms-serp-preview {
    display: grid;
    gap: 0.35rem;
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: #ffffff;
}

.cms-serp-preview small {
    color: var(--muted);
}

.cms-serp-preview strong {
    overflow: hidden;
    color: #1a0dab;
    font-size: 1.18rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-serp-preview span {
    color: #188038;
    font-size: 0.82rem;
}

.cms-serp-preview p {
    margin: 0;
    color: #4d5156;
    font-size: 0.86rem;
    line-height: 1.45;
}

.cms-editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cms-editor-actions .form-message {
    margin: 0;
}

.cms-editor-actions > div {
    display: flex;
    gap: 0.65rem;
}

.cms-translation-language-controls {
    display: flex;
    align-items: end;
    gap: 0.8rem;
}

.cms-translation-language-controls-inline {
    display: grid;
    grid-template-columns: minmax(10rem, 0.7fr) minmax(16rem, 1.25fr) auto;
    align-items: end;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #ccded1;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, #edf6ef, #fbfdfb);
}

.cms-translation-language-controls-inline > div {
    display: grid;
    gap: 0.35rem;
}

.cms-translation-language-controls-inline > div > span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cms-translation-language-controls-inline > div > strong { font-size: 0.8rem; }

.cms-translation-empty-inline {
    min-height: 12rem;
    border: 1px dashed #c5d6ca;
    border-radius: 0.9rem;
    background: #f8fbf9;
}

.cms-translation-language-controls label,
.cms-translation-toolbar label {
    display: grid;
    gap: 0.35rem;
}

.cms-translation-language-controls label > span,
.cms-translation-toolbar label > span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cms-translation-language-controls select {
    min-width: 17rem;
}

.cms-translation-language-controls strong {
    padding: 0.7rem 0.8rem;
    border-radius: 999px;
    color: #315a46;
    background: #edf4ee;
    font-size: 0.74rem;
    white-space: nowrap;
}

.cms-translation-notice {
    display: grid;
    max-width: 48rem;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    padding: 1.4rem;
    border: 1px solid #cbdccf;
    border-radius: 1rem;
    background: #f5f9f6;
}

.cms-translation-notice > span {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 0.85rem;
    color: var(--forest-dark);
    background: var(--accent);
    font-weight: 900;
}

.cms-translation-notice h3,
.cms-translation-notice p {
    margin: 0 0 0.65rem;
}

.cms-translation-notice p {
    color: var(--muted);
    line-height: 1.55;
}

.cms-translation-toolbar {
    display: grid;
    grid-template-columns: auto auto minmax(9rem, 0.55fr) minmax(12rem, 1fr);
    align-items: end;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: linear-gradient(135deg, #f0f7f2, #ffffff);
    box-shadow: 0 10px 24px rgba(20, 55, 39, 0.06);
}

.cms-translation-toolbar .button,
.cms-translation-toolbar select {
    min-height: 3rem;
}

.cms-translation-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.cms-translation-source,
.cms-translation-target {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    box-shadow: 0 8px 22px rgba(20, 55, 39, 0.045);
}

.cms-translation-source {
    background: #f5f7f5;
}

.cms-translation-target {
    border-color: #b8cfbf;
    background: #fbfdfb;
}

.cms-translation-source > header,
.cms-translation-target > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.cms-translation-source > header span,
.cms-translation-target > header span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cms-translation-source > header strong,
.cms-translation-target > header strong {
    overflow: hidden;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-translation-source .field,
.cms-translation-target .field {
    margin-bottom: 1rem;
}

.cms-translation-source input[readonly],
.cms-translation-source textarea[readonly] {
    color: #53635a;
    background: #edf1ee;
}

.cms-translation-source .cms-code-editor[readonly] {
    color: #bad0c4 !important;
    background: #1a2c24 !important;
}

[data-translation-fields] > .form-message {
    margin: 0.8rem 0 0;
}

.cms-upload {
    display: grid;
    grid-template-columns: minmax(16rem, 0.7fr) minmax(16rem, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: #f8faf8;
}

.cms-folder-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: #f8faf8;
}

.cms-folder-form[hidden] {
    display: none;
}

.cms-folder-actions {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.cms-folder-actions .form-message {
    margin: 0 auto 0 0;
}

.cms-folder-nav {
    display: flex;
    overflow-x: auto;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
}

.cms-folder-nav button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5rem;
    margin-left: calc(var(--folder-level, 0) * 0.7rem);
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    color: var(--ink);
    background: var(--white);
    cursor: pointer;
}

.cms-folder-nav button::before {
    content: "▰";
    color: #9aa79f;
}

.cms-folder-nav button.is-active {
    color: var(--white);
    border-color: var(--forest);
    background: var(--forest);
}

.cms-folder-nav button span,
.cms-folder-nav button small {
    white-space: nowrap;
}

.cms-upload .form-actions {
    grid-column: 1 / -1;
}

.cms-dropzone {
    display: grid;
    min-height: 9rem;
    place-items: center;
    align-content: center;
    border: 1px dashed #9eada5;
    border-radius: 0.8rem;
    cursor: pointer;
    text-align: center;
}

.cms-dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cms-dropzone small {
    margin-top: 0.3rem;
    color: var(--muted);
}

.cms-upload-icon {
    margin-bottom: 0.4rem;
    font-size: 1.8rem;
}

.cms-media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.cms-media-item {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: #f8faf8;
}

.cms-media-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e9eeeb;
}

.cms-media-item > div {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem;
}

.cms-media-item strong,
.cms-media-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-media-item strong {
    font-size: 0.82rem;
}

.cms-media-item small {
    color: var(--muted);
    font-size: 0.68rem;
}

.cms-media-item button {
    justify-self: start;
    padding: 0;
    border: 0;
    cursor: pointer;
    color: #35664d;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 750;
}

.cms-media-item select {
    width: 100%;
    min-height: 2.35rem;
    padding: 0.4rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 0.55rem;
    background: var(--white);
    font-size: 0.72rem;
}

.cms-settings-form {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 1.5rem;
}

.cms-settings-nav {
    display: grid;
    align-content: start;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 0.8rem;
    background: #edf2ef;
}

.cms-settings-nav button {
    text-align: left;
}

.cms-settings-nav button span {
    float: right;
    margin-left: 0.45rem;
    padding: 0.12rem 0.35rem;
    border-radius: 999px;
    color: #225333;
    background: var(--accent);
    font-size: 0.62rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cms-settings-panel {
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
}

.cms-google-import {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.25rem;
    padding: 1.2rem;
    border: 1px solid #c7d9ce;
    border-radius: 1rem;
    background:
        radial-gradient(circle at 100% 0, rgba(158, 240, 107, 0.22), transparent 15rem),
        linear-gradient(145deg, #f8fcf9, #edf6f0);
}

.cms-google-import-heading,
.cms-google-import-preview-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cms-google-import-heading h3,
.cms-google-import-heading p,
.cms-google-import-preview-heading h4,
.cms-google-import-preview-heading p {
    margin: 0;
}

.cms-google-import-heading > div > p:last-child {
    max-width: 44rem;
    margin-top: 0.3rem;
    color: #526159;
}

.cms-google-import-heading > span {
    flex: 0 0 auto;
    padding: 0.35rem 0.62rem;
    border: 1px solid #bbd1c1;
    border-radius: 999px;
    color: #225333;
    background: rgba(255, 255, 255, 0.78);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cms-google-import-control {
    min-height: 3rem;
    margin-top: 1rem;
}

.cms-google-import-control gmp-place-autocomplete,
.cms-google-import-input {
    width: 100%;
    min-height: 3rem;
}

.cms-google-import-input {
    padding: 0.75rem 0.9rem;
    border: 1px solid #aebfb4;
    border-radius: 0.75rem;
    background: #fff;
    font: inherit;
}

.cms-google-import-message {
    margin: 0.7rem 0 0;
    color: #536159;
    font-size: 0.82rem;
}

.cms-google-import-message.is-error {
    color: #9b2828;
}

.cms-google-import-message.is-success {
    color: #176b3a;
    font-weight: 700;
}

.cms-google-import-preview {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #d3dfd7;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0.75rem 2rem rgba(31, 72, 47, 0.08);
}

.cms-google-import-preview-heading a {
    color: #25653e;
    font-size: 0.78rem;
    font-weight: 750;
}

.cms-google-import-preview dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 1rem 0;
}

.cms-google-import-preview dl > div {
    min-width: 0;
    padding: 0.7rem;
    border-radius: 0.65rem;
    background: #f3f7f4;
}

.cms-google-import-preview dt {
    color: #607068;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cms-google-import-preview dd {
    overflow-wrap: anywhere;
    margin: 0.22rem 0 0;
    font-size: 0.84rem;
}

.cms-google-import-preview > p {
    color: #536159;
    font-size: 0.8rem;
}

.cms-google-import-preview .cms-google-import-attributions {
    color: #5f6d65;
    font-size: 0.72rem;
}

.cms-google-import-attributions::before {
    content: "Weitere Datenquelle: ";
    font-weight: 750;
}

.cms-google-import-preview .form-actions {
    justify-content: flex-end;
}

.cms-google-import-actions {
    flex-wrap: wrap;
}

.cms-location-manager {
    margin: 1.25rem 0;
    padding: 1.15rem;
    border: 1px solid #d7dfda;
    border-radius: 1rem;
    background: #fafcfb;
}

.cms-location-manager > header,
.cms-location-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cms-location-manager h3,
.cms-location-manager p,
.cms-location-card h4 {
    margin: 0;
}

.cms-location-manager > header p:last-child {
    max-width: 46rem;
    margin-top: 0.25rem;
    color: #596860;
    font-size: 0.84rem;
}

.cms-location-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.cms-location-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid #d7e1da;
    border-radius: 0.8rem;
    background: #fff;
}

.cms-location-card-heading > div:first-child {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cms-location-card-heading span {
    padding: 0.22rem 0.45rem;
    border-radius: 999px;
    color: #205433;
    background: var(--accent);
    font-size: 0.62rem;
    font-weight: 850;
    text-transform: uppercase;
}

.cms-location-card-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.4rem;
}

.cms-location-card > p {
    margin-top: 0.7rem;
    color: #405047;
    font-size: 0.84rem;
}

.cms-location-card > small {
    display: block;
    overflow-wrap: anywhere;
    margin-top: 0.4rem;
    color: #6a756f;
}

.cms-location-dialog {
    width: min(calc(100% - 2rem), 52rem);
}

.cms-location-dialog .cms-dialog-card {
    max-height: min(90vh, 58rem);
    overflow-y: auto;
}

.cms-settings-accordion {
    margin-bottom: 0.8rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
}

.cms-settings-accordion summary {
    cursor: pointer;
    font-weight: 800;
}

.cms-opening-hours {
    display: grid;
    gap: 0.6rem;
    margin-top: 1rem;
}

.cms-opening-hours > div {
    display: grid;
    grid-template-columns: minmax(9rem, 1fr) 8rem auto 8rem;
    align-items: center;
    gap: 0.65rem;
}

.cms-opening-hours input[type="time"] {
    min-height: 2.7rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 0.6rem;
}

.cms-color-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.cms-color-field {
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    color: #3f4e46;
    font-size: 0.84rem;
    font-weight: 750;
}

.cms-color-field > span:last-child {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cms-color-field input {
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    cursor: pointer;
    background: transparent;
}

.cms-color-field output {
    color: var(--muted);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.8rem;
}

.cms-custom-colors-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.cms-custom-colors-heading h3,
.cms-custom-colors-heading p { margin: 0; }
.cms-custom-colors-heading p { margin-top: 0.35rem; color: var(--muted); font-size: 0.78rem; }
.cms-custom-colors-heading code { color: #285c43; }
.cms-custom-colors { display: grid; gap: 0.75rem; margin-top: 1rem; }

.cms-custom-color {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) minmax(10rem, 1fr) minmax(10rem, 0.7fr) auto;
    align-items: end;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: #f8faf8;
}

.cms-custom-color .field,
.cms-custom-color .cms-color-field { margin: 0; }

.cms-remove-color {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.25rem;
    place-items: center;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #a13027;
    background: #fde9e5;
    font-size: 1.25rem;
}

.cms-settings-actions {
    grid-column: 2;
}

.cms-global-styles-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.cms-global-styles-heading h3,
.cms-global-styles-heading p { margin: 0; }
.cms-global-styles-heading p { margin-top: 0.3rem; color: var(--muted); font-size: 0.76rem; }
.cms-global-styles { display: grid; gap: 0.75rem; }
.cms-global-style {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: #f8faf8;
}
.cms-global-style summary {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
    list-style-position: inside;
}
.cms-global-style summary strong { margin-right: auto; }
.cms-global-style summary code { color: #285c43; font-size: 0.72rem; }
.cms-global-style-body { display: grid; gap: 1rem; padding: 1rem; border-top: 1px solid var(--line); }
.cms-global-style-states { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.cms-global-style-states label:first-child { grid-column: 1 / -1; }
.cms-global-style-states textarea { min-height: 8rem; }
.cms-global-style .button-danger { justify-self: end; color: #8d2a23; border-color: #efc7c2; background: #fff4f2; }
.cms-custom-css { margin-top: 1.25rem; background: #fff; }
.cms-custom-css > div { padding-top: 1rem; }

/* AlexEditor */
.ae-dialog {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    color: #eaf4ed;
    background: #102a20;
}

.ae-dialog::backdrop { background: rgba(4, 18, 12, 0.82); }

.ae-app {
    --ae-panel: #0b2c20;
    --ae-panel-light: #123b2c;
    --ae-line: rgba(226, 243, 232, 0.13);
    --ae-accent: #a9f278;
    display: grid;
    grid-template: 4rem minmax(0, 1fr) / minmax(0, 1fr);
    width: 100%;
    height: 100vh;
    overflow: hidden;
    color: #eaf4ed;
    background: #dfe7e2;
    font-size: 0.88rem;
}

.ae-app button,
.ae-app input,
.ae-app select,
.ae-app textarea { font: inherit; }

.ae-icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.ae-icon {
    width: 1.08rem;
    height: 1.08rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    flex: 0 0 auto;
}

.ae-topbar {
    z-index: 30;
    grid-area: 1 / 1 / 2 / -1;
    display: grid;
    grid-template-columns: auto minmax(10rem, 18rem) auto auto auto minmax(12rem, 1fr);
    align-items: center;
    gap: 0.55rem;
    padding: 0 0.75rem;
    border-bottom: 1px solid var(--ae-line);
    background: #08271b;
    box-shadow: 0 0.5rem 2rem rgba(5, 31, 20, 0.18);
}

.ae-brand,
.ae-brand div,
.ae-top-actions,
.ae-history,
.ae-devices { display: flex; align-items: center; }

.ae-brand { gap: 0.7rem; }
.ae-brand > span {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 0.65rem;
    color: #09291c;
    background: var(--ae-accent);
    font-size: 1.35rem;
    font-weight: 900;
}
.ae-brand div { align-items: flex-start; flex-direction: column; line-height: 1.15; }
.ae-brand strong { font-size: 0.96rem; }
.ae-brand small { max-width: 16rem; overflow: hidden; color: #9fb4a8; text-overflow: ellipsis; white-space: nowrap; }

.ae-page-switcher {
    display: flex;
    min-width: 0;
    height: 2.55rem;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.72rem;
    border: 1px solid var(--ae-line);
    border-radius: 0.72rem;
    color: var(--ae-accent);
    background: rgba(255, 255, 255, 0.045);
}
.ae-page-switcher[hidden] { display: none; }
.ae-page-switcher select {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    color: #eef8f1;
    background: transparent;
    font-size: 0.76rem;
    font-weight: 760;
    text-overflow: ellipsis;
}
.ae-page-switcher select:disabled { opacity: 0.55; }
.ae-page-switcher option { color: #10271d; background: #fff; }

.ae-panel-controls {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.25rem;
    border: 1px solid var(--ae-line);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.045);
}

.ae-history,
.ae-devices {
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--ae-line);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.045);
}

.ae-topbar button,
.ae-element-toolbar button,
.ae-insert-menu button,
.ae-input-action button {
    min-height: 2rem;
    padding: 0.35rem 0.65rem;
    border: 0;
    border-radius: 0.52rem;
    cursor: pointer;
    color: #dcebe1;
    background: transparent;
}

.ae-topbar button { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; }
.ae-history button,
.ae-devices button,
.ae-top-close { width: 2.15rem; padding-inline: 0; }

.ae-topbar button:hover,
.ae-topbar button:focus-visible,
.ae-topbar button.is-active { color: #09291c; background: var(--ae-accent); }
.ae-topbar button:disabled { cursor: default; opacity: 0.3; }
.ae-topbar .button-primary { color: #09291c; background: var(--ae-accent); }

.ae-top-actions { min-width: 0; justify-content: flex-end; gap: 0.35rem; }
.ae-top-actions > span { margin-right: 0.4rem; color: #a8bdb0; font-size: 0.76rem; font-weight: 800; }
.ae-top-actions > span.is-dirty { color: #ffb875; }

.ae-library,
.ae-inspector {
    position: fixed;
    z-index: 42;
    top: 5rem;
    bottom: auto;
    display: flex;
    height: calc(100vh - 6rem);
    height: calc(100dvh - 6rem);
    max-height: calc(100vh - 6rem);
    max-height: calc(100dvh - 6rem);
    width: min(19rem, calc(100vw - 2rem));
    min-width: 15rem;
    max-width: min(34rem, calc(100vw - 2rem));
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(226, 243, 232, 0.17);
    border-radius: 0.9rem;
    scrollbar-color: #49695a transparent;
    background: linear-gradient(155deg, rgba(18, 59, 44, 0.98), rgba(7, 38, 27, 0.99) 42%, rgba(5, 31, 22, 0.99));
    box-shadow: 0 1.1rem 3.4rem rgba(3, 27, 17, 0.32);
    flex-direction: column;
    resize: horizontal;
}

.ae-library { left: 1rem; }
.ae-inspector { right: 1rem; }
.ae-floating-panel.is-front { z-index: 50; }
.ae-floating-panel.is-dragging { z-index: 51; user-select: none; box-shadow: 0 1.5rem 4.5rem rgba(3, 27, 17, 0.45); }
.ae-floating-panel[hidden] { display: none !important; }

.ae-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3.65rem;
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid var(--ae-line);
    cursor: move;
    touch-action: none;
    user-select: none;
    flex: 0 0 auto;
}
.ae-panel-heading > div { display: grid; min-width: 0; gap: 0.12rem; }
.ae-panel-heading strong { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; }
.ae-panel-heading small { overflow: hidden; color: #91aa9b; text-overflow: ellipsis; white-space: nowrap; }
.ae-panel-close { display: grid; flex: 0 0 auto; width: 2rem; height: 2rem; padding: 0; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: #dcebe1; background: rgba(255, 255, 255, 0.08); font-size: 1.25rem; }
.ae-panel-close:hover { color: #09291c; background: var(--ae-accent); }

.ae-panel-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
    padding: 0.65rem 0.85rem 0;
    flex: 0 0 auto;
}
.ae-panel-tabs button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    padding: 0.6rem;
    border: 0;
    border-radius: 0.55rem;
    cursor: pointer;
    color: #9eb3a7;
    background: rgba(255, 255, 255, 0.045);
    font-weight: 800;
}
.ae-panel-tabs button:hover,
.ae-panel-tabs button.is-active { color: #09291c; background: var(--ae-accent); }

.ae-library > [data-ae-left-panel],
.ae-inspector-empty,
.ae-inspector-fields {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
}

.ae-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.85rem;
    padding: 0 0.7rem;
    border: 1px solid var(--ae-line);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.055);
}
.ae-search .ae-icon { color: #91aa9b; }
.ae-search input { width: 100%; padding: 0.7rem 0; border: 0; outline: 0; color: #fff; background: transparent; }
.ae-search input::placeholder { color: #7e9889; }

.ae-element-list { padding: 0 0.85rem 3rem; }
.ae-element-list section { margin: 0 0 1.25rem; }
.ae-element-list h3 { margin: 0 0 0.55rem; color: #90a99a; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }
.ae-element-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
.ae-element-grid button {
    display: flex;
    min-width: 0;
    min-height: 3.9rem;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 0.35rem;
    border: 1px solid var(--ae-line);
    border-radius: 0.7rem;
    cursor: grab;
    color: #dcebe1;
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.72rem;
    font-weight: 750;
    text-align: center;
    flex-direction: column;
}
.ae-element-grid button .ae-icon { width: 1.25rem; height: 1.25rem; color: var(--ae-accent); }
.ae-element-grid button:hover,
.ae-element-grid button:focus-visible { border-color: rgba(169, 242, 120, 0.6); color: #fff; background: var(--ae-panel-light); }

.ae-workspace {
    position: relative;
    grid-area: 2 / 1 / 3 / 2;
    min-width: 0;
    overflow: auto;
    padding: 2rem 2rem 5rem;
    background-color: #dfe7e2;
    background-image: radial-gradient(rgba(24, 78, 53, 0.16) 0.7px, transparent 0.7px);
    background-size: 17px 17px;
}

.ae-breadcrumb {
    position: fixed;
    z-index: 40;
    right: 0.8rem;
    bottom: 0.75rem;
    left: 0.8rem;
    display: flex;
    min-width: 0;
    height: 2.75rem;
    align-items: center;
    gap: 0.15rem;
    overflow-x: auto;
    padding: 0.35rem 0.45rem;
    border: 1px solid rgba(225, 244, 232, 0.18);
    border-radius: 0.75rem;
    color: #aac0b3;
    background: rgba(7, 37, 26, 0.96);
    box-shadow: 0 0.8rem 2.4rem rgba(3, 27, 17, 0.28);
    backdrop-filter: blur(16px);
    scrollbar-width: none;
}
.ae-breadcrumb::-webkit-scrollbar { display: none; }

.ae-copilot-toggle {
    position: fixed;
    z-index: 58;
    right: 1.1rem;
    bottom: 4.55rem;
    display: flex;
    min-width: 4rem;
    height: 3.35rem;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 1rem;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 999px;
    cursor: pointer;
    color: #08271b;
    background: var(--ae-accent);
    box-shadow: 0 1rem 2.8rem rgba(3,27,17,.36);
}
.ae-copilot-toggle:hover,
.ae-copilot-toggle:focus-visible { transform: translateY(-2px); box-shadow: 0 1.2rem 3.2rem rgba(3,27,17,.44); }
.ae-copilot-toggle span { font-size: 1.2rem; }
.ae-copilot-toggle[hidden] { display: none; }

.ae-copilot-panel {
    position: fixed;
    z-index: 59;
    right: 1rem;
    bottom: 4.45rem;
    display: flex;
    width: min(25rem, calc(100vw - 2rem));
    max-height: calc(100vh - 9.5rem);
    max-height: calc(100dvh - 9.5rem);
    overflow: hidden;
    border: 1px solid rgba(226,243,232,.2);
    border-radius: 1rem;
    color: #eaf4ed;
    background: linear-gradient(155deg, rgba(18,59,44,.99), rgba(5,31,22,.995));
    box-shadow: 0 1.5rem 4.5rem rgba(3,27,17,.46);
    flex-direction: column;
}
.ae-copilot-panel[hidden] { display: none; }
.ae-copilot-heading { display:flex; align-items:center; justify-content:space-between; gap:.8rem; padding:.9rem 1rem; border-bottom:1px solid var(--ae-line); }
.ae-copilot-heading > div { display:flex; align-items:center; gap:.7rem; }
.ae-copilot-heading > div > span { display:grid; width:2.2rem; height:2.2rem; place-items:center; border-radius:.65rem; color:#08271b; background:var(--ae-accent); font-size:1.15rem; }
.ae-copilot-heading div div { display:grid; gap:.08rem; }
.ae-copilot-heading small { color:#9fb4a8; }
.ae-copilot-heading > button { display:grid; width:2rem; height:2rem; padding:0; place-items:center; border:0; border-radius:50%; cursor:pointer; color:#dcebe1; background:rgba(255,255,255,.08); font-size:1.25rem; }
.ae-copilot-body { min-height:0; overflow:auto; padding:1rem; }
.ae-copilot-context { margin:0 0 .65rem; color:#c4d7cc; font-size:.78rem; font-weight:750; }
.ae-copilot-scope { display:grid; grid-template-columns:1fr 1fr; gap:.35rem; margin-bottom:.85rem; padding:.28rem; border:1px solid var(--ae-line); border-radius:.7rem; background:rgba(255,255,255,.04); }
.ae-copilot-scope button { min-height:2.2rem; border:0; border-radius:.5rem; cursor:pointer; color:#afc4b8; background:transparent; font-weight:760; }
.ae-copilot-scope button.is-active { color:#08271b; background:var(--ae-accent); }
.ae-copilot-scope button:disabled { cursor:not-allowed; opacity:.38; }
.ae-copilot-actions { display:flex; gap:.4rem; overflow-x:auto; padding:0 0 .75rem; scrollbar-width:none; }
.ae-copilot-actions::-webkit-scrollbar { display:none; }
.ae-copilot-actions button { flex:0 0 auto; min-height:2.1rem; padding:.38rem .66rem; border:1px solid var(--ae-line); border-radius:999px; cursor:pointer; color:#dcebe1; background:rgba(255,255,255,.055); font-size:.74rem; font-weight:720; }
.ae-copilot-actions button:hover { border-color:rgba(169,242,120,.6); color:#fff; }
.ae-copilot-actions button:disabled { cursor:wait; opacity:.45; }
.ae-copilot-form { display:grid; gap:.55rem; }
.ae-copilot-form label { color:#c8dbd0; font-size:.78rem; font-weight:780; }
.ae-copilot-form textarea { width:100%; resize:vertical; padding:.7rem .75rem; border:1px solid var(--ae-line); border-radius:.7rem; outline:0; color:#fff; background:rgba(255,255,255,.06); line-height:1.45; }
.ae-copilot-form textarea:focus { border-color:var(--ae-accent); box-shadow:0 0 0 3px rgba(169,242,120,.12); }
.ae-copilot-form .button { justify-content:center; color:#08271b; background:var(--ae-accent); }
.ae-copilot-media { width:100%; margin-top:.55rem; padding:.62rem; border:1px dashed rgba(169,242,120,.38); border-radius:.7rem; cursor:pointer; color:#cce8d8; background:transparent; }
.ae-copilot-status { min-height:1.2rem; margin:.7rem 0 0; color:#a9c0b3; font-size:.75rem; line-height:1.45; }
.ae-copilot-status.is-error { color:#ffbd9d; }
.ae-copilot-result { display:grid; gap:.65rem; margin-top:.8rem; padding-top:.8rem; border-top:1px solid var(--ae-line); }
.ae-copilot-result > div:first-child { display:grid; gap:.15rem; }
.ae-copilot-result small { color:#a9c0b3; line-height:1.4; }
.ae-copilot-result iframe { width:100%; height:13rem; border:1px solid var(--ae-line); border-radius:.7rem; background:#fff; }
.ae-copilot-result-actions { display:flex; justify-content:flex-end; gap:.45rem; }
.ae-copilot-result-actions button { min-height:2.25rem; padding:.45rem .72rem; border:1px solid var(--ae-line); border-radius:.6rem; cursor:pointer; color:#dcebe1; background:rgba(255,255,255,.06); }
.ae-copilot-result-actions .button-primary { border-color:transparent; color:#08271b; background:var(--ae-accent); }
.ae-breadcrumb button {
    flex: 0 0 auto;
    max-width: 12rem;
    min-height: 2rem;
    padding: 0.35rem 0.58rem;
    overflow: hidden;
    border: 0;
    border-radius: 0.45rem;
    cursor: pointer;
    color: #bed0c5;
    background: transparent;
    font-size: 0.68rem;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ae-breadcrumb button:hover,
.ae-breadcrumb button:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.08); }
.ae-breadcrumb button[aria-current="page"] { color: #09291c; background: var(--ae-accent); }
.ae-breadcrumb-separator { flex: 0 0 auto; color: #617e6e; font-size: 0.9rem; }

.ae-canvas-shell {
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 8rem);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(7, 43, 28, 0.14);
    border-radius: 0.65rem;
    background: #fff;
    box-shadow: 0 1.2rem 3.5rem rgba(6, 44, 27, 0.18);
    transition: width 0.25s ease;
}
.ae-canvas-shell[data-ae-device-shell="tablet"] { width: min(100%, 48rem); }
.ae-canvas-shell[data-ae-device-shell="mobile"] { width: min(100%, 24.4rem); }
.ae-canvas-shell iframe { display: block; width: 100%; min-height: calc(100vh - 8rem); border: 0; background: #fff; }

.ae-element-toolbar {
    position: absolute;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.12rem;
    max-width: calc(100% - 2rem);
    padding: 0.22rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.55rem;
    color: #fff;
    background: #09291c;
    box-shadow: 0 0.5rem 1.5rem rgba(5, 31, 20, 0.28);
    transform: translateX(-50%);
}
.ae-element-toolbar > span { max-width: 7rem; padding: 0 0.55rem; overflow: hidden; color: var(--ae-accent); font-size: 0.7rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.ae-element-toolbar button { min-width: 1.9rem; padding: 0.25rem; }
.ae-element-toolbar button:hover { color: #09291c; background: var(--ae-accent); }
.ae-element-toolbar button:last-child:hover { color: #fff; background: #a83b32; }

.ae-insert-menu {
    position: absolute;
    z-index: 25;
    top: 1rem;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem;
    border-radius: 0.7rem;
    color: #fff;
    background: #09291c;
    box-shadow: 0 0.8rem 2rem rgba(5, 31, 20, 0.25);
    transform: translateX(-50%);
}
.ae-insert-menu strong { padding: 0 0.5rem; font-size: 0.72rem; }
.ae-insert-menu button { background: rgba(255, 255, 255, 0.08); }
.ae-insert-menu button:hover { color: #09291c; background: var(--ae-accent); }

.ae-inspector-empty { display: grid; min-height: 16rem; place-items: center; align-content: center; padding: 2rem; color: #89a294; text-align: center; }
.ae-inspector-empty span { color: var(--ae-accent); font-size: 2.2rem; }
.ae-inspector-empty p { max-width: 12rem; margin: 0.5rem 0; }
.ae-inspector-fields { display: grid; gap: 1rem; padding: 1rem 1rem 3rem; }
.ae-inspector-fields > label,
.ae-inspector-fields > div > label,
.ae-inspector fieldset label { display: grid; gap: 0.38rem; min-width: 0; }
.ae-inspector-fields label > span,
.ae-inspector legend { color: #9eb3a7; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.ae-inspector input,
.ae-inspector select,
.ae-inspector textarea {
    width: 100%;
    min-width: 0;
    padding: 0.66rem 0.7rem;
    border: 1px solid var(--ae-line);
    border-radius: 0.58rem;
    outline: 0;
    color: #f4faf6;
    background: rgba(255, 255, 255, 0.055);
}
.ae-inspector input:focus,
.ae-inspector select:focus,
.ae-inspector textarea:focus { border-color: var(--ae-accent); box-shadow: 0 0 0 3px rgba(169, 242, 120, 0.11); }
.ae-inspector select option { color: #13251c; background: #fff; }
.ae-inspector fieldset { display: grid; gap: 0.75rem; margin: 0; padding: 0.9rem; border: 1px solid var(--ae-line); border-radius: 0.7rem; }
.ae-inspector legend { padding: 0 0.35rem; }
.ae-input-action { display: flex; gap: 0.4rem; }
.ae-input-action input { flex: 1; }
.ae-input-action button { flex: 0 0 auto; color: #09291c; background: var(--ae-accent); font-size: 0.72rem; font-weight: 800; }
.ae-source-toggle { padding: 0.65rem; border: 1px solid var(--ae-line); border-radius: 0.58rem; cursor: pointer; color: #dcebe1; background: transparent; }
.ae-source-toggle:hover { border-color: var(--ae-accent); color: var(--ae-accent); }
.ae-source { min-height: 10rem; resize: vertical; font-family: "SFMono-Regular", Consolas, monospace !important; font-size: 0.72rem !important; line-height: 1.55; }

.ae-component-settings {
    display: grid;
    gap: 0.6rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--ae-line);
}
.ae-component-group {
    overflow: clip;
    border: 1px solid var(--ae-line);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.025);
}
.ae-component-group > summary {
    display: grid;
    gap: 0.16rem;
    padding: 0.78rem 0.85rem;
    cursor: pointer;
    list-style: none;
}
.ae-component-group > summary::-webkit-details-marker { display: none; }
.ae-component-group > summary::after {
    content: "+";
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    color: var(--ae-accent);
    font-size: 1.1rem;
}
.ae-component-group[open] > summary::after { content: "−"; }
.ae-component-group > summary strong { font-size: 0.84rem; }
.ae-component-group > summary small { color: #89a294; font-size: 0.64rem; line-height: 1.4; }
.ae-component-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.68rem;
    padding: 0 0.75rem 0.8rem;
}
.ae-component-fields label {
    display: grid;
    gap: 0.32rem;
    min-width: 0;
}
.ae-component-fields label > span {
    color: #9eb3a7;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ae-style-editor {
    display: grid;
    gap: 0.75rem;
    margin: 0 -0.15rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--ae-line);
}
.ae-style-heading { display: grid; gap: 0.7rem; padding: 0.65rem 0.15rem 0; }
.ae-style-heading > div { display: grid; gap: 0.16rem; }
.ae-style-heading strong { font-size: 0.95rem; }
.ae-style-heading small { color: var(--ae-accent); font-size: 0.67rem; font-weight: 800; }
.ae-style-origin-legend { display: flex !important; grid-template-columns: none !important; flex-wrap: wrap; gap: 0.7rem !important; }
.ae-style-origin-legend span { display: inline-flex; align-items: center; gap: 0.3rem; color: #8fa99a; font-size: 0.57rem; font-weight: 760; }
.ae-style-origin-legend i { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: #f0aa32; }
.ae-style-origin-legend span:last-child i { background: #4c9cff; }
.ae-style-heading button {
    max-width: 8rem;
    padding: 0.38rem 0.5rem;
    border: 1px solid var(--ae-line);
    border-radius: 0.45rem;
    cursor: pointer;
    color: #9eb3a7;
    background: transparent;
    font-size: 0.58rem;
    line-height: 1.3;
}
.ae-style-heading button:hover { border-color: #d66d60; color: #ffb2a8; }
.ae-style-actions { display: flex !important; flex-wrap: wrap; gap: 0.35rem !important; }
.ae-style-actions button { max-width: none; flex: 1 1 7rem; }
.ae-style-actions button:disabled { cursor: default; opacity: 0.35; }

.ae-state-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0.28rem;
    padding: 0.15rem 0.1rem 0.4rem;
    scrollbar-width: thin;
}
.ae-state-tabs button {
    position: relative;
    flex: 0 0 auto;
    padding: 0.47rem 0.58rem;
    border: 1px solid var(--ae-line);
    border-radius: 99rem;
    cursor: pointer;
    color: #a6baae;
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.66rem;
    font-weight: 760;
}
.ae-state-tabs button.has-global-values::after,
.ae-state-tabs button.has-local-values::after {
    content: "";
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    width: 0.36rem;
    height: 0.36rem;
    border: 1px solid #08271b;
    border-radius: 50%;
    background: #f0aa32;
    box-shadow: 0 0 0 2px rgba(240, 170, 50, 0.13);
}
.ae-state-tabs button.has-local-values::after { background: #4c9cff; box-shadow: 0 0 0 2px rgba(76, 156, 255, 0.16); }
.ae-state-tabs button.has-global-values.has-local-values::after { border-color: #4c9cff; background: #f0aa32; box-shadow: 0 0 0 2px #4c9cff; }
.ae-state-tabs button.is-active.has-local-values::after { border-color: #4c9cff; }
.ae-state-tabs button:hover,
.ae-state-tabs button.is-active { border-color: var(--ae-accent); color: #09291c; background: var(--ae-accent); }

.ae-style-search { position: relative; display: grid; gap: 0.3rem; }
.ae-style-search > span { color: #92aa9c; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.035em; text-transform: uppercase; }
.ae-style-search input {
    width: 100%;
    padding: 0.68rem 2.2rem 0.68rem 0.75rem;
    border: 1px solid var(--ae-line);
    border-radius: 0.6rem;
    color: #d8e8de;
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.72rem;
}
.ae-style-search input:focus { border-color: var(--ae-accent); outline: 2px solid rgba(135, 214, 166, 0.14); }
.ae-style-search input::placeholder { color: #668273; }
.ae-style-search-empty { margin: 0; padding: 0.8rem; border: 1px dashed var(--ae-line); border-radius: 0.6rem; color: #92aa9c; font-size: 0.7rem; text-align: center; }
.ae-style-search-empty[hidden],
.ae-style-group[hidden],
.ae-style-field[hidden],
.ae-spacing-section[hidden],
.ae-style-custom[hidden] { display: none; }

.ae-style-groups { display: grid; gap: 0.45rem; }
.ae-style-group {
    overflow: hidden;
    border: 1px solid var(--ae-line);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.025);
}
.ae-style-group summary {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem 0.8rem;
    cursor: pointer;
    color: #d8e8de;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.025em;
    list-style: none;
    user-select: none;
}
.ae-style-group summary::-webkit-details-marker { display: none; }
.ae-style-group summary::before {
    content: "+";
    display: grid;
    width: 1.35rem;
    height: 1.35rem;
    place-items: center;
    border-radius: 0.4rem;
    color: #89a695;
    background: rgba(255, 255, 255, 0.055);
    font-size: 0.78rem;
}
.ae-style-group[open] summary::before { content: "−"; color: #09291c; background: var(--ae-accent); }
.ae-style-group.has-global-values summary::after,
.ae-style-group.has-local-values summary::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    margin-left: auto;
    border-radius: 50%;
    background: #f0aa32;
    box-shadow: 0 0 0 3px rgba(240, 170, 50, 0.12);
}
.ae-style-group.has-local-values summary::after { background: #4c9cff; box-shadow: 0 0 0 3px rgba(76, 156, 255, 0.14); }
.ae-style-group.has-global-values.has-local-values summary::after { background: #f0aa32; box-shadow: 0 0 0 3px #4c9cff; }
.ae-style-group[open] summary { border-bottom: 1px solid var(--ae-line); color: var(--ae-accent); background: rgba(255, 255, 255, 0.035); }
.ae-style-grid,
.ae-style-quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; padding: 0.75rem; }
.ae-style-field { position: relative; display: grid; min-width: 0; gap: 0.28rem; }
.ae-style-field.has-global-value::after,
.ae-style-field.has-local-value::after {
    content: "";
    position: absolute;
    top: 0.08rem;
    right: 0.08rem;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: #f0aa32;
}
.ae-style-field.has-local-value::after { background: #4c9cff; }
.ae-style-field > span,
.ae-style-custom label > span { color: #92aa9c; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.035em; text-transform: uppercase; }
.ae-style-field input,
.ae-style-field select { padding: 0.56rem 0.58rem; font-size: 0.7rem; }
.ae-style-field input::placeholder { color: #668273; }
.ae-style-value { display: grid; grid-template-columns: minmax(0, 1fr) 4.4rem; gap: 0.28rem; }
.ae-style-value select { padding-inline: 0.35rem; }
.ae-style-media-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem; }
.ae-style-media-field button { padding: 0.45rem; border: 0; border-radius: 0.45rem; cursor: pointer; color: #09291c; background: var(--ae-accent); font-size: 0.62rem; font-weight: 850; }
.ae-color-control { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) 2rem; gap: 0.28rem; }
.ae-color-control input[type="color"] {
    width: 2.5rem;
    min-height: 2.15rem;
    padding: 0.18rem;
    border-radius: 0.5rem;
    cursor: pointer;
}
.ae-color-control input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.ae-color-control input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 0.3rem; }
.ae-color-control button {
    padding: 0;
    border: 1px solid var(--ae-line);
    border-radius: 0.45rem;
    cursor: pointer;
    color: #9eb3a7;
    background: rgba(255, 255, 255, 0.035);
}
.ae-color-control button:hover { border-color: #ff9f93; color: #ffb2a8; }

.ae-spacing-editor { display: grid; gap: 0.65rem; padding: 0.7rem; }
.ae-spacing-section {
    overflow: hidden;
    border: 1px solid rgba(221, 241, 228, 0.12);
    border-radius: 0.62rem;
    background: rgba(255, 255, 255, 0.028);
}
.ae-spacing-heading {
    display: flex;
    min-height: 2.35rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0.55rem;
    border-bottom: 1px solid rgba(221, 241, 228, 0.1);
}
.ae-spacing-heading strong { color: #dcebe1; font-size: 0.68rem; letter-spacing: 0.055em; text-transform: uppercase; }
.ae-spacing-heading button {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.3rem 0.42rem;
    border: 1px solid var(--ae-line);
    border-radius: 0.4rem;
    cursor: pointer;
    color: #8fa99a;
    background: transparent;
    font-size: 0.57rem;
    font-weight: 780;
}
.ae-spacing-heading button > span:first-child { font-size: 0.95rem; line-height: 0.6; }
.ae-spacing-heading button:hover,
.ae-spacing-heading button.is-active { border-color: var(--ae-accent); color: #09291c; background: var(--ae-accent); }
.ae-spacing-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.3rem minmax(0, 1fr);
    align-items: center;
    gap: 0.42rem 0.35rem;
    padding: 0.7rem 0.55rem;
}
.ae-spacing-top { grid-row: 1; grid-column: 1 / -1; width: 62%; justify-self: center; }
.ae-spacing-right { grid-row: 2; grid-column: 3; }
.ae-spacing-bottom { grid-row: 3; grid-column: 1 / -1; width: 62%; justify-self: center; }
.ae-spacing-left { grid-row: 2; grid-column: 1; }
.ae-spacing-center {
    display: grid;
    grid-row: 2;
    grid-column: 2;
    width: 2.3rem;
    height: 2.3rem;
    place-items: center;
    border: 1px dashed rgba(169, 242, 120, 0.45);
    border-radius: 0.38rem;
    color: #718f7e;
    background: rgba(169, 242, 120, 0.045);
    font-size: 0.43rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}
.ae-spacing-side { gap: 0.2rem; }
.ae-spacing-side > span { text-align: center; }
.ae-spacing-side .ae-style-value { grid-template-columns: minmax(0, 1fr) 3.25rem; gap: 0.2rem; }
.ae-spacing-side input,
.ae-spacing-side select { min-height: 2.1rem; padding: 0.42rem 0.38rem; text-align: center; }
.ae-spacing-side select { padding-inline: 0.18rem; font-size: 0.61rem; }

.ae-style-custom {
    border: 1px solid var(--ae-line);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.025);
}
.ae-style-custom summary { padding: 0.72rem 0.8rem; cursor: pointer; color: #b7cabf; font-size: 0.7rem; font-weight: 800; }
.ae-style-custom.has-global-values summary,
.ae-style-custom.has-local-values summary { color: var(--ae-accent); }
.ae-style-custom.has-global-values summary::after,
.ae-style-custom.has-local-values summary::after { content: "●"; float: right; color: #f0aa32; font-size: 0.65rem; }
.ae-style-custom.has-local-values summary::after { color: #4c9cff; }
.ae-style-custom label { display: grid; gap: 0.4rem; padding: 0.25rem 0.75rem 0.5rem; }
.ae-style-custom textarea { min-height: 8.5rem; font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.67rem; line-height: 1.5; resize: vertical; }
.ae-style-custom > small { display: block; padding: 0 0.75rem 0.8rem; color: #7f9a8b; font-size: 0.62rem; line-height: 1.45; }

.ae-global-style-picker,
.ae-attributes-editor {
    display: grid;
    gap: 0.65rem;
    padding: 0.85rem;
    border: 1px solid var(--ae-line);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.025);
}
.ae-global-style-picker > div:first-child,
.ae-attributes-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.ae-global-style-picker strong,
.ae-attributes-heading strong { color: #dcebe1; font-size: 0.75rem; }
.ae-global-style-picker small,
.ae-attributes-heading small { color: #87a092; font-size: 0.6rem; }
.ae-attributes-heading > div { display: grid; gap: 0.12rem; }
.ae-global-style-picker [data-ae-global-style-list] { display: grid; gap: 0.35rem; }
.ae-global-style-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem; }
.ae-global-style-picker label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.035);
}
.ae-global-style-row > button,
.ae-global-style-create > button {
    padding: 0.48rem 0.55rem;
    border: 1px solid var(--ae-line);
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--ae-accent);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.58rem;
    font-weight: 820;
}
.ae-global-style-row > button:disabled { cursor: default; opacity: 0.35; }
.ae-global-style-row > button:not(:disabled):hover,
.ae-global-style-create > button:hover { border-color: var(--ae-accent); color: #09291c; background: var(--ae-accent); }
.ae-global-style-create {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    margin-top: 0.25rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--ae-line);
}
.ae-global-style-create label { display: grid; align-items: stretch; gap: 0.2rem; padding: 0; background: transparent; cursor: default; }
.ae-global-style-create label:hover { background: transparent; }
.ae-global-style-create label > span { color: #92aa9c; font-size: 0.56rem; font-weight: 800; text-transform: uppercase; }
.ae-global-style-create input { width: 100%; padding: 0.48rem; font-size: 0.64rem; }
.ae-global-style-create > button { grid-column: 1 / -1; }
.ae-global-style-picker label:hover { background: rgba(169, 242, 120, 0.08); }
.ae-global-style-picker input[type="checkbox"] { width: auto; accent-color: var(--ae-accent); }
.ae-global-style-picker label span { display: grid; gap: 0.08rem; }
.ae-global-style-picker label strong { font-size: 0.68rem; }
.ae-global-style-picker label code { color: #8fa99a; font-size: 0.58rem; }
.ae-attributes-heading button {
    padding: 0.4rem 0.55rem;
    border: 1px solid var(--ae-line);
    border-radius: 0.45rem;
    cursor: pointer;
    color: var(--ae-accent);
    background: transparent;
    font-size: 0.62rem;
    font-weight: 800;
}
.ae-attribute-row { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) auto; gap: 0.35rem; margin-top: 0.4rem; }
.ae-attribute-row input { padding: 0.52rem; font-size: 0.66rem; }
.ae-attribute-row button {
    width: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0.45rem;
    cursor: pointer;
    color: #ffb2a8;
    background: rgba(214, 79, 65, 0.12);
}

.ae-structure-panel { padding: 0.85rem 0.7rem 2rem; }
.ae-structure-panel > p { margin: 0.5rem 0.45rem 0.85rem; color: #91aa9b; font-size: 0.7rem; line-height: 1.45; }
.ae-tree-actions { display: flex; align-items: center; gap: 0.35rem; padding: 0 0.35rem; }
.ae-tree-actions span { margin-right: auto; color: #dcebe1; font-size: 0.75rem; font-weight: 850; }
.ae-tree-actions button {
    padding: 0.35rem 0.45rem;
    border: 1px solid var(--ae-line);
    border-radius: 0.4rem;
    cursor: pointer;
    color: #a8bdb0;
    background: transparent;
    font-size: 0.62rem;
}
.ae-tree-actions button:hover { border-color: var(--ae-accent); color: var(--ae-accent); }
.ae-tree { display: grid; gap: 0.12rem; min-width: 0; }
.ae-tree-item { position: relative; min-width: 0; }
.ae-tree-row {
    position: relative;
    display: grid;
    grid-template-columns: 1.25rem 3.35rem minmax(0, 1fr);
    align-items: center;
    min-height: 2.2rem;
    margin-left: calc(var(--ae-tree-depth) * 0.7rem);
    padding: 0.15rem 0.35rem;
    border: 1px solid transparent;
    border-radius: 0.48rem;
    cursor: pointer;
    color: #cbdcd2;
}
.ae-tree-row:hover { border-color: var(--ae-line); background: rgba(255, 255, 255, 0.055); }
.ae-tree-item.is-selected > .ae-tree-row { border-color: rgba(169, 242, 120, 0.45); color: #fff; background: rgba(169, 242, 120, 0.13); }
.ae-tree-toggle { display: grid; width: 1.2rem; height: 1.2rem; padding: 0; place-items: center; border: 0; cursor: pointer; color: var(--ae-accent); background: transparent; font-size: 1rem; }
.ae-tree-toggle:disabled { cursor: default; color: #5b7667; }
.ae-tree-icon { overflow: hidden; color: #81bc94; font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.58rem; text-overflow: ellipsis; white-space: nowrap; }
.ae-tree-label { overflow: hidden; font-size: 0.72rem; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.ae-tree-item.is-dragging { opacity: 0.38; }
.ae-tree-item.is-drop-before > .ae-tree-row::before,
.ae-tree-item.is-drop-after > .ae-tree-row::after {
    position: absolute;
    right: 0.25rem;
    left: 0.25rem;
    height: 2px;
    border-radius: 2px;
    background: var(--ae-accent);
    content: "";
}
.ae-tree-item.is-drop-before > .ae-tree-row::before { top: -2px; }
.ae-tree-item.is-drop-after > .ae-tree-row::after { bottom: -2px; }
.ae-tree-item.is-drop-inside > .ae-tree-row { border-color: var(--ae-accent); background: rgba(169, 242, 120, 0.13); }

.ae-element-toolbar[hidden],
.ae-insert-menu[hidden],
.ae-inspector-fields[hidden],
.ae-inspector-empty[hidden],
.ae-inspector [hidden],
.ae-element-list [hidden] { display: none !important; }

.error-page {
    display: grid;
    place-items: center;
    padding: 2rem;
    color: var(--white);
    background: var(--forest-dark);
}

.error-page main {
    width: min(100%, 68rem);
}

.error-page .eyebrow {
    color: var(--accent);
}

.error-brand {
    display: inline-block;
    margin-bottom: 4rem;
}

.error-page h1 {
    max-width: 58rem;
    margin-bottom: 2rem;
}

.error-page p:not(.eyebrow) {
    margin: -0.5rem 0 2rem;
    color: #bed0c7;
}

.error-page .button-primary {
    color: var(--forest-dark);
    background: var(--accent);
}

@media (max-width: 960px) {
    .ae-app { grid-template: 4rem minmax(0, 1fr) / minmax(0, 1fr); }
    .ae-topbar { grid-template-columns: auto minmax(10rem, 1fr) auto auto; }
    .ae-history,
    .ae-devices { display: none; }
    .ae-panel-controls button { width: 2.15rem; padding-inline: 0; }
    .ae-panel-controls button > span { display: none; }
    .ae-brand small,
    .ae-top-actions > span { display: none; }
    .ae-workspace { padding: 1rem 1rem 4.5rem; }
    .ae-copilot-panel { right:.6rem; bottom:4rem; width:min(24rem, calc(100vw - 1.2rem)); max-height:calc(100dvh - 8.8rem); }
    .ae-copilot-toggle { right:.65rem; bottom:4.15rem; }
    .ae-canvas-shell,
    .ae-canvas-shell iframe { min-height: calc(100vh - 6rem); }

    .cms-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cms-assistant-layout {
        grid-template-columns: 1fr;
    }

    .cms-assistant-summary {
        width: 100%;
    }

    .cms-pages-layout,
    .cms-template-layout,
    .cms-menu-layout,
    .cms-translation-columns {
        grid-template-columns: 1fr;
    }

    .cms-template-preset-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cms-page-list,
    .cms-template-list,
    .cms-menu-list {
        min-height: auto;
        max-height: 20rem;
        overflow-y: auto;
    }

    .cms-menu-item {
        width: calc(100% - (var(--menu-depth, 0) * 0.7rem));
        grid-template-columns: auto minmax(9rem, 1fr) minmax(8rem, 0.75fr) auto;
        margin-left: calc(var(--menu-depth, 0) * 0.7rem);
    }

    .cms-menu-item > .field:nth-of-type(2),
    .cms-menu-item > .field:nth-of-type(3) { grid-row: 2; }

    .cms-media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cms-picker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .cms-picker-upload,
    .cms-custom-color { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .auth-login-layout {
        grid-template-columns: minmax(18rem, 0.8fr) minmax(24rem, 1.2fr);
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-intro {
        min-height: 26rem;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .sidebar-top {
        min-height: 0;
    }

    .sidebar-toggle {
        display: none;
    }

    body.is-sidebar-collapsed .admin-layout {
        grid-template-columns: 1fr;
    }

    body.is-sidebar-collapsed .sidebar {
        padding: 2rem 1.5rem;
    }

    body.is-sidebar-collapsed .sidebar-top {
        min-height: 0;
        flex-direction: row;
    }

    body.is-sidebar-collapsed .brand-wordmark-sidebar {
        display: block;
    }

    body.is-sidebar-collapsed .sidebar-brand-compact {
        display: none;
    }

    body.is-sidebar-collapsed .main-nav {
        width: auto;
        margin: 0 0 0 auto;
    }

    body.is-sidebar-collapsed .main-nav a {
        display: block;
        min-height: 0;
        padding: 0.9rem 1rem;
        font-size: inherit;
    }

    body.is-sidebar-collapsed .main-nav a::before {
        content: none;
    }

    body.is-sidebar-collapsed .sidebar-project-label {
        display: inline;
    }

    body.is-sidebar-collapsed #logout-button {
        min-width: auto;
        padding: 0.8rem 1.2rem;
    }

    body.is-sidebar-collapsed #logout-button > span {
        display: none;
    }

    body.is-sidebar-collapsed #logout-button > b {
        display: inline;
    }

    .main-nav {
        display: flex;
        margin: 0 0 0 auto;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .system-checks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-card {
        min-height: auto;
    }

    .stat-number {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 700px) {
    .cms-project-assistant-dialog {
        width: 100%;
        max-width: none;
        min-height: 100vh;
        min-height: 100dvh;
        border-radius: 0;
    }

    .cms-project-assistant-dialog .cms-dialog-card {
        min-height: 100vh;
        min-height: 100dvh;
        max-height: none;
        padding: 1rem;
        border-radius: 0;
    }

    .cms-project-assistant-dialog .cms-dialog-header {
        gap: 1rem;
        margin-bottom: 1.25rem;
    }

    .cms-project-assistant-dialog .cms-dialog-header h2 {
        font-size: 1.55rem;
    }

    .cms-assistant-mode-switch {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .cms-assistant-status-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .cms-assistant-progress {
        margin-left: 3.3rem;
    }

    .cms-assistant-message {
        max-width: 96%;
    }

    .cms-assistant-options {
        margin-left: 0;
    }

    .cms-assistant-composer,
    .cms-assistant-create-fields {
        grid-template-columns: 1fr;
    }

    .cms-assistant-composer .button {
        width: 100%;
    }

    .cms-assistant-description-field {
        grid-column: auto;
    }

    .cms-google-import-heading,
    .cms-google-import-preview-heading { align-items: stretch; flex-direction: column; }
    .cms-google-import-heading > span { align-self: flex-start; }
    .cms-google-import-preview dl { grid-template-columns: 1fr; }
    .cms-google-import-preview .form-actions { align-items: stretch; flex-direction: column; }
    .cms-google-import-preview .form-actions .button { width: 100%; }
    .cms-page-section > summary { grid-template-columns: auto minmax(0, 1fr) auto; }
    .cms-page-section > summary::after { grid-column: 3; grid-row: 1; }
    .cms-section-badge { display: none; }
    .cms-section-copy small { white-space: normal; }
    .cms-page-section-body { padding: 0.85rem; }
    .cms-content-toolbar { align-items: stretch; flex-direction: column; }
    .cms-content-toolbar .button { width: 100%; }
    .ae-app { grid-template: 4rem minmax(0, 1fr) / minmax(0, 1fr); }
    .ae-topbar { grid-template-columns: auto minmax(7rem, 1fr) auto auto; gap: 0.3rem; padding: 0 0.4rem; }
    .ae-brand div,
    .ae-devices,
    .ae-top-actions > span { display: none; }
    .ae-panel-controls { justify-self: start; }
    .ae-panel-controls button { width: 2.15rem; padding: 0; overflow: hidden; font-size: 0; }
    .ae-panel-controls .ae-icon { width: 1rem; height: 1rem; }
    .ae-top-actions { grid-column: 4; }
    .ae-top-close { display: none !important; }
    .ae-top-actions .button-primary { padding: 0.45rem 0.65rem; font-size: 0.72rem; }
    .ae-top-actions .button-primary span { display: none; }
    .ae-page-switcher { padding-inline: 0.48rem; }
    .ae-workspace { grid-area: 2 / 1 / 3 / 2; padding: 0.5rem 0.5rem 4rem; }
    .ae-breadcrumb { right: 0.45rem; bottom: 0.4rem; left: 0.45rem; }
    .ae-library,
    .ae-inspector {
        position: fixed;
        z-index: 42;
        top: 4.5rem;
        bottom: auto;
        height: calc(100vh - 5rem);
        height: calc(100dvh - 5rem);
        max-height: calc(100vh - 5rem);
        max-height: calc(100dvh - 5rem);
        width: min(18rem, calc(100vw - 1rem));
    }
    .ae-library { left: 0.5rem; }
    .ae-inspector { right: 0.5rem; }
    .ae-element-grid { grid-template-columns: 1fr; }

    .cms-project-grid,
    .cms-media-grid,
    .cms-color-grid,
    .cms-picker-grid,
    .cms-picker-upload,
    .cms-custom-color,
    .cms-menu-adders {
        grid-template-columns: 1fr;
    }

    .cms-menu-placeholder {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .cms-menu-placeholder code { width: 100%; order: 3; }

    .cms-menu-items-heading { align-items: flex-start; flex-direction: column; }

    .cms-menu-item {
        width: calc(100% - (var(--menu-depth, 0) * 0.45rem));
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        margin-left: calc(var(--menu-depth, 0) * 0.45rem);
    }

    .cms-menu-item > .field,
    .cms-menu-item > .field:nth-of-type(2),
    .cms-menu-item > .field:nth-of-type(3),
    .cms-menu-item-destination,
    .cms-menu-item-actions {
        grid-column: 2;
        grid-row: auto;
    }

    .cms-menu-item-handle { grid-row: 1 / span 5; }

    .cms-global-style-states { grid-template-columns: 1fr; }
    .cms-global-style-states label:first-child { grid-column: auto; }

    .cms-media-field { grid-template-columns: 1fr; }
    .cms-custom-colors-heading { align-items: flex-start; flex-direction: column; }
    .cms-page-toolbar { grid-template-columns: 1fr; align-items: stretch; }
    .cms-autosave-state { justify-self: start; text-align: left; }

    .cms-project-header,
    .cms-section-heading,
    .cms-template-library-heading,
    .cms-editor-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .cms-translation-language-controls {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .cms-translation-language-controls-inline {
        grid-template-columns: 1fr;
    }

    .cms-translation-language-controls select {
        width: 100%;
        min-width: 0;
    }

    .cms-translation-language-controls strong {
        align-self: flex-start;
    }

    .cms-translation-toolbar {
        grid-template-columns: 1fr;
    }

    .cms-translation-toolbar .cms-autosave-state {
        justify-self: start;
    }

    .cms-template-preset-grid {
        grid-template-columns: 1fr;
    }

    .cms-upload,
    .cms-settings-form {
        grid-template-columns: 1fr;
    }

    .cms-location-manager > header,
    .cms-location-card-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .cms-location-list {
        grid-template-columns: 1fr;
    }

    .cms-location-card-actions {
        flex-wrap: wrap;
    }

    .cms-upload .form-actions,
    .cms-settings-actions {
        grid-column: 1;
    }

    .cms-settings-nav {
        display: flex;
        overflow-x: auto;
    }

    .cms-tab-panel {
        padding: 1rem;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .cms-editor {
        padding: 1rem;
    }

    .cms-editor-actions > div {
        width: 100%;
        flex-direction: column;
    }

    .cms-editor-actions .button {
        width: 100%;
    }

    .auth-page-login {
        display: block;
        padding: 0;
        background: #f8faf9;
    }

    .auth-login-layout {
        min-height: 100vh;
        grid-template-columns: 1fr;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-login-visual {
        min-height: min(62vw, 23rem);
    }

    .auth-login-art {
        object-position: center 45%;
    }

    .auth-login-panel {
        padding: 2rem 1.35rem 1.5rem;
    }

    .auth-login-heading {
        margin: 3rem 0 2.25rem;
    }

    .auth-login-heading h1 {
        font-size: clamp(3rem, 16vw, 4.7rem);
    }

    .auth-login-footer {
        margin-top: 3.5rem;
    }

    .auth-page {
        padding: 0;
    }

    .auth-layout {
        min-height: 100vh;
        border-radius: 0;
    }

    .sidebar {
        flex-wrap: wrap;
        padding: 1.25rem;
    }

    body.is-sidebar-collapsed .sidebar {
        padding: 1.25rem;
    }

    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }

    body.is-sidebar-collapsed .main-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .cms-project-heading > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .main-nav a {
        white-space: nowrap;
    }

    .dashboard {
        padding: 1.25rem;
    }

    .dashboard-header,
    .panel-heading,
    .form-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-header {
        margin: 2rem 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .system-checks {
        grid-template-columns: 1fr;
    }

    .published-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .role-badge,
    .user-state {
        justify-self: start;
    }
}
