html.nevv-editor-modal-open,
html.nevv-editor-modal-open body { overflow: hidden !important; }
.nevv-editor-dialog-backdrop { position: fixed; inset: 0; z-index: 2147483500; display: grid; place-items: center; padding: 18px; background: rgba(10, 17, 26, .72); backdrop-filter: blur(5px); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #16212d; }
.nevv-editor-dialog-backdrop--confirm { z-index: 2147483600; }
.nevv-editor-dialog { width: min(1180px, 100%); max-height: calc(100vh - 36px); display: flex; flex-direction: column; overflow: hidden; background: #f7f9fc; border: 1px solid rgba(21, 34, 48, .16); border-radius: 18px; box-shadow: 0 30px 90px rgba(0, 0, 0, .32); }
.nevv-editor-dialog--block { width: min(1480px, 100%); height: calc(100vh - 36px); }
.nevv-editor-dialog--page { width: min(1040px, 100%); }
.nevv-editor-dialog--confirm { width: min(520px, 100%); height: auto; }
.nevv-editor-dialog-head { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 20px; background: #101820; color: #fff; }
.nevv-editor-dialog-head small { display: block; margin-bottom: 3px; color: #8cd7ff; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.nevv-editor-dialog-head h2 { margin: 0; color: inherit; font-size: clamp(20px, 2.5vw, 29px); line-height: 1.1; }
.nevv-editor-dialog-head > div { min-width: 0; }
.nevv-editor-convert-ai { margin-top: 8px; min-height: 30px; padding: 5px 10px; border: 1px solid rgba(140,215,255,.65); border-radius: 7px; background: rgba(140,215,255,.12); color: #dff5ff; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.nevv-editor-convert-ai:hover { background: rgba(140,215,255,.2); }
.nevv-editor-convert-ai:disabled { opacity: .55; cursor: wait; }
.nevv-editor-dialog-head > button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 23px; cursor: pointer; }
.nevv-editor-dialog-body { min-height: 0; flex: 1; overflow: auto; }
.nevv-editor-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 3px; padding: 9px 14px 0; background: #e9eef5; border-bottom: 1px solid #ced7e2; overflow-x: auto; }
.nevv-editor-tabs button { flex: 0 0 auto; min-height: 43px; padding: 0 18px; border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; background: transparent; color: #526171; font: inherit; font-weight: 750; cursor: pointer; }
.nevv-editor-tabs button.is-active { background: #fff; border-color: #ced7e2; color: #101820; }
.nevv-editor-tab-panel { display: none; padding: 22px; background: #fff; min-height: 320px; }
.nevv-editor-tab-panel.is-active { display: block; }
.nevv-editor-fields { display: grid; gap: 16px; margin-bottom: 22px; }
.nevv-editor-fields--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nevv-editor-fields--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nevv-editor-fields--six { grid-template-columns: repeat(6, minmax(100px, 1fr)); }
.nevv-editor-fields label,
.nevv-editor-page-form > label,
.nevv-editor-upload label { display: grid; gap: 7px; color: #364657; font-size: 12px; font-weight: 800; letter-spacing: .015em; }
.nevv-editor-fields input,
.nevv-editor-fields select,
.nevv-editor-fields textarea,
.nevv-editor-page-form input,
.nevv-editor-page-form select,
.nevv-editor-upload input,
.nevv-editor-code { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #bac6d3; border-radius: 8px; background: #fff; color: #17202a; font: 500 14px/1.4 inherit; }
.nevv-editor-fields input[type="color"] { padding: 4px; }
.nevv-editor-fields small { color: #728092; font-weight: 500; }
.nevv-page-spacing-field { align-self: start; align-content: start; }
.nevv-page-spacing-field input { min-height: 44px; }
.nevv-editor-check { grid-template-columns: auto 1fr !important; align-items: center; align-content: center; }
.nevv-editor-check input { width: 20px; min-height: 20px; }
.nevv-editor-check span { min-width: 0; }
.nevv-editor-check strong,
.nevv-editor-check small { display: block; }
.nevv-editor-check--wide { grid-column: span 2; }
.nevv-editor-style-fields { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.nevv-editor-note { margin: 0 0 18px; padding: 13px 15px; border-left: 4px solid #2f80ed; background: #eef6ff; color: #27435e; border-radius: 6px; font-size: 13px; }
.nevv-editor-loading,
.nevv-editor-empty,
.nevv-editor-fatal { padding: 50px 24px; text-align: center; }
.nevv-editor-fatal { color: #9b1c1c; }
.nevv-builder-toolbar { position: sticky; top: 52px; z-index: 4; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 0 -22px 18px; padding: 10px 22px; background: rgba(247,249,252,.97); border-block: 1px solid #d8e0e9; }
.nevv-builder-rich-tools,
.nevv-builder-structure-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nevv-builder-rich-tools { flex: 1 1 720px; }
.nevv-builder-tool-group { display: inline-flex; align-items: center; gap: 3px; padding-right: 6px; border-right: 1px solid #d3dce6; }
.nevv-builder-tool-group:last-child { border-right: 0; }
.nevv-builder-tool-group select { min-height: 38px; max-width: 150px; padding: 0 28px 0 9px; border: 1px solid #b5c1cf; border-radius: 7px; background: #fff; color: #223143; font: 700 12px/1 inherit; }
.nevv-builder-color-tool { position: relative; width: 39px; height: 38px; display: grid; place-items: center; overflow: hidden; border: 1px solid #b5c1cf; border-radius: 7px; background: #fff; color: #223143; font-weight: 850; cursor: pointer; }
.nevv-builder-color-tool span { pointer-events: none; }
.nevv-builder-color-tool input { position: absolute; inset: auto 4px 3px; width: calc(100% - 8px); height: 7px; min-height: 0; padding: 0; border: 0; cursor: pointer; }
.nevv-builder-color-tool--background { background-image: linear-gradient(135deg, transparent 48%, rgba(255,245,157,.8) 49%); }
.nevv-builder-toolbar button,
.nevv-editor-dialog-footer button,
.nevv-editor-import,
.nevv-editor-upload button,
.nevv-editor-history button { min-height: 38px; padding: 0 13px; border: 1px solid #b5c1cf; border-radius: 7px; background: #fff; color: #223143; font: 750 12px/1 inherit; cursor: pointer; }
.nevv-builder-toolbar button:hover,
.nevv-editor-dialog-footer button:hover { border-color: #2f80ed; }
.nevv-builder-canvas { display: grid; gap: 14px; min-height: 260px; padding: 14px; border: 1px dashed #a8b6c6; border-radius: 12px; background-color: var(--nevv-editor-preview-bg, #eef2f7); color: var(--nevv-editor-preview-text, #17202a); text-align: var(--nevv-editor-preview-align, left); font-size: var(--nevv-editor-preview-font-size, 16px); line-height: var(--nevv-editor-preview-line-height, 1.5); }
.nevv-builder-row { display: grid; gap: 12px; min-width: 0; padding: 12px; border: 1px solid #cbd5e0; border-radius: 10px; background: transparent; }
.nevv-builder-column { min-width: 0; position: relative; border: 1px solid #d8e0e9; border-radius: 8px; background: transparent; }
.nevv-builder-column-meta { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 5px 7px; border-bottom: 1px solid #edf1f5; background: #f8fafc; color: #657587; font-size: 10px; }
.nevv-builder-column-meta input { width: 54px; min-height: 27px; padding: 2px 5px; border: 1px solid #c2ccd8; border-radius: 5px; }
.nevv-builder-cell { min-height: 155px; padding: 16px; outline: none; overflow-wrap: anywhere; color: inherit; text-align: inherit; font-size: inherit; line-height: inherit; }
.nevv-builder-cell.is-active { box-shadow: inset 0 0 0 2px #2f80ed; }
.nevv-builder-cell > :first-child { margin-top: 0; }
.nevv-builder-cell > :last-child { margin-bottom: 0; }
.nevv-builder-asset { display: inline-grid; grid-template-columns: minmax(80px, 170px) auto auto; align-items: center; gap: 7px; max-width: 100%; margin: 5px; padding: 5px; border: 1px solid #8eb8ea; border-radius: 8px; background: #eef6ff; vertical-align: middle; }
.nevv-builder-asset img { display: block; max-width: 170px; max-height: 100px; object-fit: contain; }
.nevv-builder-asset button { width: 25px; height: 25px; padding: 0; border: 0; border-radius: 50%; background: #9b1c1c; color: #fff; }
.nevv-editor-code { min-height: calc(100vh - 280px); resize: vertical; border-radius: 10px; background: #0f1720; color: #d8e8f5; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; tab-size: 4; }
.nevv-editor-upload { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 18px; padding: 13px; border: 1px solid #d4dde7; border-radius: 10px; background: #f8fafc; }
.nevv-editor-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.nevv-editor-media-card { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border: 1px solid #d7dfe8; border-radius: 10px; background: #fff; }
.nevv-editor-media-card > img,
.nevv-editor-media-card > span { width: 78px; height: 70px; object-fit: cover; display: grid; place-items: center; background: #eaf0f6; border-radius: 7px; }
.nevv-editor-media-card div { min-width: 0; }
.nevv-editor-media-card strong,
.nevv-editor-media-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nevv-editor-media-card small { color: #718092; font-size: 10px; }
.nevv-editor-media-card button { grid-column: auto / span 1; min-height: 33px; padding: 0 8px; border: 1px solid #b9c6d3; border-radius: 6px; background: #fff; font-size: 11px; cursor: pointer; }
.nevv-editor-history { display: grid; gap: 8px; }
.nevv-editor-history article { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 14px; border: 1px solid #d6dee8; border-radius: 9px; }
.nevv-editor-history strong,
.nevv-editor-history small { display: block; }
.nevv-editor-history small { margin-top: 4px; color: #758395; font-size: 11px; }
.nevv-editor-dialog-footer { position: sticky; bottom: 0; z-index: 6; display: flex; justify-content: space-between; gap: 14px; padding: 13px 18px; border-top: 1px solid #cfd8e3; background: rgba(247,249,252,.98); }
.nevv-editor-dialog-footer-left,
.nevv-editor-dialog-footer-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nevv-editor-dialog-footer .is-primary { border-color: #1769d2; background: #1769d2; color: #fff; }
.nevv-editor-dialog-footer .is-danger { border-color: #b42318; color: #b42318; }
.nevv-editor-import { position: relative; display: inline-flex; align-items: center; }
.nevv-editor-import input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.nevv-editor-dialog-footer [data-save-status] { max-width: 360px; color: #276749; font-size: 12px; }
.nevv-editor-dialog-footer [data-save-status].is-error { color: #b42318; }
.nevv-editor-confirm-text { margin: 0; padding: 24px; font-size: 16px; line-height: 1.55; }
@media (max-width: 900px) {
    .nevv-editor-dialog-backdrop { padding: 0; }
    .nevv-editor-dialog,
    .nevv-editor-dialog--block,
    .nevv-editor-dialog--page { width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; }
    .nevv-editor-fields--two,
    .nevv-editor-fields--three,
    .nevv-editor-fields--six,
    .nevv-editor-style-fields { grid-template-columns: 1fr 1fr; }
    .nevv-editor-check--wide { grid-column: span 2; }
}
@media (max-width: 560px) {
    .nevv-editor-tab-panel { padding: 14px; }
    .nevv-builder-toolbar { top: 51px; margin-inline: -14px; padding-inline: 14px; }
    .nevv-editor-fields--two,
    .nevv-editor-fields--three,
    .nevv-editor-fields--six,
    .nevv-editor-style-fields { grid-template-columns: 1fr; }
    .nevv-editor-check--wide { grid-column: auto; }
    .nevv-builder-tool-group { border-right: 0; padding-right: 0; }
    .nevv-editor-dialog-footer { flex-direction: column; align-items: stretch; }
    .nevv-editor-dialog-footer-left,
    .nevv-editor-dialog-footer-right { width: 100%; }
    .nevv-editor-dialog-footer-right button { flex: 1; }
}

.nevv-editor-fields label.is-transparent-color input[type="color"] { opacity: .35; filter: grayscale(1); }
.nevv-editor-field--wide { grid-column: 1 / -1; }
.nevv-editor-background-preview { min-height: 150px; display: grid; grid-template-columns: minmax(0, 260px) 1fr; align-items: center; gap: 14px; padding: 12px; border: 1px dashed #a8b6c6; border-radius: 10px; background: #f7f9fc; color: #607083; }
.nevv-editor-background-preview img { display: block; width: 100%; max-height: 190px; object-fit: contain; border-radius: 8px; background: #e8eef5; }
.nevv-editor-background-upload { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px; border: 1px solid #d4dde7; border-radius: 10px; background: #f8fafc; }
.nevv-editor-background-upload label { flex: 1 1 320px; }
.nevv-editor-background-upload button { min-height: 44px; padding: 0 15px; border: 1px solid #b5c1cf; border-radius: 8px; background: #fff; color: #223143; font-weight: 750; cursor: pointer; }
.nevv-editor-background-upload span { align-self: center; color: #526171; font-size: 12px; }
@media (max-width: 700px) {
    .nevv-editor-background-preview { grid-template-columns: 1fr; }
}
.nevv-builder-cell .nevv-text-page-cutout {
    color: #1769d2 !important;
    -webkit-text-fill-color: #1769d2 !important;
    background: none !important;
    text-decoration: underline dotted;
    text-decoration-thickness: 1px;
}

.nevv-editor-code-mode { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #cbd6e2; border-radius: 9px; background: #f7f9fc; }
.nevv-editor-menu-pages { margin: 0 0 22px; padding: 14px; border: 1px solid #d2dbe6; border-radius: 10px; background: #f8fafc; transition: opacity .18s ease; }
.nevv-editor-menu-pages > strong { display: block; margin-bottom: 10px; color: #2f4052; font-size: 13px; }
.nevv-editor-menu-pages > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.nevv-editor-menu-pages label { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 10px; border: 1px solid #d8e0e9; border-radius: 7px; background: #fff; font-size: 12px; font-weight: 700; }
.nevv-editor-menu-pages label input { width: 18px; min-height: 18px; }
.nevv-editor-menu-pages label small { color: #708093; font-weight: 500; }
.nevv-editor-menu-pages.is-disabled { opacity: .48; }
.nevv-builder-tool-group [data-font-size] { min-width: 94px; }

.nevv-editor-auto-height-note { min-height: 68px; display: grid; align-content: center; gap: 5px; padding: 11px 13px; border: 1px solid #b8d8c4; border-radius: 8px; background: #f0faf4; color: #245238; }
.nevv-editor-auto-height-note strong { font-size: 13px; }
.nevv-editor-auto-height-note small { color: #527262; line-height: 1.35; }

.nevv-editor-common-spacing {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #dce4ed;
}
.nevv-editor-common-spacing label.is-disabled { opacity: .48; }
.nevv-editor-note--sticky {
    border-color: #c7b7ef;
    background: #f7f3ff;
    color: #45356c;
}

/* 0.2.9: visible color swatches. The large square applies the current color;
   the narrow arrow opens the native picker. Selection changes update the
   square, so the toolbar also reports the color already used by the text. */
.nevv-builder-tool-group--colors { gap: 6px; }
.nevv-builder-color-control {
    --nevv-tool-swatch: #17202a;
    --nevv-tool-swatch-ink: #ffffff;
    display: inline-flex;
    height: 38px;
    overflow: hidden;
    border: 1px solid #b5c1cf;
    border-radius: 7px;
    background: #fff;
}
.nevv-builder-color-apply {
    width: 38px;
    min-width: 38px;
    min-height: 36px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--nevv-tool-swatch) !important;
    color: var(--nevv-tool-swatch-ink) !important;
    box-shadow: none !important;
    font-size: 17px !important;
    font-weight: 900 !important;
}
.nevv-builder-color-control.is-transparent .nevv-builder-color-apply {
    color: #17202a !important;
    background-color: #fff !important;
    background-image:
        linear-gradient(45deg, #dce3eb 25%, transparent 25%),
        linear-gradient(-45deg, #dce3eb 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #dce3eb 75%),
        linear-gradient(-45deg, transparent 75%, #dce3eb 75%) !important;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0 !important;
    background-size: 12px 12px !important;
}
.nevv-builder-color-picker {
    position: relative;
    width: 22px;
    min-width: 22px;
    display: grid;
    place-items: center;
    border-left: 1px solid rgba(23,32,42,.18);
    background: #fff;
    color: #415164;
    cursor: pointer;
}
.nevv-builder-color-picker span { pointer-events: none; font-size: 11px; }
.nevv-builder-color-picker input[type="color"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}
.nevv-builder-color-confirm {
    min-height: 36px !important;
    padding: 0 8px !important;
    border: 0 !important;
    border-left: 1px solid rgba(23,32,42,.18) !important;
    border-radius: 0 !important;
    background: #f7f9fc !important;
    color: #223143 !important;
    box-shadow: none !important;
    font-size: 10px !important;
    font-weight: 800 !important;
}
.nevv-builder-color-confirm:hover { background: #e9f2ff !important; }
.nevv-editor-range-pair { display: grid; grid-template-columns: minmax(120px, 1fr) 88px; gap: 8px; align-items: center; }
.nevv-editor-range-pair input[type="range"] { min-height: 36px; padding: 0; }
.nevv-editor-range-pair input[type="number"] { min-height: 40px; }
@media (max-width: 700px) {
    .nevv-editor-range-pair { grid-template-columns: 1fr 78px; }
}

/* 0.2.12: separate block defaults from local selection formatting. */
.nevv-editor-defaults-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 0 0 12px;
    padding: 11px 13px;
    border: 1px solid #c9d7e6;
    border-radius: 9px;
    background: #f3f7fb;
    color: #26384b;
}
.nevv-editor-defaults-note strong { font-size: 13px; }
.nevv-editor-defaults-note span { flex: 1 1 420px; color: #5f7082; font-size: 11px; line-height: 1.4; }
.nevv-editor-defaults-note button {
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid #aebdcd;
    border-radius: 7px;
    background: #fff;
    color: #25384b;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}
.nevv-editor-defaults-note button:hover { background: #e9f2ff; border-color: #76a9e7; }
.nevv-builder-toolbar-caption {
    flex: 0 1 190px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding-right: 10px;
    border-right: 1px solid #d1dae4;
}
.nevv-builder-toolbar-caption strong { color: #26384b; font-size: 11px; }
.nevv-builder-toolbar-caption small { color: #6b7a8a; font-size: 9px; line-height: 1.25; }
.nevv-builder-toolbar .nevv-builder-rich-tools { flex: 1 1 760px; }
.nevv-builder-toolbar [data-clear-local-align],
.nevv-builder-toolbar [data-clear-local-text-color] {
    padding-inline: 9px !important;
    font-size: 10px !important;
}
@media (max-width: 900px) {
    .nevv-builder-toolbar-caption { flex-basis: 100%; border-right: 0; border-bottom: 1px solid #d1dae4; padding: 0 0 7px; }
}

/* 0.2.13: selection-only typography. */
.nevv-builder-toolbar-caption [data-format-status] {
    min-height: 13px;
    color: #276749;
    font-size: 9px;
    font-weight: 750;
    line-height: 1.25;
}
.nevv-builder-toolbar-caption [data-format-status].is-error { color: #b42318; }

/* 0.2.15: dedicated spreadsheet-like text grid editor. */
.nevv-grid-builder-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #cfd9e5;
    border-radius: 9px;
    background: #f6f9fc;
    color: #5d6d7d;
    font-size: 11px;
}
.nevv-grid-builder-head .nevv-editor-check { margin: 0; }
.nevv-grid-inspector {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 12px;
    margin-bottom: 14px;
}
.nevv-grid-inspector > section {
    min-width: 0;
    padding: 12px;
    border: 1px solid #ccd7e3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(25,39,55,.05);
}
.nevv-grid-inspector header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
    color: #203246;
}
.nevv-grid-inspector header strong { font-size: 13px; }
.nevv-grid-inspector header span { color: #758395; font-size: 10px; }
.nevv-grid-inspector-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.nevv-grid-inspector-actions button {
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid #b8c5d3;
    border-radius: 7px;
    background: #f8fafc;
    color: #27394c;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}
.nevv-grid-inspector-actions button:hover { border-color: #6ea2df; background: #edf5ff; }
.nevv-grid-inspector-actions button.is-danger { border-color: #e0aaa6; color: #a82018; }
.nevv-grid-inspector-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 8px;
}
.nevv-grid-inspector-fields label {
    display: grid;
    gap: 5px;
    color: #405166;
    font-size: 10px;
    font-weight: 750;
}
.nevv-grid-inspector-fields input,
.nevv-grid-inspector-fields select {
    width: 100%;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid #c7d2de;
    border-radius: 7px;
    background: #fff;
    color: #17202a;
}
.nevv-grid-inspector-fields input[type="color"] { padding: 3px; }
.nevv-grid-inspector-fields .nevv-editor-check { display: flex; align-items: center; align-self: end; min-height: 36px; }
.nevv-grid-builder-canvas {
    --nevv-grid-editor-guide: #9eb3c9;
    display: grid;
    gap: var(--nevv-editor-grid-row-gap, 16px);
    padding: 14px;
    border: 1px solid #c9d6e3;
    border-radius: 12px;
    background: var(--nevv-editor-preview-bg, transparent);
    color: var(--nevv-editor-preview-text, #000);
    font-size: var(--nevv-editor-preview-font-size, 16px);
    line-height: var(--nevv-editor-preview-line-height, 1.5);
}
.nevv-grid-builder-row {
    position: relative;
    display: grid;
    min-height: var(--nevv-grid-editor-row-min-height, 0px);
    gap: var(--nevv-grid-editor-column-gap, 16px);
    padding: var(--nevv-grid-editor-row-padding, 0px);
    background: var(--nevv-grid-editor-row-bg, transparent);
    align-items: stretch;
}
.nevv-grid-builder-column {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: var(--nevv-grid-editor-cell-min-height, 0px);
    flex-direction: column;
    padding: var(--nevv-grid-editor-cell-padding, 16px);
    border-width: var(--nevv-grid-editor-border-width, 0px);
    border-style: var(--nevv-grid-editor-border-style, none);
    border-color: var(--nevv-grid-editor-border-color, transparent);
    border-radius: var(--nevv-grid-editor-radius, 0px);
    background: var(--nevv-grid-editor-cell-bg, transparent);
}
.nevv-grid-builder-column .nevv-builder-column-meta {
    position: absolute;
    z-index: 3;
    top: 4px;
    right: 4px;
    width: auto;
    min-width: 112px;
    opacity: .42;
    transition: opacity .15s ease;
}
.nevv-grid-builder-column:hover .nevv-builder-column-meta,
.nevv-grid-builder-column:has(.nevv-grid-builder-cell.is-active) .nevv-builder-column-meta { opacity: 1; }
.nevv-grid-builder-cell {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: max(64px, var(--nevv-grid-editor-cell-min-height, 0px));
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: var(--nevv-grid-editor-cell-justify, center);
    text-align: var(--nevv-grid-editor-cell-align, left);
    outline: 0;
}
.nevv-grid-builder-cell > :first-child { margin-top: 0; }
.nevv-grid-builder-cell > :last-child { margin-bottom: 0; }
.nevv-grid-builder-canvas.has-guides .nevv-grid-builder-row { outline: 1px dashed #7f99b3; outline-offset: 5px; }
.nevv-grid-builder-canvas.has-guides .nevv-grid-builder-column { box-shadow: inset 0 0 0 1px var(--nevv-grid-editor-guide); }
.nevv-grid-builder-canvas.has-guides .nevv-grid-builder-cell.is-active { box-shadow: inset 0 0 0 2px #1677e8; }
.nevv-grid-builder-canvas:not(.has-guides) .nevv-builder-column-meta { display: none; }
@media (max-width: 900px) {
    .nevv-grid-inspector { grid-template-columns: 1fr; }
}

.nevv-editor-collapsible { margin: 14px 0; border: 1px solid #d7e0ea; border-radius: 12px; background: #f8fbfe; }
.nevv-editor-collapsible > summary { cursor: pointer; padding: 13px 16px; font-weight: 700; user-select: none; }
.nevv-editor-collapsible[open] > summary { border-bottom: 1px solid #d7e0ea; }
.nevv-editor-collapsible-body { padding: 14px 16px; }
.nevv-editor-collapsible label.is-disabled, .nevv-editor-collapsible [data-frame-custom].is-disabled { opacity: .48; }
.nevv-editor-block-frame { clear: both; }


/* 0.2.24: wspolny selektor koloru z jawnym HEX oraz schowkiem kolorow. */
.nevv-color-field {
    --nevv-field-color: #000000;
    position: relative;
    display: inline-flex;
    width: 100%;
    min-width: 0;
    font: inherit;
}
.nevv-color-field--toolbar { width: 24px; min-width: 24px; height: 38px; }
.nevv-color-field__trigger {
    width: 100%;
    min-height: 44px;
    display: grid;
    grid-template-columns: 34px minmax(76px, 1fr) 18px;
    align-items: center;
    gap: 7px;
    padding: 4px 8px 4px 4px;
    border: 1px solid #bac6d3;
    border-radius: 8px;
    background: #fff;
    color: #253547;
    cursor: pointer;
    font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.nevv-color-field__trigger:focus-visible { outline: 2px solid #2f80ed; outline-offset: 2px; }
.nevv-color-field__swatch,
.nevv-color-popover__preview {
    display: block;
    background: var(--nevv-field-color);
    border: 1px solid rgba(15,23,32,.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.nevv-color-field__swatch { width: 32px; height: 32px; border-radius: 6px; }
.nevv-color-field__trigger code { overflow: hidden; text-overflow: ellipsis; color: inherit; font: inherit; }
.nevv-color-field__arrow { justify-self: end; color: #637386; font-family: inherit; }
.nevv-color-field--toolbar .nevv-color-field__trigger--toolbar {
    width: 24px;
    min-width: 24px;
    min-height: 36px;
    height: 36px;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 0;
    border: 0;
    border-left: 1px solid rgba(23,32,42,.18);
    border-radius: 0;
    background: #fff;
    color: #415164;
}
.nevv-color-field.is-disabled { opacity: .42; }
.nevv-color-field__native {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 54px !important;
    min-width: 54px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 2px !important;
    border: 1px solid #aebccc !important;
    border-radius: 6px !important;
    opacity: 1 !important;
    cursor: pointer;
    background: #fff;
}
.nevv-color-popover {
    position: absolute;
    z-index: 2147483700;
    top: calc(100% + 7px);
    left: 0;
    width: min(310px, calc(100vw - 32px));
    display: grid;
    gap: 10px;
    padding: 11px;
    border: 1px solid #aebccc;
    border-radius: 10px;
    background: #fff;
    color: #253547;
    box-shadow: 0 18px 46px rgba(15,23,32,.24);
    font: 600 12px/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
}
.nevv-color-popover[hidden] { display: none !important; }
.nevv-color-field--toolbar .nevv-color-popover { left: auto; right: 0; }
.nevv-color-popover__title { display: flex; align-items: center; gap: 8px; }
.nevv-color-popover__preview { width: 28px; height: 28px; border-radius: 6px; }
.nevv-color-popover__title strong { font-size: 12px; letter-spacing: .06em; }
.nevv-color-popover__hex-row { display: grid; grid-template-columns: minmax(0, 1fr) 38px 38px; gap: 6px; align-items: center; }
.nevv-color-popover__hex-row input[type="text"] {
    width: 100%;
    min-height: 38px;
    padding: 7px 9px;
    border: 1px solid #aebccc;
    border-radius: 7px;
    background: #fff;
    color: #17202a;
    text-transform: uppercase;
    font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .025em;
}
.nevv-color-popover__icon {
    width: 38px;
    min-width: 38px;
    min-height: 38px !important;
    display: grid !important;
    place-items: center;
    padding: 0 !important;
    border: 1px solid #aebccc !important;
    border-radius: 7px !important;
    background: #f7f9fc !important;
    color: #26384a !important;
    cursor: pointer;
}
.nevv-color-popover__icon:hover { border-color: #2f80ed !important; background: #eef6ff !important; }
.nevv-color-popover__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nevv-color-popover__native-row { display: grid; grid-template-columns: auto 58px 1fr; align-items: center; gap: 8px; color: #657587; }
.nevv-color-popover__native-row code { color: #47596c; font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.nevv-color-popover__actions { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; min-height: 32px; }
.nevv-color-popover__actions > button {
    min-height: 34px !important;
    padding: 0 12px !important;
    border: 1px solid #1769d2 !important;
    border-radius: 7px !important;
    background: #1769d2 !important;
    color: #fff !important;
    font-weight: 800 !important;
    cursor: pointer;
}
.nevv-color-popover__actions small { color: #607083; font-size: 10px; font-weight: 600; }
.nevv-color-popover__actions small.is-error { color: #a1261c; }
.nevv-editor-fields label.is-transparent-color .nevv-color-field { opacity: .5; filter: grayscale(.75); }
@media (max-width: 560px) {
    .nevv-color-popover { position: fixed; top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; }
}

/* Canonical HTML/CSS block-source UI shared by autonomous modules. */
.nevv-code-source-head,
.nevv-code-preview-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin:0 0 12px; }
.nevv-code-source-head > div,
.nevv-code-preview-head > div { display:flex; flex-direction:column; gap:4px; }
.nevv-code-source-head small,
.nevv-code-preview-head small { color:#657486; }
.nevv-code-source-editor { width:100%; min-height:520px; resize:vertical; padding:16px; border:1px solid #cfd8e3; border-radius:10px; background:#0f1720; color:#eef5ff; font:13px/1.55 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace; tab-size:4; }
.nevv-code-preview-widths { display:flex; flex-wrap:wrap; gap:6px; }
.nevv-code-preview-widths button.is-active { background:#1769d2; border-color:#1769d2; color:#fff; }
.nevv-code-preview-stage { width:100%; overflow:auto; padding:14px; border:1px solid #d7e0ea; border-radius:12px; background:#dfe6ee; }
.nevv-code-preview-stage iframe { display:block; max-width:none; min-height:620px; border:0; background:#fff; box-shadow:0 8px 28px rgba(16,31,48,.16); margin:0 auto; }
.nevv-code-history > div { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:12px 0; border-bottom:1px solid #e1e7ee; }
.nevv-code-history > div > div { display:flex; flex-direction:column; gap:3px; }
.nevv-code-attachment-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:12px; margin-top:14px; }
.nevv-code-attachment-grid article { display:flex; flex-direction:column; gap:7px; padding:10px; border:1px solid #d7e0ea; border-radius:10px; background:#fff; min-width:0; }
.nevv-code-attachment-grid img { width:100%; height:110px; object-fit:contain; background:#eef2f6; border-radius:7px; }
.nevv-code-attachment-grid article > div { display:flex; flex-wrap:wrap; gap:6px; }
.nevv-code-file-icon { display:grid; place-items:center; height:110px; border-radius:7px; background:#eef2f6; color:#64748b; font-weight:800; }
.nevv-code-rich-toolbar label { display:inline-flex; align-items:center; gap:6px; font-size:12px; }
.nevv-code-rich-toolbar input[type=color] { width:34px; height:28px; padding:0; }
.nevv-code-origin-note { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 14px; padding:11px 13px; border:1px solid #efc978; border-radius:9px; background:#fff7df; }
.nevv-code-origin-note[hidden] { display:none; }
.nevv-code-visual-lock { opacity:.55; pointer-events:none; }
.nevv-code-editor-grid { display:flex; flex-direction:column; gap:10px; }
.nevv-code-editor-row { display:grid; gap:10px; min-width:0; }
.nevv-code-editor-cell-wrap { min-width:0; border:1px dashed #aebdcb; border-radius:9px; background:#fff; overflow:hidden; }
.nevv-code-editor-cell-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:6px 8px; background:#eff4f8; }
.nevv-code-editor-cell { min-height:100px; padding:12px; outline:none; overflow-wrap:anywhere; }
.nevv-code-editor-cell:focus { box-shadow:inset 0 0 0 2px #5b9ce8; }
.nevv-code-structure-actions { display:flex; flex-wrap:wrap; gap:7px; margin:10px 0; }
.nevv-code-grid-inspector { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:12px 0; }
.nevv-code-grid-inspector > section { padding:12px; border:1px solid #d8e0e8; border-radius:10px; background:#f8fafc; }
.nevv-code-grid-inspector header { display:flex; justify-content:space-between; gap:12px; margin-bottom:10px; }
.nevv-code-grid-inspector-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.nevv-code-grid-inspector-fields label { display:flex; flex-direction:column; gap:5px; }
.nevv-code-grid-inspector-actions { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
@media (max-width:900px) {
    .nevv-code-preview-head,.nevv-code-source-head { flex-direction:column; }
    .nevv-code-grid-inspector { grid-template-columns:1fr; }
    .nevv-code-grid-inspector-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
