@font-face { font-family: Manrope; font-weight: 400 500; font-display: swap; src: url('../fonts/manrope-regular.woff2') format('woff2'); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url('../fonts/manrope-semibold.woff2') format('woff2'); }
@font-face { font-family: Manrope; font-weight: 700 800; font-display: swap; src: url('../fonts/manrope-bold.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400 700; font-display: swap; src: url('../fonts/cormorant-medium.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400 700; font-style: italic; font-display: swap; src: url('../fonts/cormorant-italic.woff2') format('woff2'); }

:root {
    --admin-bg: #f6f4f7;
    --admin-surface: #ffffff;
    --admin-surface-2: #faf8fb;
    --admin-surface-3: #f0e8f2;
    --admin-line: #e7e1ea;
    --admin-line-strong: #cfc0d4;
    --admin-text: #2f2436;
    --admin-muted: #76697c;
    --admin-accent: #652d70;
    --admin-accent-2: #421e4b;
    --admin-accent-rgb: 101, 45, 112;
    --admin-success: #176747;
    --admin-danger: #a42638;
    --admin-warning: #765019;
    --admin-header-bg: rgba(255,255,255,.96);
    --admin-button-text: #fff;
    --admin-radius: 14px;
    --admin-shadow: 0 12px 32px rgba(48, 34, 24, .09);
    --admin-font: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
    --admin-sidebar-width: 250px;
    --admin-header-height: 78px;
}

:root[data-bs-theme="dark"] {
    --admin-bg: #17121c;
    --admin-surface: #211a27;
    --admin-surface-2: #2b2232;
    --admin-surface-3: #392c41;
    --admin-line: #4b3a55;
    --admin-line-strong: #71527f;
    --admin-text: #f7f1fa;
    --admin-muted: #cbbdd2;
    --admin-accent: #d7a6e2;
    --admin-accent-2: #ebccf2;
    --admin-accent-rgb: 215, 166, 226;
    --admin-success: #81ddb2;
    --admin-danger: #ffabb8;
    --admin-warning: #f2cc8c;
    --admin-header-bg: rgba(33,26,39,.96);
    --admin-button-text: #2f2436;
    --admin-shadow: 0 12px 32px rgba(0,0,0,.24);
}

.theme-picker { display: inline-flex; align-items: center; gap: 8px; margin: 0 16px 0 0; color: var(--admin-muted); font-size: 12px; }
.theme-picker .form-select { width: auto; min-width: 96px; }
.login-card > .theme-picker { margin: 20px 0 0; justify-self: end; }
@media (max-width: 575.98px) {
    .theme-picker { margin-right: 8px; }
    .admin-header .theme-picker > span, .admin-header .user-profile > span { display: none; }
    .header-content { gap: 4px; }
}

.sort-column { width: 120px; }
.sort-cell { white-space: nowrap; }
.sort-handle { display: inline-grid; place-items: center; width: 32px; height: 36px; margin-right: 6px; vertical-align: middle; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--admin-muted); cursor: grab; touch-action: none; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.admin-body .table tbody tr:hover .sort-handle, .sort-handle:focus-visible { border-color: var(--admin-line-strong); background: var(--admin-surface-3); color: var(--admin-accent-2); }
.sort-handle:disabled { cursor: wait; opacity: .45; }
.sort-handle:active { cursor: grabbing; }
.sort-cell [data-sort-position] { display: inline-grid; place-items: center; min-width: 36px; height: 26px; padding: 0 9px; vertical-align: middle; border: 1px solid var(--admin-line); border-radius: 999px; background: var(--admin-surface-2); color: var(--admin-muted); font: 500 12px var(--admin-font); font-variant-numeric: tabular-nums; }
.admin-body .table tbody tr:first-child [data-sort-position] { border-color: rgba(var(--admin-accent-rgb),.38); background: rgba(var(--admin-accent-rgb),.1); color: var(--admin-accent-2); }
.admin-body .table tr.is-dragging > td { --bs-table-bg: var(--admin-surface-3); border-color: rgba(var(--admin-accent-rgb),.32); }
.admin-body .table tr.is-dragging > td:first-child { box-shadow: inset 3px 0 0 var(--admin-accent); }
.admin-body .table tr.is-dragging .sort-handle { border-color: var(--admin-accent); background: rgba(var(--admin-accent-rgb),.14); color: var(--admin-accent-2); cursor: grabbing; }
.admin-body .table tr.is-dragging [data-sort-position] { border-color: var(--admin-accent); color: var(--admin-accent-2); }
.list-card:has(tr.is-dragging) { user-select: none; }
table[aria-busy="true"] tbody { opacity: .72; transition: opacity .2s ease; }
.sort-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 18px; border-bottom: 1px solid var(--admin-line); background: rgba(var(--admin-accent-rgb),.035); }
.sort-feedback__hint { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--admin-muted); font-size: 12.5px; line-height: 1.5; }
.sort-feedback__hint > i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(var(--admin-accent-rgb),.12); color: var(--admin-accent); font-size: 13px; }
.sort-feedback__hint strong { color: var(--admin-text); font-weight: 600; }
.sort-feedback kbd { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; border: 1px solid var(--admin-line-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--admin-surface-2); color: var(--admin-text); font: 500 11px var(--admin-font); }
.sort-status { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-weight: 600; }
.sort-status:empty { display: none; }
.sort-status.text-success::before, .sort-status.text-danger::before, .sort-status.text-warning::before { font: 900 11px 'Font Awesome 7 Free'; }
.sort-status.text-success::before { content: "\f00c"; }
.sort-status.text-danger::before, .sort-status.text-warning::before { content: "\f071"; }
.admin-body .sort-status.text-success { color: var(--admin-success) !important; }
.admin-body .sort-status.text-danger { color: var(--admin-danger) !important; }
.admin-body .sort-status.text-warning { color: var(--admin-warning) !important; }

.publication-toggle { margin: 0; }
.publication-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border: 1px solid var(--admin-line-strong); border-radius: 999px; background: var(--admin-surface-2); color: var(--admin-muted); font: 600 12px var(--admin-font); white-space: nowrap; }
.publication-badge > span { width: 7px; height: 7px; border: 1.5px solid currentColor; border-radius: 50%; }
.publication-badge.is-active { border-color: rgba(23,103,71,.32); background: rgba(23,103,71,.1); color: var(--admin-success); }
.publication-badge.is-active > span { background: currentColor; box-shadow: 0 0 0 3px rgba(23,103,71,.16); }
button.publication-badge { cursor: pointer; transition: border-color .15s ease, background .15s ease; }
button.publication-badge:hover { border-color: var(--admin-accent); }
.admin-body .table tr.is-unpublished strong, .admin-body .table tr.is-unpublished code { color: var(--admin-muted); }
.publication-card__title { margin: 0 0 14px; font: 600 17px var(--admin-font); letter-spacing: -.01em; }
.publication-field .form-check-label { font-weight: 600; }
.publication-field .form-switch .form-check-input { width: 2.4em; height: 1.3em; cursor: pointer; }
.publication-field p { margin: 6px 0 0; color: var(--admin-muted); font-size: 13px; }

.detail-heading p { max-width: 640px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.detail-sidebar { position: sticky; top: 100px; display: grid; gap: 24px; }
.preview-panel { overflow: hidden; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--admin-line); }
.preview-toolbar .page-kicker { display: block; margin: 0 0 2px; }
.preview-toolbar p { margin: 0; color: var(--admin-muted); font-size: 13px; }
.preview-devices { display: inline-flex; padding: 3px; border: 1px solid var(--admin-line); border-radius: 10px; background: var(--admin-surface-2); }
.preview-devices button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--admin-muted); font-size: 12.5px; font-weight: 600; }
.preview-devices button:hover { color: var(--admin-text); }
.preview-devices button.is-selected { background: var(--admin-surface-3); color: var(--admin-text); box-shadow: inset 0 0 0 1px var(--admin-line-strong); }
.preview-devices button.is-selected i { color: var(--admin-accent); }
.preview-canvas { padding: 20px; background-color: var(--admin-surface-3); background-image: radial-gradient(rgba(var(--admin-accent-rgb),.10) 1px, transparent 1px); background-size: 16px 16px; }
.preview-viewport { width: 100%; margin: 0 auto; overflow: hidden; border: 1px solid var(--admin-line-strong); border-radius: 12px; background: var(--admin-surface); box-shadow: var(--admin-shadow); transition: width .3s ease, border-radius .3s ease; }
.preview-viewport.is-mobile { width: 390px; max-width: 100%; border: 8px solid var(--admin-line-strong); border-radius: 30px; }
.preview-frame { display: block; width: 100%; height: min(72vh, 820px); border: 0; background: var(--admin-surface); }
.preview-footnote { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 18px; border-top: 1px solid var(--admin-line); color: var(--admin-muted); font-size: 12px; }
.preview-footnote i { color: var(--admin-accent); }
.detail-meta { margin: 0; }
.detail-meta dt { color: var(--admin-muted); font: 500 10px var(--admin-font); letter-spacing: .1em; text-transform: uppercase; }
.detail-meta dd { margin: 3px 0 14px; font-size: 13.5px; overflow-wrap: anywhere; }
.detail-meta dd:last-child { margin-bottom: 0; }
.banner-type-filter { flex: 0 1 220px; min-width: 180px; }
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--admin-bg); }
body.admin-body { margin: 0; min-height: 100vh; background: var(--admin-bg); color: var(--admin-text); font-family: var(--admin-font); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(var(--admin-accent-rgb),.45); outline-offset: 3px; }

.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1030; width: var(--admin-sidebar-width); padding: 20px 14px; overflow-y: auto; background: var(--admin-surface); border-right: 1px solid var(--admin-line); }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 4px 12px 32px; }

.admin-menu { padding: 0 4px; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-section { margin: 22px 12px 8px; color: var(--admin-muted); font: 500 10px var(--admin-font); letter-spacing: .13em; text-transform: uppercase; }
.menu-item { margin: 3px 0; }
.menu-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--admin-muted); font-size: 13px; transition: background .2s ease, color .2s ease, transform .2s ease; }
.menu-link i { width: 17px; color: var(--admin-muted); text-align: center; }
.menu-link:hover { background: var(--admin-surface-3); color: var(--admin-text); transform: translateX(2px); }
.menu-item.active .menu-link { background: var(--admin-surface-3); color: var(--admin-accent-2); font-weight: 600; }
.menu-item.active .menu-link i { color: var(--admin-accent); }

.menu-group > summary { cursor: pointer; list-style: none; }
.menu-group > summary::-webkit-details-marker { display: none; }
.menu-group > summary::after { margin-inline-start: auto; font: 900 11px "Font Awesome 7 Free"; content: "\f107"; }
.menu-group[open] > summary::after { transform: rotate(180deg); }
.menu-sublist { list-style: none; margin: 4px 0 8px 20px; padding-inline-start: 8px; border-inline-start: 1px solid var(--admin-line-strong); }
.menu-sublist .menu-link { padding-block: 8px; }
.carpet-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .8rem; }
.carpet-option-checks { max-height: 16rem; overflow-y: auto; padding: .3rem; }
.carpet-size-price legend { font-size: 1rem; font-weight: 600; }

.admin-main { min-height: 100vh; margin-left: var(--admin-sidebar-width); }
.admin-header { position: sticky; top: 0; z-index: 100; height: var(--admin-header-height); background: var(--admin-header-bg); border-bottom: 1px solid var(--admin-line); backdrop-filter: blur(18px); }
.header-content { display: flex; align-items: center; justify-content: flex-end; height: 100%; padding: 0 34px; }
.mobile-menu-toggle, .mobile-brand { display: none; }
.user-profile { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--admin-line); border-radius: 999px; padding: 8px 14px 8px 10px; background: var(--admin-surface); color: var(--admin-text); font-size: 12px; }
.user-profile i:first-child { color: var(--admin-accent); font-size: 20px; }
.user-profile i:last-child { color: var(--admin-muted); font-size: 10px; }
.user-dropdown { position: relative; }
.user-dropdown .dropdown-menu { display: none; position: absolute; right: 0; top: 100%; min-width: 150px; padding: 6px; border: 1px solid var(--admin-line); border-radius: 10px; background: var(--admin-surface-2); box-shadow: var(--admin-shadow); }
.user-dropdown:hover .dropdown-menu, .user-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-item { display: block; width: 100%; border: 0; border-radius: 7px; padding: 9px 10px; background: transparent; color: var(--admin-text); text-align: left; font-size: 12px; }
.dropdown-item:hover { background: var(--admin-surface-3); color: var(--admin-text); }

.content-wrapper { max-width: 1440px; margin-inline: auto; padding: 36px clamp(24px, 4vw, 52px) 72px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-kicker { margin: 0 0 8px; color: var(--admin-accent); font: 500 11px var(--admin-font); letter-spacing: .14em; text-transform: uppercase; }
.page-heading h1 { margin: 0; font: 700 clamp(28px, 4vw, 40px)/1.15 var(--admin-font); letter-spacing: -.045em; }
.page-heading p { max-width: 520px; margin: 12px 0 0; color: var(--admin-muted); font-size: 14px; }

.btn { border-radius: 9px; font-weight: 600; }
.btn-primary {
    background-color: var(--admin-accent);
    border-color: var(--admin-accent);
    color: var(--admin-button-text);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--admin-accent-2);
    border-color: var(--admin-accent-2);
    color: var(--admin-button-text);
}
.btn-primary:focus { box-shadow: 0 0 0 .2rem rgba(var(--admin-accent-rgb), .24); }
.btn-primary:disabled { background-color: var(--admin-accent); border-color: var(--admin-accent); }
.btn-outline-secondary { border-color: var(--admin-line-strong); color: var(--admin-muted); }
.btn-outline-secondary:hover { border-color: var(--admin-accent); background: rgba(var(--admin-accent-rgb),.08); color: var(--admin-accent-2); }

.admin-body .card { border: 1px solid var(--admin-line); border-radius: var(--admin-radius); background: var(--admin-surface); color: var(--admin-text); box-shadow: 0 2px 5px rgba(48,34,24,.035); }
.admin-body .card-header { border-bottom: 1px solid var(--admin-line); border-radius: var(--admin-radius) var(--admin-radius) 0 0; background-color: var(--admin-surface-2); color: var(--admin-text); }
.admin-body .card-header.bg-primary, .admin-body .card-header.bg-success, .admin-body .card-header.bg-secondary { background: var(--admin-surface-2) !important; color: var(--admin-text) !important; }
.admin-body .table { --bs-table-bg: transparent; --bs-table-color: var(--admin-text); --bs-table-border-color: var(--admin-line); margin: 0; }
.admin-body .table thead th { background: var(--admin-surface-2); color: var(--admin-muted); font: 500 10px var(--admin-font); letter-spacing: .1em; text-transform: uppercase; }
.admin-body .table tbody tr { transition: background .18s ease; }
.admin-body .table tbody tr:not(.is-dragging):hover { --bs-table-bg: var(--admin-surface-2); }
.admin-body .form-control, .admin-body .form-select { border-color: var(--admin-line-strong); border-radius: 9px; background-color: var(--admin-surface-2); color: var(--admin-text); }
.admin-body .form-control::placeholder { color: var(--admin-muted); }
.admin-body .form-control:focus, .admin-body .form-select:focus { border-color: var(--admin-accent); background-color: var(--admin-surface); color: var(--admin-text); box-shadow: 0 0 0 .2rem rgba(var(--admin-accent-rgb),.13); }
.admin-body .form-label { color: var(--admin-text); font-size: 13px; font-weight: 600; }
.admin-body .form-check-input { background-color: var(--admin-surface-2); border-color: var(--admin-line-strong); }
.admin-body .form-check-input:checked { border-color: var(--admin-accent); background-color: var(--admin-accent); }
.admin-body .text-muted { color: var(--admin-muted) !important; }
.admin-body .text-danger { color: var(--admin-danger) !important; }
.admin-body .text-success { color: var(--admin-success) !important; }
.admin-body .text-warning { color: var(--admin-warning) !important; }
.admin-body .badge.bg-success { background: rgba(23,103,71,.16) !important; color: var(--admin-success); }
.admin-body .badge.bg-danger { background: rgba(164,38,56,.14) !important; color: var(--admin-danger); }

.list-card { overflow: hidden; }
.list-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: .75rem 1rem; border-top: 1px solid var(--admin-line); }
[data-paginated-list] { overflow-anchor: none; scroll-margin-top: calc(var(--admin-header-height) + .75rem); }
[data-paginated-list] tr[data-id] { scroll-margin-top: var(--admin-header-height); }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.search-control { max-width: 360px; }
.action-buttons { white-space: nowrap; }
.empty-state { padding: 58px 20px; color: var(--admin-muted); text-align: center; }
.empty-state i { display: block; margin-bottom: 12px; color: var(--admin-accent); font-size: 30px; }
.sticky-actions { position: sticky; bottom: 16px; z-index: 10; display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding: 12px; border: 1px solid var(--admin-line); border-radius: 12px; background: var(--admin-header-bg); box-shadow: var(--admin-shadow); backdrop-filter: blur(12px); }
.content-block { overflow: hidden; }
.content-block .card-header { cursor: pointer; }
.content-block .move-block-handle { color: var(--admin-accent); }

.block-editor { display: grid; gap: 9px; padding-top: 12px; border-top: 1px solid var(--admin-line); }
.block-editor-toolbar, .editor-block-header { display: flex; align-items: center; gap: 5px; }
.block-editor-toolbar { justify-content: space-between; gap: 12px; font-size: 14px; }
.block-insert { display: flex; align-items: center; gap: 12px; }
.block-insert::before, .block-insert::after { flex: 1; border-top: 1px dashed var(--admin-line-strong); content: ""; }
.block-insert-button {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--admin-line-strong);
    border-radius: 50%;
    background: var(--admin-surface);
    color: var(--admin-accent);
    font: 500 25px/1 var(--admin-font);
}
.block-insert-button:hover, .block-insert-button[aria-expanded="true"] {
    border-color: var(--admin-accent);
    background: var(--admin-surface-3);
}
.block-insert-button[aria-expanded="true"] span { transform: rotate(45deg); }
.block-insert-button:disabled { opacity: .45; }
.block-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; margin-left: 4px; padding-inline: 4px; border-radius: 6px; background: var(--admin-surface-3); color: var(--admin-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.block-empty { margin: 0; padding: 14px 12px; border: 1px dashed var(--admin-line-strong); border-radius: 8px; color: var(--admin-muted); font-size: 13px; }
.block-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 5px; padding: 7px; border: 1px solid var(--admin-line); border-radius: 9px; background: var(--admin-surface-2); }
.block-editor-toolbar { flex-wrap: wrap; }
.block-editor-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.block-picker-search, .block-picker-empty { grid-column: 1 / -1; }
.accordion-editor { display: grid; gap: 8px; margin-top: 12px; }
.accordion-editor > .btn { justify-self: start; }
.accordion-editor-items { display: grid; gap: 8px; }
.accordion-editor-item { min-width: 0; padding: 8px; border: 1px solid var(--admin-line); border-radius: 7px; }
.accordion-editor-item > summary { cursor: pointer; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.accordion-editor-item > .editor-fields { margin-top: 8px; }
.accordion-editor-actions { display: flex; justify-content: flex-end; gap: 4px; margin-top: 6px; }
@media (max-width: 575.98px) {
    .editor-block-header { flex-wrap: wrap; }
    .editor-block-toggle { flex-basis: calc(100% - 30px); }
}
.block-choice { display: inline-flex; align-items: center; gap: 7px; min-height: 33px; padding: 4px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--admin-text); text-align: left; font-size: 12px; font-weight: 600; }
.block-choice i, .editor-block-toggle > i { width: 15px; color: var(--admin-accent); text-align: center; }
.block-choice:hover, .editor-icon-button:hover { background: var(--admin-surface-3); color: var(--admin-accent); }
.block-stack { display: grid; gap: 6px; }
.block-stack:empty { display: none; }
.editor-block { min-width: 0; border: 1px solid var(--admin-line); border-radius: 8px; background: var(--admin-surface); }
.editor-block.is-dragging { border-color: var(--admin-accent); opacity: .65; }
.editor-block-header { min-height: 38px; padding: 3px 5px; border-radius: 8px; background: var(--admin-surface-2); }
.editor-drag-handle { padding: 0 3px; color: var(--admin-muted); cursor: grab; user-select: none; }
.editor-block-toggle { display: flex; flex: 1; align-items: center; gap: 7px; min-width: 0; padding: 4px 3px; border: 0; border-radius: 5px; background: transparent; color: var(--admin-text); text-align: left; font-size: 13px; }
.editor-block-toggle strong { white-space: nowrap; }
.editor-summary { overflow: hidden; color: var(--admin-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.editor-chevron { margin-left: auto; color: var(--admin-muted); }
.editor-block-toggle[aria-expanded="true"] .editor-chevron { transform: rotate(180deg); }
.editor-icon-button { display: grid; place-items: center; flex: none; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--admin-muted); font-size: 12px; }
.editor-icon-button:disabled { opacity: .35; }
.editor-remove:hover { color: var(--admin-danger); }
.editor-block-body { padding: 9px; border-top: 1px solid var(--admin-line); }
.editor-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr)); gap: 8px; }
.block-field { display: grid; align-content: start; gap: 3px; min-width: 0; color: var(--admin-text); font-size: 12px; font-weight: 600; }
.block-field:has(textarea) { grid-column: 1 / -1; }
.block-advanced { margin-top: 8px; color: var(--admin-muted); font-size: 12px; }
.block-advanced .editor-fields { margin-top: 7px; padding: 8px; border-radius: 7px; background: var(--admin-surface-2); }
.block-advanced summary { width: fit-content; cursor: pointer; }
.media-control { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 7px; border: 1px dashed var(--admin-line-strong); border-radius: 8px; background: var(--admin-surface-2); }
.editor-block-body > .media-control { margin-bottom: 8px; }
.media-control.is-drag-over { border-color: var(--admin-accent); background: var(--admin-surface-3); }
.media-thumb { width: 68px; height: 46px; border-radius: 5px; background: var(--admin-surface-3); object-fit: contain; }
video.media-thumb { width: min(100%, 360px); height: auto; aspect-ratio: 16 / 9; }
audio.media-thumb { width: min(100%, 320px); height: 42px; }
.media-help { flex-basis: 100%; color: var(--admin-muted); font-size: 12px; }
.media-kind-icon { display: grid; place-items: center; aspect-ratio: 4 / 3; color: var(--admin-accent); font-size: 24px; background: var(--admin-surface-3); border-radius: 4px; }
.media-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.media-actions .btn { padding: 3px 7px; font-size: 12px; }
.media-status { color: var(--admin-muted); font-size: 12px; }
.media-status:empty { display: none; }
.media-dialog { width: min(680px, calc(100% - 24px)); max-height: min(650px, calc(100% - 24px)); padding: 15px; border: 1px solid var(--admin-line); border-radius: 12px; background: var(--admin-surface); color: var(--admin-text); box-shadow: var(--admin-shadow); }
.media-dialog::backdrop { background: rgba(48,34,24,.44); }
.media-dialog-header, .media-search { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 7px; margin-bottom: 8px; }
.media-entry { display: grid; gap: 5px; min-width: 0; padding: 5px; border: 1px solid var(--admin-line); border-radius: 7px; background: var(--admin-surface-2); color: var(--admin-text); overflow-wrap: anywhere; font-size: 11px; text-align: left; }
.media-entry:hover { border-color: var(--admin-accent); }
.media-entry img { width: 100%; aspect-ratio: 4 / 3; border-radius: 4px; background: var(--admin-surface-3); object-fit: cover; }

.edit-heading { display: grid; gap: 8px; margin-bottom: 22px; }
.edit-heading h1 { margin: 0; color: var(--admin-text); font: 700 clamp(24px, 3vw, 35px)/1.15 var(--admin-font); letter-spacing: -.035em; }
.edit-back { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: var(--admin-muted); font-size: 13px; font-weight: 600; }
.edit-back:hover { color: var(--admin-accent); text-decoration: underline; }
.edit-form { min-width: 0; }
.edit-form-compact { max-width: 720px; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 29%); align-items: start; gap: 18px; }
.edit-column { display: grid; gap: 14px; min-width: 0; }
.edit-form .card-header { padding: 11px 16px; background: var(--admin-surface); }
.edit-form .card-title, .edit-form .publication-card__title { margin: 0; color: var(--admin-text); font-size: 14px; font-weight: 700; }
.edit-form .publication-card__title { margin-bottom: 8px; }
.edit-form .card-body { min-width: 0; padding: 14px 16px; }
.edit-form .form-label { margin-bottom: 5px; }
.edit-form .card-body > .mb-3, .edit-form .card-body > .form-check { margin-bottom: 12px !important; }
.edit-form .card-body > .mb-3:last-child, .edit-form .card-body > .form-check:last-child { margin-bottom: 0 !important; }
.edit-form .form-control, .edit-form .form-select { font-size: 14px; }
.edit-form .block-editor { padding-top: 0; border-top: 0; }
.edit-form .edit-actions { bottom: 12px; margin-top: 18px; padding: 8px; }
.edit-page-type legend { float: none; width: auto; }
.edit-type-options { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--admin-line); border-radius: 8px; background: var(--admin-surface-2); }
.edit-type-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.edit-type-options label { padding: 5px 12px; border-radius: 5px; color: var(--admin-muted); cursor: pointer; font-size: 13px; }
.edit-type-options input:checked + label { background: var(--admin-surface-3); color: var(--admin-accent-2); font-weight: 600; }
.edit-type-options input:focus-visible + label { outline: 2px solid var(--admin-accent); outline-offset: 2px; }

@media (max-width: 767.98px) {
    .edit-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .edit-heading { margin-bottom: 16px; }
    .edit-form .card-header, .edit-form .card-body { padding-inline: 12px; }
}

@media (max-width: 1199.98px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 991.98px) {
    .admin-sidebar { top: var(--admin-header-height); visibility: hidden; transform: translateX(-100%); transition: transform .25s ease; }
    .mobile-brand { display: block; }
    .mobile-brand .admin-brand-mark { width: 34px; height: 34px; }
    .sidebar-brand { display: none; }
    .admin-sidebar.is-open { visibility: visible; transform: translateX(0); box-shadow: var(--admin-shadow); }
    .admin-main { margin-left: 0; }
    .header-content { justify-content: space-between; padding: 0 18px; }
    .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--admin-line-strong); border-radius: 10px; background: var(--admin-surface); color: var(--admin-text); }
    .content-wrapper { padding: 30px 18px 56px; }
}
@media (max-width: 575.98px) {
    .page-heading, .list-toolbar { align-items: stretch; flex-direction: column; }
    .search-control { max-width: none; }

    .table-responsive { overflow-x: auto; }
    .user-profile span, .user-profile i:last-child { display: none; }
    .preview-toolbar { align-items: stretch; flex-direction: column; }
    .preview-devices button { flex: 1; justify-content: center; }
    .preview-canvas { padding: 10px; }
    .detail-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .sort-handle, .preview-viewport, .admin-sidebar, .menu-link, table[aria-busy="true"] tbody { transition: none; }
}

.admin-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--admin-text); font-size: 17px; font-weight: 700; letter-spacing: -.025em; }
.admin-brand:hover { color: var(--admin-accent); }
.admin-brand-mark { display: block; flex: none; width: 46px; height: 46px; object-fit: cover; border: 1px solid #a27aaa; border-radius: 50%; }
.admin-body .border-secondary { border-color: var(--admin-line) !important; }
.admin-body .text-primary { color: var(--admin-accent) !important; }
.admin-body a.text-primary:hover, .login-footer a:hover { text-decoration: underline; }

.login-shell { display: grid; min-height: 100dvh; place-items: center; padding: 24px 16px; background: radial-gradient(ellipse at 50% 0, var(--admin-surface-3), var(--admin-bg) 55%); }
.login-card { width: min(100%, 440px); padding: clamp(24px, 6vw, 40px); border: 1px solid var(--admin-line); border-radius: 18px; background: var(--admin-surface); box-shadow: var(--admin-shadow); }
.login-card .admin-brand { margin-bottom: 26px; }
.login-card h1 { margin: 0 0 24px; font-size: clamp(21px, 5vw, 26px); font-weight: 700; letter-spacing: -.035em; }
.login-card .form-control, .login-card .btn { min-height: 44px; }
.login-card .btn { margin-top: 4px; }
.login-footer { margin: 22px 0 0; color: var(--admin-muted); font-size: 14px; }
.login-footer a { display: inline-flex; align-items: center; gap: 8px; }

.dashboard-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.dashboard-stat { min-width: 0; padding: 18px; transition: border-color .15s ease, box-shadow .15s ease; }
.dashboard-stat:hover { border-color: var(--admin-line-strong); box-shadow: var(--admin-shadow); }
.dashboard-stat-icon, .dashboard-action-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--admin-surface-3); color: var(--admin-accent); }
.dashboard-stat-arrow { color: var(--admin-muted); font-size: 12px; }
.dashboard-stat-value { display: block; margin-top: 16px; font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dashboard-stat-label { display: block; margin-top: 4px; color: var(--admin-muted); font-size: 13px; }
.dashboard-panel { padding: clamp(16px, 3vw, 24px); }
.dashboard-panel h2 { margin: 0 0 16px; font-size: 17px; font-weight: 700; }
.dashboard-panel dd { margin-bottom: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.dashboard-action { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 9px; border: 1px solid var(--admin-line); border-radius: 9px; font-size: 13px; font-weight: 600; }
.dashboard-action:hover { background: var(--admin-surface-2); color: var(--admin-accent); }
.dashboard-action-icon { flex: none; width: 30px; height: 30px; }

.admin-body { --admin-sidebar-bg: #301c39; --admin-sidebar-ink: #e3d5e8; --admin-sidebar-muted: #b29cbd; }
.admin-skip { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 12px; background: var(--admin-surface); color: var(--admin-accent); }
.admin-sidebar { background: var(--admin-sidebar-bg); border: 0; display: flex; flex-direction: column; }
.sidebar-brand { padding: 30px 23px 23px; border-color: #ffffff12; }
.admin-brand { font-size: 23px; letter-spacing: -.06em; gap: 12px; }
.admin-brand-mark { object-fit: contain; border: 0; border-radius: 0; width: 46px; height: 46px; }
.admin-brand small { display: block; font-size: 7px; letter-spacing: .16em; margin-top: 7px; color: var(--admin-muted); }
.admin-sidebar .admin-brand, .admin-sidebar .admin-brand:hover { color: #fff; }
.admin-sidebar .admin-brand small { color: var(--admin-sidebar-muted); }
.admin-menu { flex: 1; padding-top: 16px; }
.admin-sidebar .menu-section { color: var(--admin-sidebar-muted); font-size: 9px; letter-spacing: .16em; padding-top: 23px; }
.admin-sidebar .menu-link { color: var(--admin-sidebar-ink); font-size: 12px; min-height: 43px; border-radius: 7px; }
.admin-sidebar .menu-link > i { color: var(--admin-sidebar-muted); }
.admin-sidebar .menu-link:hover { color: #fff; background: #ffffff0d; }
.admin-sidebar .active > .menu-link { background: #ffffff13; color: #fff; box-shadow: inset 3px 0 #cf9dd8; }
.admin-sidebar .active > .menu-link > i { color: #dcb3e4; }
.admin-sidebar .menu-sublist { border-left-color: #ffffff20; }
.sidebar-footnote { padding: 24px; color: var(--admin-sidebar-muted); font-size: 9px; display: flex; align-items: center; gap: 8px; border-top: 1px solid #ffffff12; }
.studio-dot, .local-status > span { width: 6px; height: 6px; background: #9cc4ae; border-radius: 50%; flex: none; }
.header-content { gap: 22px; padding-inline: 38px; }
.header-context { margin-right: auto; display: flex; flex-direction: column; gap: 4px; }
.header-context > span { font-size: 8px; letter-spacing: .16em; color: var(--admin-muted); }
.header-context > strong { font-size: 12px; font-weight: 600; }
.header-site-link a { color: var(--admin-muted); display: flex; align-items: center; gap: 9px; font-size: 11px; }
.header-site-link a:hover { color: var(--admin-accent); }
.local-status { display: inline-flex; gap: 7px; align-items: center; font-size: 10px; color: var(--admin-muted); white-space: nowrap; }
.theme-picker { margin-right: 0; font-size: 10px; }
.theme-picker .form-select { min-width: 80px; font-size: 11px; }
.user-profile { font-size: 11px; }
.content-wrapper { max-width: 1600px; padding: 40px 38px 65px; }
.admin-eyebrow { color: var(--admin-accent); font-size: 9px; letter-spacing: .15em; font-weight: 700; margin-bottom: 11px; }
.page-heading h1 { font-size: 28px; letter-spacing: -.05em; font-weight: 600; }
.page-heading p:not(.admin-eyebrow) { font-size: 12px; color: var(--admin-muted); }
.dashboard-heading { margin-bottom: 31px; align-items: center; }
.dashboard-heading h1 { font-size: 35px; }
.admin-body .btn { min-height: 40px; font-size: 12px; border-radius: 7px; padding: 10px 16px; }
.admin-body .btn-sm { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.admin-body .card { border-radius: 11px; box-shadow: 0 3px 9px #24142c03; }
.admin-body .form-control, .admin-body .form-select { min-height: 42px; border-radius: 7px; }
.admin-body .table { font-size: 12px; }
.admin-body .table th { color: var(--admin-muted); font-size: 10px; font-weight: 500; letter-spacing: .02em; background: var(--admin-surface-2); padding-block: 14px; }
.admin-body .table td { padding-block: 15px; }
.dashboard-stats { gap: 18px; margin-bottom: 24px; }
.dashboard-stat { padding: 21px; }
.dashboard-stat-top { display: flex; align-items: center; justify-content: space-between; }
.dashboard-stat-label { color: var(--admin-muted); font-size: 12px; }
.dashboard-stat-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--admin-surface-3); font-size: 14px; }
.dashboard-stat-value { font-size: 36px; margin-top: 10px; margin-bottom: 17px; font-weight: 600; letter-spacing: -.06em; }
.dashboard-stat-hint { display: flex; justify-content: space-between; gap: 8px; font-size: 9px; color: var(--admin-muted); }
.dashboard-stat-hint i { color: var(--admin-accent); }
.dashboard-workspace { display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; margin-bottom: 24px; }
.dashboard-panel { padding: 26px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.panel-heading h2, .dashboard-panel h2 { font-size: 16px; font-weight: 600; margin-bottom: 0; letter-spacing: -.03em; }
.panel-heading .admin-eyebrow { margin-bottom: 8px; }
.dashboard-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dashboard-action { padding: 17px 13px; gap: 11px; border-radius: 7px; }
.dashboard-action-icon { width: 35px; height: 35px; }
.dashboard-action strong { display: block; font-size: 11px; font-weight: 600; }
.dashboard-action small { display: block; color: var(--admin-muted); font-size: 9px; font-weight: 400; margin-top: 5px; }
.dashboard-action > i { margin-left: auto; font-size: 10px; color: var(--admin-muted); }
.publication-summary { margin: 22px 0 18px; }
.publication-summary > div { display: flex; align-items: center; justify-content: space-between; padding-block: 15px; border-bottom: 1px solid var(--admin-line); }
.publication-summary dt { display: flex; align-items: center; gap: 9px; color: var(--admin-muted); font-size: 11px; font-weight: 400; }
.publication-summary dd { font-size: 14px; }
.publication-summary dd span { color: var(--admin-muted); font-weight: 400; font-size: 11px; }
.status-point { width: 7px; height: 7px; border-radius: 50%; background: var(--admin-success); }
.status-point.is-featured { background: var(--admin-accent); }
.status-point.is-page { background: #a87c8f; }
.panel-note { display: flex; align-items: center; gap: 8px; color: var(--admin-muted); font-size: 9px; margin-bottom: 0; line-height: 1.8; }
.dashboard-catalog { padding-bottom: 8px; }
.dashboard-text-link { color: var(--admin-accent); font-size: 10px; display: inline-flex; align-items: center; gap: 12px; }
.dashboard-product { display: flex; align-items: center; gap: 13px; }
.dashboard-product img { object-fit: cover; border-radius: 5px; background: var(--admin-surface-3); }
.dashboard-product strong { font-size: 11px; font-weight: 600; }
.dashboard-product small { display: block; margin-top: 5px; color: var(--admin-muted); font-size: 9px; }
.login-shell { grid-template-columns: 1fr 1fr; padding: 0; background: var(--admin-surface); }
.login-art { min-height: 100dvh; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 45px 50px; isolation: isolate; color: #fff; background: #301c39 url('../images/esse-living.jpg') center/cover; }
.login-art::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #301c394d, #301c39e6); }
.login-art-brand { display: flex; align-items: center; gap: 18px; }
.login-art-brand img { object-fit: contain; }
.login-art-brand span { font-size: 9px; letter-spacing: .2em; line-height: 1.9; }
.login-art-copy > p { font-size: 10px; letter-spacing: .2em; margin-bottom: 25px; color: #e3cce8; }
.login-art-copy h2 { font: 400 clamp(46px, 5.7vw, 82px)/1.05 'Cormorant Garamond', Georgia, serif; letter-spacing: -.04em; }
.login-art-copy h2 em { color: #dfbadf; }
.login-art-copy > span { display: block; margin-top: 25px; font-size: 13px; color: #e4d6e7; }
.login-art-footer { font-size: 10px; color: #d9c6e1; }
.login-card { position: relative; border: 0; box-shadow: none; border-radius: 0; padding: 35px; width: min(100%, 430px); }
.login-card > .admin-brand { margin-bottom: 70px; }
.login-card > .theme-picker { position: absolute; top: 33px; right: 25px; margin: 0; }
.login-card > .theme-picker > span { display: none; }
.login-card h1 { font-size: 27px; margin-bottom: 13px; }
.login-description { color: var(--admin-muted); font-size: 12px; line-height: 1.9; margin-bottom: 28px; }
.login-card label { font-size: 11px; }
.login-card .form-control { min-height: 48px; }
.login-card .btn { min-height: 48px; margin-top: 12px; }
.login-footer { font-size: 11px; margin-top: 28px; }
@media (max-width: 1200px) { .header-content { gap: 13px; padding-inline: 25px; } .local-status { display: none; } .content-wrapper { padding-inline: 25px; } .dashboard-workspace { grid-template-columns: 1fr; } }
@media (max-width: 991.98px) { .header-context { display: none; } .header-site-link { margin-left: auto; } .header-site-link a { font-size: 0; } .header-site-link i { font-size: 14px; } .mobile-brand .admin-brand small { display: none; } .sidebar-footnote { display: none; } .login-art { padding: 35px; } }
@media (max-width: 767.98px) { .dashboard-heading { align-items: flex-start; gap: 20px; } .dashboard-heading h1 { font-size: 30px; } .dashboard-stats { gap: 12px; } .dashboard-stat { padding: 16px; } .dashboard-stat-value { font-size: 31px; } .dashboard-stat-hint { font-size: 8px; } .dashboard-panel { padding: 20px; } .dashboard-workspace { gap: 16px; margin-bottom: 16px; } .content-wrapper { padding: 28px 18px 48px; } .login-shell { grid-template-columns: 1fr; } .login-art { display: none; } .login-card > .admin-brand { margin-bottom: 55px; } .header-content { padding-inline: 14px; gap: 9px; } }
@media (max-width: 420px) { .dashboard-shortcuts { grid-template-columns: 1fr; } .mobile-brand .admin-brand { font-size: 20px; gap: 7px; } .header-site-link { display: none; } .theme-picker .form-select { min-width: 73px; } .dashboard-stat-hint i { display: none; } }

@media (max-width: 767.98px) {
    .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .dashboard-stat { transition: none; }
}
