.deliv-price-mode-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #e4e7ec;
    background: #f9fafb;
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #344054;
}

.deliv-price-rule-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    padding: 0.875rem;
}

.deliv-price-rule-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.75rem;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    background: transparent;
    color: #ef4444;
    cursor: pointer;
}

.deliv-price-rule-remove:hover {
    background: #fef2f2;
}

.deliv-coord-hero {
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f5f3ff 0%, #f5f3ff 50%, #fff 100%);
    padding: 1rem 1.25rem;
}
html.dark .deliv-coord-hero {
    border-color: #1f2937;
    background: linear-gradient(135deg, #3b0764/20 0%, #4c1d95/15 50%, transparent 100%);
}
.deliv-coord-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.deliv-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #7c3aed, #c4b5fd);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.28);
}
.deliv-map-btn:hover {
    transform: translateY(-1px);
}
.deliv-field-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    padding: 0.875rem;
    background: transparent;
}
html.dark .deliv-field-card {
    border-color: #374151;
    background: transparent;
}
.deliv-map-panel {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    background: transparent;
}
html.dark .deliv-map-panel {
    border-color: #374151;
    background: transparent;
}
.deliv-map-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}
html.dark .deliv-map-panel-head {
    border-color: #374151;
}
.deliv-map-preview {
    height: 220px;
    background: #f3f4f6;
}
html.dark .deliv-map-preview {
    background: #1f2937;
}
#zones-map-editor-modal[hidden] {
    display: none !important;
}
.zones-map-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    padding: 0.75rem;
}
.zones-map-modal-inner {
    width: min(1400px, 100%);
    height: min(92vh, 900px);
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}
html.dark .zones-map-modal-inner {
    background: #111827;
}
.zones-map-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
html.dark .zones-map-modal-head {
    border-color: #374151;
}
.zones-map-canvas {
    flex: 1;
    min-height: 0;
}
.ymaps-modal-overlay[hidden] {
    display: none !important;
}
.ymaps-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    padding: 0.75rem;
}
.ymaps-modal-container {
    width: min(1400px, 100%);
    height: min(92vh, 900px);
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}
.ymaps-modal-header {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.ymaps-modal-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ymaps-modal-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed, #c4b5fd);
    color: #fff;
}
.ymaps-modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}
.ymaps-modal-subtitle {
    color: #64748b;
    font-size: 0.75rem;
}
.ymaps-modal-close {
    margin-left: auto;
    border: none;
    background: transparent;
    font-size: 1.125rem;
    cursor: pointer;
    color: #64748b;
}
.ymaps-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.ymaps-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}
.ymaps-tool-btn.active {
    border-color: #7c3aed;
    background: #f5f3ff;
    color: #6d28d9;
}
.ymaps-tool-btn.danger {
    color: #dc2626;
    border-color: #fecaca;
}
.ymaps-tool-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    display: inline-block;
}
.ymaps-tool-dot.sklad { background: #ef4444; }
.ymaps-tool-dot.center { background: #3b82f6; }
.ymaps-tool-dot.square { background: #8b5cf6; border-radius: 2px; }
.ymaps-live-coords {
    margin-left: auto;
    font-size: 0.75rem;
    color: #64748b;
    font-family: ui-monospace, monospace;
}
.ymaps-map-container {
    flex: 1;
    min-height: 0;
}
.ymaps-modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
}
.ymaps-footer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.ymaps-chip {
    font-size: 0.75rem;
    color: #64748b;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    background: #f8fafc;
}
.ymaps-footer-actions {
    display: flex;
    gap: 0.5rem;
}

/* ===== Доставка (admin redesign) ===== */
.dlv-page {
    --dlv-ink: #101828;
    --dlv-muted: #667085;
    --dlv-soft: #98a2b3;
    --dlv-line: #eaecf0;
    --dlv-bg: #f8fafc;
    --dlv-violet: #7c3aed;
    --dlv-violet-soft: #f4f0ff;
}

.dlv-tabs {
    margin-bottom: 1rem;
}

.dlv-tabs .adm-seg__btn {
    text-decoration: none;
}

.dlv-tabs .adm-seg__btn i {
    display: inline-flex;
    font-size: 12px;
    line-height: 1;
}

.dlv-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 920px;
}

.dlv-stack--narrow {
    max-width: 640px;
}

.dlv-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 28px;
    height: 26px;
    padding: 0 8px;
    border: 1px solid #e9d7fe;
    border-radius: 999px;
    background: var(--dlv-violet-soft);
    font-size: 12px;
    font-weight: 700;
    color: #6d28d9;
    font-variant-numeric: tabular-nums;
}

.dlv-mono,
#adm-page .dlv-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11.5px;
}

.dlv-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    vertical-align: 1px;
}

.dlv-dot--red { background: #ef4444; }
.dlv-dot--blue { background: #3b82f6; }
.dlv-dot--violet { background: var(--dlv-violet); }

/* Affix inputs */
.dlv-affix {
    position: relative;
}

.dlv-affix > span {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 600;
    color: var(--dlv-soft);
    pointer-events: none;
}

#adm-page .dlv-affix .adm-input {
    padding-right: 38px;
    font-variant-numeric: tabular-nums;
}

.dlv-affix--pre > span {
    right: auto;
    left: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

#adm-page .dlv-affix--pre .adm-input {
    padding-right: 10px;
    padding-left: 50px;
}

#adm-page .adm-input.is-locked {
    background: #f2f4f7;
    color: var(--dlv-muted);
    cursor: not-allowed;
}

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

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

/* Icon buttons */
.dlv-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.dlv-icon-btn i {
    display: inline-flex;
    line-height: 1;
}

.dlv-icon-btn:hover {
    border-color: #c4b5fd;
    color: #6d28d9;
}

.dlv-icon-btn--danger:hover {
    border-color: #fecdca;
    background: #fef3f2;
    color: #d92d20;
}

.dlv-icon-btn[hidden] {
    display: none !important;
}

/* Settings: calc choice */
.dlv-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 1rem;
}

#adm-page .dlv-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    padding: 10px 12px;
    border: 1.5px solid var(--dlv-line);
    border-radius: 14px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

#adm-page .dlv-choice:hover {
    border-color: #c4b5fd;
}

#adm-page .dlv-choice.is-active {
    border-color: var(--dlv-violet);
    background: var(--dlv-violet-soft);
}

.dlv-choice__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--dlv-bg);
    color: var(--dlv-muted);
    font-size: 15px;
}

.dlv-choice__icon i {
    display: inline-flex;
    line-height: 1;
}

.dlv-choice.is-active .dlv-choice__icon {
    background: var(--dlv-violet);
    color: #fff;
}

.dlv-choice__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dlv-choice__body b {
    font-size: 13px;
    font-weight: 700;
    color: var(--dlv-ink);
}

.dlv-choice__body small {
    font-size: 11.5px;
    color: var(--dlv-muted);
}

.dlv-choice__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1.5px solid #d0d5dd;
    border-radius: 50%;
    color: transparent;
    font-size: 10px;
}

.dlv-choice__check i {
    display: inline-flex;
    line-height: 1;
}

.dlv-choice.is-active .dlv-choice__check {
    border-color: var(--dlv-violet);
    background: var(--dlv-violet);
    color: #fff;
}

.dlv-muted {
    opacity: 0.5;
}

/* Save bar */
.dlv-savebar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--dlv-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
}

.dlv-savebar__dirty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
    font-size: 12px;
    font-weight: 600;
    color: #b54708;
}

.dlv-savebar__dirty i {
    display: inline-flex;
    line-height: 1;
}

/* Prices */
.dlv-rules {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dlv-rules__head,
.dlv-rule {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 8px;
}

.dlv-rules__head span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.dlv-rule {
    padding: 6px;
    border: 1px solid var(--dlv-line);
    border-radius: 12px;
    background: #fcfcfd;
}

.dlv-rules__head {
    padding: 0 7px;
}

.dlv-rule__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c4b5fd;
    font-size: 12px;
}

.dlv-rule__arrow i {
    display: inline-flex;
    line-height: 1;
}

#adm-page .dlv-rule .adm-input {
    background: #fff;
}

.dlv-add-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 38px;
    margin-top: 10px;
    border: 1.5px dashed #d0d5dd;
    border-radius: 12px;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: var(--dlv-muted);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.dlv-add-row:hover {
    border-color: var(--dlv-violet);
    background: var(--dlv-violet-soft);
    color: #6d28d9;
}

.dlv-add-row i {
    display: inline-flex;
    line-height: 1;
}

/* Zones layout */
.dlv-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.25rem;
    align-items: start;
}

.dlv-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.dlv-aside {
    position: sticky;
    top: 1rem;
    min-width: 0;
}

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

.dlv-kpi {
    --k: var(--dlv-violet);
    --k-soft: var(--dlv-violet-soft);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--dlv-line);
    border-radius: 14px;
    background: #fff;
}

.dlv-kpi--green { --k: #079455; --k-soft: #ecfdf3; }
.dlv-kpi--amber { --k: #dc6803; --k-soft: #fffaeb; }
.dlv-kpi--red { --k: #d92d20; --k-soft: #fef3f2; }
.dlv-kpi--muted { --k: #98a2b3; --k-soft: #f2f4f7; }

.dlv-kpi__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--k-soft);
    color: var(--k);
    font-size: 14px;
}

.dlv-kpi__icon i {
    display: inline-flex;
    line-height: 1;
}

.dlv-kpi > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dlv-kpi b {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--dlv-ink);
    font-variant-numeric: tabular-nums;
}

.dlv-kpi--red b {
    color: #d92d20;
}

.dlv-kpi span {
    font-size: 11.5px;
    color: var(--dlv-muted);
    white-space: nowrap;
}

.dlv-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.dlv-seg {
    max-width: 100%;
}

.dlv-toolbar__right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.dlv-toolbar .adm-search {
    min-width: 0;
    width: 220px;
}

/* Zone cards */
.dlv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 1680px) {
    .dlv-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.dlv-zone {
    --zc: #7c3aed;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--dlv-line);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dlv-zone:hover,
.dlv-zone:focus-visible {
    border-color: #c4b5fd;
}

.dlv-zone:focus-visible {
    outline: 2px solid var(--dlv-violet);
    outline-offset: 2px;
}

.dlv-zone.is-off {
    background: #fcfcfd;
}

.dlv-zone.is-off .dlv-zone__name,
.dlv-zone.is-off .dlv-zone__stats b {
    color: var(--dlv-muted);
}

.dlv-zone.is-flash {
    border-color: var(--dlv-violet);
    background: var(--dlv-violet-soft);
}

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

.dlv-zone__shape {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--zc) 8%, #fff);
    color: var(--zc);
    font-size: 16px;
}

.dlv-zone__shape svg {
    width: 44px;
    height: 44px;
}

.dlv-zone__shape i {
    display: inline-flex;
    line-height: 1;
}

.dlv-zone__shape.is-missing {
    border: 1.5px dashed color-mix(in srgb, var(--zc) 45%, #fff);
    background: #fff;
}

.dlv-zone__titles {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.dlv-zone__name {
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    color: var(--dlv-ink);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dlv-zone__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 11.5px;
    color: var(--dlv-muted);
    white-space: nowrap;
}

.dlv-zone__meta code {
    overflow: hidden;
    padding: 1px 6px;
    border-radius: 6px;
    background: #f2f4f7;
    font-size: 10.5px;
    color: #475467;
    text-overflow: ellipsis;
}

.dlv-zone__meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dlv-zone__meta i {
    display: inline-flex;
    font-size: 10px;
    line-height: 1;
}

.dlv-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f2f4f7;
    font-size: 11px;
    font-weight: 700;
    color: var(--dlv-muted);
}

.dlv-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #98a2b3;
}

.dlv-status.is-on {
    background: #ecfdf3;
    color: #067647;
}

.dlv-status.is-on::before {
    background: #17b26a;
}

.dlv-status.is-bad {
    background: #fef3f2;
    color: #b42318;
}

.dlv-status.is-bad::before {
    background: #f04438;
}

.dlv-zone__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #f2f4f7;
    border-radius: 12px;
    background: var(--dlv-bg);
}

.dlv-zone__stats > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 8px 10px;
}

.dlv-zone__stats > div + div {
    border-left: 1px solid #eef0f3;
}

.dlv-zone__stats span {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--dlv-soft);
}

.dlv-zone__stats b {
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    color: var(--dlv-ink);
    white-space: nowrap;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}

.dlv-zone__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 26px;
}

.dlv-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 8px;
    border-radius: 8px;
    background: #f2f4f7;
    font-size: 11px;
    font-weight: 600;
    color: var(--dlv-muted);
    white-space: nowrap;
}

.dlv-chip i {
    display: inline-flex;
    font-size: 10px;
    line-height: 1;
}

.dlv-chip--amber {
    background: #fffaeb;
    color: #b54708;
}

.dlv-chip--red {
    background: #fef3f2;
    color: #d92d20;
}

.dlv-zone__map {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 26px;
    margin-left: auto;
    padding: 0;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.dlv-zone__map i {
    display: inline-flex;
    line-height: 1;
}

.dlv-zone__map:hover {
    border-color: #c4b5fd;
    color: #6d28d9;
}

#adm-page .dlv-zone--add {
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 168px;
    border: 1.5px dashed #d0d5dd;
    background: transparent;
    font: inherit;
    color: var(--dlv-muted);
}

#adm-page .dlv-zone--add:hover {
    border-color: var(--dlv-violet);
    background: var(--dlv-violet-soft);
    color: #6d28d9;
}

.dlv-zone--add b {
    font-size: 13px;
    font-weight: 700;
}

.dlv-zone--add__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--dlv-line);
    font-size: 15px;
}

.dlv-zone--add__icon i {
    display: inline-flex;
    line-height: 1;
}

.dlv-nothing {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 2.5rem 1rem;
    border: 1.5px dashed #d0d5dd;
    border-radius: 16px;
    font-size: 13px;
    color: var(--dlv-muted);
}

.dlv-nothing i {
    font-size: 1.3rem;
    color: #c4b5fd;
}

/* Map card */
.dlv-mapcard .skl-card__head {
    margin-bottom: 0.75rem;
}

.dlv-schema {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    background-color: #fbfbfe;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.dlv-schema svg {
    display: block;
    width: 100%;
    height: 100%;
}

.dlv-schema__poly {
    fill-opacity: 0.22;
    stroke-width: 1.5;
    stroke-linejoin: round;
    cursor: pointer;
    transition: fill-opacity 0.15s ease, stroke-opacity 0.15s ease;
}

.dlv-schema__poly:hover,
.dlv-schema__poly.is-on {
    fill-opacity: 0.5;
    stroke-width: 2.5;
}

.dlv-schema__poly.is-dim {
    fill-opacity: 0.08;
    stroke-opacity: 0.35;
}

.dlv-schema__poly.is-off {
    stroke-dasharray: 4 3;
}

.dlv-schema__pin circle {
    fill: #fff;
    stroke: #ef4444;
    stroke-width: 2.5;
}

.dlv-schema__pin .dlv-schema__pin-dot {
    fill: #ef4444;
    stroke: none;
}

.dlv-schema__empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--dlv-soft);
}

.dlv-schema__empty i {
    font-size: 1.3rem;
    color: #c4b5fd;
}

.dlv-mapcard__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

/* Drawer */
.dlv-drawer {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.dlv-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.dlv-drawer.is-open .dlv-drawer__backdrop {
    opacity: 1;
}

.dlv-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(520px, 100vw);
    margin: 0;
    background: #fff;
    box-shadow: -12px 0 32px -18px rgba(15, 23, 42, 0.35);
    transform: translateX(24px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.dlv-drawer.is-open .dlv-drawer__panel {
    transform: none;
    opacity: 1;
}

.dlv-drawer__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--dlv-line);
}

.dlv-drawer__swatch {
    --zc: #7c3aed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--zc);
    color: #fff;
    font-size: 15px;
    transition: background 0.15s ease;
}

.dlv-drawer__swatch i {
    display: inline-flex;
    line-height: 1;
}

.dlv-drawer__titles {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.dlv-drawer__eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--dlv-soft);
}

.dlv-drawer__title {
    overflow: hidden;
    margin: 0;
    font-size: 16px;
    font-weight: 750;
    color: var(--dlv-ink);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dlv-drawer__body {
    flex: 1;
    min-height: 0;
    padding: 16px;
    overflow-y: auto;
}

.dlv-drawer__body .adm-errors {
    margin-bottom: 12px;
}

.dlv-sec {
    padding: 14px;
    border: 1px solid var(--dlv-line);
    border-radius: 14px;
    background: #fff;
}

.dlv-sec + .dlv-sec {
    margin-top: 12px;
}

.dlv-sec__title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--dlv-ink);
}

.dlv-sec__title i {
    display: inline-flex;
    font-size: 12px;
    line-height: 1;
    color: var(--dlv-violet);
}

.dlv-sec .skl-grid {
    gap: 12px;
}

.dlv-sec .adm-switch__text strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dlv-sec .adm-switch__text strong i {
    display: inline-flex;
    font-size: 12px;
    line-height: 1;
    color: #dc6803;
}

.dlv-express {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f2f4f7;
}

.dlv-express.is-off {
    opacity: 0.45;
}

.dlv-seg-full {
    display: flex;
    width: 100%;
}

.dlv-seg-full .adm-seg__btn {
    flex: 1;
    justify-content: center;
}

.dlv-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#adm-page .dlv-swatch {
    --sw: #7c3aed;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 9px;
    background: var(--sw);
    box-shadow: 0 0 0 1px var(--dlv-line);
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}

#adm-page .dlv-swatch.is-active {
    box-shadow: 0 0 0 2px var(--dlv-ink);
}

#adm-page .dlv-swatch--custom {
    overflow: hidden;
    background: conic-gradient(from 0deg, #ef4444, #f59e0b, #22c55e, #06b6d4, #6366f1, #d946ef, #ef4444);
    color: #fff;
    font-size: 12px;
}

#adm-page .dlv-swatch--custom.is-active {
    background: var(--sw);
}

#adm-page .dlv-swatch--custom i {
    display: inline-flex;
    line-height: 1;
    pointer-events: none;
}

#adm-page .dlv-swatch--custom input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.dlv-drawer__foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--dlv-line);
    background: #fcfcfd;
}

.dlv-drawer__spacer {
    flex: 1;
}

/* Map editor */
.dlv-editor.zones-map-modal {
    z-index: 1000010;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: none;
}

.dlv-editor .zones-map-modal-inner {
    border-radius: 18px;
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.35);
}

.dlv-editor .zones-map-modal-head {
    justify-content: flex-start;
    padding: 12px 14px;
    border-color: var(--dlv-line);
}

.dlv-editor__titles {
    flex: 1;
    min-width: 0;
}

.dlv-editor__titles h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 750;
    color: var(--dlv-ink);
}

.dlv-editor__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1279px) {
    .dlv-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .dlv-aside {
        position: static;
        order: -1;
    }

    .dlv-mapcard {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 0 16px;
    }

    .dlv-mapcard .skl-card__head {
        grid-column: 1 / -1;
    }

    .dlv-mapcard__actions {
        margin-top: 0;
    }
}

@media (max-width: 900px) {
    .dlv-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .dlv-toolbar__right {
        width: 100%;
        margin-left: 0;
    }

    .dlv-toolbar .adm-search {
        flex: 1;
        width: auto;
    }
}

@media (max-width: 640px) {
    .dlv-mapcard {
        display: block;
    }

    .dlv-mapcard__actions {
        margin-top: 12px;
    }

    .dlv-choices,
    .dlv-fields3,
    .dlv-fields2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .dlv-seg-full .adm-seg__btn {
        padding: 0 6px;
        font-size: 11px;
    }
}
