/* Renivo V2 Premium UI - consumer booking surface */

:root {
    --renivo-bg: #FFF8FB;
    --renivo-bg-warm: #FFFDF9;
    --renivo-surface: #FFFFFF;
    --renivo-surface-soft: #FFF0F6;
    --renivo-surface-pink: #FFE6F0;
    --renivo-primary: #E91E73;
    --renivo-primary-dark: #C91662;
    --renivo-primary-deep: #B8125A;
    --renivo-primary-soft: #FFE1EE;
    --renivo-accent: #6C5CFF;
    --renivo-accent-soft: #F0EEFF;
    --renivo-success: #18B981;
    --renivo-warning: #FF8A3D;
    --renivo-text: #171218;
    --renivo-text-soft: #342A32;
    --renivo-muted: #6F6472;
    --renivo-muted-light: #9B8F99;
    --renivo-border: #F0DDE6;
    --renivo-border-strong: #E7C8D6;
    --renivo-shadow-xs: 0 2px 8px rgba(34, 18, 28, 0.05);
    --renivo-shadow-card: 0 10px 30px rgba(34, 18, 28, 0.08);
    --renivo-shadow-soft: 0 18px 60px rgba(34, 18, 28, 0.10);
    --renivo-shadow-glow: 0 14px 45px rgba(233, 30, 115, 0.18);
    --renivo-radius-sm: 12px;
    --renivo-radius-md: 16px;
    --renivo-radius-lg: 24px;
    --renivo-radius-xl: 32px;
    --renivo-radius-pill: 999px;
}

html,
body {
    background: var(--renivo-bg);
    color: var(--renivo-text);
}

body {
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font-family: var(--font-sans);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(233, 30, 115, 0.22);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

header.site-header {
    position: sticky;
    top: 12px;
    width: min(1220px, calc(100% - 32px));
    min-height: 68px;
    margin: 12px auto 0;
    padding: 13px 18px;
    border: 1px solid rgba(240, 221, 230, 0.82);
    border-radius: 22px;
    background: rgba(255,255,255,0.86);
    box-shadow: var(--renivo-shadow-xs);
    backdrop-filter: blur(22px);
}

.logo-symbol {
    display: none;
}

.logo-text,
.mobile-drawer-head .logo-text {
    color: var(--renivo-text);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

#desktop-nav-links {
    gap: 20px;
    justify-content: center;
}

#desktop-nav-links > a,
.nav-dropdown-trigger {
    color: var(--renivo-text);
    font-size: 14px;
    font-weight: 760;
    padding: 10px 0;
}

#desktop-nav-links > a:hover,
.nav-dropdown-trigger:hover {
    color: var(--renivo-text);
}

.nav-dropdown-trigger::after {
    content: "\25BE";
    margin-left: 7px;
    color: var(--renivo-muted);
    font-size: 13px;
    line-height: 1;
}

.nav-actions {
    margin-left: 14px;
    padding-left: 0;
    border-left: 0;
    gap: 14px;
}

.portal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--renivo-text-soft) !important;
    font-size: 14px !important;
    font-weight: 760 !important;
}

.portal-link::before {
    content: "";
    width: 34px;
    height: 34px;
    border: 1px solid var(--renivo-border);
    border-radius: var(--renivo-radius-pill);
    background:
        radial-gradient(circle at 50% 36%, var(--renivo-text) 0 3px, transparent 3.7px),
        radial-gradient(ellipse at 50% 72%, transparent 0 7px, var(--renivo-text) 7.6px 8.4px, transparent 9.2px),
        var(--renivo-surface);
}

.nav-cta-btn,
.btn-primary,
.checkout-cta,
.mobile-bar-cta {
    border: 0 !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, var(--renivo-primary), var(--renivo-primary-dark)) !important;
    color: #fff !important;
    box-shadow: var(--renivo-shadow-glow);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-cta-btn {
    min-height: 46px;
    padding: 13px 22px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.btn-primary:hover,
.checkout-cta:hover,
.mobile-bar-cta:hover,
.nav-cta-btn:hover {
    background: linear-gradient(135deg, var(--renivo-primary-dark), var(--renivo-primary-deep)) !important;
    box-shadow: 0 18px 50px rgba(233,30,115,0.24);
    transform: translateY(-1px);
}

.btn-primary:active,
.checkout-cta:active,
.mobile-bar-cta:active,
.nav-cta-btn:active {
    transform: scale(0.985);
}

.renivo-v2-hero {
    width: min(1220px, calc(100% - 32px));
    min-height: 650px;
    height: auto !important;
    margin: 18px auto 0;
    overflow: hidden;
    border: 1px solid rgba(240, 221, 230, 0.78);
    border-radius: 32px;
    background-size: 44% 100% !important;
    background-position: left center !important;
    background-repeat: no-repeat !important;
    background-color: var(--renivo-bg-warm);
    box-shadow: var(--renivo-shadow-soft);
}

.renivo-v2-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, transparent 0%, transparent 34%, rgba(255,248,251,0.34) 40%, rgba(255,248,251,0.72) 46%, var(--renivo-bg-warm) 52%, var(--renivo-bg-warm) 100%),
        radial-gradient(circle at 75% 8%, rgba(108,92,255,0.06), transparent 32%),
        radial-gradient(circle at 72% 88%, rgba(233,30,115,0.08), transparent 30%);
    pointer-events: none;
}

.renivo-v2-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 44%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(108deg, rgba(23,18,24,0.28) 0%, rgba(23,18,24,0.16) 48%, rgba(23,18,24,0.06) 82%, transparent 100%);
}

.renivo-v2-hero .hero-overlay {
    position: relative;
    min-height: 650px;
    background: transparent;
    display: block;
}

.renivo-v2-hero-stage {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 56px));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(440px, 0.9fr) minmax(460px, 560px);
    gap: 48px;
    align-items: center;
    padding: 46px 0 58px;
}

.renivo-v2-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 470px;
    margin: 0;
    padding: 0;
    color: var(--renivo-text);
}

.renivo-v2-hero .hero-content::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    top: -18px;
    left: -20px;
    right: -28px;
    bottom: -14px;
    background: radial-gradient(ellipse 90% 88% at 8% 48%, rgba(255, 253, 250, 0.80) 0%, rgba(255, 248, 251, 0.58) 42%, rgba(255, 248, 251, 0.16) 72%, transparent 100%);
}

.renivo-v2-hero .hero-badge {
    margin-bottom: 18px;
    padding: 8px 13px;
    border: 1px solid rgba(240,221,230,0.9);
    border-radius: var(--renivo-radius-pill);
    background: rgba(255,255,255,0.92);
    color: var(--renivo-text-soft);
    box-shadow: 0 2px 14px rgba(255, 253, 250, 0.55);
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
    font-weight: 850;
    backdrop-filter: blur(18px);
}

.renivo-v2-hero .hero-content h1 {
    max-width: min(520px, 100%);
    margin: 0 0 18px;
    color: var(--renivo-text);
    font-family: var(--font-sans);
    font-size: clamp(40px, 4.8vw, 62px);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-wrap: balance;
    text-shadow:
        0 0 1px rgba(255, 255, 255, 0.95),
        0 0 24px rgba(255, 253, 250, 1),
        0 0 48px rgba(255, 248, 251, 0.82);
}

.renivo-v2-hero-copy {
    max-width: 390px !important;
    margin: 0 0 24px !important;
    color: var(--renivo-text);
    font-size: 17px !important;
    line-height: 1.55 !important;
    font-weight: 600;
    opacity: 0.92 !important;
    text-shadow:
        0 0 1px rgba(255, 255, 255, 0.9),
        0 0 18px rgba(255, 253, 250, 0.95);
}

.renivo-v2-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 430px;
    margin: 0;
}

.renivo-v2-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid rgba(240,221,230,0.9);
    border-radius: 16px;
    background: rgba(255,255,255,0.92);
    color: var(--renivo-text-soft);
    box-shadow: 0 2px 12px rgba(255, 253, 250, 0.45);
    font-size: 12px;
    font-weight: 850;
    backdrop-filter: blur(16px);
}

.renivo-v2-trust-row span::before {
    display: none;
}

.renivo-v2-trust-row svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--renivo-primary);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.renivo-v2-booking-card {
    padding: 32px;
    border: 1px solid rgba(240,221,230,0.92);
    border-radius: var(--renivo-radius-xl);
    background: rgba(255,255,255,0.94);
    box-shadow: var(--renivo-shadow-soft);
    backdrop-filter: blur(22px);
}

.renivo-v2-booking-card h2 {
    margin: 0 0 20px;
    color: var(--renivo-text);
    font-size: 24px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.renivo-v2-service-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.renivo-v2-service-option {
    display: flex;
    min-height: 78px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    border: 1px solid var(--renivo-border);
    border-radius: 18px;
    background: var(--renivo-surface);
    color: var(--renivo-text-soft);
    cursor: pointer;
    font-size: 11px;
    font-weight: 850;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.renivo-v2-service-option svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.renivo-v2-service-option:hover {
    transform: translateY(-2px);
    border-color: var(--renivo-border-strong);
    box-shadow: var(--renivo-shadow-card);
}

.renivo-v2-service-option.active {
    border-color: var(--renivo-primary);
    background: var(--renivo-surface-soft);
    color: var(--renivo-primary);
    box-shadow: 0 10px 28px rgba(233,30,115,0.10);
}

.renivo-v2-selected-pop {
    animation: renivoV2SelectPop 240ms ease both;
}

.renivo-v2-field-stack {
    display: grid;
    gap: 9px;
}

.renivo-v2-field-stack label,
.renivo-v2-addon-wrap > span {
    margin-top: 3px;
    color: var(--renivo-text);
    font-size: 12px;
    font-weight: 900;
}

.renivo-v2-input-shell {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid var(--renivo-border);
    border-radius: 18px;
    background: var(--renivo-surface);
    color: var(--renivo-text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.renivo-v2-input-shell:focus-within,
.renivo-v2-time-trigger:focus-visible {
    border-color: var(--renivo-primary);
    box-shadow: 0 0 0 4px rgba(233,30,115,0.10);
}

.renivo-v2-input-shell svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: var(--renivo-muted);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.renivo-v2-input-shell input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--renivo-text);
    font-size: 14px;
    font-weight: 760;
}

.renivo-v2-input-shell > button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: var(--renivo-radius-pill);
    background: transparent;
    color: var(--renivo-muted);
    cursor: pointer;
    font-size: 17px;
}

.renivo-v2-time-trigger {
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    text-align: left;
}

.renivo-v2-addon-wrap {
    display: grid;
    gap: 9px;
    margin: 18px 0 24px;
}

.renivo-v2-addon-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.renivo-v2-chip {
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid var(--renivo-border);
    border-radius: var(--renivo-radius-pill);
    background: var(--renivo-surface);
    color: var(--renivo-text-soft);
    cursor: pointer;
    font-size: 13px;
    font-weight: 850;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.renivo-v2-chip:hover {
    transform: translateY(-1px);
    border-color: var(--renivo-border-strong);
}

.renivo-v2-chip.active {
    border-color: var(--renivo-primary);
    background: var(--renivo-primary-soft);
    color: var(--renivo-primary-deep);
}

.renivo-v2-booking-foot {
    display: grid;
    grid-template-columns: 1fr minmax(190px, 235px);
    gap: 18px;
    align-items: center;
}

.renivo-v2-price {
    display: block;
    color: var(--renivo-text);
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.renivo-v2-booking-foot span {
    display: block;
    margin-top: 6px;
    color: var(--renivo-muted);
    font-size: 12px;
    font-weight: 800;
}

.renivo-v2-booking-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    min-height: 58px;
    padding: 0 22px !important;
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
}

.renivo-v2-booking-cta svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.renivo-v2-safe-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 0;
    color: var(--renivo-text-soft) !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 700;
}

.renivo-v2-safe-note svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--renivo-primary);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.price-updated,
.summary-value-updated {
    animation: renivoV2PricePulse 320ms ease both;
}

.home-trust-strip,
.audience-path,
.value-props,
.testimonials,
.before-after-section,
.smart-help-band {
    display: none;
}

#view-home .how-it-works {
    width: min(900px, calc(100% - 32px));
    max-width: none;
    margin: -56px auto 0;
    padding: 18px 22px !important;
    border: 1px solid rgba(240,221,230,0.92);
    border-radius: 24px;
    background: rgba(255,255,255,0.92);
    box-shadow: var(--renivo-shadow-card);
    position: relative;
    z-index: 5;
}

#view-home .how-it-works .layout-container {
    padding: 0;
}

#view-home .how-it-works .section-title {
    margin: 0 0 16px;
    color: var(--renivo-text);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.01em;
    text-align: left;
}

#view-home .how-it-works .section-sub,
#view-home .how-it-works .trust-badge-row {
    display: none !important;
}

#view-home .how-it-works .how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

#view-home .how-it-works .how-card {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    column-gap: 12px;
    min-height: 74px;
    padding: 14px 16px;
    border: 1px solid var(--renivo-border);
    border-radius: 18px !important;
    background: var(--renivo-surface);
    box-shadow: var(--renivo-shadow-xs);
}

#view-home .how-it-works .how-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--renivo-shadow-card);
}

#view-home .how-it-works .how-num {
    grid-row: 1 / span 2;
    width: 31px;
    height: 31px;
    margin: 0;
    border-radius: var(--renivo-radius-pill);
    background: var(--renivo-primary);
    color: #fff;
    font-size: 14px;
    box-shadow: none;
}

#view-home .how-it-works .how-card h3 {
    margin: 0 0 4px;
    color: var(--renivo-text);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;
}

#view-home .how-it-works .how-card p {
    margin: 0;
    color: var(--renivo-text-soft);
    font-size: 10px;
    line-height: 1.35;
}

#view-home .service-highlights {
    display: grid;
    grid-template-columns: repeat(5, minmax(145px, 1fr));
    gap: 16px;
    max-width: 1220px;
    padding-top: 34px !important;
    padding-bottom: 42px !important;
}

.renivo-v2-services-head {
    grid-column: 1 / -1;
}

.renivo-v2-services-head h2 {
    margin: 0 0 -2px;
    color: var(--renivo-text);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.015em;
}

#view-home .highlight-card {
    position: relative;
    display: block;
    min-height: 178px;
    padding: 0;
    overflow: hidden;
    border: 0 !important;
    border-radius: 24px !important;
    background: #171218;
    box-shadow: var(--renivo-shadow-card);
}

#view-home .highlight-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23,18,24,0.02) 25%, rgba(23,18,24,0.78) 100%);
    pointer-events: none;
}

#view-home .highlight-card img {
    width: 100%;
    height: 178px !important;
    min-height: 178px;
    object-fit: cover;
    border-radius: 24px !important;
    transition: transform 220ms ease;
}

#view-home .highlight-card:hover img {
    transform: scale(1.035);
}

#view-home .highlight-card .service-card-icon,
#view-home .highlight-card h3 {
    position: absolute;
    z-index: 2;
}

#view-home .highlight-card .service-card-icon {
    left: 14px;
    bottom: 14px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.30);
    border-radius: 14px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(12px);
}

#view-home .highlight-card .service-card-icon img {
    width: 20px;
    height: 20px !important;
    object-fit: contain;
    filter: none;
}

#view-home .highlight-card h3 {
    left: 58px;
    right: 12px;
    bottom: 20px;
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

#view-home .highlight-card p,
#view-home .highlight-card .highlight-price {
    display: none;
}

.wizard-section-head {
    padding-top: 50px !important;
    padding-bottom: 16px !important;
}

.wizard-section-head .section-title {
    color: var(--renivo-text);
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: -0.04em;
}

.wizard-section-head .section-sub {
    max-width: 560px;
    margin-bottom: 0;
    color: var(--renivo-muted);
}

.onboarding-wizard {
    max-width: 1160px;
    margin-top: 0;
    gap: 26px;
}

.wizard-main,
.summary-box {
    border: 1px solid rgba(240,221,230,0.92);
    border-radius: 28px !important;
    background: rgba(255,255,255,0.94);
    box-shadow: var(--renivo-shadow-card);
}

.wizard-main {
    padding: 30px;
}

.wizard-step-badge {
    border-radius: var(--renivo-radius-pill);
    background: var(--renivo-accent-soft);
    color: var(--renivo-accent);
    letter-spacing: 0;
}

.wizard-step-title,
.step-title {
    color: var(--renivo-text);
    font-weight: 900;
    letter-spacing: -0.025em;
}

.step-desc,
.guarantee-package-note {
    color: var(--renivo-text-soft);
    font-size: 14px;
    line-height: 1.45;
}

.progress-tracker::before,
.progress-bar-fill {
    height: 5px;
    border-radius: var(--renivo-radius-pill);
}

.progress-bar-fill,
.progress-dot.active,
.progress-dot.completed {
    background: linear-gradient(135deg, var(--renivo-primary), var(--renivo-primary-dark));
}

.progress-dot {
    width: 34px;
    height: 34px;
    border: 1px solid var(--renivo-border);
    box-shadow: var(--renivo-shadow-xs);
}

.package-card,
.addon-item,
.bilvask-scope-card,
.time-slot-btn,
.date-cell-node,
.toggle-pill {
    border-radius: 20px !important;
    border-color: var(--renivo-border);
}

.package-card,
.addon-item {
    padding: 18px;
    background: var(--renivo-surface);
    box-shadow: var(--renivo-shadow-xs);
}

.package-card.active,
.addon-item.active,
.bilvask-scope-card.active,
.time-slot-btn.active,
.date-cell-node.selected-date,
.toggle-pill.active {
    border-color: var(--renivo-primary) !important;
    background: var(--renivo-surface-soft) !important;
    color: var(--renivo-primary-deep);
    box-shadow: 0 12px 30px rgba(233,30,115,0.12);
}

.addon-marketplace {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.btn-text-skip {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin-top: 14px;
    padding: 0 14px;
    border: 1px solid var(--renivo-border);
    border-radius: var(--renivo-radius-pill);
    background: var(--renivo-surface);
    color: var(--renivo-muted);
    font-weight: 850;
}

.wizard-main .input-wrapper label,
#step-node-4 .input-wrapper label,
.intake-fieldset legend {
    color: var(--renivo-text);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    min-height: 52px;
    border-radius: 18px !important;
    border: 1.5px solid var(--renivo-border-strong);
    background: var(--renivo-surface);
    color: var(--renivo-text);
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: #7a6e78;
    opacity: 1;
}

.input-wrapper select {
    color: var(--renivo-text);
}

.input-wrapper select option {
    color: var(--renivo-text);
    background: #fff;
}

#step-node-4 .equipment-check,
#step-node-4 .input-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;
    accent-color: var(--renivo-primary);
    vertical-align: -2px;
    flex-shrink: 0;
}

#step-node-4 .form-row .input-wrapper,
#step-node-4 .form-row label.input-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-bottom: 10px;
    color: var(--renivo-text-soft);
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--renivo-primary);
    box-shadow: 0 0 0 4px rgba(233,30,115,0.10);
}

.calendar-framework {
    border-radius: 24px;
    border-color: var(--renivo-border);
    background: var(--renivo-bg-warm);
}

.time-slot-grid {
    gap: 10px;
}

.time-slot-btn {
    min-height: 46px;
    background: var(--renivo-surface);
    font-weight: 850;
    animation: renivoV2TimeIn 220ms ease both;
}

.summary-box {
    padding: 24px;
}

.summary-box h3 {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--renivo-border);
    color: var(--renivo-text);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.summary-line {
    padding: 9px 0;
    border-bottom: 1px solid rgba(240,221,230,0.65);
    color: var(--renivo-text-soft);
    font-weight: 600;
}

.summary-line span:first-child {
    color: var(--renivo-text);
    font-weight: 700;
}

.summary-line span:last-child {
    color: var(--renivo-text);
    font-weight: 800;
}

.summary-line.total-line {
    align-items: end;
    padding-top: 18px;
    border-bottom: 0;
}

.summary-line.total-line span:last-child {
    color: var(--renivo-text);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.summary-vipps-note {
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: var(--renivo-radius-pill);
    background: var(--renivo-surface-soft);
    color: var(--renivo-primary-deep);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.checkout-cta {
    width: 100%;
    min-height: 54px;
    margin-top: 12px;
    font-weight: 900;
}

.mobile-booking-bar {
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    min-height: 82px;
    padding: 12px;
    border: 1px solid rgba(240,221,230,0.92);
    border-radius: 24px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 -14px 44px rgba(34,18,28,0.14);
    backdrop-filter: blur(22px);
}

.mobile-bar-price {
    min-width: 0;
}

.mobile-bar-label {
    max-width: 170px;
    overflow: hidden;
    color: var(--renivo-text);
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 900;
}

.mobile-bar-price strong {
    display: none;
}

.mobile-bar-price small {
    color: var(--renivo-muted);
    font-size: 12px;
    font-weight: 800;
}

.mobile-bar-cta {
    min-width: 122px;
    min-height: 54px;
    font-weight: 900;
}

.cookie-banner {
    left: auto;
    right: 22px;
    bottom: 22px;
    width: min(520px, calc(100% - 44px));
    padding: 14px;
    border: 1px solid rgba(240,221,230,0.92);
    border-radius: 20px;
    box-shadow: var(--renivo-shadow-soft);
}

body.cookie-banner-visible {
    padding-bottom: 0;
}

#view-home.active-view ~ .cookie-banner.visible {
    display: none;
}

@media (max-width: 1180px) {
    .renivo-v2-hero-stage {
        grid-template-columns: minmax(300px, 0.8fr) minmax(430px, 1fr);
        gap: 34px;
    }
}

@media (max-width: 920px) {
    body:not(:has(#view-admin.active-view)) {
        padding-bottom: var(--mobile-dock-h, calc(96px + env(safe-area-inset-bottom, 0px)));
    }

    body:not(:has(#view-admin.active-view)) .site-footer-premium {
        padding-bottom: calc(12px + var(--mobile-dock-h, calc(96px + env(safe-area-inset-bottom, 0px))));
    }

    .back-to-top {
        bottom: calc(var(--mobile-dock-h, calc(96px + env(safe-area-inset-bottom, 0px))) + 8px);
        right: 16px;
        z-index: 1001;
    }

    body.mobile-dock-visible .back-to-top {
        bottom: calc(var(--mobile-dock-h, calc(96px + env(safe-area-inset-bottom, 0px))) + 8px);
    }

    header.site-header {
        top: 8px;
        width: calc(100% - 24px);
        min-height: 64px;
        margin-top: 8px;
        border-radius: 22px;
    }

    .mobile-nav {
        display: none;
    }

    .logo-text {
        font-size: 25px;
    }

    .renivo-v2-hero {
        width: 100%;
        margin-top: 10px;
        border-left: 0;
        border-right: 0;
        border-radius: 0 0 32px 32px;
        background-size: 100% 260px !important;
        background-position: top center !important;
    }

    .renivo-v2-hero::before {
        background:
            linear-gradient(180deg,
                rgba(255,248,251,0.08) 0%,
                rgba(255,248,251,0.04) 150px,
                rgba(255,248,251,0.72) 210px,
                rgba(255,248,251,0.94) 248px,
                var(--renivo-bg) 100%);
    }

    .renivo-v2-hero::after {
        width: 100%;
        height: 260px;
        bottom: auto;
        background: linear-gradient(180deg, rgba(23,18,24,0.18) 0%, rgba(23,18,24,0.08) 55%, transparent 100%);
    }

    .renivo-v2-hero .hero-content::before {
        top: -10px;
        left: -14px;
        right: -14px;
        bottom: -8px;
        background: radial-gradient(ellipse 100% 82% at 16% 8%, rgba(255, 253, 250, 0.76) 0%, rgba(255, 248, 251, 0.52) 48%, transparent 84%);
    }

    .renivo-v2-hero .hero-overlay,
    .renivo-v2-hero-stage {
        min-height: auto;
    }

    .renivo-v2-hero-stage {
        display: block;
        width: min(560px, calc(100% - 28px));
        padding: 170px 0 58px;
    }

    .renivo-v2-hero .hero-content {
        max-width: none;
        margin-bottom: 18px;
    }

    .renivo-v2-hero .hero-badge {
        display: none;
    }

    .renivo-v2-hero .hero-content h1 {
        max-width: min(360px, 100%);
        margin-bottom: 8px;
        font-size: clamp(32px, 9vw, 38px);
        line-height: 1.05;
        letter-spacing: -0.04em;
    }

    .renivo-v2-hero-copy {
        max-width: 330px !important;
        margin-bottom: 14px !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
        font-weight: 600;
        opacity: 0.94 !important;
        text-shadow:
            0 0 1px rgba(255, 255, 255, 0.92),
            0 0 16px rgba(255, 253, 250, 0.98);
    }

    .renivo-v2-trust-row {
        display: none;
    }

    .renivo-v2-booking-card {
        padding: 18px;
        border-radius: 24px;
    }

    .renivo-v2-booking-card h2 {
        font-size: 18px;
    }

    .renivo-v2-service-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .renivo-v2-service-option {
        min-height: 64px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 10px 12px;
        font-size: 12px;
    }

    .renivo-v2-service-option svg {
        width: 22px;
        height: 22px;
    }

    .renivo-v2-booking-foot {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .renivo-v2-booking-cta {
        min-height: 52px;
    }

    #view-home .how-it-works {
        width: min(560px, calc(100% - 28px));
        margin-top: -34px;
        padding: 16px !important;
    }

    #view-home .how-it-works .how-grid {
        grid-template-columns: 1fr;
    }

    #view-home .service-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(560px, calc(100% - 28px));
        padding-left: 0;
        padding-right: 0;
    }

    .onboarding-wizard {
        grid-template-columns: 1fr;
        padding-left: 14px;
        padding-right: 14px;
    }

    .wizard-main {
        padding: 22px 16px;
        border-radius: 24px !important;
    }

    .summary-panel {
        display: none;
    }

    .addon-marketplace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    body {
        padding-bottom: 118px;
    }

    #booking-wizard .package-grid,
    #booking-wizard .booking-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 18px;
    }

    #booking-wizard .package-card {
        min-height: 104px;
        padding: 12px;
        border-radius: 16px !important;
    }

    #package-selection-container .package-card p,
    #booking-type-container .package-card p {
        display: none;
    }

    #booking-wizard .package-card h4 {
        font-size: 13px;
        line-height: 1.2;
        margin: 0 24px 8px 0;
    }

    #booking-wizard .package-price-est {
        display: inline-flex;
        margin-top: 0;
        padding: 4px 8px;
        font-size: 12px;
        line-height: 1.2;
        white-space: normal;
    }

    #booking-wizard .slider-container {
        margin: 18px 0;
    }

    .renivo-v2-hero {
        background-size: 100% 235px !important;
    }

    .renivo-v2-hero::after {
        height: 235px;
    }

    .renivo-v2-hero-stage {
        padding-top: 145px;
    }

    .renivo-v2-hero .hero-content::before {
        top: -8px;
    }

    .renivo-v2-hero .hero-content h1 {
        font-size: 30px;
        text-shadow:
            0 0 1px rgba(255, 255, 255, 0.96),
            0 0 20px rgba(255, 253, 250, 1),
            0 0 40px rgba(255, 248, 251, 0.88);
    }

    .renivo-v2-input-shell {
        min-height: 48px;
    }

    .renivo-v2-price {
        font-size: 29px;
    }

    #view-home .highlight-card,
    #view-home .highlight-card img {
        min-height: 142px;
        height: 142px !important;
    }

    .mobile-booking-bar {
        border-radius: 22px;
    }

    #view-home.active-view {
        padding-bottom: calc(100px + env(safe-area-inset-bottom));
    }

    #view-home .wizard-actions {
        margin-bottom: 8px;
    }
}


@keyframes renivoV2SelectPop {
    0% { transform: scale(0.98); }
    55% { transform: scale(1.025); }
    100% { transform: scale(1); }
}

@keyframes renivoV2PricePulse {
    0% { transform: translateY(0); color: var(--renivo-primary); }
    100% { transform: translateY(0); color: inherit; }
}

@keyframes renivoV2TimeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* — Confirmation premium — */
.renivo-confirmation-premium {
    max-width: 640px;
    margin: 48px auto;
    padding: 40px 32px;
    border-radius: var(--renivo-radius-xl);
    background: var(--renivo-surface);
    border: 1px solid var(--renivo-border);
    box-shadow: var(--renivo-shadow-card);
    text-align: center;
}

.renivo-confirmation-premium h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 12px 0;
    color: var(--renivo-text);
}

.confirmation-summary-grid {
    display: grid;
    gap: 12px;
    margin: 28px 0;
    text-align: left;
}

.confirmation-summary-grid > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: var(--renivo-radius-md);
    background: var(--renivo-surface-soft);
    border: 1px solid var(--renivo-border);
}

.conf-label {
    color: var(--renivo-muted);
    font-size: 13px;
    font-weight: 700;
}

.confirmation-timeline {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    text-align: left;
}

.confirmation-timeline li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--renivo-muted);
    font-weight: 600;
    font-size: 14px;
}

.confirmation-timeline li span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--renivo-surface-soft);
    border: 1px solid var(--renivo-border);
    font-size: 12px;
    font-weight: 800;
}

.confirmation-timeline li.done { color: var(--renivo-text-soft); }
.confirmation-timeline li.done span { background: rgba(24, 185, 129, 0.15); color: #08724E; border-color: transparent; }
.confirmation-timeline li.active { color: var(--renivo-primary-deep); font-weight: 800; }
.confirmation-timeline li.active span { background: var(--renivo-primary-soft); color: var(--renivo-primary-deep); border-color: transparent; }

.confirmation-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.price-updated {
    animation: renivoV2PricePulse 0.32s ease;
}

/* — CRM / Admin: ikke overstyrt av consumer CTA-stil — */
#view-admin,
#view-admin .crm-control-room,
.crm-control-room {
    --renivo-shadow-glow: none;
}

#view-admin .btn-primary,
#view-admin .btn-secondary,
.crm-control-room .btn-primary,
.crm-control-room .btn-secondary {
    border-radius: var(--radius-control, 12px) !important;
    box-shadow: var(--shadow-soft, 0 8px 24px rgba(30,30,40,0.08)) !important;
    font-weight: 600 !important;
}

#view-admin .btn-primary,
.crm-control-room .btn-primary {
    background: var(--gradient-secondary, linear-gradient(135deg, #FF5FA2, #FF7EB7)) !important;
}

#view-dashboard .portal-layout,
#view-worker .portal-layout {
    padding-top: 24px;
    padding-bottom: 48px;
}

#view-auth .auth-card-container,
#view-auth-admin .auth-card-container {
    border-radius: var(--renivo-radius-xl);
    border: 1px solid var(--renivo-border);
    box-shadow: var(--renivo-shadow-card);
}

#view-auth .auth-page,
#view-auth-admin .auth-page {
    padding-block: 44px 72px;
    align-items: flex-start;
}

#view-auth .auth-card-container,
#view-auth-admin .auth-card-container {
    padding: clamp(28px, 3.5vw, 40px);
}

#view-auth .auth-lead,
#view-auth-admin .auth-lead,
#view-auth .auth-tabs {
    margin-bottom: 20px;
}

#view-auth .input-wrapper,
#view-auth-admin .input-wrapper {
    margin-bottom: 14px;
}

#view-dashboard .portal-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid var(--renivo-border);
    margin-bottom: 12px;
}

#view-auth .google-auth-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(18, 24, 38, 0.14);
    border-radius: 12px;
    background: #fff;
    color: #171923;
    font: 700 14px/1 var(--font-sans, inherit);
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#view-auth .google-auth-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(232, 0, 87, 0.28);
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.10);
}

#view-auth .google-auth-btn:focus-visible {
    outline: 3px solid rgba(232, 0, 87, 0.18);
    outline-offset: 3px;
}

#view-auth .google-auth-btn:disabled,
#view-auth .google-auth-btn[aria-busy="true"] {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

#view-auth .google-auth-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex;
}

#view-auth .google-auth-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

#view-auth .auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: rgba(17, 24, 39, 0.48);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

#view-auth .auth-divider::before,
#view-auth .auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(17, 24, 39, 0.10);
}

#view-auth .google-auth-spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(232, 0, 87, 0.18);
    border-top-color: #e80057;
    animation: googleAuthSpin 0.8s linear infinite;
}

@keyframes googleAuthSpin {
    to { transform: rotate(360deg); }
}

#mobile-drawer {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
}

#mobile-drawer:not(.open) .mobile-drawer-panel {
    visibility: hidden;
}

#view-admin,
#admin-portal-layout,
#admin-portal-layout .admin-portal-wide,
#view-admin .crm-spa-shell,
#view-admin .crm-control-room,
#view-admin .crm-pipeline-split,
#view-admin .crm-pipeline-split-board {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

#admin-portal-layout {
    overflow-x: clip;
}

#admin-portal-layout .admin-portal-wide {
    overflow-x: hidden;
}

#admin-portal-layout .admin-tab-bar {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
}

#admin-portal-layout .admin-tab {
    flex: 0 0 auto;
}

/* Admin/CRM: desktop skal kjennes som et arbeidsverktøy, ikke en lang landingsside. */
@media (min-width: 901px) {
    body:has(#view-admin.active-view) {
        background: #f6f7fb;
    }

    body:has(#view-admin.active-view) .site-footer-premium {
        display: none;
    }

    #view-admin.active-view {
        min-height: calc(100vh - 96px);
    }

    body #view-admin #admin-portal-layout.portal-layout {
        max-width: none !important;
        width: 100% !important;
        margin: 8px auto 18px !important;
        padding: 0 12px 14px !important;
    }

    #view-admin #admin-portal-layout .admin-portal-wide {
        max-width: none;
        width: 100%;
    }

    #view-admin #admin-portal-layout .admin-tab-bar {
        min-height: 38px;
        margin-bottom: 8px !important;
        gap: 6px;
    }

    #view-admin #admin-portal-layout .admin-tab {
        min-height: 34px;
        padding: 7px 12px;
        font-size: 12px;
        border-radius: 10px;
    }

    #view-admin .crm-boot-placeholder {
        max-width: 760px;
        margin: 28px auto;
        padding: 24px;
        border-radius: 16px;
    }

    #view-admin #crm-control-room.crm-control-room {
        --crm-space-lg: 12px;
        --crm-space-md: 8px;
        --crm-space-sm: 6px;
        display: flex !important;
        flex-direction: column !important;
        max-height: calc(100vh - 132px) !important;
        min-height: 520px !important;
        overflow: hidden !important;
        border-radius: 16px;
        box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
    }

    #view-admin #crm-control-room > .crm-control-bar {
        flex: 0 0 auto;
        display: grid !important;
        grid-template-columns: minmax(220px, 1.25fr) minmax(210px, 0.8fr) minmax(170px, auto) auto;
        align-items: center;
        gap: 8px !important;
        min-height: 52px;
        padding: 8px 10px !important;
        flex-wrap: nowrap !important;
    }

    #view-admin #crm-control-room .crm-control-search {
        min-width: 0;
        max-width: none;
    }

    #view-admin #crm-control-room .crm-spa-search {
        min-height: 34px;
        padding-block: 7px;
        font-size: 13px;
    }

    #view-admin #crm-control-room .crm-control-pills,
    #view-admin #crm-control-room .crm-control-actions {
        gap: 6px;
        flex-wrap: nowrap;
        min-width: 0;
    }

    #view-admin #crm-control-room .crm-control-pill,
    #view-admin #crm-control-room .crm-control-btn,
    #view-admin #crm-control-room .btn-sm {
        min-height: 32px;
        padding: 5px 9px !important;
        font-size: 11px;
        border-radius: 10px !important;
        white-space: nowrap;
    }

    #view-admin #crm-control-room .crm-control-ver {
        padding: 3px 8px;
        font-size: 10px;
    }

    #view-admin #crm-control-room .crm-outreach-status {
        min-width: 0;
        padding: 4px 8px;
        font-size: 10px;
    }

    #view-admin #crm-control-room > .crm-control-nav {
        flex: 0 0 auto;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        padding: 6px 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: thin;
    }

    #view-admin #crm-control-room .crm-control-nav-btn {
        min-height: 32px;
        padding: 6px 10px !important;
        border-radius: 10px;
        font-size: 12px;
        gap: 6px;
    }

    #view-admin #crm-control-room .crm-control-nav-icon {
        width: 16px;
    }

    #view-admin #crm-control-room > .crm-control-workspace {
        flex: 1 1 auto;
        height: calc(100vh - 231px) !important;
        max-height: calc(100vh - 231px) !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    #view-admin #crm-control-room .crm-workspace-pane {
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        padding: 10px !important;
        overflow: auto !important;
    }

    #view-admin #crm-control-room .crm-dashboard-layout {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
        gap: 10px !important;
        max-height: 100%;
        overflow: auto;
    }

    #view-admin #crm-control-room .crm-dash-widget,
    #view-admin #crm-control-room .crm-hq-panel,
    #view-admin #crm-control-room .crm-action-panel,
    #view-admin #crm-control-room .crm-brreg-panel {
        padding: 12px !important;
        border-radius: 14px;
    }

    #view-admin #crm-control-room .crm-workspace-split {
        display: grid !important;
        grid-template-columns: minmax(230px, 300px) minmax(0, 1fr) !important;
        gap: 10px !important;
        height: 100%;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    #view-admin #crm-control-room .crm-spa-rail,
    #view-admin #crm-control-room .crm-spa-main,
    #view-admin #crm-control-room .crm-workspace-detail,
    #view-admin #crm-control-room .crm-contact-hub,
    #view-admin #crm-control-room .crm-contact-hub-panel {
        max-height: 100% !important;
        min-height: 0 !important;
        overflow: auto !important;
    }

    #view-admin #crm-control-room .crm-spa-rail-head,
    #view-admin #crm-control-room .crm-spa-main {
        padding: 10px 12px !important;
    }

    #view-admin #crm-control-room .crm-spa-rail-item {
        padding: 8px 10px;
    }

    #view-admin #crm-control-room .crm-pipeline-split {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
        height: 100%;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    #view-admin #crm-control-room .crm-pipeline-split-board,
    #view-admin #crm-control-room .crm-pipeline-enterprise {
        min-height: 0 !important;
        max-height: 100% !important;
        overflow: hidden !important;
    }

    #view-admin #crm-control-room .crm-pipeline-scroll,
    #view-admin #crm-control-room .crm-pipeline-cards,
    #view-admin #crm-control-room .crm-pipeline-detail {
        max-height: 100% !important;
        overflow: auto !important;
    }

    #view-admin #crm-control-room .crm-pipeline-enterprise .crm-pipeline-col {
        min-width: 220px;
        flex-basis: 220px;
        padding: 8px;
    }

    #view-admin #crm-control-room .crm-pipeline-card,
    #view-admin #crm-control-room .crm-pipeline-card-hit {
        padding: 8px !important;
        margin-bottom: 6px;
        font-size: 12px;
    }

    #view-admin #crm-control-room .crm-workspace-companies {
        display: flex !important;
        flex-direction: column;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    #view-admin #crm-control-room #crm-brreg-compact {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        gap: 8px;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0;
        padding: 0 !important;
        overflow: hidden !important;
    }

    #view-admin #crm-control-room .crm-brreg-compact-head {
        align-items: center;
        margin: 0 !important;
        padding: 8px 10px !important;
        border: 1px solid var(--border-soft);
        border-radius: 14px;
        background: var(--surface-card);
    }

    #view-admin #crm-control-room .crm-brreg-compact-head h3 {
        font-size: 18px;
        margin: 0 0 3px;
    }

    #view-admin #crm-control-room .crm-brreg-compact-head p,
    #view-admin #crm-control-room .crm-brreg-status-text {
        margin: 0;
        font-size: 12px;
        line-height: 1.35;
    }

    #view-admin #crm-control-room .crm-brreg-compact-head p {
        display: none;
    }

    #view-admin #crm-control-room .crm-brreg-oslo-badge,
    #view-admin #crm-control-room .crm-prospect-ui-tag {
        padding: 4px 8px;
        font-size: 10px;
    }

    #view-admin #crm-control-room .crm-brreg-search-bar,
    #view-admin #crm-control-room .crm-brreg-filter-bar {
        margin: 0 !important;
        gap: 6px !important;
    }

    #view-admin #crm-control-room .crm-brreg-search-bar input,
    #view-admin #crm-control-room .crm-brreg-search-bar select,
    #view-admin #crm-control-room .crm-brreg-filter-bar input,
    #view-admin #crm-control-room .crm-brreg-filter-bar select {
        min-height: 34px;
        padding: 7px 9px;
        font-size: 12px;
    }

    #view-admin #crm-control-room .crm-brreg-search-bar .btn-primary,
    #view-admin #crm-control-room .crm-brreg-filter-bar .btn-secondary {
        min-height: 34px;
        padding: 7px 10px !important;
        font-size: 11px;
    }

    #view-admin #crm-control-room .crm-brreg-toolbar {
        min-height: 30px;
        margin: 0 !important;
        gap: 8px;
    }

    #view-admin #crm-control-room .crm-score-legend {
        display: none;
    }

    #view-admin #crm-control-room .crm-brreg-layout {
        flex: 1 1 auto;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 340px) !important;
        grid-template-rows: minmax(0, 1fr);
        gap: 10px !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    #view-admin #crm-control-room .crm-brreg-main {
        display: flex;
        flex-direction: column;
        flex: 1 1 0;
        height: 100%;
        max-height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    #view-admin #crm-control-room .crm-prospect-table-wrap {
        flex: 1 1 auto;
        height: 100% !important;
        min-height: 0;
        max-height: 100% !important;
        overflow: auto !important;
        border-radius: 12px;
    }

    #view-admin #crm-control-room .crm-prospect-table thead th,
    #view-admin #crm-control-room .crm-prospect-table tbody td {
        padding: 8px 10px;
        font-size: 12px;
    }

    #view-admin #crm-control-room .crm-prospect-cell-name strong {
        font-size: 13px;
        margin-bottom: 3px;
    }

    #view-admin #crm-control-room .crm-brreg-detail-panel {
        position: static !important;
        max-height: 100% !important;
        overflow: auto !important;
        padding: 12px;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    #view-admin #crm-control-room > .crm-control-bar {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 6px 8px !important;
    }

    #view-admin #crm-control-room .crm-app-brand {
        grid-column: 1 / -1;
    }

    #view-admin #crm-control-room .crm-control-search {
        grid-column: 1 / 3;
        min-width: 0;
    }

    #view-admin #crm-control-room .crm-control-pills {
        grid-column: 1 / 3;
        flex-wrap: wrap !important;
    }

    #view-admin #crm-control-room .crm-control-actions {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
    }

    #view-admin #crm-control-room .crm-outreach-status {
        display: none;
    }

    #view-admin #crm-control-room .crm-brreg-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* Admin/CRM: operative controls, offers, follow-up and mobile app nav. */
#view-admin #crm-control-room .crm-sync-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, 0.10);
    background: rgba(255, 255, 255, 0.84);
    color: rgba(17, 24, 39, 0.62);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

#view-admin #crm-control-room .crm-sync-pill.online { color: #08724E; background: rgba(24, 185, 129, 0.10); }
#view-admin #crm-control-room .crm-sync-pill.pending { color: #8a5a00; background: rgba(255, 193, 7, 0.14); }
#view-admin #crm-control-room .crm-sync-pill.local { color: #666; background: rgba(17, 24, 39, 0.06); }

body:has(#view-admin.active-view) .mobile-booking-bar,
body:has(#view-admin.active-view) .site-footer-premium,
body:has(#view-admin.active-view) #back-to-top,
body:has(#view-admin.active-view) #cookie-consent-banner {
    display: none !important;
}

body:has(#view-admin.active-view).cookie-banner-visible {
    padding-bottom: 0 !important;
}

#view-admin #crm-control-room .crm-spa-rail-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 0 8px 8px;
}

#view-admin #crm-control-room .crm-rail-action {
    min-height: 26px;
    padding: 4px 6px;
    border: 1px solid rgba(17, 24, 39, 0.10);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: #1f2937;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

#view-admin #crm-control-room .crm-rail-action:hover {
    border-color: rgba(232, 0, 87, 0.28);
    color: #e80057;
}

#view-admin #crm-control-room .crm-rail-action:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#view-admin #crm-control-room .crm-offers-board {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

#view-admin #crm-control-room .crm-offers-head,
#view-admin #crm-control-room .crm-offer-row {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
}

#view-admin #crm-control-room .crm-offers-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
}

#view-admin #crm-control-room .crm-offers-head h3 {
    margin: 0 0 2px;
    font-size: 18px;
}

#view-admin #crm-control-room .crm-offers-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#view-admin #crm-control-room .crm-offers-stats span {
    min-width: 92px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(17, 24, 39, 0.045);
    font-size: 11px;
    font-weight: 800;
}

#view-admin #crm-control-room .crm-offers-list {
    display: grid;
    gap: 8px;
}

#view-admin #crm-control-room .crm-offer-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.6fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

#view-admin #crm-control-room .crm-offer-row-main {
    display: grid;
    gap: 3px;
    min-width: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

#view-admin #crm-control-room .crm-offer-company {
    font-size: 14px;
    font-weight: 900;
    color: #111827;
}

#view-admin #crm-control-room .crm-offer-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: #111827;
    font-size: 12px;
}

#view-admin #crm-control-room .crm-offer-meta em {
    color: #08724E;
    font-style: normal;
    font-weight: 800;
}

#view-admin #crm-control-room .crm-offer-row-state,
#view-admin #crm-control-room .crm-offer-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

#view-admin #crm-control-room .crm-offer-row-actions {
    justify-content: flex-end;
}

#view-admin #crm-control-room .crm-offer-row-actions .crm-icon-btn,
#view-admin #crm-control-room .crm-pipeline-quick-btn {
    min-width: 34px;
    min-height: 30px;
    border-radius: 8px;
}

#view-admin #crm-control-room .crm-followup-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 8px 0 10px;
}

@media (max-width: 900px) {
    #view-admin #crm-control-room > .crm-control-nav {
        position: sticky;
        bottom: 0;
        z-index: 30;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px !important;
        padding: 8px !important;
        border-top: 1px solid rgba(17, 24, 39, 0.08);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(18px);
    }

    #view-admin #crm-control-room .crm-control-nav-btn {
        justify-content: center;
        min-width: 0;
        min-height: 38px;
        padding: 6px !important;
        font-size: 11px;
    }

    #view-admin #crm-control-room .crm-control-actions {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 2px;
    }

    #view-admin #crm-control-room .crm-spa-rail-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #view-admin #crm-control-room .crm-offers-head,
    #view-admin #crm-control-room .crm-offer-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    #view-admin #crm-control-room .crm-offers-head,
    #view-admin #crm-control-room .crm-offer-row-actions {
        justify-content: flex-start;
    }

    #view-admin #crm-control-room .crm-followup-presets {
        grid-template-columns: 1fr;
    }
}

/* Admin/CRM visual overhaul: make admin feel like a focused app, not the public site. */
body:has(#view-admin.active-view) header.site-header,
body:has(#view-admin.active-view) .site-footer-premium,
body:has(#view-admin.active-view) #back-to-top,
body:has(#view-admin.active-view) #mobile-drawer-mount,
body:has(#view-admin.active-view) #mobile-drawer {
    display: none !important;
}

body:has(#view-admin.active-view) {
    --admin-bg: #eef2f7;
    --admin-ink: #111827;
    --admin-panel: rgba(255, 255, 255, 0.94);
    --admin-line: rgba(15, 23, 42, 0.10);
    background:
        linear-gradient(140deg, rgba(232, 0, 87, 0.08), transparent 34%),
        linear-gradient(210deg, rgba(20, 184, 166, 0.10), transparent 36%),
        var(--admin-bg) !important;
}

#view-admin.active-view {
    min-height: 100dvh !important;
    padding: 10px !important;
}

body #view-admin #admin-portal-layout.portal-layout {
    margin: 0 !important;
    padding: 0 !important;
}

#view-admin #admin-portal-layout .admin-portal-wide {
    max-width: none !important;
}

#view-admin #admin-portal-layout .admin-top-toolbar {
    position: sticky;
    top: 8px;
    z-index: 120;
    margin-bottom: 10px !important;
}

#view-admin #admin-portal-layout .admin-tab-bar {
    width: fit-content;
    max-width: calc(100vw - 120px);
    min-height: 44px;
    margin: 0 !important;
    padding: 5px;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.88);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

#view-admin #admin-portal-layout .admin-logout-btn {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.94);
    color: #111827;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

#view-admin #admin-portal-layout .admin-tab {
    min-height: 34px;
    padding: 7px 13px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 850;
}

#view-admin #admin-portal-layout .admin-tab.active {
    background: #fff;
    color: #111827;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

#view-admin #crm-control-room.crm-control-room {
    border: 1px solid rgba(255, 255, 255, 0.64);
    border-radius: 22px !important;
    background: #0f172a;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

#view-admin #crm-control-room > .crm-control-bar {
    grid-template-columns: minmax(150px, 0.48fr) minmax(260px, 1.15fr) minmax(180px, 0.55fr) auto !important;
    min-height: 68px;
    padding: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

#view-admin #crm-control-room .crm-app-brand {
    display: grid;
    gap: 2px;
    min-width: 0;
    color: #fff;
}

#view-admin #crm-control-room .crm-app-brand span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#view-admin #crm-control-room .crm-app-brand strong {
    overflow: hidden;
    color: #fff;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#view-admin #crm-control-room .crm-control-search {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(0, 0, 0, 0.12);
}

#view-admin #crm-control-room .crm-spa-search {
    min-height: 42px;
    color: #111827;
    font-size: 14px;
}

#view-admin #crm-control-room .crm-control-pill,
#view-admin #crm-control-room .crm-control-btn,
#view-admin #crm-control-room .crm-sync-pill,
#view-admin #crm-control-room .crm-control-ver {
    border-color: rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.82) !important;
    box-shadow: none !important;
}

#view-admin #crm-control-room .crm-control-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

#view-admin #crm-control-room .crm-control-pill span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

#view-admin #crm-control-room .crm-control-pill strong {
    font-size: 15px;
    color: #fff;
}

#view-admin #crm-control-room .crm-control-actions .btn-primary {
    min-height: 38px;
    border: 0 !important;
    background: linear-gradient(135deg, #e80057, #ff5fa2) !important;
    color: #fff !important;
    box-shadow: 0 14px 34px rgba(232, 0, 87, 0.30) !important;
}

#view-admin #crm-control-room > .crm-control-nav {
    gap: 7px !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
}

#view-admin #crm-control-room .crm-control-nav-btn {
    min-height: 42px;
    padding: 8px 12px !important;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #fff;
    color: #475569;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

#view-admin #crm-control-room .crm-control-nav-btn.active {
    border-color: rgba(232, 0, 87, 0.22);
    background: #111827;
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

#view-admin #crm-control-room > .crm-control-workspace {
    background: #f8fafc;
}

#view-admin #crm-control-room .crm-workspace-pane {
    padding: 14px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(248, 250, 252, 0.88)),
        #f8fafc;
}

#view-admin #crm-control-room .crm-workspace-split {
    gap: 14px !important;
}

#view-admin #crm-control-room .crm-spa-rail,
#view-admin #crm-control-room .crm-spa-main,
#view-admin #crm-control-room .crm-pipeline-detail,
#view-admin #crm-control-room .crm-brreg-detail-panel,
#view-admin #crm-control-room .crm-contact-card,
#view-admin #crm-control-room .crm-offers-head,
#view-admin #crm-control-room .crm-offer-row {
    border: 1px solid var(--admin-line);
    border-radius: 16px;
    background: var(--admin-panel);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

#view-admin #crm-control-room .crm-spa-empty {
    min-height: 360px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 12px;
    border: 1px dashed rgba(232, 0, 87, 0.22);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(232, 0, 87, 0.08), transparent 42%),
        linear-gradient(220deg, rgba(20, 184, 166, 0.10), transparent 48%),
        #fff;
}

#view-admin #crm-control-room .crm-spa-empty h3 {
    margin: 0;
    font-size: 24px;
}

#view-admin #crm-control-room .crm-spa-empty p {
    max-width: 420px;
    margin: 0;
    text-align: center;
}

#view-admin #crm-control-room .crm-product-empty {
    min-height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
    gap: 18px;
    align-items: stretch;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(232, 0, 87, 0.10), transparent 45%),
        linear-gradient(220deg, rgba(20, 184, 166, 0.12), transparent 50%),
        #fff;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

#view-admin #crm-control-room .crm-product-empty-copy {
    display: grid;
    align-content: center;
    gap: 12px;
    min-width: 0;
}

#view-admin #crm-control-room .crm-product-kicker {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(232, 0, 87, 0.10);
    color: #b00042;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

#view-admin #crm-control-room .crm-product-empty h3 {
    max-width: 520px;
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.02;
}

#view-admin #crm-control-room .crm-product-empty p {
    max-width: 560px;
    margin: 0;
    color: rgba(15, 23, 42, 0.68);
    font-size: 15px;
    line-height: 1.55;
}

#view-admin #crm-control-room .crm-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

#view-admin #crm-control-room .crm-product-grid {
    display: grid;
    gap: 10px;
    align-content: center;
}

#view-admin #crm-control-room .crm-product-grid article {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 13px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

#view-admin #crm-control-room .crm-product-grid strong {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #111827;
    color: #fff;
    font-size: 13px;
}

#view-admin #crm-control-room .crm-product-grid span {
    color: #334155;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

@media (min-width: 901px) {
    #view-admin #crm-control-room.crm-control-room {
        max-height: calc(100vh - 74px) !important;
        min-height: calc(100vh - 74px) !important;
    }

    #view-admin #crm-control-room > .crm-control-workspace {
        height: calc(100vh - 230px) !important;
        max-height: calc(100vh - 230px) !important;
    }
}

@media (max-width: 900px) {
    #view-admin #admin-portal-layout .admin-top-toolbar {
        position: sticky;
        top: 0;
        z-index: 120;
        margin: 0 0 8px !important;
        padding-top: 2px;
    }

    #view-admin #admin-portal-layout .admin-tab-bar {
        width: 100%;
        max-width: 100%;
    }

    #view-admin #admin-portal-layout .admin-logout-btn {
        width: auto;
        min-width: 88px;
    }

    #view-admin #crm-control-room > .crm-control-bar {
        grid-template-columns: 1fr !important;
        gap: 9px !important;
    }

    #view-admin #crm-control-room .crm-product-empty {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 14px;
    }

    #view-admin #crm-control-room .crm-product-empty h3 {
        font-size: 30px;
    }

    #view-admin #crm-control-room .crm-product-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    body:has(#view-admin.active-view) {
        overflow-x: clip;
        overflow-y: auto !important;
        height: auto;
    }

    #view-admin.active-view {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
        padding: 6px 6px 24px !important;
    }

    body #view-admin #admin-portal-layout.portal-layout {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        height: auto;
        min-height: 0;
        margin: 0 !important;
        padding: 0 10px 20px !important;
        overflow: visible;
    }

    #view-admin #admin-portal-layout .admin-top-toolbar {
        flex-wrap: nowrap;
        align-items: center;
    }

    #view-admin #admin-portal-layout .admin-tab-bar {
        flex: 0 0 auto;
        min-height: 38px;
        margin: 0 !important;
        padding: 4px !important;
        position: static;
        top: auto;
        z-index: auto;
        background: var(--admin-bg, #eef2f7);
    }

    #view-admin #admin-portal-layout .admin-tab {
        min-height: 32px;
        padding: 6px 10px;
        font-size: 12px;
    }

    #view-admin #admin-portal-layout .admin-portal-wide {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        overflow: visible;
    }

    #view-admin #admin-portal-layout .admin-portal-wide > .crm-workspace {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        overflow: visible;
    }

    #view-admin #admin-portal-layout .admin-drift-panel {
        overflow: visible;
        padding-bottom: 16px;
    }

    #view-admin #admin-portal-layout .section-head-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #view-admin #admin-portal-layout .dispatch-filter-row {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    #view-admin #admin-portal-layout .admin-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 16px;
    }

    #view-admin #crm-control-room.crm-control-room {
        flex: 1 1 auto;
        height: auto !important;
        min-height: calc(100dvh - 108px) !important;
        max-height: none !important;
        border-radius: 16px !important;
        overflow: visible !important;
    }

    #view-admin #crm-control-room > .crm-control-bar {
        order: 1;
        min-height: 0;
        padding: 8px !important;
        gap: 7px !important;
        position: sticky;
        top: 0;
        z-index: 50;
    }

    #view-admin #crm-control-room .crm-app-brand {
        display: none;
    }

    #view-admin #crm-control-room .crm-spa-search {
        min-height: 36px;
        padding-block: 7px;
    }

    #view-admin #crm-control-room .crm-control-pills {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px !important;
    }

    #view-admin #crm-control-room .crm-control-pill {
        min-height: 30px;
        padding: 4px 6px !important;
    }

    #view-admin #crm-control-room .crm-control-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        min-height: 34px;
        overflow: visible;
        padding-bottom: 0;
    }

    #view-admin #crm-control-room .crm-control-actions > * {
        width: 100%;
        min-width: 0;
        min-height: 32px;
        justify-content: center;
        text-align: center;
    }

    #view-admin #crm-control-room > .crm-control-workspace {
        order: 2;
        flex: 1 1 auto;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    #view-admin #crm-control-room > .crm-control-nav {
        order: 3;
        position: sticky;
        bottom: 0;
        z-index: 55;
        display: flex !important;
        grid-template-columns: none;
        min-height: 52px;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0)) !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid var(--admin-line, rgba(15, 23, 42, 0.10));
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
    }

    #view-admin #crm-control-room .crm-control-nav-btn {
        flex: 1 1 0;
        min-width: 0;
        min-height: 40px;
        padding: 6px 4px !important;
        gap: 4px;
        font-size: 10px;
    }

    #view-admin #crm-control-room .crm-control-nav-icon {
        width: auto;
        font-size: 14px;
    }

    #view-admin #crm-control-room .crm-control-nav-label {
        display: none;
    }

    #view-admin #crm-control-room .crm-workspace-pane {
        height: auto !important;
        min-height: 0 !important;
        padding: 8px !important;
        overflow: visible !important;
    }

    #view-admin #crm-control-room .crm-product-empty {
        min-height: 0;
        padding: 12px;
        gap: 10px;
    }

    #view-admin #crm-control-room .crm-product-empty h3 {
        font-size: 25px;
        line-height: 1.05;
    }

    #view-admin #crm-control-room .crm-product-empty p {
        font-size: 13px;
        line-height: 1.4;
    }

    #view-admin #crm-control-room .crm-product-grid {
        gap: 8px;
    }

    #view-admin #crm-control-room .crm-product-grid article {
        min-height: 72px;
        padding: 10px;
    }

    .admin-booking-cards {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 8px;
    }

    .admin-booking-card {
        border: 1px solid var(--border-soft, #eceaf2);
        border-radius: 14px;
        padding: 0;
        background: var(--surface-card, #fff);
        box-shadow: 0 4px 16px rgba(22, 20, 29, 0.05);
        overflow: hidden;
    }

    .admin-booking-card.dispatch-row-action {
        border-color: rgba(255, 95, 162, 0.35);
        box-shadow: 0 0 0 1px rgba(255, 95, 162, 0.12);
    }

    .admin-booking-card-head {
        display: block;
        width: 100%;
        padding: 14px 14px 10px;
        border: none;
        background: transparent;
        text-align: left;
        font: inherit;
        color: inherit;
        cursor: pointer;
    }

    .admin-booking-card-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 8px;
    }

    .admin-booking-card-head h4 {
        margin: 0 0 6px;
        font-size: 16px;
        line-height: 1.3;
    }

    .admin-booking-card-meta {
        margin: 0 0 4px;
        font-size: 13px;
        color: var(--text-muted, #68657a);
        line-height: 1.35;
    }

    .admin-booking-card-price {
        margin: 8px 0 0;
        font-size: 15px;
        font-weight: 700;
        color: var(--text-main, #16141d);
    }

    .admin-booking-card .portal-action-bar {
        padding: 0 14px 14px;
        margin-top: 0;
    }

    .admin-booking-empty {
        padding: 24px 16px;
        text-align: center;
    }

    .admin-table-wrap--desktop {
        display: none;
    }
}

@media (min-width: 901px) {
    .admin-booking-cards {
        display: none;
    }
}

body.portal-modal-open {
    overflow: hidden;
}

/* Bedrift: mobil — hero vokser med innhold, side kan scrolles. */
@media (max-width: 920px) {
    #view-bedrift,
    #view-bedrift-kontor,
    #view-bedrift-trapp,
    #view-bedrift-personal {
        height: auto;
        overflow: visible;
    }

    #view-bedrift .hero-banner,
    #view-bedrift-kontor .hero-banner,
    #view-bedrift-trapp .hero-banner,
    #view-bedrift-personal .hero-banner {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    #view-bedrift .hero-overlay,
    #view-bedrift-kontor .hero-overlay,
    #view-bedrift-trapp .hero-overlay,
    #view-bedrift-personal .hero-overlay {
        position: relative;
        inset: auto;
        min-height: 0;
        align-items: flex-start;
    }

    #view-bedrift .hero-content,
    #view-bedrift-kontor .hero-content,
    #view-bedrift-trapp .hero-content,
    #view-bedrift-personal .hero-content {
        padding: 96px 20px 32px;
    }

    #view-bedrift .hero-content h1,
    #view-bedrift-kontor .hero-content h1,
    #view-bedrift-trapp .hero-content h1,
    #view-bedrift-personal .hero-content h1 {
        font-size: clamp(28px, 8vw, 36px);
        line-height: 1.08;
    }

    #view-bedrift .hero-content .trust-badge-row,
    #view-bedrift-kontor .hero-content .trust-badge-row,
    #view-bedrift-trapp .hero-content .trust-badge-row,
    #view-bedrift-personal .hero-content .trust-badge-row {
        flex-wrap: wrap;
        gap: 8px;
        margin: 12px 0 16px;
    }

    #view-bedrift .hero-content .trust-badge,
    #view-bedrift-kontor .hero-content .trust-badge,
    #view-bedrift-trapp .hero-content .trust-badge,
    #view-bedrift-personal .hero-content .trust-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    #view-bedrift #bedrift-page-content,
    #view-bedrift-kontor #bedrift-kontor-content,
    #view-bedrift-trapp #bedrift-trapp-content,
    #view-bedrift-personal #bedrift-personal-content,
    #view-bedrift .page-content-wide.bedrift-page,
    #view-bedrift-kontor .page-content-wide.bedrift-page,
    #view-bedrift-trapp .page-content-wide.bedrift-page,
    #view-bedrift-personal .page-content-wide.bedrift-page {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

/* Bedrift: kortere desktop-flyt uten å endre forsiden. */
@media (min-width: 921px) {
    #view-bedrift .hero-banner,
    #view-bedrift-kontor .hero-banner,
    #view-bedrift-trapp .hero-banner,
    #view-bedrift-personal .hero-banner {
        height: 430px;
        min-height: 430px;
    }

    #view-bedrift .hero-content,
    #view-bedrift-kontor .hero-content,
    #view-bedrift-trapp .hero-content,
    #view-bedrift-personal .hero-content {
        padding-top: 76px;
        padding-bottom: 48px;
    }

    #view-bedrift .hero-content h1,
    #view-bedrift-kontor .hero-content h1,
    #view-bedrift-trapp .hero-content h1,
    #view-bedrift-personal .hero-content h1 {
        max-width: 720px;
        margin-bottom: 10px;
        font-size: clamp(42px, 4vw, 58px);
        line-height: 1.02;
    }

    #view-bedrift .hero-content p,
    #view-bedrift-kontor .hero-content p,
    #view-bedrift-trapp .hero-content p,
    #view-bedrift-personal .hero-content p {
        max-width: 620px;
        margin-bottom: 16px;
        font-size: 16px;
        line-height: 1.45;
    }

    #view-bedrift .page-content-wide.bedrift-page,
    #view-bedrift-kontor .page-content-wide.bedrift-page,
    #view-bedrift-trapp .page-content-wide.bedrift-page,
    #view-bedrift-personal .page-content-wide.bedrift-page {
        max-width: 1220px;
        padding: 24px 24px 44px;
    }

    #view-bedrift .editorial-lead {
        max-width: 820px;
        margin: 0 0 14px;
        font-size: 17px;
        line-height: 1.45;
    }

    #view-bedrift .trust-bar,
    #view-bedrift-kontor .trust-bar,
    #view-bedrift-trapp .trust-bar,
    #view-bedrift-personal .trust-bar {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        margin: 0 0 16px;
        padding: 10px 14px;
    }

    #view-bedrift .bedrift-service-strip.service-hub-strip {
        gap: 12px;
        margin: 0 0 18px;
    }

    #view-bedrift .service-hub-card {
        min-height: 136px;
        border-radius: 16px;
    }

    #view-bedrift .bedrift-strip-img {
        height: 136px;
        object-fit: cover;
    }

    #view-bedrift .service-hub-card span {
        padding: 11px 14px;
        font-size: 15px;
    }

    #view-bedrift .bedrift-layout,
    #view-bedrift-kontor .bedrift-layout,
    #view-bedrift-trapp .bedrift-layout,
    #view-bedrift-personal .bedrift-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
        gap: 16px;
        margin-top: 0;
    }

    #view-bedrift .bedrift-form,
    #view-bedrift-kontor .bedrift-form,
    #view-bedrift-trapp .bedrift-form,
    #view-bedrift-personal .bedrift-form,
    #view-bedrift .bedrift-aside,
    #view-bedrift-kontor .bedrift-aside,
    #view-bedrift-trapp .bedrift-aside,
    #view-bedrift-personal .bedrift-aside {
        padding: 20px;
        border-radius: 18px;
    }

    #view-bedrift .bedrift-form,
    #view-bedrift-kontor .bedrift-form,
    #view-bedrift-trapp .bedrift-form,
    #view-bedrift-personal .bedrift-form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 10px;
        align-items: start;
    }

    #view-bedrift .bedrift-form .section-title,
    #view-bedrift .bedrift-form .form-sub,
    #view-bedrift .bedrift-form .form-row,
    #view-bedrift .bedrift-form .input-wrapper:has(#biz-message),
    #view-bedrift .bedrift-form .auth-submit,
    #view-bedrift-kontor .bedrift-form .section-title,
    #view-bedrift-kontor .bedrift-form .form-sub,
    #view-bedrift-kontor .bedrift-form .form-row,
    #view-bedrift-kontor .bedrift-form .input-wrapper:has(#biz-message),
    #view-bedrift-kontor .bedrift-form .auth-submit,
    #view-bedrift-trapp .bedrift-form .section-title,
    #view-bedrift-trapp .bedrift-form .form-sub,
    #view-bedrift-trapp .bedrift-form .form-row,
    #view-bedrift-trapp .bedrift-form .input-wrapper:has(#biz-message),
    #view-bedrift-trapp .bedrift-form .auth-submit,
    #view-bedrift-personal .bedrift-form .section-title,
    #view-bedrift-personal .bedrift-form .form-sub,
    #view-bedrift-personal .bedrift-form .form-row,
    #view-bedrift-personal .bedrift-form .input-wrapper:has(#biz-message),
    #view-bedrift-personal .bedrift-form .auth-submit {
        grid-column: 1 / -1;
    }

    #view-bedrift .bedrift-form .section-title,
    #view-bedrift-kontor .bedrift-form .section-title,
    #view-bedrift-trapp .bedrift-form .section-title,
    #view-bedrift-personal .bedrift-form .section-title {
        margin-bottom: 4px;
        font-size: 24px;
    }

    #view-bedrift .bedrift-form .form-sub,
    #view-bedrift-kontor .bedrift-form .form-sub,
    #view-bedrift-trapp .bedrift-form .form-sub,
    #view-bedrift-personal .bedrift-form .form-sub {
        margin-bottom: 12px;
        font-size: 13px;
    }

    #view-bedrift .bedrift-form .form-row,
    #view-bedrift-kontor .bedrift-form .form-row,
    #view-bedrift-trapp .bedrift-form .form-row,
    #view-bedrift-personal .bedrift-form .form-row {
        gap: 10px;
    }

    #view-bedrift .bedrift-form .input-wrapper,
    #view-bedrift-kontor .bedrift-form .input-wrapper,
    #view-bedrift-trapp .bedrift-form .input-wrapper,
    #view-bedrift-personal .bedrift-form .input-wrapper {
        margin-bottom: 10px;
    }

    #view-bedrift .bedrift-form label,
    #view-bedrift-kontor .bedrift-form label,
    #view-bedrift-trapp .bedrift-form label,
    #view-bedrift-personal .bedrift-form label {
        margin-bottom: 4px;
        font-size: 11px;
    }

    #view-bedrift .bedrift-form input,
    #view-bedrift .bedrift-form select,
    #view-bedrift .bedrift-form textarea,
    #view-bedrift-kontor .bedrift-form input,
    #view-bedrift-kontor .bedrift-form select,
    #view-bedrift-kontor .bedrift-form textarea,
    #view-bedrift-trapp .bedrift-form input,
    #view-bedrift-trapp .bedrift-form select,
    #view-bedrift-trapp .bedrift-form textarea,
    #view-bedrift-personal .bedrift-form input,
    #view-bedrift-personal .bedrift-form select,
    #view-bedrift-personal .bedrift-form textarea {
        min-height: 40px;
        padding: 10px 12px;
        font-size: 13px;
    }

    #view-bedrift .bedrift-form textarea,
    #view-bedrift-kontor .bedrift-form textarea,
    #view-bedrift-trapp .bedrift-form textarea,
    #view-bedrift-personal .bedrift-form textarea {
        min-height: 84px;
    }

    #view-bedrift .bedrift-form .auth-submit,
    #view-bedrift-kontor .bedrift-form .auth-submit,
    #view-bedrift-trapp .bedrift-form .auth-submit,
    #view-bedrift-personal .bedrift-form .auth-submit {
        min-height: 46px;
        margin-top: 2px;
    }

    #view-bedrift .bedrift-aside-img,
    #view-bedrift-kontor .bedrift-aside-img,
    #view-bedrift-trapp .bedrift-aside-img,
    #view-bedrift-personal .bedrift-aside-img {
        height: 148px;
        margin-bottom: 14px;
        border-radius: 14px;
        object-fit: cover;
    }

    #view-bedrift .bedrift-aside h3,
    #view-bedrift-kontor .bedrift-aside h3,
    #view-bedrift-trapp .bedrift-aside h3,
    #view-bedrift-personal .bedrift-aside h3 {
        margin-bottom: 10px;
        font-size: 20px;
    }

    #view-bedrift .bedrift-aside .check-list,
    #view-bedrift-kontor .bedrift-aside .check-list,
    #view-bedrift-trapp .bedrift-aside .check-list,
    #view-bedrift-personal .bedrift-aside .check-list {
        gap: 6px;
    }

    #view-bedrift .bedrift-aside .check-list li,
    #view-bedrift-kontor .bedrift-aside .check-list li,
    #view-bedrift-trapp .bedrift-aside .check-list li,
    #view-bedrift-personal .bedrift-aside .check-list li {
        font-size: 14px;
        line-height: 1.35;
    }

    #view-bedrift .aside-note {
        margin-top: 12px;
        padding: 12px;
        line-height: 1.4;
    }

    #view-bedrift-kontor .service-detail-block,
    #view-bedrift-trapp .service-detail-block,
    #view-bedrift-personal .service-detail-block {
        gap: 16px;
        margin: 0 0 18px;
        padding: 18px;
        border-radius: 18px;
    }

    #view-bedrift-kontor .service-detail-block img,
    #view-bedrift-trapp .service-detail-block img,
    #view-bedrift-personal .service-detail-block img {
        max-height: 220px;
        object-fit: cover;
    }
}

@media (min-width: 921px) and (max-width: 1120px) {
    #view-bedrift .bedrift-layout,
    #view-bedrift-kontor .bedrift-layout,
    #view-bedrift-trapp .bedrift-layout,
    #view-bedrift-personal .bedrift-layout {
        grid-template-columns: 1fr;
    }

    #view-bedrift .trust-bar,
    #view-bedrift-kontor .trust-bar,
    #view-bedrift-trapp .trust-bar,
    #view-bedrift-personal .trust-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ——— Customer dashboard (premium) ——— */
#view-dashboard .portal-layout {
    max-width: 1240px;
    padding-inline: clamp(16px, 3vw, 28px);
}

#view-dashboard #customer-portal-layout,
#view-dashboard .portal-layout {
    display: block;
    grid-template-columns: unset;
}

#view-dashboard .cd-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#view-dashboard .renivo-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

#view-dashboard .renivo-reveal.is-visible {
    opacity: 1;
    transform: none;
}

#view-dashboard .cd-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--renivo-primary);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#view-dashboard .cd-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px;
    border: 1px solid var(--renivo-border);
    border-radius: var(--renivo-radius-xl);
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,248,251,0.94) 55%, rgba(255,230,240,0.35) 100%);
    box-shadow: var(--renivo-shadow-soft);
}

#view-dashboard .cd-hero-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

#view-dashboard .cd-hero h1 {
    margin: 0;
    font-size: clamp(26px, 3.2vw, 34px);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--renivo-text);
}

#view-dashboard .cd-hero-email {
    margin: 4px 0 0;
    color: var(--renivo-muted);
    font-size: 14px;
}

#view-dashboard .cd-avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(233, 30, 115, 0.18);
    box-shadow: 0 8px 24px rgba(233, 30, 115, 0.12);
}

#view-dashboard .cd-avatar--fallback {
    background: linear-gradient(135deg, var(--renivo-primary-soft), #fff);
}

#view-dashboard .cd-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#view-dashboard .cd-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

#view-dashboard .cd-kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--renivo-border);
    border-radius: 20px;
    background: rgba(255,255,255,0.92);
    box-shadow: var(--renivo-shadow-xs);
}

#view-dashboard .cd-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--renivo-primary-soft);
}

#view-dashboard .cd-kpi-label {
    display: block;
    font-size: 12px;
    color: var(--renivo-muted);
    font-weight: 700;
}

#view-dashboard .cd-kpi-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--renivo-text);
    letter-spacing: -0.02em;
}

#view-dashboard .cd-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 24px;
    align-items: start;
}

#view-dashboard .cd-next-card {
    padding: 24px 26px;
    margin-bottom: 16px;
    border: 1px solid var(--renivo-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--renivo-shadow-card);
}

#view-dashboard .cd-next-card--empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, #fff 0%, var(--renivo-surface-soft) 100%);
}

#view-dashboard .cd-next-head {
    display: flex;
    align-content: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

#view-dashboard .cd-next-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

#view-dashboard .cd-next-live {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(24, 185, 129, 0.1);
    color: #0f6b4d;
    font-size: 13px;
    font-weight: 700;
}

#view-dashboard .cd-reorder-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    margin-bottom: 20px;
    border: 1px dashed var(--renivo-border-strong);
    border-radius: 20px;
    background: rgba(255,255,255,0.86);
}

#view-dashboard .cd-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

#view-dashboard .cd-tab {
    padding: 10px 16px;
    border: 1px solid var(--renivo-border);
    border-radius: 999px;
    background: #fff;
    color: var(--renivo-muted);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.18s ease;
}

#view-dashboard .cd-tab.active {
    border-color: transparent;
    background: var(--renivo-primary);
    color: #fff;
    box-shadow: var(--renivo-shadow-glow);
}

#view-dashboard .cd-booking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

#view-dashboard .cd-booking-card {
    border-radius: 22px !important;
    border: 1px solid var(--renivo-border) !important;
    box-shadow: var(--renivo-shadow-xs) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#view-dashboard .cd-booking-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--renivo-shadow-card) !important;
}

#view-dashboard .cd-chart-card,
#view-dashboard .cd-trust-card,
#view-dashboard .cd-insight-card {
    padding: 20px;
    border: 1px solid var(--renivo-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--renivo-shadow-xs);
}

#view-dashboard .cd-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

#view-dashboard .cd-chart-head h4,
#view-dashboard .cd-trust-card h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
}

#view-dashboard .cd-muted {
    font-size: 12px;
    color: var(--renivo-muted);
}

#view-dashboard .cd-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    padding-top: 8px;
}

#view-dashboard .cd-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 6px;
}

#view-dashboard .cd-chart-bar {
    display: block;
    width: 100%;
    max-width: 28px;
    height: var(--bar-h, 20%);
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, var(--renivo-primary) 0%, #ff7eb7 100%);
    transform-origin: bottom;
    animation: cdBarGrow 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--delay, 0ms);
}

@keyframes cdBarGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

#view-dashboard .cd-chart-val {
    font-size: 11px;
    font-weight: 800;
    color: var(--renivo-muted);
}

#view-dashboard .cd-chart-labels {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin-top: 10px;
    font-size: 11px;
    color: var(--renivo-muted-light);
    font-weight: 700;
}

#view-dashboard .cd-insights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

#view-dashboard .cd-insight-value {
    margin: 4px 0;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--renivo-text);
}

#view-dashboard .cd-insight-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--renivo-muted);
}

#view-dashboard .cd-insight-hint {
    font-size: 11px;
    color: var(--renivo-muted-light);
}

#view-dashboard .cd-trust-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

#view-dashboard .cd-trust-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--renivo-text-soft);
}

#view-dashboard .cd-trust-list span {
    color: var(--renivo-success);
    font-weight: 900;
}

#view-dashboard .cd-logout {
    width: 100%;
    margin-top: 8px;
}

#view-dashboard .cd-upsell-section {
    padding: 28px;
    border: 1px solid var(--renivo-border);
    border-radius: var(--renivo-radius-xl);
    background: linear-gradient(180deg, #fff 0%, var(--renivo-surface-soft) 100%);
}

#view-dashboard .cd-section-head h3 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

#view-dashboard .cd-section-head p {
    margin: 0 0 20px;
    color: var(--renivo-muted);
}

#view-dashboard .cd-upsell-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

#view-dashboard .cd-upsell-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--renivo-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--renivo-shadow-xs);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#view-dashboard .cd-upsell-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--renivo-shadow-card);
}

#view-dashboard .cd-upsell-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--renivo-primary-soft);
    margin-bottom: 4px;
}

#view-dashboard .cd-upsell-card h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
}

#view-dashboard .cd-upsell-card p {
    margin: 0;
    flex: 1;
    font-size: 13px;
    color: var(--renivo-muted);
    line-height: 1.45;
}

#view-dashboard .cd-upsell-card strong {
    font-size: 15px;
    color: var(--renivo-text);
}

#view-dashboard .cd-upsell-cta {
    width: 100%;
    margin-top: 8px;
}

#view-dashboard .cd-empty {
    text-align: center;
    padding: 48px 24px;
    border: 1px dashed var(--renivo-border);
    border-radius: 24px;
    background: rgba(255,255,255,0.7);
}

#view-dashboard .cd-section-empty {
    padding: 24px;
    color: var(--renivo-muted);
    font-size: 14px;
}

#view-dashboard .cd-count {
    font-size: 13px;
    color: var(--renivo-muted);
    font-weight: 800;
}

#view-dashboard .portal-reminder-banner {
    border-radius: 18px;
}

@media (max-width: 1024px) {
    #view-dashboard .cd-kpi-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #view-dashboard .cd-main-grid {
        grid-template-columns: 1fr;
    }
    #view-dashboard .cd-side-col {
        order: -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    #view-dashboard .cd-insights {
        grid-column: 1 / -1;
        flex-direction: row;
    }
    #view-dashboard .cd-insight-card {
        flex: 1;
    }
    #view-dashboard .cd-upsell-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #view-dashboard .cd-hero {
        padding: 22px 18px;
    }
    #view-dashboard .cd-kpi-row,
    #view-dashboard .cd-side-col,
    #view-dashboard .cd-insights,
    #view-dashboard .cd-upsell-grid {
        grid-template-columns: 1fr;
    }
    #view-dashboard .cd-insights {
        flex-direction: column;
    }
    #view-dashboard .cd-booking-grid {
        grid-template-columns: 1fr;
    }
}

/* —— Admin CRM: containment, responsive stacks, interactive states —— */
body:has(#view-admin.active-view) {
    overflow-x: clip;
}

#view-admin,
#view-admin #admin-portal-layout,
#view-admin #crm-control-room.crm-control-room {
    overflow-x: clip;
    max-width: 100%;
}

@media (max-width: 900px) {
    #view-admin #crm-control-room .crm-pipeline-split,
    #view-admin #crm-control-room .crm-workspace-split,
    #view-admin #crm-control-room .crm-brreg-layout {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    #view-admin #crm-control-room .crm-pipeline-split-board {
        max-height: min(42vh, 360px);
        overflow: auto;
        border-right: none;
        border-bottom: 1px solid var(--admin-line, rgba(15, 23, 42, 0.10));
    }

    #view-admin #crm-control-room .crm-spa-rail {
        max-height: min(220px, 34vh);
        border-right: none;
        border-bottom: 1px solid var(--admin-line, rgba(15, 23, 42, 0.10));
    }

    #view-admin #crm-control-room .crm-contact-grid {
        grid-template-columns: 1fr !important;
    }

    #view-admin #crm-control-room .crm-contact-topbar {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
        padding-bottom: 12px;
    }

    #view-admin #crm-control-room .crm-contact-topbar-title {
        flex: 1 1 100%;
        min-width: 0;
    }

    #view-admin #crm-control-room .crm-contact-topbar-title h2 {
        font-size: 1.15rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #view-admin #crm-control-room .crm-contact-topbar-actions {
        flex: 1 1 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    #view-admin #crm-control-room .crm-brreg-search-bar,
    #view-admin #crm-control-room .crm-brreg-filter-bar {
        grid-template-columns: 1fr !important;
    }

    #view-admin #crm-control-room .crm-prospect-table {
        min-width: 680px;
    }
}

@media (min-width: 901px) and (max-width: 1280px) {
    #view-admin #crm-control-room .crm-pipeline-split {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 300px) !important;
    }

    #view-admin #crm-control-room .crm-workspace-split {
        grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) !important;
    }
}

#view-admin #crm-control-room .crm-prospect-cell-name strong,
#view-admin #crm-control-room .crm-spa-rail-name,
#view-admin #crm-control-room .crm-offer-company {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

#view-admin #crm-control-room .crm-prospect-cell-addr {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

#view-admin #crm-control-room .crm-control-pill:hover,
#view-admin #crm-control-room .crm-control-btn:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

#view-admin #crm-control-room .crm-control-nav-btn:focus-visible,
#view-admin #crm-control-room .crm-control-btn:focus-visible,
#view-admin #crm-control-room .crm-control-pill:focus-visible,
#view-admin #crm-control-room .crm-rail-action:focus-visible,
#view-admin #crm-control-room .crm-spa-rail-item:focus-visible {
    outline: 3px solid rgba(232, 0, 87, 0.28);
    outline-offset: 2px;
}

#view-admin #crm-control-room .crm-control-nav-btn:active:not(.active),
#view-admin #crm-control-room .crm-control-pill:active,
#view-admin #crm-control-room .crm-control-btn:active {
    transform: scale(0.98);
}

#view-admin #crm-control-room .crm-control-pill:disabled,
#view-admin #crm-control-room .crm-control-btn:disabled,
#view-admin #crm-control-room .crm-control-nav-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

#view-admin #crm-control-room .btn-primary:focus-visible,
#view-admin #crm-control-room .btn-secondary:focus-visible {
    outline: 3px solid rgba(232, 0, 87, 0.32);
    outline-offset: 2px;
}

#view-admin #crm-control-room .btn-primary:disabled,
#view-admin #crm-control-room .btn-secondary:disabled,
#view-admin #crm-control-room .btn-primary[aria-disabled="true"],
#view-admin #crm-control-room .btn-secondary[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

#view-admin #crm-control-room .btn-primary:active:not(:disabled),
#view-admin #crm-control-room .btn-secondary:active:not(:disabled) {
    transform: scale(0.98);
}

#view-admin #crm-control-room .crm-icon-btn:focus-visible,
#view-admin #crm-control-room .crm-pipeline-quick-btn:focus-visible {
    outline: 2px solid rgba(232, 0, 87, 0.28);
    outline-offset: 1px;
}

#view-admin #crm-control-room .crm-icon-btn:disabled,
#view-admin #crm-control-room .crm-pipeline-quick-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#view-admin #crm-control-room .crm-spa-search:focus,
#view-admin #crm-control-room .crm-brreg-search-bar input:focus,
#view-admin #crm-control-room .crm-brreg-filter-bar input:focus,
#view-admin #crm-control-room .crm-brreg-search-bar select:focus,
#view-admin #crm-control-room .crm-brreg-filter-bar select:focus {
    outline: none;
    border-color: rgba(232, 0, 87, 0.45);
    box-shadow: 0 0 0 3px rgba(232, 0, 87, 0.14);
}

#view-admin #admin-portal-layout .admin-tab:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.55);
    outline-offset: 2px;
}

#view-admin #admin-portal-layout .admin-tab:active:not(.active) {
    transform: scale(0.98);
}

#view-admin #crm-control-room .crm-skeleton-row td {
    padding: 10px;
    vertical-align: middle;
}

#view-admin #crm-control-room .crm-skeleton-bar {
    height: 12px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.06) 25%, rgba(15, 23, 42, 0.10) 50%, rgba(15, 23, 42, 0.06) 75%);
    background-size: 200% 100%;
    animation: crm-skeleton-shimmer 1.2s ease-in-out infinite;
}

#view-admin #crm-control-room .crm-skeleton-row:nth-child(even) .crm-skeleton-bar {
    opacity: 0.85;
}

html.crm-dark body:has(#view-admin.active-view) {
    --admin-bg: #0f1117;
    --admin-panel: rgba(26, 26, 26, 0.96);
    --admin-line: rgba(255, 255, 255, 0.10);
    --admin-ink: #f5f5f5;
}

html.crm-dark #view-admin #crm-control-room > .crm-control-workspace,
html.crm-dark #view-admin #crm-control-room > .crm-control-nav {
    background: #1a1a1a;
}

html.crm-dark #view-admin #crm-control-room .crm-workspace-pane {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.92), rgba(20, 20, 20, 0.96)), #1a1a1a;
}

html.crm-dark #view-admin #crm-control-room .crm-spa-rail,
html.crm-dark #view-admin #crm-control-room .crm-spa-main,
html.crm-dark #view-admin #crm-control-room .crm-pipeline-detail,
html.crm-dark #view-admin #crm-control-room .crm-brreg-detail-panel,
html.crm-dark #view-admin #crm-control-room .crm-contact-card,
html.crm-dark #view-admin #crm-control-room .crm-offers-head,
html.crm-dark #view-admin #crm-control-room .crm-offer-row,
html.crm-dark #view-admin #crm-control-room .crm-dash-widget,
html.crm-dark #view-admin #crm-control-room .crm-hq-panel,
html.crm-dark #view-admin #crm-control-room .crm-action-panel {
    background: var(--admin-panel);
    border-color: var(--admin-line);
    color: var(--admin-ink);
}

html.crm-dark #view-admin #crm-control-room .crm-control-nav-btn {
    background: #242424;
    border-color: rgba(255, 255, 255, 0.08);
    color: #a3a3a3;
}

html.crm-dark #view-admin #crm-control-room .crm-control-nav-btn.active {
    background: #111827;
    color: #fff;
}

html.crm-dark #view-admin #crm-control-room .crm-prospect-table tbody tr:nth-child(even):not(.crm-prospect-empty-row) {
    background: rgba(255, 255, 255, 0.03);
}

html.crm-dark #view-admin #crm-control-room .crm-prospect-table tbody tr:hover:not(.crm-prospect-empty-row) {
    background: rgba(85, 207, 160, 0.08);
}

#view-admin #crm-control-room .crm-prospect-table-wrap {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#view-admin #crm-control-room .crm-pipeline-scroll {
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

html.crm-dark #view-admin #crm-control-room .crm-skeleton-bar {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.10) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
}

body:has(#view-admin.active-view) .crm-modal-backdrop,
body:has(#view-admin.active-view) .crm-nextstep-backdrop {
    z-index: 10050;
}

body:has(#view-admin.active-view) .crm-modal {
    border-radius: var(--radius-lg, 24px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

#view-admin .crm-boot-placeholder {
    border: 1px solid var(--admin-line, rgba(15, 23, 42, 0.10));
    border-radius: 18px;
    background: var(--admin-panel, rgba(255, 255, 255, 0.94));
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

#view-admin .crm-boot-placeholder p {
    margin: 0 0 8px;
    line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}

/* ——— Booking dispatch (worker/admin/customer) ——— */
.dispatch-whats-next {
    background: rgba(232, 195, 185, 0.18);
    border-left: 3px solid var(--pink-accent, #e8c3b9);
    padding: 12px 14px;
    margin-top: 4px;
}
.dispatch-whats-next h6 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.dispatch-whats-next p {
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}
.payment-badge.payment-none {
    background: #f3f0ee;
    color: var(--text-muted);
}
.dispatch-card .approval-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.portal-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.portal-modal-card {
    background: var(--surface-card, #fff);
    border: 1px solid var(--border-soft);
    max-width: 480px;
    width: 100%;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}
.portal-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
}
.portal-modal-lead {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.portal-modal-input {
    width: 100%;
    border: 1px solid var(--border-soft);
    padding: 10px 12px;
    font: inherit;
    margin-bottom: 12px;
}
.portal-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}
.dispatch-row-action {
    background: rgba(232, 195, 185, 0.12);
}
.dispatch-filter-bar,
.dispatch-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.dispatch-action-banner {
    margin-bottom: 16px;
}
.dispatch-events-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    max-height: 280px;
    overflow: auto;
}
.dispatch-events-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 13px;
    line-height: 1.4;
}
.dispatch-events-list time {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.dispatch-admin-actions {
    min-width: 140px;
    white-space: nowrap;
}
.dispatch-empty-hint {
    margin-bottom: 16px;
}

/* Dispatch cards — app-like lift + stagger reveal */
#view-worker .renivo-reveal,
#view-dashboard .cd-booking-card.renivo-reveal,
.dispatch-card.renivo-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}
#view-worker .renivo-reveal.is-visible,
.dispatch-card.renivo-reveal.is-visible {
    opacity: 1;
    transform: none;
}
.dispatch-card,
#view-worker .booking-card {
    border-radius: 20px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}
.dispatch-card:hover,
#view-worker .booking-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--renivo-shadow-card, 0 12px 32px rgba(18, 15, 15, 0.08));
}
.booking-card-pending {
    border-color: rgba(232, 195, 185, 0.65);
    background: linear-gradient(180deg, #fff 0%, rgba(255, 248, 251, 0.92) 100%);
}
.booking-card-pending .booking-ref {
    color: var(--renivo-primary, #ff5fa2);
    font-weight: 700;
}
.approval-actions .btn-primary {
    flex: 1 1 140px;
}
.approval-actions .btn-secondary {
    flex: 0 1 auto;
}

/* Portal modals */
.portal-modal-overlay {
    opacity: 0;
    transition: opacity 0.25s ease;
}
.portal-modal-overlay.is-visible {
    opacity: 1;
}
.portal-modal-card {
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.portal-modal-overlay.is-visible .portal-modal-card {
    transform: none;
    opacity: 1;
}
.dispatch-whats-next {
    border-radius: 12px;
}

@media (max-width: 767px) {
    .dispatch-admin-actions .btn-sm {
        width: 100%;
    }
    .admin-table-bookings {
        font-size: 12px;
    }
}

.booking-chat-messages {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0;
    padding: 12px;
    border-radius: 12px;
    background: var(--surface-muted, #f4f3f8);
    border: 1px solid var(--border-soft, #eceaf2);
}
.booking-chat-msg {
    background: var(--surface-card, #fff);
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-soft, #eceaf2);
}
.booking-chat-msg-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--text-muted, #68657a);
}
.booking-chat-msg p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
}
.booking-chat-compose {
    margin-top: 8px;
}
.booking-chat-empty {
    margin: 0;
}

/* ——— Portal UI cleanup (kunde / worker / admin) ——— */
.portal-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
.portal-action-bar--compact {
    margin-top: 0;
    gap: 6px;
}
.portal-action-bar .btn-primary {
    min-width: 0;
}
.portal-action-bar .btn-text-skip {
    font-size: 13px;
    padding: 4px 8px;
}

.dispatch-card .approval-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}
.dispatch-card .approval-actions + .portal-action-bar {
    margin-top: 10px;
}
.dispatch-card .approval-actions .btn-primary,
.dispatch-card .approval-actions .btn-secondary {
    width: 100%;
    justify-content: center;
}

.booking-card .portal-action-bar {
    padding-top: 4px;
    border-top: 1px solid var(--border-soft, #eceaf2);
}

.dispatch-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted, #68657a);
    margin: 0;
}
.dispatch-filter-select {
    min-width: 180px;
}
.dispatch-filter-row {
    margin-left: auto;
}

.admin-table-bookings {
    font-size: 14px;
}
.admin-table-bookings th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #68657a);
    white-space: nowrap;
}
.admin-table-bookings td {
    vertical-align: middle;
    padding: 12px 10px;
}
.dispatch-td-ref {
    font-weight: 600;
    white-space: nowrap;
}
.dispatch-td-price {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.dispatch-admin-actions {
    min-width: 140px;
    white-space: nowrap;
}
.dispatch-booking-row {
    cursor: pointer;
    transition: background 0.15s ease;
}
.dispatch-booking-row:hover {
    background: rgba(232, 195, 185, 0.08);
}
.dispatch-booking-row:focus-visible {
    outline: 2px solid var(--pink-accent, #e8c3b9);
    outline-offset: -2px;
}

.portal-modal-card-wide {
    max-width: 520px;
}
.portal-modal-actions--split {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 16px;
}
.booking-chat-header {
    margin-bottom: 4px;
    padding-right: 32px;
}
.booking-chat-header h4 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}
.booking-chat-meta {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-muted, #68657a);
}
.booking-chat-compose textarea {
    resize: vertical;
    min-height: 72px;
}
.booking-chat-modal .portal-modal-actions {
    margin-top: 12px;
}

#view-worker .portal-sidebar {
    gap: 8px;
}
#view-worker .dashboard-metrics {
    margin-top: 16px;
}
#view-worker .dashboard-section h4 {
    margin-bottom: 12px;
}

.admin-metrics .metric-card-node h5 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.dispatch-action-banner {
    border-radius: 12px;
    font-size: 14px;
}

@media (max-width: 900px) {
    .admin-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
        border: 1px solid var(--border-soft, #eceaf2);
    }
    .dispatch-admin-actions .portal-action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .dispatch-admin-actions .btn-sm {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .portal-modal-actions--split {
        flex-direction: column;
        align-items: stretch;
    }
    .portal-modal-actions--split .btn-primary,
    .portal-modal-actions--split .btn-secondary,
    .portal-modal-actions--split .btn-text-skip {
        width: 100%;
        justify-content: center;
    }
    .portal-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .portal-modal-card {
        border-radius: 16px 16px 0 0;
        max-height: 92dvh;
        overflow-y: auto;
    }
}
    .dispatch-filter-row {
        width: 100%;
        margin-left: 0;
    }
    .dispatch-filter-select {
        flex: 1;
        min-width: 0;
    }
}

/* ==========================================================================
   TJENESTESIDER V2 — kompakt hero, fordeler, sticky bestilling
   ========================================================================== */
.service-page-v2 {
    padding-bottom: 48px;
}

.service-compact-hero {
    padding: 24px 0 20px;
    background: linear-gradient(180deg, rgba(255, 245, 247, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
    border-bottom: 1px solid var(--border-soft, rgba(17, 24, 39, 0.08));
}

.service-compact-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
}

@media (min-width: 900px) {
    .service-compact-hero-inner {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 32px;
    }
}

.service-compact-hero-copy h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.15;
    margin: 8px 0 12px;
}

.service-compact-lead {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-muted, #5c5663);
    max-width: 52ch;
    margin: 0;
}

.service-compact-price {
    margin: 12px 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-rose, #c45c6a);
}

.service-compact-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted, #5c5663);
}

.service-compact-trust span::before {
    content: "✓ ";
    color: var(--brand-rose, #c45c6a);
}

.service-compact-hero-media {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-soft, rgba(17, 24, 39, 0.08));
    max-height: 220px;
}

.service-compact-hero-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.service-page-v2-body {
    padding-top: 28px;
}

.service-page-v2-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

@media (min-width: 960px) {
    .service-page-v2-grid {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
        gap: 36px;
    }
}

.service-benefit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

@media (min-width: 640px) {
    .service-benefit-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.service-benefit-card {
    background: var(--surface-card, #fff);
    border: 1px solid var(--border-soft, rgba(17, 24, 39, 0.08));
    border-radius: 14px;
    padding: 16px;
}

.service-benefit-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(196, 92, 106, 0.1);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.service-benefit-card h3 {
    font-size: 0.95rem;
    margin: 0 0 6px;
}

.service-benefit-card p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted, #5c5663);
}

.service-includes-block {
    margin-bottom: 8px;
}

.service-includes-block .section-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-includes-list {
    margin: 0;
}

.service-page-v2-aside {
    position: relative;
}

@media (min-width: 960px) {
    .service-page-v2-aside {
        position: sticky;
        top: calc(var(--site-header-h, 72px) + 16px);
    }
}

.service-booking-panel--card {
    margin: 0;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(22, 20, 29, 0.06);
}

.service-booking-inner--card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.service-booking-inner--card .service-booking-aside {
    order: -1;
}

@media (min-width: 960px) {
    .service-booking-inner--card .service-booking-aside {
        order: 0;
    }
}

.service-field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 14px 0 4px;
}

.service-field-hint {
    margin: 0 0 10px;
    font-size: 0.8rem;
    color: var(--text-muted, #5c5663);
}

.service-zone-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-zone-chips .zone-chip {
    border: 1px solid var(--border-soft, rgba(17, 24, 39, 0.12));
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.service-zone-chips .zone-chip.active {
    border-color: var(--brand-rose, #c45c6a);
    background: rgba(196, 92, 106, 0.1);
    color: var(--dark-onyx, #16141d);
}

.service-page-v2 .faq-section {
    margin-top: 40px;
}

.service-page-v2--senior {
    padding-top: 8px;
}

@media (max-width: 959px) {
    .service-compact-hero-media {
        display: none;
    }
    .service-page-v2-aside {
        order: -1;
    }
    .service-page-v2-grid {
        display: flex;
        flex-direction: column;
    }
}
