:root {
    --janoe-dark: #111827;
    --janoe-dark-soft: #1f2937;
    --janoe-green: #40bc3e;
    --janoe-green-dark: #36a935;
    --janoe-bg: #f4f6f9;
    --janoe-card: #ffffff;
    --janoe-text: #111827;
    --janoe-muted: #6b7280;
    --janoe-border: #e5e7eb;
    --janoe-radius: 22px;
    --janoe-sidebar-width: 280px;
}

body.theme-dark {
    --janoe-bg: #0f131a;
    --janoe-card: #171d26;
    --janoe-text: #e5e7eb;
    --janoe-muted: #9ca3af;
    --janoe-border: #2a3442;
    --janoe-dark-soft: #d1d5db;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--janoe-bg);
    color: var(--janoe-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.theme-dark .topbar {
    background: rgba(16, 20, 27, .86);
    border-bottom-color: var(--janoe-border);
}

body.theme-dark .topbar-action,
body.theme-dark .sidebar-toggle {
    background: #1c2430;
    border-color: var(--janoe-border);
    color: #e5e7eb;
}

body.theme-dark .topbar-action:hover,
body.theme-dark .sidebar-toggle:hover {
    background: #252f3d;
}

body.theme-dark .user-chip {
    background: #1c2430;
    border-color: var(--janoe-border);
    color: #e5e7eb;
}

body.theme-dark .stat-card,
body.theme-dark .module-card,
body.theme-dark .content-card,
body.theme-dark .image-tile {
    border-color: var(--janoe-border);
}

body.theme-dark .form-control,
body.theme-dark .form-select {
    background: #121821;
    border-color: var(--janoe-border);
    color: #e5e7eb;
}

body.theme-dark .form-control:focus,
body.theme-dark .form-select:focus {
    background: #121821;
    color: #fff;
}

/* Global dark overrides for Bootstrap-heavy module views */
body.theme-dark .card,
body.theme-dark .card-header,
body.theme-dark .card-body,
body.theme-dark .list-group-item,
body.theme-dark .modal-content,
body.theme-dark .offcanvas,
body.theme-dark .dropdown-menu {
    background-color: #171d26 !important;
    color: #e5e7eb !important;
    border-color: var(--janoe-border) !important;
}

body.theme-dark .card-header.bg-white,
body.theme-dark .bg-white,
body.theme-dark .bg-light {
    background-color: #171d26 !important;
    color: #e5e7eb !important;
}

body.theme-dark .text-muted {
    color: #9ca3af !important;
}

body.theme-dark .table {
    color: #e5e7eb;
    --bs-table-bg: transparent;
    --bs-table-color: #e5e7eb;
    --bs-table-striped-bg: #1d2430;
    --bs-table-striped-color: #e5e7eb;
    --bs-table-hover-bg: #222b38;
    --bs-table-hover-color: #ffffff;
    --bs-table-border-color: var(--janoe-border);
}

body.theme-dark .table > :not(caption) > * > * {
    background-color: transparent !important;
    color: inherit;
    border-bottom-color: var(--janoe-border) !important;
}

body.theme-dark .btn-outline-secondary,
body.theme-dark .btn-outline-dark,
body.theme-dark .btn-outline-primary {
    color: #e5e7eb;
    border-color: #3a4759;
    background: #1b2431;
}

body.theme-dark .btn-outline-secondary:hover,
body.theme-dark .btn-outline-dark:hover,
body.theme-dark .btn-outline-primary:hover {
    color: #fff;
    background: #2a3646;
    border-color: #4a5a71;
}

body.theme-dark .dropdown-item {
    color: #dbe1ea;
}

body.theme-dark .dropdown-item:hover,
body.theme-dark .dropdown-item:focus {
    color: #fff;
    background: #222b38;
}

body.theme-dark .badge.text-bg-light {
    background: #283444 !important;
    color: #e5e7eb !important;
}

body.theme-dark .nav-tabs {
    border-bottom-color: var(--janoe-border);
}

body.theme-dark .nav-tabs .nav-link {
    color: #cfd6df;
}

body.theme-dark .nav-tabs .nav-link.active {
    color: #fff;
    background: #1c2430;
    border-color: var(--janoe-border) var(--janoe-border) #1c2430;
}

body.theme-dark,
body.theme-dark .content,
body.theme-dark .container,
body.theme-dark .container-fluid,
body.theme-dark main.main {
    background-color: #0f131a !important;
    color: #e5e7eb !important;
}

body.theme-dark .border,
body.theme-dark .border-top,
body.theme-dark .border-bottom,
body.theme-dark .border-start,
body.theme-dark .border-end {
    border-color: var(--janoe-border) !important;
}

a {
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar-backdrop {
    display: none;
}

/* Sidebar */

.sidebar {
    width: var(--janoe-sidebar-width);
    background:
        radial-gradient(circle at top left, rgba(64, 188, 62, 0.22), transparent 32%),
        linear-gradient(180deg, #111827 0%, #020617 100%);
    color: #fff;
    padding: 26px 20px;
    position: fixed;
    inset: 0 auto 0 0;
    overflow-y: auto;
    z-index: 100;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 34px;
}

.brand-logo {
    width: 172px;
    max-width: 100%;
    height: auto;
    display: block;
}

.brand-subtitle {
    font-size: .78rem;
    color: rgba(255,255,255,.58);
    margin-top: 3px;
}

.nav-section {
    margin-top: 26px;
}

.nav-section-title {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.38);
    margin: 0 0 10px 12px;
    font-weight: 750;
}

.sidebar .nav-link {
    color: rgba(255,255,255,.74);
    border-radius: 15px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 650;
    margin-bottom: 5px;
    transition: .18s ease;
}

.sidebar .nav-link i {
    width: 22px;
    text-align: center;
    color: rgba(255,255,255,.52);
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255,255,255,.09);
    color: #fff;
}

.sidebar .nav-link.active i {
    color: var(--janoe-green);
}

/* Main */

.main {
    margin-left: var(--janoe-sidebar-width);
    width: calc(100% - var(--janoe-sidebar-width));
    min-height: 100vh;
}

/* Topbar */

.topbar {
    height: 76px;
    background: rgba(255,255,255,.84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--janoe-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-heading {
    min-width: 0;
}

.topbar-title {
    font-weight: 850;
    font-size: 1.15rem;
}

.topbar-subtitle {
    color: var(--janoe-muted);
    font-size: .88rem;
    margin-top: 2px;
}

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

.topbar-action {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--janoe-border);
    background: #fff;
    color: var(--janoe-dark-soft);
    display: grid;
    place-items: center;
}

.topbar-action:hover {
    background: #f9fafb;
}

.sidebar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--janoe-border);
    background: #fff;
    color: var(--janoe-dark-soft);
    margin-right: 14px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    border: 1px solid var(--janoe-border);
    border-radius: 999px;
    padding: 8px 14px 8px 8px;
    font-weight: 750;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--janoe-dark);
    color: #fff;
    display: grid;
    place-items: center;
}

/* Content */

.content {
    padding: 34px;
}

/* Error pages */

.error-shell {
    min-height: 100vh;
    background: var(--janoe-bg);
}

.error-topbar {
    position: sticky;
}

.error-content {
    min-height: calc(100vh - 76px);
    display: grid;
    align-content: center;
    padding: 34px;
}

.error-card {
    width: min(100%, 760px);
    margin: 0 auto;
    background: var(--janoe-card);
    border: 1px solid var(--janoe-border);
    border-radius: 28px;
    padding: clamp(28px, 5vw, 54px);
    text-align: center;
    box-shadow: 0 24px 70px rgba(15,23,42,.1);
    position: relative;
    overflow: hidden;
}

.error-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 10%, rgba(64,188,62,.16), transparent 28%),
        radial-gradient(circle at 12% 92%, rgba(17,24,39,.08), transparent 26%);
    pointer-events: none;
}

.error-card > * {
    position: relative;
}

.error-code {
    font-size: clamp(4rem, 16vw, 8.5rem);
    font-weight: 950;
    line-height: .85;
    letter-spacing: 0;
    color: rgba(17,24,39,.08);
    margin-bottom: -8px;
}

.error-icon {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.error-icon-warning {
    background: rgba(245,158,11,.14);
    color: #b45309;
}

.error-icon-danger {
    background: rgba(220,38,38,.12);
    color: #b91c1c;
}

.error-icon-muted {
    background: rgba(107,114,128,.12);
    color: #4b5563;
}

.error-card h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.error-card p {
    color: var(--janoe-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

.error-debug {
    width: min(100%, 980px);
    margin: 0 auto;
    height: auto;
}

.error-debug-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.error-debug-grid > div {
    border: 1px solid var(--janoe-border);
    border-radius: 14px;
    padding: 12px;
    min-width: 0;
}

.error-debug-grid span {
    display: block;
    color: var(--janoe-muted);
    font-size: .78rem;
    margin-bottom: 4px;
}

.error-debug-grid strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: .9rem;
}

.error-debug-pre {
    background: #0f172a;
    color: #dbeafe;
    border-radius: 16px;
    padding: 16px;
    font-size: .82rem;
    overflow: auto;
    white-space: pre-wrap;
}

.hero {
    border-radius: 30px;
    padding: 34px;
    background:
        radial-gradient(circle at 90% 20%, rgba(64,188,62,.28), transparent 26%),
        linear-gradient(135deg, #111827 0%, #1f2937 55%, #0f172a 100%);
    color: #fff;
    box-shadow: 0 24px 70px rgba(15,23,42,.22);
    margin-bottom: 28px;
}

.hero-kicker {
    color: var(--janoe-green);
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
}

.hero p {
    color: rgba(255,255,255,.72);
    font-size: 1.05rem;
    max-width: 760px;
    margin-bottom: 24px;
}

.btn {
    border-radius: 14px;
    font-weight: 850;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.btn:not(.btn-sm):not(.btn-lg) {
    padding: 11px 18px;
}

.btn-sm {
    border-radius: 12px;
    font-weight: 850;
}

.btn-lg {
    border-radius: 16px;
    font-weight: 900;
}

.btn.rounded-pill,
.btn.rounded-4,
.btn-rounded {
    border-radius: 14px !important;
}

.btn-sm.rounded-pill,
.btn-sm.rounded-4,
.btn-sm.btn-rounded {
    border-radius: 12px !important;
}

.btn-lg.rounded-pill,
.btn-lg.rounded-4,
.btn-lg.btn-rounded {
    border-radius: 16px !important;
}

.btn-janoe,
.btn-jm,
.btn-green,
.jm-btn-primary,
.btn-primary,
.btn-success {
    background: var(--janoe-green) !important;
    border-color: var(--janoe-green) !important;
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(64,188,62,.28);
}

.btn-janoe:hover,
.btn-jm:hover,
.btn-green:hover,
.jm-btn-primary:hover,
.btn-primary:hover,
.btn-success:hover,
.btn-janoe:focus,
.btn-jm:focus,
.btn-green:focus,
.jm-btn-primary:focus,
.btn-primary:focus,
.btn-success:focus {
    background: var(--janoe-green-dark) !important;
    border-color: var(--janoe-green-dark) !important;
    color: #fff !important;
    box-shadow: 0 16px 32px rgba(64,188,62,.32);
    transform: translateY(-1px);
}

.btn-soft,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-dark,
.btn-outline-light,
.btn-secondary,
.btn-light {
    background: #ffffff !important;
    border: 1px solid #dbe3ee !important;
    color: #2D313C !important;
    box-shadow: 0 .35rem .9rem rgba(15,23,42,.05);
}

.btn-soft:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-dark:hover,
.btn-outline-light:hover,
.btn-secondary:hover,
.btn-light:hover,
.btn-soft:focus,
.btn-outline-primary:focus,
.btn-outline-secondary:focus,
.btn-outline-dark:focus,
.btn-outline-light:focus,
.btn-secondary:focus,
.btn-light:focus {
    background: #2D313C !important;
    border-color: #2D313C !important;
    color: #fff !important;
    box-shadow: 0 .65rem 1.2rem rgba(45,49,60,.16);
    transform: translateY(-1px);
}

.hero .btn-soft,
.customer-hero .btn-soft,
.admin-hero .btn-soft,
.settings-hero .btn-soft,
.hero .btn-outline-light,
.customer-hero .btn-outline-light {
    background: rgba(255,255,255,.10) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,.18) !important;
    box-shadow: none;
}

.hero .btn-soft:hover,
.customer-hero .btn-soft:hover,
.admin-hero .btn-soft:hover,
.settings-hero .btn-soft:hover,
.hero .btn-outline-light:hover,
.customer-hero .btn-outline-light:hover {
    background: rgba(255,255,255,.18) !important;
    border-color: rgba(255,255,255,.28) !important;
    color: #fff !important;
}

.btn-danger {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(220,38,38,.20);
}

.btn-danger:hover,
.btn-danger:focus {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-warning {
    background: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #111827 !important;
    box-shadow: 0 12px 24px rgba(245,158,11,.18);
}

.btn-warning:hover,
.btn-warning:focus {
    background: #d97706 !important;
    border-color: #d97706 !important;
    color: #111827 !important;
    transform: translateY(-1px);
}

.btn-info {
    background: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(14,165,233,.18);
}

.btn-info:hover,
.btn-info:focus {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

body.theme-dark .btn-soft,
body.theme-dark .btn-outline-primary,
body.theme-dark .btn-outline-secondary,
body.theme-dark .btn-outline-dark,
body.theme-dark .btn-outline-light,
body.theme-dark .btn-secondary,
body.theme-dark .btn-light {
    background: #1b2431 !important;
    border-color: #3a4759 !important;
    color: #e5e7eb !important;
    box-shadow: none;
}

body.theme-dark .btn-soft:hover,
body.theme-dark .btn-outline-primary:hover,
body.theme-dark .btn-outline-secondary:hover,
body.theme-dark .btn-outline-dark:hover,
body.theme-dark .btn-outline-light:hover,
body.theme-dark .btn-secondary:hover,
body.theme-dark .btn-light:hover {
    background: #2a3646 !important;
    border-color: #4a5a71 !important;
    color: #fff !important;
}

/* Cards */

.stat-card,
.module-card,
.content-card {
    background: var(--janoe-card);
    border: 1px solid var(--janoe-border);
    border-radius: var(--janoe-radius);
    padding: 24px;
    box-shadow: 0 18px 50px rgba(15,23,42,.06);
    height: 100%;
}

.stat-icon,
.module-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(64,188,62,.12);
    color: var(--janoe-green);
    font-size: 21px;
    margin-bottom: 18px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.stat-label,
.module-text {
    color: var(--janoe-muted);
}

.module-title {
    font-size: 1.1rem;
    font-weight: 850;
    margin-bottom: 7px;
}

.module-card {
    transition: .18s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgba(15,23,42,.1);
}

/* Status */

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: .82rem;
    font-weight: 750;
}

.status-pill.success {
    background: rgba(64,188,62,.12);
    color: #278b26;
}

.status-pill.warning {
    background: rgba(245,158,11,.14);
    color: #b45309;
}

.status-pill.muted {
    background: #f3f4f6;
    color: #6b7280;
}

/* Mobile */

@media (max-width: 991px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        width: var(--janoe-sidebar-width);
        max-width: min(86vw, var(--janoe-sidebar-width));
        transition: transform .2s ease;
        box-shadow: 24px 0 70px rgba(15,23,42,.28);
    }

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

    .app-shell.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        border: 0;
        padding: 0;
        background: rgba(15,23,42,.44);
        opacity: 0;
        pointer-events: none;
        z-index: 90;
        transition: opacity .2s ease;
    }

    .app-shell.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .topbar {
        padding: 0 18px;
    }

    .sidebar-toggle {
        display: grid;
        place-items: center;
        flex: 0 0 42px;
    }

    .topbar-heading {
        flex: 1;
    }

    .topbar-actions {
        margin-left: auto;
    }

    .topbar-action {
        display: none;
    }

    .topbar-actions .dropdown,
    .topbar-actions form,
    .topbar-actions > a.topbar-action {
        display: none;
    }

    .user-chip span {
        display: none;
    }

    .content {
        padding: 22px;
    }
}

@media (max-width: 575px) {
    .hero {
        padding: 26px;
        border-radius: 24px;
    }

    .topbar-subtitle {
        display: none;
    }
}

.image-tile {
    background: #fff;
    border: 1px solid var(--janoe-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15,23,42,.06);
    height: 100%;
}

.image-tile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #e5e7eb;
}

.image-tile-body {
    padding: 12px;
}

.image-tile-title {
    font-size: .88rem;
    font-weight: 750;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
}

.image-tile-meta {
    font-size: .78rem;
    color: var(--janoe-muted);
    margin-top: 6px;
}

.image-tile-job {
    display: inline-flex;
    margin-top: 8px;
    font-size: .72rem;
    font-weight: 800;
    color: #278b26;
    background: rgba(64,188,62,.12);
    padding: 4px 8px;
    border-radius: 999px;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.detail-header-main {
    flex: 1;
    min-width: 0;
}

.detail-header-main h1 {
    font-size: 1.45rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.03em;
}

.detail-header-main div {
    color: var(--janoe-muted);
    font-size: .9rem;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 450px;
    gap: 24px;
    align-items: start;
}

.image-detail-right {
    position: sticky;
    top: 100px;
}

.image-stage-card {
    padding: 22px;
}

.image-detail-main {
    width: 100%;
    max-height: calc(100vh - 260px);
    object-fit: contain;
    border-radius: 18px;
    background: #f3f4f6;
    display: block;
}

.image-caption-box {
    margin-top: 22px;
}

.image-caption-box h2 {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.image-caption-box p {
    margin: 0;
    color: var(--janoe-muted);
}

.compact-info-card {
    padding: 20px;
}

.compact-section {
    border-bottom: 1px solid var(--janoe-border);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.compact-section:last-child {
    border-bottom: 0;
}

.compact-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 850;
    margin-bottom: 12px;
}

.compact-section-title i {
    color: var(--janoe-green);
    width: 18px;
    text-align: center;
}

.compact-data-grid {
    display: grid;
    gap: 8px;
}

.compact-data-grid > div {
    display: grid;
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    font-size: .88rem;
}

.compact-data-grid span {
    color: var(--janoe-muted);
}

.compact-data-grid strong {
    font-weight: 750;
    min-width: 0;
    overflow-wrap: anywhere;
}

.keyword-list.compact {
    gap: 6px;
}

.keyword-list.compact span {
    font-size: .76rem;
    padding: 5px 8px;
}

.compact-actions {
    display: flex;
    gap: 8px;
}

.compact-actions .btn {
    flex: 1;
    border-radius: 12px;
    font-weight: 750;
}

.compact-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.compact-checks span {
    border-radius: 12px;
    background: #f3f4f6;
    padding: 8px 10px;
    font-size: .78rem;
    font-weight: 750;
}

.compact-checks span.ok {
    background: rgba(64,188,62,.12);
    color: #278b26;
}

.compact-checks span.missing {
    background: rgba(245,158,11,.14);
    color: #b45309;
}

@media (max-width: 1199px) {
    .image-detail-layout {
        grid-template-columns: 1fr;
    }

    .image-detail-right {
        position: static;
    }
}

@media (max-width: 575px) {
    .detail-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .image-detail-main {
        max-height: 60vh;
    }

    .compact-data-grid > div,
    .compact-checks {
        grid-template-columns: 1fr;
    }
}

.keyword-select {
    min-height: 220px;
    font-size: .9rem;
}

.form-label {
    font-weight: 750;
    font-size: .86rem;
    color: var(--janoe-dark-soft);
}

.form-control,
.form-select {
    border-radius: 12px;
    border-color: var(--janoe-border);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--janoe-green);
    box-shadow: 0 0 0 .2rem rgba(64,188,62,.15);
}

.jm-tagselect {
    position: relative;
}

.jm-tagselect-control {
    min-height: 44px;
    border: 1px solid #ced4da;
    border-radius: .75rem;
    background: #fff;
    padding: .4rem .5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    cursor: text;
}

.jm-tagselect-control:focus-within {
    border-color: #40bc3e;
    box-shadow: 0 0 0 .2rem rgba(64, 188, 62, .15);
}

.jm-tagselect-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.jm-tagselect-tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: #2D313C;
    color: #fff;
    font-size: .85rem;
    line-height: 1.2;
}

.jm-tagselect-remove {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    opacity: .8;
}

.jm-tagselect-remove:hover {
    opacity: 1;
}

.jm-tagselect-search {
    flex: 1;
    min-width: 140px;
    border: 0;
    outline: none;
    padding: .3rem;
    font-size: .95rem;
}

.jm-tagselect-dropdown {
    position: absolute;
    z-index: 1050;
    top: calc(100% + .35rem);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .75rem;
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .12);
    padding: .35rem;
}

.jm-tagselect-option {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: .55rem .7rem;
    border-radius: .55rem;
    color: #212529;
    font-size: .95rem;
}

.jm-tagselect-option:hover {
    background: rgba(64, 188, 62, .12);
}

.jm-tagselect-option.is-selected {
    background: #40bc3e;
    color: #fff;
}

.jm-tagselect-empty {
    padding: .75rem;
    color: #6c757d;
    font-size: .9rem;
}

.janoe-map {
    width: 100%;
    min-height: 320px;
    border-radius: 1rem;
    overflow: hidden;
    background: #f1f3f5;
}

.map-empty {
    min-height: 260px;
    border-radius: 1rem;
    background: #f8f9fa;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    font-weight: 700;
}

.janoe-map-edit {
    min-height: 420px;
}

.map-help {
    font-size: .9rem;
    color: #6c757d;
    margin-top: .75rem;
}

/* Dashboard V2 */

.dashboard-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    padding: 34px;
    margin-bottom: 24px;
    border-radius: 32px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 78% 18%, rgba(64,188,62,.34), transparent 28%),
        radial-gradient(circle at 8% 110%, rgba(64,188,62,.18), transparent 30%),
        linear-gradient(135deg, #111827 0%, #1f2937 48%, #020617 100%);
    box-shadow: 0 28px 80px rgba(15,23,42,.22);
}

.dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.25));
    pointer-events: none;
}

.dashboard-hero-main,
.dashboard-hero-panel {
    position: relative;
    z-index: 1;
}

.dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: rgba(255,255,255,.74);
    margin-bottom: 14px;
}

.dashboard-eyebrow span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--janoe-green);
    box-shadow: 0 0 0 6px rgba(64,188,62,.16);
}

.dashboard-hero h1 {
    max-width: 780px;
    margin: 0 0 14px;
    font-size: clamp(2.15rem, 5vw, 4.35rem);
    line-height: .95;
    font-weight: 950;
    letter-spacing: -.065em;
}

.dashboard-hero p {
    max-width: 760px;
    margin: 0 0 26px;
    font-size: 1.08rem;
    line-height: 1.62;
    color: rgba(255,255,255,.72);
}

.dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-btn-light {
    background: #fff;
    color: #111827;
    border: 0;
    border-radius: 14px;
    padding: 11px 18px;
    font-weight: 850;
}

.dashboard-btn-light:hover {
    background: #f3f4f6;
    color: #111827;
}

.dashboard-btn-ghost {
    color: #fff;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    padding: 11px 18px;
    font-weight: 850;
}

.dashboard-btn-ghost:hover {
    color: #fff;
    background: rgba(255,255,255,.15);
}

.dashboard-hero-panel {
    align-self: stretch;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}

.hero-panel-label {
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.6);
}

.hero-panel-number {
    margin-top: 18px;
    font-size: 4.2rem;
    line-height: .9;
    font-weight: 950;
    letter-spacing: -.07em;
}

.hero-panel-text {
    margin-top: 12px;
    color: rgba(255,255,255,.7);
    line-height: 1.45;
}

.hero-mini-list {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}

.hero-mini-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.75);
    font-size: .9rem;
}

.hero-mini-list strong {
    color: #fff;
}

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

.dashboard-kpi-card,
.dashboard-card,
.dashboard-work-card {
    background: rgba(255,255,255,.92);
    border: 1px solid var(--janoe-border);
    box-shadow: 0 18px 54px rgba(15,23,42,.065);
}

.dashboard-kpi-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 112px;
    padding: 18px;
    border-radius: 22px;
    color: var(--janoe-text);
    transition: .18s ease;
}

.dashboard-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 70px rgba(15,23,42,.1);
    color: var(--janoe-text);
}

.dashboard-kpi-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--janoe-green);
    background: rgba(64,188,62,.12);
    font-size: 1.15rem;
}

.dashboard-kpi-value {
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.045em;
}

.dashboard-kpi-label {
    margin-top: 6px;
    color: var(--janoe-muted);
    font-size: .84rem;
    line-height: 1.25;
    font-weight: 700;
}

.dashboard-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 4px 0 14px;
}

.dashboard-section-head h2,
.dashboard-card-head h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 950;
    letter-spacing: -.035em;
}

.dashboard-section-head p,
.dashboard-card-head p {
    margin: 4px 0 0;
    color: var(--janoe-muted);
    font-size: .9rem;
}

.dashboard-workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-work-card {
    position: relative;
    display: block;
    min-height: 260px;
    padding: 22px;
    border-radius: 26px;
    color: var(--janoe-text);
    overflow: hidden;
    transition: .18s ease;
}

.dashboard-work-card::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(64,188,62,.09);
    transition: .18s ease;
}

.dashboard-work-card:hover {
    color: var(--janoe-text);
    transform: translateY(-4px);
    box-shadow: 0 26px 80px rgba(15,23,42,.11);
}

.dashboard-work-card:hover::after {
    transform: scale(1.25);
}

.dashboard-work-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-work-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #111827;
    color: #fff;
    font-size: 1.18rem;
    box-shadow: 0 14px 30px rgba(17,24,39,.18);
}

.dashboard-work-count {
    text-align: right;
}

.dashboard-work-count strong {
    display: block;
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.045em;
}

.dashboard-work-count span {
    display: block;
    margin-top: 5px;
    color: var(--janoe-muted);
    font-size: .78rem;
    font-weight: 800;
}

.dashboard-work-label {
    position: relative;
    z-index: 1;
    margin-bottom: 9px;
    color: var(--janoe-green);
    font-size: .77rem;
    font-weight: 950;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.dashboard-work-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 1.12rem;
    font-weight: 950;
    letter-spacing: -.035em;
}

.dashboard-work-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--janoe-muted);
    font-size: .91rem;
    line-height: 1.5;
}

.dashboard-work-action {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #111827;
    font-size: .9rem;
    font-weight: 900;
}

.dashboard-card {
    padding: 24px;
    border-radius: 26px;
}

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

.dashboard-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .76rem;
    line-height: 1;
    font-weight: 850;
    white-space: nowrap;
}

.dashboard-badge.success {
    color: #278b26;
    background: rgba(64,188,62,.12);
}

.dashboard-badge.warning {
    color: #a16207;
    background: rgba(245,158,11,.15);
}

.dashboard-badge.danger {
    color: #b91c1c;
    background: rgba(239,68,68,.12);
}

.dashboard-badge.muted {
    color: #64748b;
    background: #f1f5f9;
}

.dashboard-feed {
    display: grid;
    gap: 12px;
}

.dashboard-feed-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.dashboard-feed-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(64,188,62,.13);
    color: var(--janoe-green);
}

.dashboard-feed-icon.warning {
    background: rgba(245,158,11,.14);
    color: #b45309;
}

.dashboard-feed-icon.danger {
    background: rgba(239,68,68,.12);
    color: #b91c1c;
}

.dashboard-feed-body {
    min-width: 0;
}

.dashboard-feed-title {
    font-weight: 900;
    letter-spacing: -.02em;
}

.dashboard-feed-meta {
    margin-top: 3px;
    color: var(--janoe-muted);
    font-size: .84rem;
}

.dashboard-feed-text {
    margin-top: 8px;
    color: #374151;
    font-size: .9rem;
    line-height: 1.45;
}

.dashboard-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    color: var(--janoe-muted);
    background: #f8fafc;
    border: 1px dashed #dbe3ee;
    font-weight: 700;
}

.dashboard-empty i {
    color: var(--janoe-green);
}

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

.dashboard-quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 16px;
    border-radius: 20px;
    color: var(--janoe-text);
    background: #f8fafc;
    border: 1px solid #eef2f7;
    font-weight: 900;
    transition: .18s ease;
}

.dashboard-quick-action i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: #111827;
}

.dashboard-quick-action:hover {
    color: var(--janoe-text);
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 18px 44px rgba(15,23,42,.08);
}

.dashboard-mini-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-mini-status > div {
    padding: 14px;
    border-radius: 18px;
    background: #111827;
    color: #fff;
}

.dashboard-mini-status span {
    display: block;
    color: rgba(255,255,255,.58);
    font-size: .75rem;
    font-weight: 800;
}

.dashboard-mini-status strong {
    display: block;
    margin-top: 5px;
    font-size: 1.15rem;
    font-weight: 950;
}

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

.dashboard-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.dashboard-list-main {
    min-width: 0;
}

.dashboard-list-title {
    font-weight: 900;
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-list-meta {
    margin-top: 4px;
    color: var(--janoe-muted);
    font-size: .83rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-list-sub {
    margin-top: 5px;
    color: #374151;
    font-size: .84rem;
}

.dashboard-list-side {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-icon-link {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #111827;
    background: #fff;
    border: 1px solid var(--janoe-border);
}

.dashboard-icon-link:hover {
    color: #fff;
    background: var(--janoe-green);
    border-color: var(--janoe-green);
}

.dashboard-text-link {
    color: var(--janoe-green);
    font-size: .88rem;
    font-weight: 900;
}

.dashboard-text-link:hover {
    color: var(--janoe-green-dark);
}

.dashboard-pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 6px;
}

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

.dashboard-image-card {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    color: var(--janoe-text);
    background: #f8fafc;
    border: 1px solid #eef2f7;
    transition: .18s ease;
}

.dashboard-image-card:hover {
    color: var(--janoe-text);
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(15,23,42,.09);
}

.dashboard-image-preview {
    aspect-ratio: 4 / 3;
    background: #e5e7eb;
    overflow: hidden;
}

.dashboard-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dashboard-image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-size: 1.6rem;
}

.dashboard-image-body {
    padding: 11px;
}

.dashboard-image-title {
    min-height: 2.35em;
    font-size: .82rem;
    line-height: 1.22;
    font-weight: 850;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dashboard-image-meta {
    margin-top: 7px;
    color: var(--janoe-muted);
    font-size: .74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1399px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .dashboard-image-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

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

    .dashboard-workflow-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .dashboard-hero {
        padding: 26px;
        border-radius: 26px;
    }

    .dashboard-hero h1 {
        font-size: 2.35rem;
    }

    .dashboard-kpi-grid,
    .dashboard-quick-grid,
    .dashboard-mini-status,
    .dashboard-image-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-list-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-pill-row {
        justify-content: flex-start;
    }
}

/* Dashboard Fix: Veröffentlichungen dürfen nicht aus Cards laufen */

.dashboard-list-item {
    min-width: 0;
}

.dashboard-list-main {
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-list-title,
.dashboard-list-meta,
.dashboard-list-sub {
    max-width: 100%;
}

.dashboard-list-sub,
.dashboard-list-sub.text-truncate {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow: hidden;
}

.dashboard-pill-row {
    flex: 0 0 auto;
}

/* Dashboard: Einsatz-Farbsystem wie /einsaetze */

.dashboard-einsatz-item {
    position: relative;
    align-items: flex-start;
    border-left: .45rem solid var(--einsatz-color);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--einsatz-color) 10%, transparent), #f8fafc 46%);
}

.dashboard-einsatz-icon {
    flex: 0 0 4.25rem;
    min-width: 4.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    color: var(--einsatz-color);
    font-size: 1.35rem;
    white-space: nowrap;
}

.dashboard-einsatz-badge {
    display: inline-block;
    color: #fff;
    border-radius: .5rem;
    padding: .28rem .6rem;
    font-size: .8rem;
    font-weight: 900;
    background: var(--einsatz-color);
    white-space: nowrap;
}

.dashboard-einsatz-info {
    margin-top: 7px;
    color: #212529;
    font-size: .84rem;
    line-height: 1.4;
}

.dashboard-einsatz-link {
    color: var(--einsatz-color);
}

.dashboard-einsatz-link:hover {
    color: #fff;
    background: var(--einsatz-color);
    border-color: var(--einsatz-color);
}

@keyframes einsatzBlink {
    50% {
        opacity: .25;
    }
}

.blink {
    animation: einsatzBlink 1s linear infinite;
}

@media (max-width: 575px) {
    .dashboard-einsatz-item {
        flex-direction: row;
    }

    .dashboard-einsatz-item .dashboard-list-side {
        width: 100%;
        justify-content: space-between;
        padding-left: 4.25rem;
    }
}

/* Kundenportal */

.customer-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(64,188,62,.10), transparent 32%),
        linear-gradient(180deg, #f6f8fb 0%, #eef2f7 100%);
    color: #111827;
}

.customer-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(15,23,42,.08);
}

.customer-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.customer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111827;
    text-decoration: none;
}

.customer-brand:hover {
    color: #111827;
}

.customer-brand-logo {
    width: 154px;
    max-width: 38vw;
    height: auto;
    display: block;
}

.customer-brand small {
    display: block;
    color: #64748b;
    font-size: .78rem;
    font-weight: 800;
}

.error-topbar-logo {
    width: 138px;
    max-width: 42vw;
    height: auto;
    display: block;
}

.customer-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.customer-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: #475569;
    text-decoration: none;
    font-weight: 850;
}

.customer-menu a.active,
.customer-menu a:hover {
    color: #278b26;
    background: rgba(64,188,62,.12);
}

.customer-logout {
    border: 0;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    min-height: 42px;
    padding: 0 16px;
    font-weight: 850;
}

.customer-update-button,
.customer-theme-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #fff;
    color: #2D313C;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 .35rem .9rem rgba(15,23,42,.05);
    transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.customer-update-button {
    position: relative;
    text-decoration: none;
}

.customer-update-button span {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #40BC3E;
    color: #fff;
    border: 2px solid #fff;
    font-size: .68rem;
    font-weight: 950;
    line-height: 16px;
    text-align: center;
}

.customer-update-button:hover,
.customer-theme-toggle:hover {
    background: #2D313C;
    border-color: #2D313C;
    color: #fff;
    transform: translateY(-1px);
}

.customer-mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #fff;
    color: #2D313C;
    align-items: center;
    justify-content: center;
    box-shadow: 0 .35rem .9rem rgba(15,23,42,.05);
}

.customer-mobile-nav {
    width: min(88vw, 360px);
    border-left: 1px solid rgba(15,23,42,.08);
}

.customer-mobile-logo {
    width: 150px;
    height: auto;
    display: block;
}

.customer-mobile-menu {
    display: grid;
    gap: 10px;
}

.customer-mobile-menu a {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border-radius: 16px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    font-weight: 900;
}

.customer-mobile-menu a.active,
.customer-mobile-menu a:hover {
    color: #278b26;
    background: rgba(64,188,62,.12);
    border-color: rgba(64,188,62,.22);
}

.customer-mobile-menu i {
    width: 22px;
    text-align: center;
    color: #40BC3E;
}

.customer-mobile-menu strong {
    margin-left: auto;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #40BC3E;
    color: #fff;
    font-size: .78rem;
    line-height: 24px;
    text-align: center;
}

.customer-mobile-logout {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    background: #111827;
    color: #fff;
    font-weight: 900;
}

.customer-main {
    padding: 28px 0 56px;
}

.customer-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    padding: 34px;
    border-radius: 32px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 10%, rgba(64,188,62,.34), transparent 30%),
        linear-gradient(135deg, #111827 0%, #2D313C 58%, #020617 100%);
    box-shadow: 0 24px 70px rgba(15,23,42,.18);
    overflow: hidden;
}

.customer-hero.compact {
    grid-template-columns: 1fr;
}

.customer-kicker {
    color: #40BC3E;
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 10px;
}

.customer-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: .98;
    font-weight: 950;
    letter-spacing: -.06em;
}

.customer-hero p {
    max-width: 760px;
    margin: 0 0 22px;
    color: rgba(255,255,255,.72);
    font-size: 1.04rem;
    line-height: 1.6;
}

.customer-hero-stats {
    display: grid;
    gap: 10px;
    align-self: stretch;
}

.customer-hero-stats > div {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
}

.customer-hero-stats span {
    display: block;
    color: rgba(255,255,255,.62);
    font-size: .82rem;
    font-weight: 850;
}

.customer-hero-stats strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    font-weight: 950;
}

.customer-card {
    padding: 24px;
    border-radius: 28px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 18px 52px rgba(15,23,42,.07);
}

.customer-section-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 18px;
    margin-bottom: 20px;
}

.customer-section-head h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 950;
    letter-spacing: -.04em;
}

.customer-section-head p {
    margin: 5px 0 0;
    color: #64748b;
}

.customer-offer-card,
.customer-image-card {
    display: block;
    height: 100%;
    color: #111827;
    text-decoration: none;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 12px 34px rgba(15,23,42,.06);
    transition: .18s ease;
}

.customer-offer-card:hover,
.customer-image-card:hover {
    color: #111827;
    transform: translateY(-3px);
    box-shadow: 0 20px 52px rgba(15,23,42,.10);
}

.customer-offer-preview,
.customer-image-preview {
    display: block;
    aspect-ratio: 16 / 10;
    background: #e5e7eb;
    overflow: hidden;
}

.customer-offer-preview img,
.customer-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .22s ease;
}

.customer-offer-card:hover img,
.customer-image-card:hover img {
    transform: scale(1.035);
}

.customer-preview-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-size: 2rem;
}

.customer-offer-body,
.customer-image-body {
    padding: 18px;
}

.customer-offer-body h3,
.customer-image-body h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    line-height: 1.3;
    font-weight: 950;
    letter-spacing: -.035em;
}

.customer-offer-body p {
    min-height: 58px;
    margin: 0;
    color: #64748b;
    line-height: 1.45;
}

.customer-offer-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    color: #278b26;
    font-weight: 950;
}

.customer-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(64,188,62,.12);
    color: #278b26;
    font-size: .78rem;
    font-weight: 900;
}

.customer-pill.muted {
    color: #64748b;
    background: #f1f5f9;
}

.customer-pill.success {
    color: #278b26;
    background: rgba(64,188,62,.14);
}

.customer-empty {
    width: 100%;
    padding: 26px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-weight: 850;
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.customer-contact-note {
    position: sticky;
    top: 104px;
}

.customer-contact-note h2 {
    margin: 18px 0 10px;
    font-size: 1.35rem;
    font-weight: 950;
    letter-spacing: -.04em;
}

.customer-contact-note p {
    color: #64748b;
    line-height: 1.55;
}

.customer-contact-meta {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.customer-contact-meta > div {
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.customer-contact-meta span {
    display: block;
    color: #64748b;
    font-size: .78rem;
    font-weight: 850;
}

.customer-contact-meta strong {
    display: block;
    margin-top: 4px;
    color: #111827;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.customer-publication-list {
    display: grid;
    gap: 14px;
}

.customer-publication-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
}

.customer-publication-thumb {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    background: #eef2f7;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #94a3b8;
    font-size: 1.7rem;
}

.customer-publication-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.customer-publication-body h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 1.15rem;
    line-height: 1.28;
    font-weight: 950;
    letter-spacing: -.035em;
}

.customer-publication-body p {
    margin: 0;
    color: #64748b;
    line-height: 1.45;
}

.customer-publication-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.customer-search-input {
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid #dbe3ee;
}

.customer-image-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.customer-image-meta {
    color: #64748b;
    font-size: .84rem;
    line-height: 1.4;
}

.customer-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #278b26;
    text-decoration: none;
    font-weight: 900;
}

.customer-back-link:hover {
    color: #1f7a1e;
}

.customer-page-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.06em;
}

.customer-lead {
    max-width: 900px;
    margin: 14px 0 0;
    color: #475569;
    font-size: 1.08rem;
    line-height: 1.6;
}

.customer-text {
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.72;
}

.customer-note,
.customer-download-note {
    padding: 16px;
    border-radius: 18px;
    background: rgba(64,188,62,.10);
    color: #1f2937;
}

.customer-detail-image {
    border-radius: 26px;
    overflow: hidden;
    background: #e5e7eb;
}

.customer-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.customer-detail-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.customer-detail-list > div {
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.customer-detail-list span {
    display: block;
    color: #64748b;
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.customer-detail-list strong {
    display: block;
    margin-top: 4px;
    font-weight: 900;
}

.customer-body.theme-dark {
    background:
        radial-gradient(circle at 10% 0%, rgba(64,188,62,.14), transparent 32%),
        linear-gradient(180deg, #0f131a 0%, #111827 100%);
    color: #e5e7eb;
}

.customer-body.theme-dark .customer-header {
    background: rgba(16,20,27,.86);
    border-bottom-color: #2a3442;
}

.customer-body.theme-dark .customer-brand,
.customer-body.theme-dark .customer-brand:hover {
    color: #e5e7eb;
}

.customer-body.theme-dark .customer-brand small,
.customer-body.theme-dark .customer-section-head p,
.customer-body.theme-dark .customer-offer-body p,
.customer-body.theme-dark .customer-image-meta,
.customer-body.theme-dark .customer-contact-note p,
.customer-body.theme-dark .customer-contact-meta span,
.customer-body.theme-dark .customer-publication-body p,
.customer-body.theme-dark .customer-lead,
.customer-body.theme-dark .customer-detail-list span {
    color: #9ca3af;
}

.customer-body.theme-dark .customer-menu a {
    color: #d1d5db;
}

.customer-body.theme-dark .customer-menu a.active,
.customer-body.theme-dark .customer-menu a:hover {
    color: #c9ffc8;
    background: rgba(64,188,62,.16);
}

.customer-body.theme-dark .customer-theme-toggle,
.customer-body.theme-dark .customer-update-button,
.customer-body.theme-dark .customer-mobile-toggle,
.customer-body.theme-dark .customer-logout {
    background: #1b2431;
    border-color: #3a4759;
    color: #e5e7eb;
}

.customer-body.theme-dark .customer-theme-toggle:hover,
.customer-body.theme-dark .customer-update-button:hover,
.customer-body.theme-dark .customer-mobile-toggle:hover,
.customer-body.theme-dark .customer-logout:hover {
    background: #2a3646;
    border-color: #4a5a71;
    color: #fff;
}

.customer-body.theme-dark .customer-update-button span {
    border-color: #1b2431;
}

.customer-body.theme-dark .customer-mobile-nav {
    background: #171d26;
    color: #e5e7eb;
    border-left-color: #2a3442;
}

.customer-body.theme-dark .customer-mobile-nav .btn-close {
    filter: invert(1) grayscale(1);
}

.customer-body.theme-dark .customer-mobile-menu a {
    background: #121821;
    border-color: #2a3442;
    color: #e5e7eb;
}

.customer-body.theme-dark .customer-mobile-menu a.active,
.customer-body.theme-dark .customer-mobile-menu a:hover {
    color: #c9ffc8;
    background: rgba(64,188,62,.16);
    border-color: rgba(64,188,62,.26);
}

.customer-body.theme-dark .customer-mobile-logout {
    background: #222b38;
    color: #fff;
}

.customer-body.theme-dark .customer-card,
.customer-body.theme-dark .customer-offer-card,
.customer-body.theme-dark .customer-image-card,
.customer-body.theme-dark .customer-publication-item {
    background: #171d26;
    border-color: #2a3442;
    color: #e5e7eb;
    box-shadow: 0 18px 52px rgba(0,0,0,.22);
}

.customer-body.theme-dark .customer-offer-card:hover,
.customer-body.theme-dark .customer-image-card:hover {
    color: #e5e7eb;
}

.customer-body.theme-dark .customer-section-head h2,
.customer-body.theme-dark .customer-offer-body h3,
.customer-body.theme-dark .customer-image-body h3,
.customer-body.theme-dark .customer-contact-note h2,
.customer-body.theme-dark .customer-contact-meta strong,
.customer-body.theme-dark .customer-publication-body h3,
.customer-body.theme-dark .customer-page-title,
.customer-body.theme-dark .customer-text,
.customer-body.theme-dark .customer-detail-list strong {
    color: #f8fafc;
}

.customer-body.theme-dark .customer-offer-preview,
.customer-body.theme-dark .customer-image-preview,
.customer-body.theme-dark .customer-preview-placeholder,
.customer-body.theme-dark .customer-publication-thumb,
.customer-body.theme-dark .customer-detail-image {
    background: #222b38;
    color: #9ca3af;
}

.customer-body.theme-dark .customer-pill.muted {
    color: #d1d5db;
    background: #222b38;
}

.customer-body.theme-dark .customer-empty,
.customer-body.theme-dark .customer-contact-meta > div,
.customer-body.theme-dark .customer-detail-list > div {
    background: #121821;
    border-color: #2a3442;
    color: #9ca3af;
}

.customer-body.theme-dark .customer-search-input,
.customer-body.theme-dark .form-control,
.customer-body.theme-dark .form-select,
.customer-body.theme-dark textarea.form-control {
    background: #121821;
    border-color: #2a3442;
    color: #e5e7eb;
}

.customer-body.theme-dark .customer-search-input:focus,
.customer-body.theme-dark .form-control:focus,
.customer-body.theme-dark .form-select:focus,
.customer-body.theme-dark textarea.form-control:focus {
    background: #121821;
    border-color: rgba(64,188,62,.72);
    color: #fff;
    box-shadow: 0 0 0 .25rem rgba(64,188,62,.14);
}

.customer-body.theme-dark .customer-note,
.customer-body.theme-dark .customer-download-note {
    background: rgba(64,188,62,.13);
    color: #e5e7eb;
}

@media (max-width: 1199px) {
    .customer-hero {
        grid-template-columns: 1fr;
    }

    .customer-image-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .customer-nav {
        min-height: 66px;
        padding: 12px 0;
        gap: 10px;
    }

    .customer-menu {
        display: none;
    }

    .customer-brand {
        min-width: 0;
        margin-right: auto;
    }

    .customer-brand-logo {
        width: 132px;
        max-width: 42vw;
    }

    .customer-brand small,
    .customer-nav > form {
        display: none;
    }

    .customer-mobile-toggle {
        display: inline-flex;
    }

    .customer-hero {
        padding: 26px;
        border-radius: 26px;
    }

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

@media (max-width: 520px) {
    .customer-image-grid {
        grid-template-columns: 1fr;
    }

    .customer-card {
        padding: 18px;
        border-radius: 22px;
    }

    .customer-contact-grid {
        grid-template-columns: 1fr;
    }

    .customer-contact-note {
        position: static;
    }

    .customer-publication-item {
        grid-template-columns: 1fr;
    }

    .customer-publication-thumb {
        max-height: 220px;
    }
}

.alarm-klartext {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.55;
    margin-bottom: 0;
}

.janoe-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.janoe-pagination-summary {
    color: var(--janoe-muted);
    font-size: .86rem;
    font-weight: 700;
}

.janoe-pagination .pagination {
    margin: 0;
    gap: .25rem;
}

.janoe-pagination .page-link {
    border-radius: .5rem;
    min-width: 2.25rem;
    text-align: center;
    font-weight: 750;
}

.janoe-pagination .page-item.active .page-link {
    background: #253044;
    border-color: #253044;
}

.jm-legal-footer {
    margin-top: auto;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,.86);
    border-top: 1px solid rgba(15,23,42,.08);
    color: #64748b;
}

.jm-legal-footer-inner {
    max-width: 1680px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .9rem;
}

.jm-legal-footer strong {
    color: #111827;
    margin-right: .35rem;
}

.jm-legal-footer nav {
    display: flex;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
}

.jm-legal-footer a {
    color: #278b26;
    font-weight: 850;
    text-decoration: none;
}

.jm-legal-footer a:hover {
    color: #40BC3E;
    text-decoration: underline;
}

.theme-dark .jm-legal-footer,
.customer-body.theme-dark + .jm-legal-footer,
.customer-body.theme-dark .jm-legal-footer {
    background: #111827;
    border-top-color: #2a3442;
    color: #9ca3af;
}

.theme-dark .jm-legal-footer strong,
.customer-body.theme-dark .jm-legal-footer strong {
    color: #e5e7eb;
}

.legal-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 10% 0%, rgba(64,188,62,.10), transparent 32%),
        linear-gradient(180deg, #f6f8fb 0%, #eef2f7 100%);
    color: #111827;
}

.legal-header {
    padding: 1rem 0;
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid rgba(15,23,42,.08);
    backdrop-filter: blur(18px);
}

.legal-brand img {
    width: 168px;
    height: auto;
    display: block;
}

.legal-main {
    flex: 1;
    padding: 2rem 0 3rem;
}

.legal-page {
    max-width: 1120px;
    margin: 0 auto;
}

.legal-hero {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 10%, rgba(64,188,62,.34), transparent 30%),
        linear-gradient(135deg, #111827 0%, #2D313C 58%, #020617 100%);
    box-shadow: 0 24px 70px rgba(15,23,42,.16);
    margin-bottom: 1.5rem;
}

.legal-kicker {
    color: #40BC3E;
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: .65rem;
}

.legal-hero h1 {
    margin: 0 0 .75rem;
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.055em;
}

.legal-hero p {
    margin: 0;
    max-width: 760px;
    color: rgba(255,255,255,.72);
    line-height: 1.6;
}

.legal-card {
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 24px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 18px 52px rgba(15,23,42,.07);
    line-height: 1.7;
}

.legal-card h2 {
    margin: 1.7rem 0 .7rem;
    color: #111827;
    font-size: 1.35rem;
    font-weight: 950;
    letter-spacing: -.035em;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card h3 {
    margin: 1.15rem 0 .45rem;
    color: #2D313C;
    font-size: 1.05rem;
    font-weight: 900;
}

.legal-card a {
    color: #278b26;
    font-weight: 850;
}

.legal-source-note {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
    font-size: .9rem;
}

@media (max-width: 640px) {
    .jm-legal-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .legal-hero,
    .legal-card {
        border-radius: 20px;
    }
}

[data-ajax-region] {
    position: relative;
}

[data-ajax-region].is-loading {
    opacity: .62;
    pointer-events: none;
    transition: opacity .15s ease;
}
