:root {
    --rt-bg: #071017;
    --rt-bg-2: #0e1b25;
    --rt-panel: #ffffff;
    --rt-panel-2: #f5f8fb;
    --rt-ink: #12202c;
    --rt-muted: #66758a;
    --rt-line: #d7e0ea;
    --rt-accent: #9dff5d;
    --rt-accent-2: #2bd4c6;
    --rt-danger: #b42318;
    --rt-ok: #16734d;
    --rt-shadow: 0 24px 70px rgba(0,0,0,.22);
}

* {
    box-sizing: border-box;
}

body.aurora-runtime {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(157,255,93,.20), transparent 28rem),
        radial-gradient(circle at top right, rgba(43,212,198,.16), transparent 30rem),
        linear-gradient(180deg, var(--rt-bg), var(--rt-bg-2));
    color: var(--rt-ink);
}

.runtime-shell {
    width: min(980px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 32px 0;
}

.runtime-panel,
.runtime-main,
.runtime-sidebar,
.runtime-card,
.runtime-module {
    border: 1px solid var(--rt-line);
    background: var(--rt-panel);
    box-shadow: var(--rt-shadow);
    border-radius: 22px;
}

.runtime-panel {
    width: min(560px, 100%);
    padding: clamp(24px, 5vw, 48px);
}

.runtime-panel--wide {
    width: min(900px, 100%);
}

.runtime-eyebrow {
    margin: 0 0 10px;
    color: #0f766e;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 14px;
    color: var(--rt-ink);
    font-size: clamp(2.1rem, 6vw, 4.4rem);
    line-height: .92;
    letter-spacing: -.065em;
}

h2 {
    margin: 28px 0 12px;
    color: var(--rt-ink);
    letter-spacing: -.035em;
}

.runtime-muted {
    color: var(--rt-muted);
    line-height: 1.6;
}

.runtime-form {
    display: grid;
    gap: 16px;
}

.runtime-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.runtime-grid__full {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--rt-line);
    border-radius: 14px;
    background: var(--rt-panel-2);
    color: var(--rt-ink);
    padding: 12px 13px;
    font: inherit;
}

input:focus,
textarea:focus {
    outline: 3px solid rgba(43,212,198,.22);
    border-color: var(--rt-accent-2);
}

.runtime-check {
    display: flex;
    gap: 10px;
    align-items: center;
}

.runtime-check input {
    width: auto;
}

.runtime-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rt-accent), var(--rt-accent-2));
    color: #061017;
    padding: 11px 16px;
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.runtime-btn--small {
    min-height: 36px;
    padding: 8px 12px;
    font-size: .92rem;
}

.runtime-btn--tiny {
    min-height: 32px;
    padding: 6px 10px;
    font-size: .84rem;
}

.runtime-alert {
    border: 1px solid var(--rt-line);
    border-radius: 16px;
    padding: 14px;
    margin: 16px 0;
    background: #fff;
}

.runtime-alert--error {
    border-color: rgba(180,35,24,.35);
    color: var(--rt-danger);
    background: #fff3f0;
}

.runtime-alert--success {
    border-color: rgba(22,115,77,.32);
    color: var(--rt-ok);
    background: #f0fff7;
}

.runtime-pre,
pre {
    overflow: auto;
    border: 1px solid #213342;
    border-radius: 16px;
    background: #071017;
    color: #dfffb0;
    padding: 16px;
}

.runtime-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 16px 24px;
    background: rgba(7,16,23,.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.10);
    color: #fff;
}

.runtime-topbar__group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.runtime-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    color: #fff;
    padding: 8px 14px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.runtime-nav-toggle:hover,
.runtime-nav-toggle:focus-visible {
    background: rgba(157,255,93,.22);
    outline: none;
}

.runtime-nav-toggle__icon {
    font-size: 1.05rem;
    line-height: 1;
}

.runtime-topbar a {
    color: #fff;
    font-weight: 900;
}

.runtime-app {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    width: min(1420px, calc(100% - 32px));
    margin: 24px auto;
}

body.runtime-sidebar-collapsed .runtime-app {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: min(1900px, calc(100% - 12px));
}

body.runtime-sidebar-collapsed .runtime-sidebar {
    display: none;
}

body.runtime-sidebar-collapsed .runtime-main {
    min-height: calc(100vh - 112px);
}

.runtime-sidebar {
    align-self: start;
    padding: 20px;
}

.runtime-sidebar nav {
    display: grid;
    gap: 8px;
}

.runtime-sidebar a {
    color: var(--rt-ink);
    padding: 11px 12px;
    text-decoration: none;
    font-weight: 900;
    border-radius: 14px;
}

.runtime-sidebar a[aria-current="page"],
.runtime-sidebar a:hover {
    background: linear-gradient(135deg, rgba(157,255,93,.34), rgba(43,212,198,.22));
}

.runtime-sidebar-note {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    padding: 14px;
    border-radius: 16px;
    background: var(--rt-panel-2);
    color: var(--rt-muted);
    font-size: .9rem;
    line-height: 1.45;
}

.runtime-sidebar-note strong {
    color: var(--rt-ink);
}

.runtime-main {
    min-height: 72vh;
    padding: clamp(16px, 2vw, 30px);
}

.runtime-page-head {
    max-width: 840px;
    margin-bottom: 24px;
}

.runtime-cards,
.runtime-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0 30px;
}

.runtime-card,
.runtime-module {
    padding: 18px;
}

.runtime-card--wide {
    margin-bottom: 24px;
}

.runtime-card strong {
    display: block;
    font-size: 2.2rem;
    line-height: 1;
}

.runtime-actions,
.runtime-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 24px;
}

.runtime-table {
    display: grid;
    gap: 10px;
}

.runtime-table > div,
.runtime-table form {
    display: grid;
    grid-template-columns: minmax(140px, .7fr) minmax(160px, .8fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--rt-line);
    border-radius: 16px;
    background: var(--rt-panel-2);
    padding: 12px;
}

.runtime-table--content form {
    grid-template-columns: minmax(170px, .8fr) 120px minmax(220px, 1fr) auto;
}

.runtime-table--seo form {
    grid-template-columns: minmax(120px, .35fr) minmax(220px, .75fr) minmax(260px, 1fr) auto;
}

.runtime-table--events > div {
    grid-template-columns: minmax(160px, .45fr) minmax(170px, .35fr) minmax(260px, 1fr);
}

.runtime-table--events pre {
    max-height: 180px;
    margin: 0;
    white-space: pre-wrap;
}

.runtime-table--domain > div {
    grid-template-columns: minmax(130px, .35fr) minmax(220px, 1fr) minmax(180px, .45fr);
}

.runtime-module strong {
    display: block;
    margin-bottom: 8px;
}

.runtime-module span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--rt-panel-2);
    color: var(--rt-muted);
    font-weight: 800;
}


.runtime-page-head--editor {
    max-width: none;
}

.runtime-visual-editor {
    display: grid;
    grid-template-columns: minmax(190px, 230px) minmax(560px, 1.35fr) minmax(420px, 520px);
    gap: 16px;
    align-items: start;
}

.runtime-visual-pages,
.runtime-visual-preview-wrap,
.runtime-visual-sections {
    border: 1px solid var(--rt-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(0,0,0,.10);
}

.runtime-visual-pages {
    padding: 14px;
}

.runtime-visual-sections {
    padding: 18px;
}

.runtime-visual-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.runtime-visual-panel-head strong {
    color: var(--rt-ink);
}

.runtime-visual-pages nav {
    display: grid;
    gap: 8px;
}

.runtime-page-pill {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--rt-line);
    border-radius: 16px;
    color: var(--rt-ink);
    text-decoration: none;
    font-weight: 900;
    background: var(--rt-panel-2);
}

.runtime-page-pill small {
    color: var(--rt-muted);
    font-weight: 700;
}

.runtime-page-pill.is-active,
.runtime-page-pill:hover {
    border-color: rgba(43,212,198,.45);
    background: linear-gradient(135deg, rgba(157,255,93,.24), rgba(43,212,198,.14));
}

.runtime-advanced-keys {
    margin-top: 16px;
    border-top: 1px solid var(--rt-line);
    padding-top: 14px;
}

.runtime-advanced-keys summary {
    cursor: pointer;
    color: var(--rt-muted);
    font-weight: 900;
}

.runtime-advanced-keys__body {
    display: grid;
    gap: 10px;
    max-height: 520px;
    overflow: auto;
    margin-top: 12px;
    padding-right: 4px;
}

.runtime-advanced-keys__body form {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--rt-line);
    border-radius: 16px;
    background: var(--rt-panel-2);
}

.runtime-visual-preview-wrap {
    overflow: hidden;
    min-height: 780px;
}

.runtime-visual-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--rt-line);
    background: linear-gradient(180deg, #fff, var(--rt-panel-2));
}

.runtime-visual-toolbar strong,
.runtime-visual-toolbar small {
    display: block;
}

.runtime-visual-toolbar small {
    color: var(--rt-muted);
    margin-top: 3px;
}

.runtime-inline-edit-help {
    flex: 1 1 100%;
    margin: 4px 0 0;
    border-radius: 14px;
    background: rgba(157,255,93,.18);
    color: #23500e;
    padding: 9px 12px;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.35;
}

.runtime-visual-preview {
    display: block;
    width: 100%;
    min-height: 740px;
    border: 0;
    background: #fff;
}

.runtime-visual-sections {
    display: grid;
    gap: 16px;
    max-height: calc(100vh - 165px);
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
}

.runtime-section-card {
    display: grid;
    gap: 16px;
    border: 1px solid var(--rt-line);
    border-radius: 20px;
    background: #fff;
    padding: 18px;
}

.runtime-section-card header span {
    display: inline-flex;
    margin-bottom: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #07554e;
    background: rgba(43,212,198,.16);
    font-size: .78rem;
    font-weight: 900;
}

.runtime-section-card h2 {
    margin: 0;
    font-size: 1.36rem;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.runtime-section-card summary {
    cursor: pointer;
    list-style: none;
}

.runtime-section-card summary::-webkit-details-marker {
    display: none;
}

.runtime-section-card details[open] summary {
    border-bottom: 1px solid var(--rt-line);
    margin-bottom: 4px;
    padding-bottom: 12px;
}

.runtime-section-fields {
    display: grid;
    gap: 14px;
}

.runtime-editor-field {
    border: 1px solid var(--rt-line);
    border-radius: 18px;
    padding: 14px;
    background: var(--rt-panel-2);
}

.runtime-editor-field span,
.runtime-editor-field small {
    display: block;
}

.runtime-editor-field span {
    font-size: 1.02rem;
    line-height: 1.25;
}

.runtime-editor-field small {
    color: var(--rt-muted);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 9px;
    overflow-wrap: anywhere;
}

.runtime-editor-field.is-active {
    border-color: rgba(43,212,198,.65);
    box-shadow: 0 0 0 4px rgba(43,212,198,.13);
}

.runtime-editor-field input.is-inline-edited,
.runtime-editor-field textarea.is-inline-edited {
    border-color: rgba(157,255,93,.85);
    box-shadow: 0 0 0 4px rgba(157,255,93,.20);
}

.runtime-editor-field input,
.runtime-editor-field textarea {
    font-size: 1rem;
    line-height: 1.5;
    padding: 12px 14px;
}

.runtime-editor-field textarea {
    min-height: 132px;
    resize: vertical;
}

.runtime-add-key-form {
    border-top: 1px dashed var(--rt-line);
    padding-top: 12px;
}

@media (max-width: 1450px) {
    .runtime-visual-editor {
        grid-template-columns: minmax(185px, 220px) minmax(500px, 1fr) minmax(390px, 460px);
        gap: 14px;
    }

    .runtime-visual-pages {
        padding: 12px;
    }

    .runtime-visual-sections {
        padding: 14px;
    }
}

@media (max-width: 1220px) {
    .runtime-visual-editor {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .runtime-visual-sections {
        grid-column: 1 / -1;
        max-height: none;
    }
}


@media (max-width: 1000px) {
    .runtime-app,
    .runtime-grid,
    .runtime-cards,
    .runtime-module-grid,
    .runtime-table > div,
    .runtime-table form,
    .runtime-table--content form,
    .runtime-table--seo form {
        grid-template-columns: 1fr;
    }

    .runtime-topbar {
        position: static;
        flex-direction: column;
        align-items: flex-start;
    }

    .runtime-topbar__group {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 760px) {
    .runtime-visual-editor {
        grid-template-columns: 1fr;
    }

    .runtime-visual-preview-wrap {
        min-height: 560px;
    }

    .runtime-visual-preview {
        min-height: 520px;
    }
}


.runtime-editor-summary,
.runtime-preview-actions,
.runtime-section-toolbar,
.runtime-section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.runtime-editor-summary span,
.runtime-draft-note {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    background: var(--rt-panel-2);
    color: var(--rt-muted);
    padding: 7px 10px;
    font-size: .86rem;
    font-weight: 800;
}

.runtime-visual-panel-head--sticky {
    position: sticky;
    top: 72px;
    z-index: 4;
    align-items: center;
    border: 1px solid var(--rt-line);
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    padding: 12px;
    backdrop-filter: blur(14px);
}

.runtime-preview-frame-shell {
    display: grid;
    justify-items: center;
    min-height: 680px;
    overflow: auto;
    background:
        linear-gradient(45deg, rgba(18,32,44,.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(18,32,44,.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(18,32,44,.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(18,32,44,.05) 75%);
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.runtime-preview-frame-shell[data-runtime-preview-mode="tablet"] .runtime-visual-preview {
    width: 768px;
    max-width: 100%;
}

.runtime-preview-frame-shell[data-runtime-preview-mode="mobile"] .runtime-visual-preview {
    width: 390px;
    max-width: 100%;
}

[data-runtime-viewport].is-active {
    box-shadow: 0 0 0 4px rgba(43,212,198,.18);
}

.runtime-section-layout {
    display: grid;
    gap: 14px;
    border: 1px solid var(--rt-line);
    border-radius: 20px;
    background: #fff;
    padding: 16px;
}

.runtime-section-layout-row {
    display: grid;
    grid-template-columns: 38px minmax(180px, 1fr) 86px;
    grid-template-areas:
        "drag label order"
        "drag hidden actions";
    gap: 10px;
    align-items: end;
    border: 1px solid var(--rt-line);
    border-radius: 16px;
    background: var(--rt-panel-2);
    padding: 12px;
}

.runtime-section-layout-row .runtime-drag-handle {
    grid-area: drag;
    align-self: center;
}

.runtime-section-layout-row label:nth-of-type(1) {
    grid-area: label;
}

.runtime-section-layout-row label:nth-of-type(2) {
    grid-area: order;
}

.runtime-section-layout-row .runtime-check {
    grid-area: hidden;
    align-self: center;
}

.runtime-section-layout-row .runtime-section-row-actions {
    grid-area: actions;
    justify-content: flex-end;
}

.runtime-section-layout-row.is-dragging {
    opacity: .58;
    border-color: var(--rt-accent-2);
    box-shadow: 0 0 0 4px rgba(43,212,198,.14);
}

.runtime-drag-handle {
    width: 38px;
    min-height: 44px;
    border: 1px solid var(--rt-line);
    border-radius: 14px;
    background: #fff;
    color: var(--rt-muted);
    font: inherit;
    font-weight: 900;
    cursor: grab;
}

.runtime-drag-handle:active {
    cursor: grabbing;
}

.runtime-section-row-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.runtime-section-card details {
    display: grid;
    gap: 12px;
}

.runtime-section-card summary {
    display: grid;
    gap: 7px;
    cursor: pointer;
    list-style: none;
}

.runtime-section-card summary::-webkit-details-marker {
    display: none;
}

.runtime-section-card summary::after {
    content: "Collapse / expand";
    width: fit-content;
    border-radius: 999px;
    background: rgba(43,212,198,.16);
    color: #07554e;
    padding: 5px 9px;
    font-size: .76rem;
    font-weight: 900;
}

.runtime-section-card.is-hidden-section {
    opacity: .72;
    border-style: dashed;
}

.runtime-editor-field.has-draft {
    border-color: rgba(255,180,70,.65);
    box-shadow: 0 0 0 4px rgba(255,180,70,.14);
}

.runtime-draft-note {
    margin-top: 8px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.runtime-image-control,
.runtime-color-control {
    display: grid;
    gap: 8px;
}

.runtime-image-actions {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.runtime-image-dropzone {
    display: grid;
    gap: 3px;
    align-content: center;
    min-height: 58px;
    border: 2px dashed rgba(43,212,198,.45);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(157,255,93,.14), rgba(43,212,198,.10));
    color: var(--rt-ink);
    padding: 11px 14px;
    cursor: pointer;
}

.runtime-image-dropzone span {
    font-weight: 900;
}

.runtime-image-dropzone small {
    color: var(--rt-muted);
    font-weight: 800;
}

.runtime-image-dropzone input[type="file"] {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.runtime-image-control.is-drag-over .runtime-image-dropzone,
.runtime-image-dropzone:hover {
    border-color: rgba(157,255,93,.95);
    background: rgba(157,255,93,.22);
}

.runtime-image-control.is-uploading {
    opacity: .72;
}

.runtime-image-control--logo img {
    width: min(260px, 100%);
    max-height: 120px;
    object-fit: contain;
}

.runtime-image-control img {
    width: min(220px, 100%);
    max-height: 150px;
    border: 1px solid var(--rt-line);
    border-radius: 14px;
    object-fit: cover;
    background: var(--rt-panel-2);
}

.runtime-image-library {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7,16,23,.72);
}

.runtime-image-library[hidden] {
    display: none;
}

.runtime-image-library__dialog {
    width: min(920px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid var(--rt-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--rt-shadow);
    padding: 18px;
}

.runtime-image-library__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.runtime-image-library__head h2 {
    margin: 0 0 8px;
}

.runtime-image-library__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
    gap: 12px;
}

.runtime-image-library__item {
    display: grid;
    gap: 8px;
    border: 1px solid var(--rt-line);
    border-radius: 16px;
    background: var(--rt-panel-2);
    padding: 8px;
    text-align: left;
    cursor: pointer;
}

.runtime-image-library__item:hover,
.runtime-image-library__item:focus {
    outline: 3px solid rgba(43,212,198,.20);
    border-color: var(--rt-accent-2);
}

.runtime-image-library__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
}

.runtime-image-library__item span {
    color: var(--rt-muted);
    font-size: .82rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.runtime-color-control {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
}

.runtime-color-control input[type="color"] {
    min-height: 44px;
    padding: 4px;
}

.runtime-hidden-form {
    display: none;
}

.runtime-editor-is-dirty [data-runtime-save-all] {
    animation: runtimeDirtyPulse 1.2s ease-in-out infinite;
}

@keyframes runtimeDirtyPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1px); }
}

@media (max-width: 760px) {
    .runtime-section-layout-row,
    .runtime-color-control {
        grid-template-columns: 1fr;
    }

    .runtime-drag-handle {
        width: 100%;
    }

    .runtime-section-row-actions {
        justify-content: flex-start;
    }

    .runtime-visual-panel-head--sticky {
        top: 0;
    }
}

@media (max-width: 780px) {
    .runtime-image-actions {
        grid-template-columns: 1fr;
    }
}


.runtime-topbar-shortcut {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    text-decoration: none;
    font-weight: 850;
}

.runtime-topbar-shortcut:hover {
    background: rgba(157,255,93,.16);
    border-color: rgba(157,255,93,.35);
}

.runtime-editor-media-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(43, 212, 198, .28);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(157,255,93,.16), rgba(43,212,198,.10));
}

.runtime-editor-media-strip strong,
.runtime-editor-media-strip span {
    display: block;
}

.runtime-editor-media-strip span {
    color: var(--rt-muted);
    margin-top: 3px;
}

.runtime-media-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.runtime-media-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.runtime-media-card-head h2 {
    margin: 4px 0 6px;
}

.runtime-current-logo {
    max-width: 160px;
    max-height: 82px;
    object-fit: contain;
    padding: 10px;
    border: 1px solid var(--rt-line);
    border-radius: 18px;
    background: #fff;
}

.runtime-image-control--large {
    padding: 14px;
    border-radius: 22px;
    border: 1px dashed rgba(43,212,198,.45);
    background: #fbfdff;
}

.runtime-image-actions--large {
    grid-template-columns: minmax(240px, 1fr) auto;
}

.runtime-image-dropzone--standalone {
    min-height: 150px;
    justify-content: center;
    margin: 10px 0 14px;
    border-style: dashed;
}

.runtime-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.runtime-media-item {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--rt-line);
    border-radius: 20px;
    background: var(--rt-panel-2);
}

.runtime-media-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(18,32,44,.08);
}

.runtime-media-item strong {
    font-size: .92rem;
    overflow-wrap: anywhere;
}

.runtime-media-item input[readonly] {
    font-size: .82rem;
    padding: 10px 11px;
}


.runtime-gallery-manager {
    display: grid;
    gap: 18px;
}

.runtime-gallery-select-form {
    display: grid;
    gap: 18px;
}

.runtime-gallery-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.runtime-gallery-select-item {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 14px;
    border: 1px solid var(--rt-line);
    border-radius: 22px;
    background: var(--rt-panel-2);
}

.runtime-gallery-select-item.is-selected {
    border-color: rgba(43,212,198,.62);
    background: linear-gradient(135deg, rgba(157,255,93,.18), rgba(43,212,198,.10));
}

.runtime-gallery-select-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(18,32,44,.08);
    background: #fff;
}

.runtime-gallery-select-item label {
    display: grid;
    gap: 6px;
    margin: 0;
    font-size: .88rem;
    font-weight: 900;
}

.runtime-gallery-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 9px !important;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.72);
}

.runtime-gallery-check input {
    width: auto;
    min-height: 0;
}

.runtime-gallery-check span {
    font-size: .9rem;
}


@media (max-width: 980px) {
    .runtime-media-layout {
        grid-template-columns: 1fr;
    }

    .runtime-editor-media-strip,
    .runtime-media-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    .runtime-image-actions--large {
        grid-template-columns: 1fr;
    }
}

.runtime-lead-list {
  display: grid;
  gap: 14px;
}

.runtime-lead-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}

.runtime-lead-card__head,
.runtime-lead-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.runtime-lead-card__head strong {
  display: block;
  font-size: 18px;
}

.runtime-lead-card__head span,
.runtime-lead-card__meta,
.runtime-lead-card__meta a,
.runtime-lead-card__meta span {
  color: #536174;
  font-size: 13px;
}

.runtime-lead-card p {
  margin: 0;
  color: #182334;
  line-height: 1.6;
}

.runtime-lead-card pre {
  max-height: 240px;
  overflow: auto;
  padding: 12px;
  border-radius: 14px;
  background: #0b1220;
  color: #dff6ff;
  font-size: 12px;
}

.runtime-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}

.runtime-inline-form select {
  min-height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .16);
  padding: 6px 10px;
  background: #fff;
}

.runtime-btn--danger {
  background: #fee2e2;
  color: #991b1b;
}

