﻿.admin-container {
    display: flex;
    min-height: 100vh;
    background: #111;
}

.admin-sidebar {
    width: 240px;
    background: #1c1c1c;
    padding: 30px;
}

    .admin-sidebar h2 {
        color: white;
        margin-bottom: 30px;
    }

    .admin-sidebar a {
        display: block;
        color: #ccc;
        text-decoration: none;
        margin: 12px 0;
    }

        .admin-sidebar a:hover {
            color: white;
        }

.admin-content {
    flex: 1;
    padding: 40px;
    background: #f5f5f5;
}

.admin-sidebar a.active {
    font-weight: bold;
    color: #FF6A00;
}

.admin-layout {
    display: block;
}

.admin-layout .admin-sidebar {
    display: none;
}

.admin-layout .admin-content,
.admin-edit-shell {
    padding: 0;
    background: #101010;
    min-height: 100vh;
}

.admin-editor {
    --admin-editor-panel-width: 360px;
    --admin-editor-topbar-height: 58px;
    --admin-preview-nav-height: 186px;
    min-height: 100vh;
    background: #101010;
    color: #111;
}

.admin-edit-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: var(--admin-editor-panel-width);
    z-index: 500;
    min-height: var(--admin-editor-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 20px;
    background: #111;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.admin-edit-topbar span {
    margin-left: 10px;
    color: #bdbdbd;
    font-size: 0.85rem;
}

.admin-edit-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-edit-actions a,
.admin-edit-actions button,
.theme-tab,
.dashboard-tab {
    border: 1px solid rgba(255,255,255,0.18);
    background: #242424;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    font: inherit;
    cursor: pointer;
}

.admin-edit-actions .active,
.theme-tab,
.dashboard-tab {
    background: #ff6a00;
    border-color: #ff6a00;
}

.editable-site-preview {
    position: fixed;
    top: var(--admin-editor-topbar-height);
    left: 0;
    right: auto;
    bottom: 0;
    width: calc(100vw - var(--admin-editor-panel-width));
    max-width: calc(100vw - var(--admin-editor-panel-width));
    margin-right: 0;
    padding-top: 0;
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-color: #ff6a00 rgba(255,255,255,0.18);
    background: var(--cms-section-background-color, #A0522D);
}

.editable-site-preview::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.editable-site-preview::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.18);
}

.editable-site-preview::-webkit-scrollbar-thumb {
    background: #ff6a00;
    border: 2px solid rgba(16,16,16,0.9);
    border-radius: 999px;
}

.editable-site-canvas {
    position: relative;
    width: max(100%, 100vw);
    min-width: 100vw;
    min-height: 100%;
    background: var(--cms-section-background-color, #A0522D);
}

.editable-site-preview [id],
.editable-site-preview .section-title,
.editable-site-preview [data-scroll-target="true"] {
    scroll-margin-top: calc(var(--admin-editor-topbar-height, 58px) + 16px);
}

.editable-site-preview #promotions,
.editable-site-preview #realisations,
.editable-site-preview #devis {
    scroll-margin-top: var(--admin-editor-topbar-height, 58px);
}

.theme-tab {
    position: fixed;
    top: calc(var(--admin-editor-topbar-height) + 16px);
    right: calc(var(--admin-editor-panel-width) + 20px);
    z-index: 520;
}

.dashboard-tab {
    position: fixed;
    top: calc(var(--admin-editor-topbar-height) + 64px);
    right: calc(var(--admin-editor-panel-width) + 20px);
    z-index: 520;
}

.admin-dashboard-page {
    min-height: 100vh;
    padding: 32px clamp(18px, 4vw, 56px);
    background: #101010;
    color: #f7f4ef;
}

.admin-dashboard-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin: -32px calc(-1 * clamp(18px, 4vw, 56px)) 24px;
    padding: 24px clamp(18px, 4vw, 56px);
    background: rgba(17,17,17,0.96);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
}

.admin-dashboard-header h1,
.admin-dashboard-panel h2,
.admin-dashboard-empty h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1;
}

.admin-dashboard-header p {
    max-width: 680px;
    margin: 10px 0 0;
    color: rgba(247,244,239,0.72);
}

.admin-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.admin-dashboard-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    background: #242424;
    color: #fff;
    text-decoration: none;
}

.admin-dashboard-actions a:first-child,
.admin-dashboard-actions a:hover {
    background: #ff6a00;
    border-color: #ff6a00;
}

.admin-dashboard-empty,
.admin-dashboard-card,
.admin-dashboard-panel {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: #181818;
    box-shadow: 0 18px 42px rgba(0,0,0,0.22);
}

.admin-dashboard-empty {
    display: grid;
    gap: 12px;
    min-height: 360px;
    place-content: center;
    padding: clamp(28px, 6vw, 70px);
    text-align: center;
}

.admin-dashboard-empty p:last-child {
    max-width: 520px;
    margin: 0 auto;
    color: rgba(247,244,239,0.68);
}

.admin-dashboard-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-dashboard-card {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.admin-dashboard-card span,
.admin-dashboard-source-grid span {
    color: rgba(247,244,239,0.62);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-dashboard-card strong {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 0.95;
}

.admin-dashboard-card small {
    color: rgba(247,244,239,0.58);
}

.admin-dashboard-panel {
    padding: 22px;
    margin-bottom: 18px;
}

.admin-dashboard-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-dashboard-panel-header h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.8rem);
}

.admin-dashboard-panel-header > strong {
    color: #ffb066;
    white-space: nowrap;
}

.admin-dashboard-chart {
    display: grid;
    grid-template-columns: repeat(30, minmax(10px, 1fr));
    align-items: end;
    gap: 5px;
    min-height: 260px;
    padding: 18px 8px 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-dashboard-chart-day {
    display: grid;
    grid-template-rows: 1fr 20px;
    align-items: end;
    min-width: 0;
    height: 100%;
}

.admin-dashboard-chart-day > span {
    display: block;
    width: 100%;
    min-height: 2px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #ffb066, #ff6a00);
}

.admin-dashboard-chart-day small {
    overflow: hidden;
    color: rgba(247,244,239,0.48);
    font-size: 0.62rem;
    text-align: center;
    white-space: nowrap;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 18px;
}

.admin-dashboard-table-wrap {
    overflow-x: auto;
}

.admin-dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-dashboard-table th,
.admin-dashboard-table td {
    padding: 13px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(247,244,239,0.76);
    text-align: left;
    vertical-align: middle;
}

.admin-dashboard-table th {
    color: rgba(247,244,239,0.52);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-dashboard-table td strong,
.admin-dashboard-recent-list strong {
    display: block;
    color: #fff;
}

.admin-dashboard-table td span:not(.admin-dashboard-meter),
.admin-dashboard-recent-list span {
    display: block;
    margin-top: 4px;
    color: rgba(247,244,239,0.5);
    font-size: 0.78rem;
}

.admin-dashboard-meter {
    display: inline-flex;
    width: min(120px, 22vw);
    height: 8px;
    margin-right: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    vertical-align: middle;
}

.admin-dashboard-meter span {
    display: block;
    border-radius: inherit;
    background: #ff6a00;
}

.admin-dashboard-recent-list {
    display: grid;
    gap: 10px;
}

.admin-dashboard-recent-list article {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-dashboard-recent-list time {
    color: rgba(247,244,239,0.56);
    font-size: 0.78rem;
    white-space: nowrap;
}

.admin-dashboard-source-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.admin-dashboard-source-grid article {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
}

.admin-dashboard-source-grid strong {
    color: #fff;
    font-size: 1.8rem;
}

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

.admin-dashboard-geo-grid article {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
}

.admin-dashboard-geo-grid h3 {
    margin: 0;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-dashboard-geo-grid div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-dashboard-geo-grid span,
.admin-dashboard-geo-grid p {
    color: rgba(247,244,239,0.68);
    font-size: 0.82rem;
}

.admin-dashboard-geo-grid strong {
    color: #ffb066;
}

.admin-preview-header {
    position: relative;
    width: 100vw;
    min-width: 100vw;
    flex-shrink: 0;
    z-index: 110;
}

.admin-preview-header.editable-zone {
    outline-color: rgba(0,209,255,0.55);
    outline-offset: -5px;
}

.admin-preview-header > .edit-badge {
    top: 12px;
    left: 50%;
}

.admin-preview-nav {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    width: 100vw;
    min-width: 100vw;
    flex-shrink: 0;
    z-index: 100;
}

.admin-preview-header + .hero {
    margin-top: calc(-1 * var(--admin-preview-nav-height));
}

.admin-preview-header.header-layout-wide-image + .hero {
    margin-top: 0;
}

.admin-preview-header.header-layout-wide-image .admin-preview-nav {
    position: relative;
    top: auto;
    min-height: 72px;
    padding: 16px 48px;
    justify-content: center;
    background: rgba(26,20,16,0.96);
}

.admin-preview-header.header-layout-wide-image .admin-preview-nav .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 32px;
}

.admin-preview-header-image {
    position: relative;
    z-index: 1;
    clear: both;
    width: 100%;
    height: auto;
    min-height: 0;
    margin-top: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
    background: #111;
    line-height: 0;
}

.admin-preview-header-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.editor-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 700;
    width: var(--admin-editor-panel-width);
    overflow-y: auto;
    padding: 24px;
    background: #f7f4ef;
    color: #171717;
    border-left: 1px solid rgba(0,0,0,0.14);
    box-shadow: -16px 0 40px rgba(0,0,0,0.25);
}

.editor-panel h2 {
    margin: 0 0 18px;
    font-size: 1.4rem;
    color: #111;
}

.editor-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
}

.editor-heading-row h2 {
    margin: 0;
}

.editor-panel p {
    color: #303030;
}

.editor-section {
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid #c8bcae;
    border-radius: 8px;
    background: #fffaf3;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.editor-section h3 {
    margin: 0 0 12px;
    color: #1d1d1d;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-kicker {
    margin: 0 0 8px;
    color: #ff6a00;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
}

.editor-panel label {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1f1f1f;
}

.editor-panel input,
.editor-panel textarea {
    width: 100%;
    border: 1px solid #6f6257;
    border-radius: 6px;
    padding: 11px 12px;
    font: inherit;
    background: #ffffff;
    color: #101010;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}

.editor-panel input:focus,
.editor-panel textarea:focus {
    border-color: #ff6a00;
    outline: 3px solid rgba(255,106,0,0.22);
}

.editor-panel input::placeholder,
.editor-panel textarea::placeholder {
    color: #777;
}

.editor-panel textarea {
    min-height: 110px;
    resize: vertical;
}

.editor-panel input[type="color"] {
    height: 42px;
    padding: 4px;
}

.editor-panel input[type="file"] {
    padding: 10px;
    background: #fff;
    border: 1px dashed #6f6257;
}

.visibility-toggle {
    border: 1px solid #6f6257;
    border-radius: 6px;
    background: #fff;
    color: #101010;
    font: inherit;
    cursor: pointer;
}

.visibility-toggle:hover {
    border-color: #ff6a00;
    box-shadow: 0 0 0 3px rgba(255,106,0,0.16);
}

.visibility-status {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1f1f1f;
}

.visibility-status strong {
    padding: 10px 11px;
    border: 1px solid #c8bcae;
    border-radius: 6px;
    background: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.visibility-status.is-visible strong {
    color: #125521;
}

.visibility-status.is-hidden strong {
    background: #fff4f1;
    color: #7c1f0c;
}

.visibility-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.visibility-toggle.is-visible {
    color: #125521;
}

.visibility-toggle.is-hidden {
    color: #7c1f0c;
    background: #fff4f1;
}

.visibility-eye {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 75% 0;
    transform: rotate(45deg);
}

.visibility-eye::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.visibility-toggle.is-hidden .visibility-eye::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(90deg);
}

.upload-spec,
.current-media,
.upload-feedback {
    margin: 0 0 12px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.upload-spec {
    padding: 10px;
    border-radius: 6px;
    background: #f1eadf;
    color: #211a14;
    border: 1px solid #d2c4b5;
}

.current-media code {
    display: inline-block;
    max-width: 100%;
    padding: 2px 5px;
    border-radius: 4px;
    background: #eee2d4;
    color: #101010;
    word-break: break-all;
}

.upload-feedback {
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
}

.upload-feedback.is-success {
    background: #e4f7e8;
    color: #125521;
    border: 1px solid #96d3a2;
}

.upload-feedback.is-error {
    background: #ffe7e1;
    color: #7c1f0c;
    border: 1px solid #e2a091;
}

.segmented-editor-control {
    display: grid;
    gap: 8px;
}

.segmented-editor-control button,
.editor-actions-row button,
.editor-panel > .save-settings {
    width: 100%;
    border: 1px solid #6f6257;
    border-radius: 6px;
    padding: 11px 12px;
    background: #fff;
    color: #151515;
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.segmented-editor-control button:hover,
.editor-actions-row button:hover,
.editor-panel > .save-settings:hover {
    border-color: #ff6a00;
    box-shadow: 0 0 0 3px rgba(255,106,0,0.16);
}

.segmented-editor-control button.is-active,
.editor-actions-row .save-settings,
.editor-panel > .save-settings {
    background: #ff6a00;
    border-color: #ff6a00;
    color: #fff;
}

.editor-panel > .save-settings {
    margin-bottom: 14px;
}

.editor-actions-row {
    display: grid;
    gap: 10px;
    margin: 0 0 14px;
}

.header-image-preview {
    width: 100%;
    min-height: 70px;
    height: auto;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 1px solid #c8bcae;
    border-radius: 6px;
    background: #111;
    line-height: 0;
}

.header-image-preview img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.editor-panel .check {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 8px;
}

.editor-panel .check input {
    width: auto;
}

.editable-zone {
    position: relative;
    outline: 1px dashed transparent;
    outline-offset: 4px;
    cursor: crosshair;
}

.editable-zone:hover {
    outline-color: #00d1ff;
    box-shadow: 0 0 0 9999px rgba(0,209,255,0.025), 0 0 0 4px rgba(0,209,255,0.22), 0 10px 28px rgba(0,0,0,0.18);
}

.edit-badge {
    position: absolute;
    top: -36px;
    left: 50%;
    right: auto;
    z-index: 900;
    display: none;
    min-width: max-content;
    padding: 7px 10px;
    border-radius: 6px;
    background: #00d1ff;
    color: #001318;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    pointer-events: none;
    transform: translateX(-50%) translateY(4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
    opacity: 0;
}

.editable-zone:hover > .edit-badge,
.editable-zone:hover .edit-badge {
    display: inline-block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.edit-badge::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 10px;
    height: 10px;
    background: #00d1ff;
    transform: translateX(-50%) rotate(45deg);
}

.admin-preview-nav,
.admin-preview-nav .nav-links,
.admin-preview-nav .nav-links li {
    overflow: visible;
}

.admin-preview-nav .mega-menu-panel {
    position: absolute;
    top: calc(100% - 1px);
    padding-top: 18px;
    width: min(980px, calc(100vw - 440px));
    --mega-menu-shift: -18%;
}

.admin-preview-nav .mega-menu-panel::before {
    height: 18px;
}

.admin-preview-nav .nav-dropdown-trigger {
    line-height: inherit;
}

.admin-preview-nav .mega-menu-grid a {
    overflow: visible;
}

.admin-preview-nav .is-public-hidden {
    color: #d6d6d6 !important;
    background: #3f3f3f !important;
    border-color: #b4b4b4 !important;
    border-style: dashed;
    opacity: 0.48;
    filter: grayscale(1) saturate(0);
}

.admin-preview-nav .is-public-hidden:hover {
    opacity: 0.72;
    filter: grayscale(0.35) saturate(0.45);
}

.admin-preview-nav .is-public-hidden::after {
    display: none;
}

.admin-hidden-indicator {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    z-index: 4;
    display: inline-block;
    min-width: max-content;
    padding: 4px 7px;
    border-radius: 5px;
    background: rgba(17,17,17,0.88);
    color: #f1f1f1;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    pointer-events: none;
    transform: translateX(-50%);
}

.cat-card .edit-badge,
.hero-content .edit-badge {
    top: 14px;
    left: 50%;
}

.admin-preview-footer > .edit-badge {
    top: 14px;
    left: 50%;
}

.is-public-hidden-content {
    opacity: 0.48;
    filter: grayscale(1) saturate(0);
    outline-style: dashed;
}

.is-public-hidden-content:hover {
    opacity: 0.78;
    filter: grayscale(0.35) saturate(0.45);
}

.services-brands > .edit-badge {
    top: 18px;
    left: 50%;
}

.service-card > .edit-badge,
.brand-pill > .edit-badge {
    top: 12px;
    left: 50%;
}

.services-about-card > .edit-badge,
.service-line > .edit-badge {
    top: 10px;
    left: 50%;
}

.wellness-admin-overview > .edit-badge {
    top: 18px;
    left: 50%;
}

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

.wellness-admin-page {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100%;
    overflow: visible;
    border: 1px solid rgba(250,246,240,0.16);
    background: rgba(26,20,16,0.2);
}

.wellness-admin-page-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
}

.wellness-admin-page-body {
    padding: 20px;
}

.wellness-admin-page-body span {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--gold-light);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.wellness-admin-page-body h3 {
    margin: 0 0 10px;
    color: var(--cream);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    line-height: 1.05;
}

.wellness-admin-page-body p {
    color: rgba(250,246,240,0.76);
    font-size: 0.8rem;
    line-height: 1.6;
}

.wellness-admin-page-body small {
    display: inline-block;
    margin-top: 10px;
    color: rgba(250,246,240,0.64);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wellness-admin-blocks {
    display: grid;
    gap: 8px;
    padding: 0 20px 20px;
}

.wellness-admin-block {
    position: relative;
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(250,246,240,0.16);
    background: rgba(250,246,240,0.08);
    color: #faf6f0;
    text-align: left;
    cursor: pointer;
}

.wellness-admin-block strong {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wellness-admin-block span {
    color: rgba(250,246,240,0.7);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wellness-admin-page > .edit-badge,
.wellness-admin-block > .edit-badge {
    top: 12px;
    left: 50%;
}

@media (max-width: 980px) {
    .admin-edit-topbar {
        right: 0;
    }

    .editable-site-preview {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: auto;
        max-width: none;
        margin-right: 0;
        padding-top: var(--admin-editor-topbar-height);
        overflow-x: auto;
        overflow-y: visible;
    }

    .editable-site-canvas {
        width: 100%;
        min-width: 100%;
    }

    .admin-preview-header {
        width: 100%;
        min-width: 0;
    }

    .admin-preview-nav {
        position: sticky;
        top: var(--admin-editor-topbar-height);
        left: 0;
        right: 0;
        width: 100%;
        min-width: 0;
    }

    .admin-preview-header + .hero {
        margin-top: 0;
    }

    .admin-preview-header.header-layout-wide-image .admin-preview-nav {
        position: relative;
        top: auto;
        min-height: auto;
        padding: 14px 18px;
    }

    .admin-preview-header.header-layout-wide-image .admin-preview-nav .nav-links {
        display: flex;
        gap: 12px 16px;
    }

    .wellness-admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-preview-header-image {
        height: auto;
    }

    .editor-panel {
        position: static;
        width: auto;
    }

    .theme-tab,
    .dashboard-tab {
        right: 20px;
    }

    .dashboard-tab {
        top: calc(var(--admin-editor-topbar-height) + 64px);
    }

    .admin-dashboard-header {
        position: relative;
        flex-direction: column;
    }

    .admin-dashboard-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-dashboard-summary,
    .admin-dashboard-grid,
    .admin-dashboard-source-grid,
    .admin-dashboard-geo-grid {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-chart {
        grid-template-columns: repeat(15, minmax(12px, 1fr));
        min-height: 220px;
    }

    .admin-dashboard-chart-day small {
        display: none;
    }
}

/* Safety override: in the no-logo admin preview, keep menu and banner stacked. */
.admin-preview-header.header-layout-wide-image {
    display: flex;
    flex-direction: column;
}

.admin-preview-header.header-layout-wide-image > .admin-preview-nav {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    flex: 0 0 auto;
}

.admin-preview-header.header-layout-wide-image > .admin-preview-header-image {
    position: relative !important;
    top: auto !important;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex: 0 0 auto;
    margin-top: 0 !important;
}

.admin-preview-header.header-layout-wide-image > .admin-preview-header-image > img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}
