:root {
    color-scheme: light;
    --bg: #f5f7f8;
    --text: #182026;
    --muted: #5d6b76;
    --accent: #0f766e;
    --border: #d8e0e5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.page-shell {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 80px 0;
}

.hero {
    border-left: 4px solid var(--accent);
    padding: 24px 0 24px 24px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 16px;
    font-size: 40px;
    line-height: 1.1;
}

p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

a {
    color: var(--accent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.auth-shell {
    max-width: 520px;
}

.auth-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    padding: 28px;
}

.form-stack {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--text);
    font: inherit;
    background: #ffffff;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(15, 118, 110, 0.16);
}

.check-field {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
}

.check-field input {
    width: 18px;
    height: 18px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: #ffffff;
    padding: 0 16px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button-secondary {
    background: #ffffff;
    color: var(--accent);
}

.button-danger {
    border-color: #dc2626;
    background: #dc2626;
    color: #ffffff;
}

.alert {
    margin-top: 18px;
    border: 1px solid #f1b8b8;
    border-radius: 6px;
    background: #fff4f4;
    color: #9f1239;
    padding: 12px 14px;
}

.notice {
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    background: #ecfdf5;
    color: #047857;
    padding: 12px 14px;
}

.form-note {
    margin-top: 18px;
    font-size: 15px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
    padding: 14px 24px;
}

.link-button {
    border: 0;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.dashboard-shell {
    display: grid;
    gap: 32px;
}

.dashboard-head,
.section-title,
.project-title-line,
.project-actions,
.project-meta {
    display: flex;
    align-items: center;
}

.dashboard-head,
.section-title {
    justify-content: space-between;
    gap: 20px;
}

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

.section-block {
    display: grid;
    gap: 18px;
}

.section-title h2,
.project-row h3,
.empty-state h3 {
    margin: 0;
}

.section-title span {
    color: var(--muted);
    font-size: 14px;
}

.empty-state {
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: #ffffff;
    padding: 28px;
}

.empty-state p {
    margin: 10px 0 18px;
    font-size: 16px;
}

.project-list {
    display: grid;
    gap: 12px;
}

.project-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
}

.page-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
}

.project-logo {
    width: 56px;
    height: 56px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
    object-fit: contain;
}

.project-logo-placeholder {
    display: grid;
    place-items: center;
    color: var(--accent);
    font-weight: 700;
}

.project-main {
    min-width: 0;
}

.project-title-line {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.project-row p {
    max-width: none;
    font-size: 15px;
}

.project-meta {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

.project-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.project-actions form,
.hero-actions form {
    margin: 0;
}

.status-pill {
    border-radius: 999px;
    background: #eef2f7;
    color: #334155;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
}

.status-published {
    background: #dcfce7;
    color: #166534;
}

.status-draft {
    background: #fef3c7;
    color: #92400e;
}

.status-archived {
    background: #e5e7eb;
    color: #374151;
}

.status-restored {
    background: #dbeafe;
    color: #1d4ed8;
}

.preview-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 18px;
    object-fit: contain;
}

.preview-meta {
    margin-top: 18px;
}

.site-render {
    display: grid;
    gap: 22px;
    margin-top: 40px;
    border-top: 1px solid var(--border);
    padding-top: 32px;
}

.site-render-head h2 {
    margin: 0;
}

.render-section {
    display: grid;
    gap: 16px;
}

.render-section .container {
    width: min(100%, var(--container-width, 1140px));
    margin-right: auto;
    margin-left: auto;
}

.render-row {
    row-gap: var(--bs-gutter-y, 24px);
}

.render-column-layout {
    display: grid;
    align-content: start;
    gap: 16px;
    min-height: 1px;
}

.render-component-shell {
    width: var(--component-desktop-width, auto);
    max-width: 100%;
}

.render-component-shell[data-animation] {
    animation-duration: var(--component-animation-duration, 600ms);
    animation-delay: var(--component-animation-delay, 0ms);
    animation-fill-mode: both;
    animation-timing-function: ease;
}

.render-component-shell[data-animation="fade-up"] {
    animation-name: renderFadeUp;
}

.render-component-shell[data-animation="fade-in"] {
    animation-name: renderFadeIn;
}

.render-component-shell[data-animation="zoom-in"] {
    animation-name: renderZoomIn;
}

.render-component-shell[data-animation="slide-left"] {
    animation-name: renderSlideLeft;
}

.render-heading {
    margin: 0;
    line-height: 1.15;
}

.render-paragraph {
    max-width: 760px;
}

.render-image {
    display: block;
    width: min(100%, 860px);
    max-height: 520px;
    border-radius: 8px;
    object-fit: contain;
}

.render-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 42px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: #ffffff;
    padding: 0 16px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.render-divider {
    width: 100%;
    height: 1px;
    border: 0;
    background: var(--border);
}

.render-divider-label {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.render-divider-label::before,
.render-divider-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.render-spacer {
    min-height: 8px;
}

.render-columns {
    display: grid;
    align-items: stretch;
}

.render-column {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
}

.render-column p {
    max-width: none;
    font-size: 16px;
}

.render-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.render-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
}

.render-video,
.render-map {
    overflow: hidden;
    border-radius: 8px;
    background: #0f172a;
    aspect-ratio: 16 / 9;
}

.render-video iframe,
.render-map iframe,
.render-video-player {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.render-video-player {
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.render-map-address,
.render-html {
    max-width: 760px;
    color: var(--text);
    line-height: 1.65;
}

.render-html p,
.render-html ul,
.render-html ol,
.render-html blockquote,
.render-html pre {
    margin: 0 0 14px;
}

@keyframes renderFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes renderFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes renderZoomIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes renderSlideLeft {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.preview-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    padding: 14px 24px;
}

.preview-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.preview-page {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 72px;
}

.preview-meta-panel {
    display: grid;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
}

.preview-meta-panel h1 {
    margin-bottom: 0;
}

.preview-seo-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.preview-seo-list div {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    padding: 14px;
}

.preview-seo-list dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.preview-seo-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    line-height: 1.45;
}

.preview-canvas {
    display: grid;
    gap: 26px;
    padding-top: 34px;
}

.preview-empty {
    background: transparent;
}

.published-page {
    background: #ffffff;
}

.published-shell {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 72px;
}

.published-header {
    display: grid;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
}

.published-header h1 {
    margin-bottom: 0;
}

.published-content {
    display: grid;
    gap: 28px;
    padding-top: 34px;
}

.published-page {
    background: #ffffff;
    color: #0f172a;
}

.published-page .published-shell {
    width: 100%;
    max-width: none;
    padding: 0;
}

.published-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.92);
    padding: 14px clamp(18px, 4vw, 48px);
    backdrop-filter: blur(18px);
}

.published-brand,
.published-nav,
.published-header-cta {
    display: inline-flex;
    align-items: center;
}

.published-brand {
    gap: 10px;
    color: #0f172a;
    text-decoration: none;
}

.published-brand span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--brand-secondary, #2563eb));
    color: #ffffff;
    font-weight: 900;
}

.published-brand strong {
    font-size: 15px;
}

.published-nav {
    flex-wrap: wrap;
    gap: 18px;
}

.published-nav a {
    color: #475569;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.published-nav a:hover {
    color: var(--accent);
}

.published-nav a.is-active {
    color: var(--accent);
}

.published-header-cta {
    min-height: 38px;
    border-radius: var(--project-button-radius, 8px);
    background: #0f172a;
    color: #ffffff;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.published-page .published-content,
.preview-site-surface {
    display: block;
    padding: 0;
    background: #ffffff;
    color: #0f172a;
    font-family: var(--project-font-family, Inter, Arial, sans-serif);
}

.preview-site-surface {
    overflow: hidden;
}

.published-page .render-section,
.preview-site-surface .render-section {
    position: relative;
    overflow: hidden;
}

.render-section {
    padding: clamp(56px, 7vw, 104px) clamp(18px, 4vw, 48px);
}

.render-section .container {
    width: min(100% - 32px, var(--container-width, 1180px));
}

.render-row {
    align-items: center;
    gap: var(--bs-gutter-y, 24px) var(--bs-gutter-x, 24px);
}

.render-column-layout {
    gap: clamp(16px, 2vw, 24px);
}

.render-section--hero {
    min-height: min(760px, calc(100vh - 68px));
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 34%),
        linear-gradient(135deg, #f8fbff 0%, #eef4ff 52%, #ffffff 100%);
}

.render-section--hero .container {
    position: relative;
    z-index: 1;
}

.render-section--hero .render-heading {
    max-width: 760px;
    font-size: clamp(42px, 6vw, 72px);
    letter-spacing: 0;
    line-height: 0.96;
}

.render-section--hero .render-paragraph {
    max-width: 660px;
    color: #475569;
    font-size: clamp(17px, 2vw, 21px);
}

.render-section--hero .render-button {
    min-height: 50px;
    padding: 0 22px;
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22);
}

.render-heading {
    max-width: 860px;
    color: #0f172a;
    font-weight: 900;
    letter-spacing: 0;
}

h2.render-heading {
    font-size: clamp(30px, 4vw, 46px);
}

h3.render-heading {
    font-size: clamp(22px, 3vw, 30px);
}

.render-paragraph {
    max-width: 760px;
    color: #475569;
    font-size: 17px;
    line-height: 1.72;
}

.render-image {
    width: 100%;
    max-height: none;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 22px;
    background: #f8fafc;
    object-fit: cover;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.render-button {
    min-height: 46px;
    border-color: var(--accent);
    border-radius: var(--project-button-radius, 8px);
    background: linear-gradient(135deg, var(--accent), var(--brand-secondary, #2563eb));
    padding: 0 20px;
    font-weight: 900;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.render-button:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.render-section--cards .render-columns,
.render-columns {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
    gap: clamp(14px, 2vw, 22px) !important;
}

.render-column {
    position: relative;
    min-height: 180px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    padding: 24px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.render-column::before {
    content: "";
    display: block;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(124, 58, 237, 0.14));
}

.render-column strong {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 18px;
}

.render-column p {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.65;
}

.render-section--soft {
    background: #f8fafc;
}

.render-section--media .render-gallery {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.render-gallery img {
    min-height: 220px;
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.render-gallery img:first-child {
    grid-column: span 3;
    grid-row: span 2;
}

.render-gallery img:not(:first-child) {
    grid-column: span 3;
}

.render-section--contact {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 38%),
        #0f172a !important;
    color: #ffffff;
}

.render-section--contact .render-heading,
.render-section--contact .render-paragraph {
    color: #ffffff;
}

.render-section--contact .render-paragraph {
    color: rgba(255, 255, 255, 0.78);
}

.render-section--contact .render-button {
    border-color: #ffffff;
    background: #ffffff;
    color: #0f172a;
}

.render-section--footer {
    padding-top: 34px;
    padding-bottom: 34px;
    background: #f8fafc;
}

.render-section--footer .render-heading {
    font-size: 22px;
}

.page-editor-shell {
    width: min(1180px, calc(100% - 32px));
}

.single-layout {
    max-width: 520px;
}

.editor-layout {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.editor-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    padding: 28px;
}

.editor-panel h2,
.component-add-form h3 {
    margin: 0;
}

.component-panel,
.component-manager,
.component-edit-form {
    display: grid;
    gap: 18px;
}

.block-add-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: end;
    gap: 14px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.editor-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

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

.component-add-form {
    display: grid;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.component-add-form h3 {
    font-size: 16px;
}

.compact-form {
    gap: 12px;
    margin-top: 0;
}

.component-list-title {
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.compact-empty {
    padding: 18px;
}

.component-list {
    border-top: 1px solid var(--border);
}

.component-row {
    display: grid;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.component-row-head,
.component-actions {
    display: flex;
    gap: 14px;
}

.component-row-head {
    align-items: flex-start;
    justify-content: space-between;
}

.component-row-head strong {
    display: block;
    margin-bottom: 4px;
}

.component-row-head span {
    color: var(--muted);
    font-size: 13px;
}

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

.component-fields.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.component-actions {
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
}

.field-small {
    min-width: 140px;
    max-width: 180px;
}

.inline-form {
    margin: 0;
}

.danger-link {
    color: #dc2626;
}

.image-preview-slot {
    display: grid;
    place-items: center;
    min-height: 126px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #f8fafc;
    overflow: hidden;
}

.component-thumb {
    width: 100%;
    max-height: 190px;
    object-fit: contain;
}

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

.media-card {
    display: grid;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
}

.media-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    background: #f8fafc;
    object-fit: contain;
}

.media-card strong,
.media-card span {
    display: block;
    overflow-wrap: anywhere;
}

.media-card span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.metric {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
}

.metric span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.metric strong {
    color: var(--text);
    font-size: 28px;
}

.admin-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
}

.admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--border);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.admin-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.version-section-list,
.version-section {
    display: grid;
    gap: 16px;
}

.version-section {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
}

.version-section h3 {
    margin: 0;
}

.version-component {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.json-preview {
    overflow-x: auto;
    margin: 0;
    border-radius: 6px;
    background: #f8fafc;
    color: var(--text);
    padding: 12px;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .render-component-shell {
        width: var(--component-tablet-width, var(--component-desktop-width, auto));
    }
}

@media (max-width: 720px) {
    h1 {
        font-size: 32px;
    }

    .page-shell {
        padding: 48px 0;
    }

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

    .dashboard-head,
    .section-title,
    .project-row {
        grid-template-columns: 1fr;
    }

    .editor-layout,
    .block-add-form,
    .component-add-grid,
    .component-fields.two-columns,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .project-logo {
        width: 48px;
        height: 48px;
    }

    .dashboard-head,
    .section-title,
    .project-actions {
        align-items: stretch;
    }

    .project-actions {
        justify-content: flex-start;
    }

    .component-actions {
        align-items: stretch;
    }

    .component-actions .button,
    .field-small {
        width: 100%;
        max-width: none;
    }

    .preview-bar {
        align-items: flex-start;
        padding: 12px 16px;
    }

    .preview-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .preview-page {
        width: min(100% - 24px, 980px);
        padding: 28px 0 48px;
    }

    .preview-seo-list {
        grid-template-columns: 1fr;
    }

    .render-image {
        max-height: 360px;
    }

    .render-component-shell {
        width: var(--component-mobile-width, var(--component-tablet-width, var(--component-desktop-width, auto)));
    }

    .render-hide-mobile {
        display: none;
    }

    .render-columns,
    .render-gallery {
        grid-template-columns: 1fr !important;
    }

    .published-shell {
        width: min(100% - 24px, 960px);
        padding: 34px 0 52px;
    }
}

.published-page {
    background: var(--site-bg, #ffffff);
    color: var(--site-text, #0f172a);
}

.published-header.is-scrolled {
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.render-row-custom {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--bs-gutter-x, 24px);
}

.render-column-span-12 {
    grid-column: span 12;
}

.render-column-span-7 {
    grid-column: span 7;
}

.render-column-span-6 {
    grid-column: span 6;
}

.render-column-span-5 {
    grid-column: span 5;
}

.render-section {
    isolation: isolate;
    padding: clamp(56px, 8vw, var(--site-section-y, 96px)) clamp(18px, 4vw, 48px);
}

.render-section .container {
    width: min(100% - 32px, var(--site-container, var(--container-width, 1200px)));
}

.render-section--hero-split-image,
.render-section--hero-centered {
    min-height: min(820px, calc(100vh - 68px));
    background:
        radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--site-primary, #2563eb) 16%, transparent), transparent 34%),
        linear-gradient(135deg, var(--site-surface, #f8fafc), var(--site-bg, #ffffff));
}

.render-section--hero-centered .render-row {
    justify-content: center;
    text-align: center;
}

.render-section--hero-centered .render-column-layout {
    margin-right: auto;
    margin-left: auto;
}

.render-section--logo-cloud,
.render-section--statistics-section,
.render-section--testimonials {
    background: var(--site-surface, #f8fafc);
}

.render-section--feature-grid,
.render-section--icon-feature-cards,
.render-section--services-cards,
.render-section--pricing-cards,
.render-section--faq-accordion {
    background: var(--site-bg, #ffffff);
}

.render-section--alternating-image-text .render-row:nth-child(even),
.render-section--portfolio-grid .render-row {
    align-items: center;
}

.render-section--cta-banner,
.render-section--contact-form {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 34%),
        var(--site-text, #0f172a) !important;
    color: #ffffff;
}

.render-section--cta-banner .render-heading,
.render-section--cta-banner .render-paragraph,
.render-section--contact-form .render-heading,
.render-section--contact-form .render-paragraph {
    color: #ffffff;
}

.render-section--modern-footer {
    border-top: 1px solid var(--site-border, #e2e8f0);
    background: var(--site-surface, #f8fafc);
}

.render-heading {
    color: var(--site-text, #0f172a);
    font-weight: var(--site-heading-weight, 800);
}

.render-paragraph {
    color: var(--site-muted, #64748b);
}

.render-column {
    border-color: color-mix(in srgb, var(--site-border, #e2e8f0) 82%, transparent);
    border-radius: var(--site-radius-md, 14px);
    box-shadow: var(--site-shadow-card, 0 12px 30px rgba(15, 23, 42, 0.08));
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.render-column:hover {
    border-color: color-mix(in srgb, var(--site-primary, #2563eb) 32%, var(--site-border, #e2e8f0));
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.render-column::before {
    background: linear-gradient(135deg, color-mix(in srgb, var(--site-primary, #2563eb) 18%, transparent), color-mix(in srgb, var(--site-secondary, #7c3aed) 18%, transparent));
}

.render-button {
    border-color: var(--site-primary, #2563eb);
    background: var(--site-primary, #2563eb);
    color: #ffffff;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.render-button:hover {
    background: var(--site-secondary, #7c3aed);
}

.render-image,
.render-gallery img {
    overflow: hidden;
    border-radius: var(--site-radius-lg, 24px);
    object-fit: cover;
    transition: transform 360ms ease, box-shadow 260ms ease;
}

.render-image:hover,
.render-gallery img:hover {
    transform: scale(1.015);
}

.render-mockup {
    display: grid;
    gap: 14px;
    min-height: 360px;
    border: 1px solid color-mix(in srgb, var(--site-border, #e2e8f0) 76%, transparent);
    border-radius: var(--site-radius-lg, 24px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
        radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--site-primary, #2563eb) 24%, transparent), transparent 30%),
        radial-gradient(circle at 82% 78%, color-mix(in srgb, var(--site-secondary, #7c3aed) 22%, transparent), transparent 32%),
        var(--site-surface, #f8fafc);
    padding: 28px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.render-mockup strong {
    align-self: end;
    color: var(--site-text, #0f172a);
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1;
}

.render-mockup span {
    display: block;
    height: 18px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
}

.render-mockup span:nth-child(2) {
    width: 72%;
}

.render-mockup span:nth-child(3) {
    width: 52%;
}

.render-mockup span:nth-child(4) {
    width: 36%;
    background: var(--site-primary, #2563eb);
}

.published-page [data-reveal],
.preview-site-surface [data-reveal],
.published-page .render-component-shell[data-animation],
.preview-site-surface .render-component-shell[data-animation] {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity var(--component-animation-duration, var(--reveal-duration, 620ms)) ease,
        transform var(--component-animation-duration, var(--reveal-duration, 620ms)) ease;
    transition-delay: var(--component-animation-delay, var(--reveal-delay, 0ms));
}

.published-page [data-reveal="fade-in"],
.preview-site-surface [data-reveal="fade-in"],
.published-page .render-component-shell[data-animation="fade-in"],
.preview-site-surface .render-component-shell[data-animation="fade-in"] {
    transform: none;
}

.published-page [data-reveal="scale-in"],
.preview-site-surface [data-reveal="scale-in"],
.published-page .render-component-shell[data-animation="scale-in"],
.preview-site-surface .render-component-shell[data-animation="scale-in"],
.published-page .render-component-shell[data-animation="zoom-in"],
.preview-site-surface .render-component-shell[data-animation="zoom-in"] {
    transform: scale(0.98);
}

.published-page [data-reveal="slide-left"],
.preview-site-surface [data-reveal="slide-left"],
.published-page .render-component-shell[data-animation="slide-left"],
.preview-site-surface .render-component-shell[data-animation="slide-left"] {
    transform: translateX(24px);
}

.published-page [data-reveal].is-revealed,
.preview-site-surface [data-reveal].is-revealed,
.published-page .render-component-shell[data-animation].is-revealed,
.preview-site-surface .render-component-shell[data-animation].is-revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
    }

    .published-page [data-reveal],
    .preview-site-surface [data-reveal],
    .published-page .render-component-shell[data-animation],
    .preview-site-surface .render-component-shell[data-animation] {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 900px) {
    .render-row-custom {
        grid-template-columns: 1fr;
    }

    .render-row-custom > .render-column-layout {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .render-section {
        padding: 56px 0 !important;
    }

    .render-section--hero-split-image,
    .render-section--hero-centered {
        min-height: auto !important;
    }

    .render-button {
        width: 100%;
    }

    .render-mockup {
        min-height: 260px;
        padding: 20px;
    }
}

@media (max-width: 720px) {
    .published-page .published-shell {
        width: 100%;
        padding: 0;
    }

    .published-header {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .published-nav {
        width: 100%;
        gap: 10px 14px;
        justify-content: center;
    }

    .published-header-cta {
        width: 100%;
        justify-content: center;
    }

    .render-section {
        padding: 54px 0 !important;
    }

    .render-section .container {
        width: min(100% - 28px, var(--container-width, 1180px));
    }

    .render-section--hero {
        min-height: auto !important;
    }

    .render-section--hero .render-heading {
        font-size: clamp(36px, 12vw, 48px);
    }

    .render-image {
        border-radius: 16px;
    }

    .render-column {
        min-height: auto;
        padding: 20px;
    }

    .render-section--media .render-gallery,
    .render-gallery {
        grid-template-columns: 1fr !important;
    }

    .render-gallery img,
    .render-gallery img:first-child,
    .render-gallery img:not(:first-child) {
        grid-column: auto;
        grid-row: auto;
        min-height: 210px;
    }
}
