:root {
    /* Lobsy — pearl shell surfaces + deep navy actions */
    --pearl: #f7f4f0;
    --pearl-mid: #efe9e3;
    --pearl-cool: #e8eef5;
    --pearl-shine: #fffcfa;
    --bg: #f5f2ee;
    --surface: #fffcfa;
    --text: #122033;
    --muted: #5a6a7d;
    --border: #ddd5cc;
    --brand: #0f2d5c;
    --brand-deep: #0a2044;
    --accent: #0f2d5c;
    --accent-soft: #e7eef7;
    --accent-hover: #163a6b;
    --accent-deep: #0a2044;
    --secondary: #163a6b;
    --coral: #f54a1b;
    --coral-deep: #d93a12;
    --coral-soft: #ffe8e0;
    --danger: #9b1c1c;
    --danger-soft: #fef2f2;
    --success: #15803d;
    --success-soft: #ecfdf3;
    --warn: #a65b00;
    --warn-soft: #fff8e7;
    --hover: #f0ebe6;
    --shadow: 0 1px 2px rgba(15, 45, 92, 0.06);
    --shadow-lg: 0 12px 32px rgba(15, 45, 92, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --map-land: #e6efe4;
    --map-pin: #f54a1b;
    --map-pin-deep: #d93a12;
    --map-pin-glow: rgba(245, 74, 27, 0.42);
    --map-ring-fill: rgba(15, 45, 92, 0.12);
    --map-ring-stroke: rgba(15, 45, 92, 0.45);
    --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    /* Matches .app-header logo + vertical padding (desktop). */
    --app-header-height: 4.25rem;
    --pearl-gradient:
        linear-gradient(
            135deg,
            var(--pearl-shine) 0%,
            var(--pearl) 28%,
            var(--pearl-cool) 58%,
            var(--pearl-mid) 82%,
            var(--pearl-shine) 100%
        );
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    height: 100%;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    accent-color: var(--accent);
}

a {
    color: inherit;
    text-decoration: none;
}

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

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.35rem 1.15rem;
    background: var(--pearl-gradient);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, var(--brand) 20%);
    z-index: 20;
    color: var(--brand);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
    position: relative;
}

.app-header .brand-tagline {
    color: color-mix(in srgb, var(--brand) 55%, var(--muted));
}

.app-header .auth-link,
.app-header .language-selector__toggle,
.app-header .auth-icon-btn {
    color: var(--brand);
}

.app-header .auth-link:hover,
.app-header .language-selector__toggle:hover,
.app-header .auth-icon-btn:hover {
    color: var(--brand-deep);
    background: color-mix(in srgb, var(--brand) 8%, transparent);
}

.app-header .auth-user__name {
    color: var(--brand);
}

.app-header .auth-user__role {
    color: var(--muted);
}

.app-header .token-wallet-chip {
    background: color-mix(in srgb, var(--brand) 8%, var(--pearl-shine));
    color: var(--brand);
    border: 1px solid color-mix(in srgb, var(--brand) 14%, var(--border));
}

.app-header .token-wallet-chip__label {
    color: var(--muted);
}

.app-header .language-selector__toggle {
    border-color: color-mix(in srgb, var(--brand) 18%, var(--border));
    background: color-mix(in srgb, var(--pearl-shine) 70%, transparent);
}


.app-header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.auth-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.panel-page {
    padding: 1.5rem 1.25rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.how-lobsy-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1rem;
}

.how-lobsy-step {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid color-mix(in srgb, var(--brand) 14%, var(--border));
    background: color-mix(in srgb, var(--brand) 4%, var(--surface));
}

.how-lobsy-step h2 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    color: var(--brand);
}

.how-lobsy-step p {
    margin: 0;
    line-height: 1.5;
    color: var(--text);
}

.how-lobsy-actions {
    margin-top: 1.5rem;
    align-items: center;
}

.panel-header > .period-tabs {
    margin-left: auto;
}

.panel-page h1 {
    margin: 0;
    font-size: 1.5rem;
}

.panel-page h2 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.panel-section {
    margin-top: 1.5rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.85rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-card__label {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat-card__value {
    font-size: 1.45rem;
}

@media (max-width: 1024px) {
    .stat-grid {
        grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
        gap: 0.5rem;
    }

    .stat-card {
        border-radius: 10px;
        padding: 0.55rem 0.6rem;
        gap: 0.2rem;
    }

    .stat-card__label {
        font-size: 0.65rem;
        letter-spacing: 0.02em;
        line-height: 1.2;
    }

    .stat-card__value {
        font-size: 1.05rem;
    }
}

.table-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
}

.table-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
}

.table-row:last-child {
    border-bottom: none;
}

.table-row .muted,
.muted {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
    margin-top: 0.15rem;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

/* Compact buttons inside tables, filter bars and dialogs (provider-btn defaults to width:100%) */
.inline-actions .provider-btn,
.inline-actions .login-submit,
.table-row .provider-btn,
.table-row .login-submit,
.table-row__actions .provider-btn,
.table-row__actions .login-submit,
.filter-bar .provider-btn,
.filter-bar .login-submit,
.panel-header .provider-btn {
    width: auto;
    flex: 0 0 auto;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.inline-actions .login-submit,
.table-row .login-submit {
    margin-top: 0;
}

.btn-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.7rem;
    background: var(--surface);
    font: inherit;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-compact:hover:not(:disabled) {
    background: var(--hover);
}

.btn-compact:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-compact--primary {
    border-color: transparent;
    background: var(--accent);
    color: #fff;
}

.btn-compact--primary:hover:not(:disabled) {
    background: var(--accent-hover);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--brand);
    cursor: pointer;
    flex: 0 0 auto;
    align-self: end;
}

.icon-btn:hover:not(:disabled) {
    background: var(--hover);
}

.icon-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.icon-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.detail-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.35rem 1.4rem;
    box-shadow: var(--shadow);
}

.detail-card__top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.detail-wage-panel {
    flex-shrink: 0;
    min-width: 7.5rem;
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
}

.detail-wage-panel__title {
    margin: 0 0 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.detail-wage-panel .wage-table {
    font-size: 0.82rem;
}

.detail-wage-panel .wage-table th,
.detail-wage-panel .wage-table td {
    padding: 0.12rem 0.15rem;
}

.detail-wage-panel .wage-table td {
    text-align: right;
    padding-left: 0.65rem;
}

.detail-card h1 {
    margin: 0.35rem 0 0;
}

.detail-card__body {
    margin: 1rem 0;
    line-height: 1.5;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: end;
    margin-top: 1rem;
}

.back-link {
    color: var(--muted);
    font-size: 0.88rem;
}

.vacancy-card__link {
    display: inline-block;
    margin-top: 0.65rem;
    color: var(--brand);
    font-size: 0.88rem;
    font-weight: 600;
}

.ok-hint {
    color: var(--brand);
    font-size: 0.88rem;
    margin: 0;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    color: var(--text);
    margin: 0.35rem 0;
}

.login-form select,
.login-form textarea {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 0.7rem;
    font: inherit;
    font-size: 0.95rem;
    color: var(--text);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    background: var(--surface);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.login-form textarea {
    resize: vertical;
}

.login-form input:not([type="checkbox"]):not([type="radio"]),
.profile-form input:not([type="checkbox"]):not([type="radio"]),
.profile-form select,
.profile-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.login-form input[type="checkbox"],
.login-form input[type="radio"],
.profile-form input[type="checkbox"],
.profile-form input[type="radio"] {
    width: auto;
    max-width: none;
}

@media (max-width: 900px) {
    :root {
        --app-header-height: 3.75rem;
    }

    .app-header {
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0.3rem 0.75rem;
    }

    .app-header__brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .brand__name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-header__actions {
        gap: 0.35rem;
        margin-left: auto;
    }

    .auth-user {
        display: none;
    }

    .language-selector__code,
    .language-selector__caret {
        display: none;
    }

    .language-selector__toggle {
        padding: 0.4rem;
        min-width: 2.25rem;
        justify-content: center;
    }

    .token-wallet-chip {
        padding: 0.35rem 0.5rem;
    }

    .auth-link--login {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.4rem 0.6rem;
        border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
        border-radius: 8px;
        background: color-mix(in srgb, var(--pearl-shine) 70%, transparent);
        color: var(--brand);
        font-weight: 700;
        font-size: 0.82rem;
    }

    .auth-link--login .auth-link__label {
        display: inline;
    }
}

.auth-link {
    font-size: 0.88rem;
    color: var(--muted);
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.auth-link:hover {
    color: var(--brand);
    background: var(--accent-soft);
}

.auth-link--muted {
    color: var(--muted);
}

.auth-link--login {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.auth-link__icon {
    display: inline-flex;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.auth-link__icon svg {
    width: 100%;
    height: 100%;
}

.auth-logout-form {
    display: inline;
    margin: 0;
}

.auth-link--button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    padding: 0.35rem 0.55rem;
    color: inherit;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.auth-link--button:hover {
    color: var(--brand);
    background: var(--accent-soft);
}

.auth-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--brand);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.auth-icon-btn:hover {
    background: color-mix(in srgb, var(--brand) 8%, transparent);
    border-color: color-mix(in srgb, var(--brand) 14%, var(--border));
    color: var(--brand-deep);
}

.auth-icon-btn__icon {
    display: inline-flex;
    width: 1.2rem;
    height: 1.2rem;
}

.auth-icon-btn__icon svg {
    width: 100%;
    height: 100%;
}

.auth-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.auth-user__name {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
}

.auth-user__role {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.login-page {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1rem 2rem;
    background:
        radial-gradient(ellipse at top right, color-mix(in srgb, var(--pearl-cool) 70%, transparent), transparent 48%),
        radial-gradient(ellipse at bottom left, color-mix(in srgb, var(--pearl-mid) 80%, transparent), transparent 42%),
        var(--pearl-gradient);
}

/* Full-viewport login dialog: popup on desktop, immersive on mobile */
.login-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.login-modal__backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--brand) 22%, rgba(15, 23, 42, 0.48));
    cursor: pointer;
    text-decoration: none;
}

.login-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(420px, calc(100vw - 2rem));
    max-height: min(92vh, 920px);
    overflow: auto;
    margin: 0;
    animation: login-modal-in 180ms ease-out;
}

.login-modal__dialog.login-card {
    width: min(420px, calc(100vw - 2rem));
}

.login-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.login-modal__header .login-brand {
    margin-bottom: 0.85rem;
}

.login-modal__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-top: 0.15rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: 1.35rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.login-modal__close:hover {
    background: var(--hover);
    color: var(--text);
}

.login-modal__actions {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

.login-modal__cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.login-modal__cancel:hover {
    background: var(--hover);
}

@keyframes login-modal-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 720px) {
    :root {
        --app-header-height: 3.5rem;
    }

    /* Sit below the app header so brand/title are not clipped behind it. */
    .login-modal {
        top: var(--app-header-height);
        align-items: stretch;
        justify-content: stretch;
    }

    .login-modal__backdrop {
        display: none;
    }

    .login-modal__dialog,
    .login-modal__dialog.login-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: none;
        max-height: none;
        min-height: calc(100dvh - var(--app-header-height));
        height: calc(100dvh - var(--app-header-height));
        overflow: auto;
        border-radius: 0;
        border: none;
        box-shadow: none;
        /* Higher specificity than .login-card so mobile padding wins. */
        padding: 0.85rem 1rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
        animation: none;
        background:
            radial-gradient(ellipse at top right, color-mix(in srgb, var(--pearl-cool) 70%, transparent), transparent 48%),
            radial-gradient(ellipse at bottom left, color-mix(in srgb, var(--pearl-mid) 80%, transparent), transparent 42%),
            var(--pearl-gradient),
            var(--surface);
    }

    .login-modal__header .login-brand {
        margin-bottom: 0.45rem;
    }

    .login-modal__dialog .login-brand__logo {
        width: 52px;
        height: 52px;
    }

    .login-modal__dialog .login-brand__name {
        font-size: 1.2rem;
    }

    .login-modal__dialog h1 {
        font-size: 1.25rem;
    }

    .login-modal__dialog .login-lead {
        margin-top: 0.3rem;
        font-size: 0.88rem;
    }

    .login-modal__dialog .login-providers {
        margin-top: 0.9rem;
        gap: 0.45rem;
    }

    .login-modal__dialog .provider-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .login-modal__dialog .login-divider {
        margin: 0.85rem 0 0.75rem;
    }

    .login-modal__dialog .login-register {
        margin-top: 0.9rem;
        padding-top: 0.85rem;
        gap: 0.5rem;
    }

    .login-modal__dialog .login-register__actions {
        gap: 0.5rem;
    }

    .login-modal__close {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.35rem;
    }
}

/* Extra compact login on short mobile viewports (keyboard / small phones). */
@media (max-width: 720px) and (max-height: 700px) {
    .login-modal__dialog,
    .login-modal__dialog.login-card {
        padding-top: 0.65rem;
    }

    .login-modal__dialog .login-brand__logo {
        width: 40px;
        height: 40px;
    }

    .login-modal__dialog .login-brand__name {
        font-size: 1.05rem;
    }

    .login-modal__dialog h1 {
        font-size: 1.1rem;
    }

    .login-modal__dialog .login-lead {
        font-size: 0.84rem;
    }

    .login-modal__dialog .login-providers {
        margin-top: 0.7rem;
        gap: 0.35rem;
    }

    .login-modal__dialog .provider-btn {
        padding: 0.5rem 0.75rem;
        min-height: 2.5rem;
    }

    .login-modal__actions {
        margin-top: 0.75rem;
        padding-top: 0.65rem;
    }

    .login-modal__cancel {
        min-height: 2.4rem;
    }
}

.login-card {
    width: min(420px, 100%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.6rem 1.5rem 1.35rem;
    box-shadow: var(--shadow-lg);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.login-brand__logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: transparent;
    display: block;
}

.login-brand__name {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand);
}

.login-card h1 {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

.login-lead {
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.login-error {
    margin: 0.9rem 0 0;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 0.88rem;
}

.login-providers {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 1.25rem;
}

.provider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.9rem;
    background: var(--surface);
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
}

.provider-btn:hover:not(.is-disabled) {
    background: var(--hover);
}

.provider-btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.provider-btn__icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
}

.provider-btn__icon--google {
    font-weight: 700;
    color: #4285f4;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.15rem 0 1rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.login-register {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.login-register__lead {
    margin: 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.provider-btn--register {
    background: color-mix(in srgb, var(--brand) 8%, var(--surface));
    border-color: color-mix(in srgb, var(--brand) 22%, var(--border));
    color: var(--brand);
}

.provider-btn--register:hover {
    background: color-mix(in srgb, var(--brand) 14%, var(--surface));
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-form label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.login-form input:not([type="checkbox"]):not([type="radio"]) {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 0.7rem;
    font: inherit;
    font-size: 0.95rem;
    color: var(--text);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    background: var(--surface);
}

.login-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.address-field input:focus,
.profile-form input:focus,
.profile-form select:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
    border-color: var(--accent);
}

.login-submit {
    margin-top: 0.25rem;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.login-submit:hover {
    background: var(--accent-hover);
}

.login-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.login-demo {
    margin-top: 1.1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.login-demo summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
}

.login-demo__list {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.login-demo__form {
    margin: 0;
}

.login-demo__btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.login-demo__btn:hover {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface));
}

.login-demo__role {
    font-weight: 700;
    font-size: 0.84rem;
    color: var(--brand);
}

.login-demo__email {
    font-size: 0.78rem;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.login-demo__hint {
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.login-demo ul {
    margin: 0.55rem 0 0.35rem;
    padding-left: 1.1rem;
}

.login-demo code {
    font-size: 0.8rem;
    background: var(--hover);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--brand);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    text-decoration: none;
}

.brand__logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: transparent;
    flex-shrink: 0;
    /* Pin-point logo: optical mass sits slightly above geometric center */
    transform: translateY(1px);
}

.brand__name {
    padding-right: 0.2rem;
    line-height: 1;
}

.brand__text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.75rem;
    min-width: 0;
    /* Keep wordmark optically centered with lobster body, not the pin tip */
    transform: translateY(-1px);
}

.brand:hover {
    color: var(--brand-deep);
    opacity: 0.92;
}

.brand-tagline {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .brand-tagline {
        display: none;
    }

    .brand__name {
        display: none;
    }

    .brand__logo {
        width: 44px;
        height: 44px;
    }
}

.saved-gate {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--bg);
}

.saved-gate__header {
    background: var(--brand);
    color: #fff;
    padding: 0.85rem 1rem;
    text-align: center;
}

.saved-gate__header h1 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.saved-gate__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1.25rem 2rem;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
}

.saved-gate__hero {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1.1;
    margin: 0.5rem 0 1.25rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.saved-gate__door {
    width: 70%;
    height: 85%;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, var(--brand), var(--brand-deep));
    position: relative;
    box-shadow: inset -18px 0 0 rgba(0, 0, 0, 0.12);
}

.saved-gate__sofa {
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 18%;
    height: 28%;
    border-radius: 10px 10px 4px 4px;
    background: #f5d76e;
    box-shadow: 10px 18px 0 -6px #2f9e44;
}

.saved-gate__body h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.3;
}

.saved-gate__body > p {
    margin: 0.65rem 0 1.25rem;
    color: var(--muted);
    line-height: 1.45;
}

.saved-gate__actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.saved-gate__email {
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
    background: var(--secondary);
}

.saved-gate__email:hover {
    background: var(--brand-deep);
}

.profile-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-unsubscribe {
    border-color: color-mix(in srgb, var(--danger) 22%, var(--border));
}

.profile-unsubscribe .profile-page__title {
    font-size: 1.15rem;
}

.unsubscribe-modal label {
    display: block;
    margin-top: 0.35rem;
}

.unsubscribe-modal select,
.unsubscribe-modal textarea {
    width: 100%;
    margin-top: 0.35rem;
}

.profile-page__header {
    margin: 0 -1.25rem 1rem;
}

.profile-page__title {
    margin-top: 0;
}

@media (min-width: 769px) {
    .profile-page__header {
        display: none;
    }
}


.app-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

/* Banenkaart owns its own scroll; don't clip the vacancy list inside app-main */
.app-shell:has(.jobsy-discovery) .app-main,
.app-shell:has(.funda-layout) .app-main {
    overflow: hidden;
}

/* One full Lobsy logo as watermark in each side gutter (panel pages, not discovery map) */
.lobsy-watermarks {
    display: none;
    pointer-events: none;
}

.lobsy-watermark {
    position: fixed;
    top: 50%;
    width: min(300px, calc((100vw - 1100px) / 2 - 1.5rem));
    height: min(300px, calc((100vw - 1100px) / 2 - 1.5rem));
    max-width: 42vh;
    max-height: 42vh;
    object-fit: contain;
    object-position: center;
    opacity: 0.18;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    transform: translate(-50%, -50%);
}

/* Center of the left gutter (viewport edge → content) */
.lobsy-watermark--left {
    left: calc((100vw - min(1100px, 100vw)) / 4);
}

/* Center of the right gutter */
.lobsy-watermark--right {
    left: calc(100vw - (100vw - min(1100px, 100vw)) / 4);
}

@media (min-width: 1280px) {
    .app-shell:not(:has(.jobsy-discovery)):not(:has(.funda-layout)) .lobsy-watermarks {
        display: block;
    }
}

@media (max-width: 900px) {
    .brand__logo {
        width: 48px;
        height: 48px;
    }

    .brand {
        font-size: 1.2rem;
        gap: 0.45rem;
    }
}

.jobsy-discovery,
.funda-layout {
    display: grid;
    grid-template-columns: minmax(320px, 42%) minmax(0, 58%);
    flex: 1;
    min-height: 0;
    height: 100%;
    position: relative;
}

/* Vestiging / ondernemer public page: list-first with a smaller map. */
.jobsy-discovery--branch {
    grid-template-columns: minmax(320px, 58%) minmax(240px, 42%);
    grid-template-rows: auto 1fr;
}

.jobsy-discovery--branch .jobsy-chrome--branch {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    grid-column: 1 / -1;
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

@media (min-width: 769px) {
    .jobsy-discovery--branch .jobsy-chrome__header,
    .jobsy-discovery--branch .jobsy-chrome__actions {
        display: none;
    }

    .jobsy-discovery--branch .jobsy-chrome--branch {
        padding-top: 0.35rem;
    }
}

.branch-page__intro {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.branch-page__identity {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.branch-page__logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    border-radius: 0.55rem;
    background: #fff;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.branch-page__title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--text);
}

.branch-page__address,
.branch-page__meta {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.branch-page__branches {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.branch-page__branches ul {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
}

.branch-page__branches-title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.branch-page__branches a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
}

.branch-page__branches a:hover {
    text-decoration: underline;
}

.map-pane--branch {
    min-height: 0;
}

.jobsy-discovery--branch .map-pane--branch .map-stage {
    min-height: 220px;
}

.detail-card .company-link {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.detail-card .company-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.jobsy-chrome {
    display: none;
}

.jobsy-action__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--secondary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
}

.discovery-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
}

.discovery-toolbar__address {
    flex: 1;
    min-width: 0;
}

.discovery-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    background: var(--surface);
    color: var(--secondary);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    height: 2.35rem;
}

.discovery-filter-group {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.discovery-filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0;
    background: var(--surface);
    color: var(--secondary);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.discovery-filter-clear:hover {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
    background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface));
    color: var(--brand);
}

.discovery-filter-toggle:hover,
.discovery-filter-toggle.is-active {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
    background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface));
    color: var(--brand);
}

.discovery-filter-toggle__icon {
    display: inline-flex;
    width: 1.15rem;
    height: 1.15rem;
}

.discovery-filter-toggle__icon svg {
    width: 100%;
    height: 100%;
}

.filter-bar__actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.65rem;
    padding-top: 0.15rem;
}

.filter-bar__clear {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.65rem 0.95rem;
    background: var(--surface);
    color: var(--secondary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-bar__clear:hover {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
    background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface));
    color: var(--brand);
}

.filter-bar__clear-icon {
    display: inline-flex;
    width: 1.1rem;
    height: 1.1rem;
}

.filter-bar__clear-icon svg {
    width: 100%;
    height: 100%;
}

.filter-bar__search {
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.25rem;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.filter-bar__search:hover {
    background: var(--accent-hover);
}

/* Desktop: inline filter bar only — hide mobile bottom sheet */
@media (min-width: 769px) {
    .filter-sheet-backdrop,
    .filter-sheet {
        display: none !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem 0.25rem;
}

.results-meta__count {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.results-meta__sort {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--secondary);
    font-size: 0.88rem;
    font-weight: 600;
}

.results-meta__sort .jobsy-action__icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.results-meta__sort-select {
    border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--border));
    border-radius: var(--radius-sm);
    background: var(--pearl-shine);
    color: var(--brand);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.35rem 0.55rem;
    max-width: 11rem;
    cursor: pointer;
}

.job-card {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: auto;
    min-height: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}

.job-card__media {
    position: relative;
    display: block;
    width: 100%;
    /* padding-bottom aspect ratio so CSS Grid max-content sizing gets a real height */
    height: 0;
    padding-bottom: 75%; /* 4:3 */
    flex: none;
    background:
        linear-gradient(160deg, color-mix(in srgb, var(--brand) 35%, #1a2332), color-mix(in srgb, var(--secondary) 55%, #0b1b33)),
        center / cover no-repeat;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}

.job-card__footer {
    flex: 0 0 auto;
    padding: 0.45rem 0.1rem 0.2rem;
}

.job-card__badge {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 2;
    padding: 0.2rem 0.45rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 2px;
}

.job-card__badge--soft {
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
}

.job-card__overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 1.6rem 0.7rem 0.65rem;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.88), transparent);
}

.job-card__overlay h2 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.25;
    font-weight: 700;
    color: #fff;
}

.job-card__travel {
    margin: 0.2rem 0 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.job-card__travel .lobsy-mark {
    color: var(--coral);
    flex-shrink: 0;
}

.job-card__wage {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.job-card__company {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--secondary);
}

.job-card__location {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.job-card.is-hovered .job-card__media,
.job-card:hover .job-card__media {
    outline: 2px solid var(--brand);
    outline-offset: 0;
}

.filter-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.45);
}

.filter-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    max-height: min(78vh, 560px);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: 14px 14px 0 0;
    box-shadow: var(--shadow-lg);
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom));
}

.filter-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem 0.35rem;
}

.filter-sheet__mascot {
    width: 2.35rem;
    height: 2.35rem;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--brand) 20%, transparent));
    animation: lobsy-dialog-bob 1.8s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
    .filter-sheet__mascot {
        animation: none;
    }
}

.filter-sheet__header h2 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1.05rem;
}

.filter-sheet__header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
    flex-shrink: 0;
}

.filter-sheet__header .share-modal__close {
    margin-left: 0;
    flex-shrink: 0;
}

.filter-sheet__clear-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0;
    background: var(--surface);
    color: var(--secondary);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-sheet__clear-icon:hover {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
    background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface));
    color: var(--brand);
}

.filter-sheet__clear-icon svg {
    width: 1rem;
    height: 1rem;
}

.filter-sheet__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
    padding: 0 0.85rem 0.35rem;
}

.filter-tag {
    border: none;
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
    background: var(--accent-soft);
    color: var(--secondary);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.filter-sheet__clear {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: none;
    background: transparent;
    color: var(--secondary);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.filter-sheet__clear:hover {
    color: var(--brand);
}

.filter-sheet__clear-glyph {
    display: inline-flex;
    width: 0.9rem;
    height: 0.9rem;
}

.filter-sheet__clear-glyph svg {
    width: 100%;
    height: 100%;
}

.filter-sheet__body {
    overflow-y: auto;
    padding: 0.15rem 0.85rem 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    -webkit-overflow-scrolling: touch;
}

.filter-section h3 {
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
}

.filter-section label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 600;
}

.filter-section .filter-check {
    flex-direction: row;
    align-items: center;
    margin-top: 0;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 500;
}

.filter-section select,
.filter-section input[type="number"] {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.45rem 0.55rem;
    font: inherit;
    color: var(--text);
    background: var(--surface);
}

.filter-section--hero {
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: var(--accent-soft);
}

.travel-slider input[type="range"] {
    width: 100%;
    accent-color: var(--brand);
}

.travel-slider__value {
    margin-top: 0.25rem;
    text-align: center;
    color: var(--brand);
    font-size: 0.95rem;
}

/* Dual-handle hours filter: one rail, two thumbs */
.hours-range {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    min-width: 11rem;
}

.hours-range__rail {
    position: relative;
    height: 0.35rem;
    margin: 0.85rem 0.45rem 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--border) 75%, var(--muted));
}

.hours-range__fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--hours-low, 0%);
    right: calc(100% - var(--hours-high, 100%));
    border-radius: inherit;
    background: var(--brand);
}

.hours-range__inputs {
    position: relative;
    height: 1.5rem;
    margin: -1.05rem 0 0;
}

.hours-range__thumb {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1.5rem;
    margin: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.hours-range__thumb--min {
    z-index: 3;
}

.hours-range__thumb--max,
.hours-range__thumb.is-active {
    z-index: 4;
}

.hours-range__thumb::-webkit-slider-runnable-track {
    height: 0.35rem;
    background: transparent;
    border: none;
}

.hours-range__thumb::-moz-range-track {
    height: 0.35rem;
    background: transparent;
    border: none;
}

.hours-range__thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: calc((0.35rem - 1.15rem) / 2);
    border: 2px solid var(--brand);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow);
    cursor: grab;
}

.hours-range__thumb::-moz-range-thumb {
    pointer-events: auto;
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid var(--brand);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow);
    cursor: grab;
}

.hours-range__thumb:active::-webkit-slider-thumb,
.hours-range__thumb:active::-moz-range-thumb {
    cursor: grabbing;
    background: var(--accent-soft);
}

.hours-range__value {
    margin-top: 0.15rem;
    text-align: center;
    color: var(--brand);
    font-size: 0.95rem;
}

.hours-range--compact .hours-range__value {
    font-size: 0.85rem;
}

.filter-bar .hours-range-field {
    grid-column: span 1;
    min-width: 12rem;
}

.filter-bar .hours-range-field > span {
    display: block;
    margin-bottom: 0.2rem;
}

.filter-bar .hours-range {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.profile-availability {
    grid-column: 1 / -1;
}

.filter-sheet__footer {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
    gap: 0.45rem;
    padding: 0.45rem 0.85rem 0.55rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.filter-sheet__cancel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--secondary);
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 0.75rem;
    cursor: pointer;
}

.filter-sheet__cancel:hover {
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
    color: var(--brand);
}

.filter-sheet__apply {
    margin: 0;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 0.75rem;
    background: var(--secondary);
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.filter-sheet__apply:hover {
    background: var(--brand-deep);
}

.filter-sheet .filter-branches__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 0.55rem;
}

.filter-sheet .filter-branches__options .filter-check {
    font-size: 0.8rem;
    gap: 0.35rem;
}

.filter-required select {
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}

.branch-multiselect-field {
    position: relative;
    min-width: 0;
}

.branch-multiselect {
    position: relative;
    min-width: 0;
}

.branch-multiselect__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.45rem 0.55rem;
    font: inherit;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text);
    background: var(--surface);
    cursor: pointer;
    text-align: left;
}

.branch-multiselect__trigger:hover,
.branch-multiselect.is-open .branch-multiselect__trigger {
    border-color: var(--accent);
}

.branch-multiselect__trigger:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
    border-color: var(--accent);
}

.branch-multiselect__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.branch-multiselect__caret {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1;
}

.branch-multiselect__backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: default;
}

.branch-multiselect__panel {
    position: absolute;
    top: calc(100% + 0.3rem);
    left: 0;
    right: 0;
    z-index: 45;
    max-height: min(16rem, 50vh);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.branch-multiselect__option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.45rem 0.5rem;
    border-radius: 6px;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}

.branch-multiselect__option:hover {
    background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface));
}

.branch-multiselect--sheet .branch-multiselect__panel {
    max-height: min(14rem, 40vh);
}

.filter-branches {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    border: none;
    min-width: 0;
}

.filter-branches__legend {
    padding: 0;
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.filter-branches__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

.filter-section .filter-branches__options {
    margin-top: 0.15rem;
}

.filter-branches__options .filter-check {
    text-transform: none;
    letter-spacing: normal;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
}

.vacancy-pane {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: var(--surface);
    border-right: 1px solid var(--border);
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
    align-items: start;
}

.filter-bar__address {
    grid-column: 1 / -1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.filter-bar__error {
    margin: 0.15rem 0 0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.address-field {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.45rem;
    align-items: stretch;
}

.address-field input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.45rem 0.55rem;
    font: inherit;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text);
    background: var(--surface);
}

.address-field__geo,
.address-field__clear {
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

.address-field__geo {
    width: 2.5rem;
    min-width: 2.5rem;
    padding: 0.45rem;
}

.address-field__geo-icon {
    display: inline-flex;
    line-height: 0;
}

.address-field__geo[aria-busy="true"] {
    opacity: 0.65;
}

.address-suggestions {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0.25rem;
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: 100%;
    max-height: 14rem;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.address-suggestions__item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 0.55rem 0.65rem;
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.address-suggestions__item:hover,
.address-suggestions__item:focus-visible {
    background: var(--hover);
    outline: none;
}

.address-suggestions__status {
    padding: 0.55rem 0.65rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.filter-bar label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.filter-bar input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.filter-bar select {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.45rem 0.55rem;
    font: inherit;
    color: var(--text);
    background: var(--surface);
}

.vacancy-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.vacancy-list.vacancy-list--cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    align-content: start;
    grid-auto-rows: max-content;
}

.vacancy-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.vacancy-card:hover,
.vacancy-card.is-hovered {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.vacancy-card-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.vacancy-card h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
}

.wage {
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
}

.wage-table {
    border-collapse: collapse;
    font-size: 0.75rem;
    line-height: 1.25;
    color: var(--brand);
    margin: 0;
}

.wage-table th,
.wage-table td {
    padding: 0.05rem 0.25rem;
    text-align: left;
    font-weight: 600;
}

.wage-table th {
    color: var(--muted);
    font-weight: 500;
    padding-right: 0.45rem;
}

.wage-table td {
    white-space: nowrap;
    font-weight: 700;
}

.map-popup__wage-table {
    border-collapse: collapse;
    font-size: 0.78rem;
    margin: 0;
    width: 100%;
    color: var(--brand);
}

.map-popup__wage-table th,
.map-popup__wage-table td {
    padding: 0.18rem 0.2rem;
    text-align: left;
}

.map-popup__wage-table th {
    color: var(--muted);
    font-weight: 500;
    padding-right: 0.55rem;
}

.map-popup__wage-table td {
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
}

.company {
    margin: 0.35rem 0 0;
    font-weight: 600;
}

.address,
.travel-hint {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.travel-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
}

.travel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    width: fit-content;
}

.travel-badge--soft {
    background: var(--accent-soft);
    color: var(--brand);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.travel-hint .travel-badge {
    margin-top: 0.15rem;
}

.lobsy-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    color: var(--coral);
}

.lobsy-mark svg {
    display: block;
}

/* Brand lobster mascot — gentle float when animated */
.lobsy-logo {
    display: block;
    position: relative;
    line-height: 0;
    flex-shrink: 0;
    background: transparent;
    width: 56px;
    height: 56px;
}

.lobsy-logo__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    user-select: none;
    -webkit-user-drag: none;
}

.lobsy-logo--animate .lobsy-logo__img {
    animation: lobsy-float 4.8s ease-in-out infinite;
    transform-origin: 50% 70%;
}

@keyframes lobsy-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    40% {
        transform: translateY(-2px) rotate(-1.5deg);
    }
    70% {
        transform: translateY(1px) rotate(1deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lobsy-logo--animate .lobsy-logo__img {
        animation: none !important;
    }
}

.lobsy-proximity {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding: 0.85rem 0.95rem;
    border-radius: var(--radius);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 70%, var(--surface)), var(--surface));
}

.lobsy-proximity__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pearl-gradient);
    color: var(--coral);
    border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--border));
    box-shadow: 0 4px 12px rgba(15, 45, 92, 0.1);
}

.lobsy-proximity__body {
    min-width: 0;
    flex: 1;
}

.lobsy-proximity__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.lobsy-proximity__meta {
    margin: 0.45rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.lobsy-proximity__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
}

.lobsy-proximity__chip--soft {
    background: color-mix(in srgb, var(--brand) 8%, var(--surface));
    color: var(--secondary);
    border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--border));
    font-weight: 600;
}

.vacancy-location {
    margin-top: 1rem;
}

.vacancy-location__map-wrap {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--map-land, #e8eef5);
}

/* Must beat later .job-map (relative/height:auto) used on banenkaart + highlight carousel. */
.vacancy-location__map.job-map,
.vacancy-location__map,
.vacancy-location__map.vacancy-detail-map {
    position: absolute !important;
    inset: 0;
    flex: none;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    z-index: 1;
    background: var(--map-land, #e8eef5);
}

.vacancy-detail-marker {
    background: transparent;
    border: none;
}

.vacancy-detail-marker__img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(245, 74, 27, 0.35)) drop-shadow(0 2px 4px rgba(0, 40, 80, 0.2));
    pointer-events: none;
    user-select: none;
    transform-origin: 50% 90%;
    transition: transform 160ms ease, filter 160ms ease;
}

.vacancy-detail-marker:hover .vacancy-detail-marker__img,
.vacancy-detail-marker:focus-within .vacancy-detail-marker__img {
    transform: scale(1.08);
    filter: drop-shadow(0 5px 12px rgba(245, 74, 27, 0.45)) drop-shadow(0 2px 4px rgba(0, 40, 80, 0.22));
}

.vacancy-location__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.vacancy-location__transport {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.vacancy-location__transport select {
    min-width: 8.5rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

.vacancy-location__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vacancy-location__btn {
    min-height: 2.35rem;
}

@media (max-width: 560px) {
    .vacancy-location__map-wrap {
        height: 200px;
    }

    .vacancy-location__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .vacancy-location__buttons {
        width: 100%;
    }

    .vacancy-location__btn {
        flex: 1 1 auto;
    }
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: var(--hover);
    color: var(--muted);
}

.badge--worktype {
    background: color-mix(in srgb, var(--accent) 18%, white);
    color: var(--brand);
    font-weight: 600;
}

.worktype-fieldset {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.65rem 0.75rem 0.75rem;
    margin: 0;
}

.worktype-fieldset legend {
    padding: 0 0.25rem;
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.worktype-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.75rem;
}

.checkbox-row.is-disabled {
    opacity: 0.45;
}

.map-pane {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    height: 100%;
    background: var(--map-land);
}

.map-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    width: 100%;
}

.map-pane:not(:has(.highlight-carousel)) .map-stage {
    position: absolute;
    inset: 0;
    flex: none;
    height: 100%;
}

.job-map {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: auto;
    z-index: 1;
    background: var(--map-land);
}

.map-stage .job-map {
    position: absolute;
    inset: 0;
    flex: none;
    height: 100%;
}

/*
 * Vacancy detail map must fill .vacancy-location__map-wrap.
 * Placed after .job-map so shared banenkaart sizing never collapses this container.
 */
.vacancy-location__map-wrap .vacancy-detail-map,
.vacancy-location__map-wrap .vacancy-location__map {
    position: absolute !important;
    inset: 0 !important;
    flex: none !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
}

/* Let clicks beside a popup hit the map (pane can grow with transforms). */
.job-map .leaflet-popup-pane {
    pointer-events: none;
}

.job-map .leaflet-popup-pane .leaflet-popup {
    pointer-events: auto;
}

/* Carto Voyager already has vivid land/water/roads — keep a light polish only. */
.job-map .leaflet-tile-pane,
.vacancy-detail-map .leaflet-tile-pane {
    filter: saturate(1.08) contrast(1.02) brightness(1.01);
}

.job-map .leaflet-control-zoom a,
.job-map .leaflet-bar a,
.vacancy-detail-map .leaflet-control-zoom a,
.vacancy-detail-map .leaflet-bar a {
    color: var(--brand) !important;
    border-bottom-color: var(--border) !important;
    background: var(--surface) !important;
}

.job-map .leaflet-control-zoom a:hover,
.job-map .leaflet-bar a:hover,
.vacancy-detail-map .leaflet-control-zoom a:hover,
.vacancy-detail-map .leaflet-bar a:hover {
    background: var(--accent-soft) !important;
    color: var(--brand) !important;
}

.job-map-locate {
    margin-bottom: 18px !important;
    border: none !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
    border-radius: 2px;
    overflow: hidden;
}

.job-map-locate__btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    line-height: 1 !important;
    color: #5f6368 !important;
    background: #fff !important;
    border: none !important;
    border-bottom: none !important;
}

.job-map-locate__btn:hover {
    background: #f8f9fa !important;
    color: var(--brand) !important;
}

.job-map-locate__btn.is-active {
    color: var(--accent) !important;
}

.job-map-locate__btn.is-busy {
    opacity: 0.55;
    pointer-events: none;
}

.job-map-locate__icon {
    display: block;
}

.job-map .leaflet-control-attribution {
    background: color-mix(in srgb, var(--surface) 88%, transparent) !important;
    color: var(--muted);
    font-size: 10px;
}

.job-marker {
    background: transparent;
    border: none;
    cursor: pointer;
}

.job-marker__pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, #e8a317 75%, #fff);
    background: color-mix(in srgb, #e8a317 18%, transparent);
    animation: job-marker-pulse 2.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.job-marker__glyph {
    position: relative;
    z-index: 1;
}

.job-marker--featured .job-marker__glyph {
    background: linear-gradient(145deg, #f0b429, #d4890a);
    box-shadow:
        0 0 0 3px color-mix(in srgb, #e8a317 28%, transparent),
        0 4px 14px rgba(212, 137, 10, 0.35);
}

.leaflet-marker-icon.job-marker--featured {
    z-index: 650 !important;
}

.job-cluster--featured div {
    background: linear-gradient(145deg, #f0b429, #d4890a);
    box-shadow:
        0 0 0 3px color-mix(in srgb, #e8a317 30%, transparent),
        0 4px 14px rgba(212, 137, 10, 0.35);
}

.map-popup__badges {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.32rem;
    max-width: min(14.5rem, calc(100% - 1.1rem));
    pointer-events: none;
}

/* Type/category lines moved to media badges — hide leftovers everywhere */
.map-popup__category,
.map-popup__senior65 {
    display: none !important;
}

@keyframes job-marker-pulse {
    0%,
    100% {
        transform: scale(0.92);
        opacity: 0.55;
    }
    50% {
        transform: scale(1.28);
        opacity: 0.12;
    }
}

@media (prefers-reduced-motion: reduce) {
    .job-marker__pulse {
        animation: none;
        opacity: 0.35;
    }
}

/* Funda-style highlighted vacancies carousel above the map / mobile list */
.highlight-carousel {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.65rem 0.75rem 0.35rem;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, #e8a317 10%, var(--surface)) 0%,
        color-mix(in srgb, var(--surface) 92%, transparent) 100%
    );
    border-bottom: 1px solid color-mix(in srgb, #e8a317 22%, var(--border));
}

/* List-pane carousel is mobile-only; map carousel covers desktop + mobile map. */
.highlight-carousel--list {
    display: none;
}

.highlight-carousel__title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, #a87008 70%, var(--brand));
}

.highlight-carousel__track {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.15rem 0.1rem 0.45rem;
    scrollbar-width: thin;
}

.highlight-carousel__card {
    flex: 0 0 min(220px, 72vw);
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0.55rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border: 1px solid color-mix(in srgb, #e8a317 28%, var(--border));
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 2px 10px color-mix(in srgb, #e8a317 12%, transparent);
    cursor: pointer;
    text-align: left;
    color: inherit;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.highlight-carousel__card:hover,
.highlight-carousel__card.is-active {
    border-color: #d4890a;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px color-mix(in srgb, #e8a317 22%, transparent);
}

.highlight-carousel__media {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}

.highlight-carousel__media--logo {
    object-fit: contain;
    padding: 0.2rem;
}

.highlight-carousel__media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--brand);
    font-size: 0.95rem;
}

/* Back-compat if older markup still uses __logo */
.highlight-carousel__logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}

.highlight-carousel__logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--brand);
    font-size: 0.95rem;
}

.highlight-carousel__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.highlight-carousel__badge {
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: linear-gradient(145deg, #f0b429, #d4890a);
    color: #1a1204;
}

.highlight-carousel__title-text {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--brand);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.highlight-carousel__meta,
.highlight-carousel__travel {
    margin: 0;
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.highlight-carousel__travel {
    color: color-mix(in srgb, #a87008 55%, var(--muted));
    font-weight: 600;
}

.job-marker__pin {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0 auto;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--map-pin);
    border: 3px solid #fff;
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--map-pin) 22%, transparent),
        0 4px 14px var(--map-pin-glow);
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.job-marker__glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--map-pin);
    color: #fff;
    border: 3px solid #fff;
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--map-pin) 22%, transparent),
        0 4px 14px var(--map-pin-glow);
    font-size: 0.95rem;
    line-height: 1;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
    .job-marker:hover .job-marker__glyph {
        transform: scale(1.12);
        background: var(--map-pin-deep);
        box-shadow:
            0 0 0 5px color-mix(in srgb, var(--map-pin) 28%, transparent),
            0 6px 18px var(--map-pin-glow);
    }

    .job-marker:hover .job-marker__pin {
        transform: rotate(-45deg) scale(1.12);
        background: var(--map-pin-deep);
        box-shadow:
            0 0 0 5px color-mix(in srgb, var(--map-pin) 28%, transparent),
            0 6px 18px var(--map-pin-glow);
    }
}

.job-marker:active .job-marker__glyph,
.job-marker--active .job-marker__glyph {
    transform: scale(1.14);
    background: var(--map-pin-deep);
    box-shadow:
        0 0 0 6px color-mix(in srgb, var(--map-pin) 32%, transparent),
        0 8px 20px var(--map-pin-glow);
}

.job-marker:active .job-marker__pin,
.job-marker--active .job-marker__pin {
    transform: rotate(-45deg) scale(1.14);
    background: var(--map-pin-deep);
    box-shadow:
        0 0 0 6px color-mix(in srgb, var(--map-pin) 32%, transparent),
        0 8px 20px var(--map-pin-glow);
}

.job-marker__glyph svg {
    width: 16px;
    height: 16px;
}

.job-cluster {
    background: transparent;
    border: none;
    cursor: pointer;
}

.job-cluster div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--map-pin);
    color: #fff;
    font-weight: 700;
    font-family: var(--font);
    border: 3px solid #fff;
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--map-pin) 22%, transparent),
        0 5px 16px var(--map-pin-glow);
    transform: scale(1);
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    will-change: transform;
}

.job-cluster--sm div {
    font-size: 0.95rem;
}

.job-cluster--md div {
    font-size: 1.05rem;
    background: color-mix(in srgb, var(--map-pin) 88%, #000);
}

.job-cluster--lg div {
    font-size: 1.15rem;
    background: color-mix(in srgb, var(--map-pin) 72%, #000);
}

@media (hover: hover) and (pointer: fine) {
    .job-cluster:hover div {
        transform: scale(1.1);
        box-shadow:
            0 0 0 5px color-mix(in srgb, var(--map-pin) 28%, transparent),
            0 8px 20px var(--map-pin-glow);
    }
}

.job-cluster:active div {
    transform: scale(1.06);
}

.leaflet-marker-icon.job-marker:hover,
.leaflet-marker-icon.job-marker--active,
.leaflet-marker-icon.job-cluster:hover {
    z-index: 1200 !important;
}

@media (prefers-reduced-motion: reduce) {
    .job-marker__glyph,
    .job-marker__pin,
    .job-cluster div,
    .vacancy-detail-marker__img {
        transition: none;
    }
}

.travel-ring-label {
    background: transparent !important;
    border: none !important;
}

.travel-ring-label span {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    color: var(--brand);
    font-size: 0.68rem;
    font-weight: 700;
    font-family: var(--font);
    white-space: nowrap;
    box-shadow: var(--shadow);
}

.leaflet-popup.job-map-popup {
    overflow: visible;
    width: 520px;
    max-width: min(520px, calc(100vw - 1.5rem));
}

.leaflet-popup.job-map-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    width: 100%;
    max-width: 100%;
}

.leaflet-popup.job-map-popup .leaflet-popup-content {
    margin: 0;
    min-width: 0 !important;
    width: 100% !important;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    overflow: visible;
}

.leaflet-popup.job-map-popup--cluster .leaflet-popup-content {
    display: flex;
    flex-direction: column;
}

.leaflet-popup.job-map-popup .leaflet-popup-tip {
    box-shadow: none;
    background: var(--surface);
}

.leaflet-popup.job-map-popup a.leaflet-popup-close-button {
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
    color: #fff;
    background: var(--brand);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(15, 45, 92, 0.25);
    z-index: 30;
}

.map-popup {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    max-width: 100%;
    font-family: var(--font);
    color: var(--text);
}

.map-popup__main {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 252px;
    height: auto;
    min-width: 0;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.map-popup__media {
    position: relative;
    flex: 0 0 200px;
    width: 200px;
    align-self: stretch;
    min-height: 252px;
    height: auto;
    background: linear-gradient(160deg, var(--accent-soft), color-mix(in srgb, var(--brand) 28%, white));
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.map-popup__media--logo-only {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-popup__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-popup__media-logo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: var(--surface);
    object-fit: contain;
    padding: 8px;
    box-shadow: 0 2px 12px rgba(16, 24, 40, 0.12);
}

.map-popup__badge {
    position: static;
    display: inline-block;
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    padding: 0.28rem 0.55rem;
    background: var(--coral);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    border-radius: 4px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.18);
}

.map-popup__badge.map-popup__badge--featured {
    background: linear-gradient(145deg, #f0b429, #d4890a);
    color: #1a1204;
}

.map-popup__badge.map-popup__badge--type {
    background: var(--badge-color, #64748b);
    color: #fff;
    box-shadow: 0 1px 4px color-mix(in srgb, var(--badge-color, #64748b) 35%, transparent);
}

.map-popup__badge.map-popup__badge--soft {
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(15, 45, 92, 0.12);
}

.map-popup__badges .map-popup__badge {
    position: static;
}

.map-popup__body {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 252px;
    height: auto;
    padding: 0.75rem 0.95rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    overflow: hidden;
}

/* Orange € control — parked next to Leaflet close via JS */
.leaflet-popup.job-map-popup > .map-popup__wage-info,
.map-popup__wage-info {
    position: absolute;
    top: -10px;
    right: 26px;
    z-index: 31;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: var(--map-pin, var(--coral));
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--map-pin-glow, rgba(245, 74, 27, 0.42));
}

.leaflet-popup.job-map-popup--cluster > .map-popup__wage-info {
    top: 0;
    right: 36px;
}

.leaflet-popup.job-map-popup > .map-popup__wage-info:hover,
.leaflet-popup.job-map-popup > .map-popup__wage-info.is-open,
.map-popup__wage-info:hover,
.map-popup__wage-info.is-open {
    background: var(--map-pin-deep, var(--coral-deep));
    color: #fff;
}

.leaflet-popup.job-map-popup > .map-popup__wage-popover,
.map-popup__wage-popover {
    position: absolute;
    top: 1.55rem;
    right: -10px;
    z-index: 32;
    min-width: 8.5rem;
    max-width: min(12rem, calc(100% - 1.5rem));
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.leaflet-popup.job-map-popup--cluster > .map-popup__wage-popover {
    top: 2.4rem;
    right: 0;
}

.map-popup__wage-popover[hidden] {
    display: none !important;
}

.map-popup__wage-popover-title {
    margin: 0 0 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.map-popup__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 0;
}

.map-popup__title {
    margin: 0;
    width: 100%;
    min-width: 0;
    min-height: 0;
    font-size: 1.08rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--brand-deep) !important;
    text-decoration: none !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.map-popup__title:hover,
.map-popup__title:focus {
    color: var(--brand) !important;
    text-decoration: underline !important;
}

.map-popup__wage {
    margin: 0;
    flex-shrink: 0;
    min-height: 1.45rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.map-popup__wage-unit {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
}

.map-popup__wage--masked {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    max-width: none;
    text-align: left;
    line-height: 1.3;
}

.map-popup__wage--empty {
    visibility: hidden;
}

.map-popup__address {
    margin: 0;
    min-height: 1.15rem;
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.map-popup__address--empty {
    visibility: hidden;
}

.map-popup__travel {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0.05rem 0 0;
    min-height: 1.15rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.map-popup__travel .map-popup__spec-icon {
    flex-shrink: 0;
    color: var(--brand);
}

.map-popup__travel--empty {
    visibility: hidden;
}

.map-popup__specs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem 0.75rem;
    margin-top: 0.05rem;
    min-height: 1.15rem;
    color: var(--muted);
    overflow: hidden;
    flex-shrink: 1;
}

.map-popup__specs--empty {
    visibility: hidden;
}

.map-popup__spec {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--muted);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-popup__spec-icon {
    flex-shrink: 0;
    color: var(--brand);
}

.map-popup__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 0.45rem;
    min-height: 2.6rem;
    flex-shrink: 0;
}

.map-popup__footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.1rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.map-popup__offered-by {
    margin: 0;
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.map-popup__company {
    margin: 0;
    min-width: 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--brand) !important;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-popup__company:hover,
.map-popup__company:focus {
    text-decoration: underline !important;
}

.map-popup__logo {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--surface);
    object-fit: contain;
    padding: 2px;
}

.map-popup__apply {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.55rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--map-pin, var(--coral));
    color: #fff !important;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 2px 8px var(--map-pin-glow, rgba(245, 74, 27, 0.35));
    z-index: 2;
}

a.map-popup__apply.map-popup__cta {
    color: #fff !important;
    text-decoration: none !important;
}

.map-popup__apply:hover,
.map-popup__apply:focus,
.map-popup__apply:visited,
a.map-popup__apply.map-popup__cta:hover,
a.map-popup__apply.map-popup__cta:focus,
a.map-popup__apply.map-popup__cta:visited {
    background: var(--map-pin-deep, var(--coral-deep));
    color: #fff !important;
    text-decoration: none !important;
}

.state-message {
    padding: 1.25rem;
    color: var(--muted);
}

.state-message.error {
    color: var(--danger);
}

.mobile-toggle {
    display: none;
}

@media (max-width: 768px) {
    .leaflet-popup.job-map-popup {
        width: min(340px, calc(100vw - 1.5rem));
        max-width: calc(100vw - 1.5rem);
    }

    .leaflet-popup.job-map-popup .leaflet-popup-content {
        max-width: none;
    }

    /* Funda-style: square brand close button outside the card (top-right) */
    .leaflet-popup.job-map-popup a.leaflet-popup-close-button {
        top: -12px !important;
        right: -10px !important;
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        line-height: 32px !important;
        text-align: center !important;
        color: #fff !important;
        background: var(--brand) !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 8px rgba(15, 45, 92, 0.28);
        z-index: 30 !important;
    }

    .leaflet-popup.job-map-popup > .map-popup__wage-info {
        top: -12px;
        right: 30px;
        width: 32px;
        height: 32px;
        font-size: 1.05rem;
    }

    .leaflet-popup.job-map-popup--cluster > .map-popup__wage-info {
        top: 0;
        right: 40px;
    }

    .leaflet-popup.job-map-popup > .map-popup__wage-popover {
        top: 1.7rem;
        right: -10px;
    }

    /* Compact horizontal card — keep title/address/travel + Solliciteer visible */
    .map-popup__main {
        flex-direction: row;
        height: auto;
        min-height: 168px;
        max-height: min(52vh, 280px);
    }

    .map-popup__media {
        flex: 0 0 96px;
        width: 96px;
        align-self: stretch;
        height: auto;
        min-height: 168px;
    }

    .map-popup__media--logo-only {
        height: auto;
        min-height: 168px;
    }

    .map-popup__media-logo {
        width: 40px;
        height: 40px;
    }

    .map-popup__badges {
        top: 0.4rem;
        left: 0.4rem;
        gap: 0.22rem;
        max-width: min(12.5rem, calc(100% - 0.8rem));
    }

    .map-popup__badge {
        font-size: 0.66rem;
        padding: 0.2rem 0.42rem;
        line-height: 1.2;
    }

    .map-popup__body {
        flex: 1 1 auto;
        height: auto;
        min-height: 168px;
        max-height: min(52vh, 280px);
        padding: 0.45rem 0.55rem 0.4rem;
        gap: 0.12rem;
        overflow: hidden;
    }

    .map-popup__header {
        gap: 0.08rem;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .map-popup__title {
        min-height: 0;
        max-height: 2.6rem;
        font-size: 0.9rem;
        line-height: 1.2;
        font-weight: 800;
        -webkit-line-clamp: 2;
        flex-shrink: 1;
    }

    .map-popup__category,
    .map-popup__senior65,
    .map-popup__status {
        display: none;
    }

    .map-popup__address {
        min-height: 0;
        font-size: 0.72rem;
        -webkit-line-clamp: 1;
        flex-shrink: 0;
    }

    .map-popup__travel {
        min-height: 0;
        font-size: 0.72rem;
        flex-shrink: 0;
    }

    .map-popup__wage {
        min-height: 0;
        font-size: 0.86rem;
        flex-shrink: 0;
    }

    .map-popup__wage-unit {
        font-size: 0.68rem;
    }

    .map-popup__specs {
        display: none;
    }

    .map-popup__footer {
        min-height: 2rem;
        padding-top: 0.2rem;
        gap: 0.4rem;
        flex-shrink: 0;
        margin-top: auto;
        align-items: center;
    }

    .map-popup__footer-meta {
        min-width: 0;
        flex: 1 1 auto;
    }

    .map-popup__company {
        font-size: 0.72rem;
    }

    .map-popup__offered-by {
        display: none;
    }

    .map-popup__logo {
        width: 26px;
        height: 26px;
    }

    .map-popup__apply {
        flex: 0 0 auto;
        padding: 0.4rem 0.7rem;
        font-size: 0.76rem;
        white-space: nowrap;
    }

    .map-popup__address--empty,
    .map-popup__wage--empty,
    .map-popup__travel--empty,
    .map-popup__specs--empty {
        display: none;
    }

    .app-shell:has(.jobsy-discovery) .app-header,
    .app-shell:has(.jobsy-discovery) .app-footer {
        display: none;
    }

    .app-shell:has(.jobsy-discovery) .app-main {
        padding-bottom: 4.75rem;
    }

    .jobsy-discovery,
    .funda-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .jobsy-chrome {
        display: block;
        grid-column: 1;
        grid-row: 1;
        z-index: 15;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
    }

    .jobsy-chrome__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.55rem 0.85rem 0.35rem;
        background: var(--pearl-gradient);
        border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, var(--brand) 20%);
    }

    .jobsy-chrome__header-actions {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        flex-shrink: 0;
        margin-left: auto;
    }

    .jobsy-chrome__header-actions .language-selector__code,
    .jobsy-chrome__header-actions .language-selector__caret {
        display: none;
    }

    .jobsy-chrome__header-actions .language-selector__toggle {
        padding: 0.4rem;
        min-width: 2.25rem;
        justify-content: center;
    }

    .jobsy-chrome__header-actions .auth-link--login {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.4rem 0.65rem;
        border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
        border-radius: 8px;
        background: color-mix(in srgb, var(--pearl-shine) 70%, transparent);
        color: var(--brand);
        font-weight: 700;
        font-size: 0.82rem;
    }

    .jobsy-chrome__header-actions .auth-user {
        display: none;
    }

    .jobsy-logo {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        line-height: 1;
        text-decoration: none;
    }

    .jobsy-logo__img {
        width: 48px;
        height: 48px;
        object-fit: contain;
        object-position: center;
        display: block;
        background: transparent;
        flex-shrink: 0;
        transform: translateY(1px);
    }

    .jobsy-logo__mark {
        display: block;
        padding: 0;
        border-radius: 0;
        background: transparent;
        color: var(--brand);
        font-weight: 800;
        font-size: 1.2rem;
        letter-spacing: -0.02em;
        line-height: 1;
        text-shadow: none;
        transform: translateY(-1px);
    }

    .jobsy-chrome__search {
        position: relative;
        padding: 0.55rem 0.75rem 0.35rem;
        background: var(--pearl-gradient);
    }

    .jobsy-search {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.45rem;
    }

    .jobsy-search--with-clear {
        grid-template-columns: 1fr auto auto;
    }

    .jobsy-search input {
        width: 100%;
        border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--border));
        border-radius: 8px;
        padding: 0.7rem 0.8rem;
        font: inherit;
        background: var(--pearl-shine);
        color: var(--text);
    }

    .jobsy-search__clear {
        border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--border));
        border-radius: 8px;
        padding: 0 0.75rem;
        background: var(--pearl-shine);
        color: var(--secondary);
        font: inherit;
        font-size: 0.82rem;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
    }

    .jobsy-search__btn {
        width: 2.75rem;
        height: 2.75rem;
        border: none;
        border-radius: 8px;
        background: var(--brand);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .jobsy-search__btn:hover {
        background: var(--accent-hover);
    }

    .jobsy-chrome__actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        border-top: 1px solid var(--border);
        background: var(--surface);
    }

    .jobsy-chrome__actions--with-clear {
        grid-template-columns: repeat(4, 1fr);
    }

    .jobsy-action {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        padding: 0.7rem 0.35rem;
        border: none;
        border-right: 1px solid var(--border);
        background: transparent;
        color: var(--secondary);
        font: inherit;
        font-size: 0.82rem;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
    }

    .jobsy-action:last-child {
        border-right: none;
    }

    .jobsy-action--clear {
        color: var(--brand);
    }

    .jobsy-action.is-active {
        color: var(--brand);
        background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
    }

    .jobsy-action__icon {
        display: inline-flex;
        width: 1.15rem;
        height: 1.15rem;
    }

    .jobsy-action__icon svg {
        width: 100%;
        height: 100%;
    }

    .jobsy-chrome .address-suggestions {
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
    }

    .vacancy-pane,
    .map-pane {
        grid-column: 1;
        grid-row: 2;
        height: 100%;
        min-height: 0;
    }

    .jobsy-discovery.show-list .map-pane,
    .funda-layout.show-list .map-pane {
        visibility: hidden;
        pointer-events: none;
    }

    .jobsy-discovery.show-map .vacancy-pane,
    .funda-layout.show-map .vacancy-pane {
        visibility: hidden;
        pointer-events: none;
    }

    .jobsy-discovery.show-list .highlight-carousel--list {
        display: flex;
    }

    .filter-bar--desktop {
        display: none;
    }

    .discovery-toolbar--desktop {
        display: none;
    }

    .vacancy-list--cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
        padding: 0.45rem;
    }

    .job-card__media {
        padding-bottom: 68%;
    }

    .job-card__overlay {
        padding: 1.1rem 0.45rem 0.4rem;
    }

    .job-card__overlay h2 {
        font-size: 0.82rem;
        line-height: 1.2;
    }

    .job-card__travel {
        font-size: 0.72rem;
    }

    .job-card__wage {
        font-size: 0.78rem;
    }

    .job-card__footer {
        padding: 0.3rem 0.05rem 0.05rem;
    }

    .job-card__company,
    .job-card__location {
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .job-card__badge {
        top: 0.35rem;
        left: 0.35rem;
        padding: 0.12rem 0.35rem;
        font-size: 0.64rem;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .address-field {
        grid-template-columns: 1fr;
    }

    .mobile-toggle {
        display: none;
    }

    .bottom-nav {
        justify-content: space-around;
        gap: 0;
        padding: 0.35rem 0.5rem;
        padding-bottom: max(0.35rem, env(safe-area-inset-bottom));
        overflow: hidden;
    }

    .bottom-nav__item {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        padding: 0.45rem 0.25rem;
        border-radius: 0;
        color: var(--muted);
        background: transparent;
    }

    .bottom-nav__item:hover {
        background: transparent;
        color: var(--text);
    }

    .bottom-nav__item.is-active {
        background: transparent;
        color: var(--brand);
    }

    .bottom-nav__label {
        display: block;
        font-size: 0.68rem;
        -webkit-line-clamp: 1;
    }
}

.app-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.page-help {
    position: relative;
    flex-shrink: 0;
}

.page-help__btn {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    border: 1.5px solid color-mix(in srgb, var(--border) 70%, var(--brand) 30%);
    background: color-mix(in srgb, var(--surface) 88%, var(--pearl-cool) 12%);
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.88rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.page-help__btn:hover,
.page-help__btn.is-open {
    border-color: var(--brand);
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}

.page-help__panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 80;
    width: min(26rem, calc(100vw - 1.5rem));
    max-height: min(70vh, 32rem);
    overflow-y: auto;
    padding: 0.85rem 0.95rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}

.page-help__panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.page-help__panel-head strong {
    font-size: 0.98rem;
    line-height: 1.3;
    color: var(--brand);
}

.page-help__close {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.15rem;
}

.page-help__close:hover {
    color: var(--text);
}

.page-help__list {
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.page-help__list dt {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.page-help__list dd {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text);
}

@media (max-width: 900px) {
    .page-help__panel {
        position: fixed;
        top: auto;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
        bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
        max-height: min(70vh, 28rem);
        overflow: auto;
    }
}

.language-selector {
    position: relative;
}

.language-selector__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
}

.language-selector__toggle:hover {
    background: var(--hover);
}

.language-selector__flag {
    display: inline-block;
    width: 1.15rem;
    height: 0.85rem;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--border) 70%, transparent);
    flex-shrink: 0;
}

.language-selector__code {
    letter-spacing: 0.02em;
    color: var(--muted);
}

.language-selector__caret {
    font-size: 0.7rem;
    color: var(--muted);
}

.language-selector__menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 40;
    min-width: 12rem;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

html[dir="rtl"] .language-selector__menu {
    right: auto;
    left: 0;
}

.language-selector__option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.55rem;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.86rem;
    text-align: start;
    cursor: pointer;
}

.language-selector__option:hover,
.language-selector__option.is-active {
    background: var(--accent-soft);
    color: var(--brand);
}

.language-selector__name {
    flex: 1;
}

.token-wallet-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.token-wallet-chip__icon {
    opacity: 0.85;
}

.token-wallet-chip__label {
    color: var(--muted);
    font-weight: 500;
}

.stat-card--link {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.stat-card--link:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.placeholder-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    color: var(--muted);
}

.panel-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.raamflyer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
}

.raamflyer-actions .login-submit {
    width: auto;
    min-height: 2.4rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
}

.raamflyer-actions .login-submit--secondary {
    background: transparent;
    color: var(--brand-navy, #0f2d5c);
    border: 1px solid color-mix(in srgb, var(--brand-navy, #0f2d5c) 35%, transparent);
}

.raamflyer-scope {
    display: inline-flex;
    border: 1px solid color-mix(in srgb, var(--brand-navy, #0f2d5c) 22%, transparent);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.raamflyer-scope__btn {
    border: 0;
    background: transparent;
    color: var(--brand-navy, #0f2d5c);
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
    cursor: pointer;
    min-height: 2.4rem;
}

.raamflyer-scope__btn.is-active {
    background: var(--brand-navy, #0f2d5c);
    color: #fff;
}

.raamflyer-branch select,
.raamflyer-format select {
    min-height: 2.4rem;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--brand-navy, #0f2d5c) 22%, transparent);
    padding: 0.35rem 0.55rem;
    background: #fff;
    max-width: 14rem;
}

.raamflyer-format select {
    max-width: 5rem;
}

.raamflyer-error {
    flex-basis: 100%;
    margin: 0;
    font-size: 0.85rem;
}

.table-row__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.vacancy-manage-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem 1rem;
    align-items: center;
}

.vacancy-manage-row__main {
    min-width: 0;
}

.vacancy-manage-row__title {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.vacancy-manage-row__actions {
    justify-content: flex-end;
}

.application-row {
    align-items: flex-start;
}

.application-row__link {
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.application-row__link:hover strong {
    text-decoration: underline;
}

.application-row__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    flex-shrink: 0;
}

.profile-roles--wide {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.profile-roles--wide label {
    text-transform: none;
}

.login-form .profile-roles label {
    flex-direction: row;
    align-items: center;
}

a.icon-btn {
    text-decoration: none;
}

@media (max-width: 640px) {
    .vacancy-manage-row {
        grid-template-columns: 1fr;
    }

    .vacancy-manage-row__title {
        font-size: 1.12rem;
    }

    .vacancy-manage-row__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .application-row {
        flex-wrap: wrap;
    }

    .application-row__meta {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.vacancy-card__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.65rem;
}

.vacancy-card__link--primary {
    color: var(--accent);
    font-weight: 700;
}

.vacancy-card__link--primary:hover {
    color: var(--accent-deep);
}

.engagement-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.engagement-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

a.engagement-btn {
    text-decoration: none;
}

.engagement-btn:hover {
    background: var(--hover);
    border-color: var(--accent);
}

.detail-card__header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.detail-card__header-row .back-link {
    margin-bottom: 0.35rem;
}

.detail-engagement-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
    margin-left: auto;
}

.engagement-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
    max-width: 1.75rem;
    max-height: 1.75rem;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    text-decoration: none;
    line-height: 0;
    flex: 0 0 1.75rem;
}

.engagement-icon-btn:hover {
    background: var(--hover);
    color: var(--brand);
}

.engagement-icon-btn.is-liked {
    color: var(--brand);
}

.engagement-icon-btn .engagement-icon,
.engagement-icon-btn svg {
    width: 1.05rem !important;
    height: 1.05rem !important;
    max-width: 1.05rem !important;
    max-height: 1.05rem !important;
    display: block;
    flex-shrink: 0;
}

.location-banner {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0 0 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 70%, white));
}

.location-banner p {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.location-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.location-banner--compact {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
}

.wage--cta {
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: right;
    max-width: 9rem;
    line-height: 1.25;
}

.dob-prompt {
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border: 1px dashed var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.detail-card__image {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0.85rem 0 0;
}

.detail-card__video {
    margin: 0.85rem 0 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0f172a;
    aspect-ratio: 16 / 9;
}

.detail-card__video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.detail-card__video-link {
    margin: 0.85rem 0 0;
}

.vacancy-facts {
    margin: 1rem 0 0;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: color-mix(in srgb, var(--surface) 94%, var(--brand) 4%);
}

.vacancy-facts__block {
    min-width: 0;
}

.vacancy-facts__title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.vacancy-facts__text {
    margin: 0;
    line-height: 1.4;
}

.vacancy-facts__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.vacancy-facts__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.85rem;
    font-weight: 500;
}

.vacancy-facts__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.vacancy-facts__list li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    line-height: 1.35;
}

.vacancy-facts__badge {
    flex: 0 0 auto;
    min-width: 2.4rem;
    text-align: center;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.vacancy-facts__list li.is-alert .vacancy-facts__badge {
    border-color: color-mix(in srgb, #b45309 45%, var(--border));
    background: color-mix(in srgb, #f59e0b 18%, var(--surface));
}

.share-modal-backdrop {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 20%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 55%),
        color-mix(in srgb, var(--brand) 22%, rgba(15, 23, 42, 0.48));
    z-index: 80;
    animation: lobsy-dialog-fade-in 0.18s ease-out;
}

.share-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 81;
    width: max-content;
    max-width: calc(100vw - 2rem);
    background:
        linear-gradient(
            165deg,
            color-mix(in srgb, var(--brand) 8%, var(--surface)) 0%,
            var(--surface) 42%,
            var(--surface) 100%);
    border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--border));
    border-radius: 18px;
    box-shadow:
        0 18px 40px color-mix(in srgb, var(--brand) 18%, transparent),
        var(--shadow-lg);
    padding: 0.9rem 1rem 1rem;
    animation: lobsy-dialog-pop-in 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.share-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.share-modal__header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--brand-ink, var(--text));
}

.share-modal__close {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
    padding: 0.1rem 0.25rem;
    border-radius: 999px;
}

.share-modal__close:hover:not(:disabled) {
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    color: var(--text);
}

.share-modal__lead {
    margin: 0.2rem 0 0.65rem;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
    max-width: 22rem;
    white-space: normal;
}

/* Friendly lobster dialog shell */
.lobsy-dialog {
    min-width: min(18rem, calc(100vw - 2rem));
}

.lobsy-dialog__banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.lobsy-dialog__banner-text {
    flex: 1 1 auto;
    min-width: 0;
}

.lobsy-dialog__celebrate {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55rem;
    margin-bottom: 0.35rem;
}

.lobsy-dialog__header--centered {
    width: 100%;
    justify-content: center;
    position: relative;
}

.lobsy-dialog__header--centered .share-modal__close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.lobsy-dialog__title--celebrate {
    font-size: 1.45rem !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lobsy-dialog__mascot {
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 8px 14px color-mix(in srgb, var(--brand, #0b6e4f) 22%, transparent));
    user-select: none;
}

.lobsy-dialog__mascot--friendly {
    width: 3.6rem;
    height: 3.6rem;
    animation: lobsy-dialog-bob 1.6s ease-in-out infinite alternate;
}

.lobsy-dialog__mascot--party {
    width: 7.5rem;
    height: 7.5rem;
    animation: csv-lobster-party 0.9s ease-in-out infinite alternate;
}

.lobsy-dialog__lead {
    margin: 0.15rem 0 0;
    max-width: none;
    white-space: normal;
}

.lobsy-dialog__lead .share-modal__lead,
.lobsy-dialog .share-modal__lead {
    max-width: none;
    white-space: normal;
}

.lobsy-dialog__body {
    margin-top: 0.35rem;
}

.lobsy-dialog__footer {
    margin-top: 1rem;
}

.lobsy-dialog--celebrate {
    max-width: min(28rem, calc(100vw - 2rem));
    padding: 1.1rem 1.15rem 1.2rem;
}

@keyframes lobsy-dialog-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lobsy-dialog-pop-in {
    from {
        opacity: 0;
        transform: translate(-50%, -46%) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.share-modal.lobsy-dialog {
    animation-fill-mode: both;
}

@keyframes lobsy-dialog-bob {
    from { transform: translateY(0) rotate(-4deg); }
    to { transform: translateY(-5px) rotate(4deg); }
}

@media (prefers-reduced-motion: reduce) {
    .share-modal-backdrop,
    .share-modal,
    .lobsy-dialog__mascot--friendly,
    .lobsy-dialog__mascot--party {
        animation: none;
    }
}

.share-modal__channels {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.2rem;
}

.share-modal__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 1.65rem;
    height: 1.65rem;
    min-width: 1.65rem;
    min-height: 1.65rem;
    max-width: 1.65rem;
    max-height: 1.65rem;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    line-height: 0;
    flex: 0 0 1.65rem;
    transition: background 0.12s ease, color 0.12s ease;
}

.share-modal__icon-btn:hover {
    background: var(--hover);
}

.share-modal__icon-btn svg {
    width: 0.95rem !important;
    height: 0.95rem !important;
    max-width: 0.95rem !important;
    max-height: 0.95rem !important;
    display: block;
    flex-shrink: 0;
}

.share-modal__icon-btn--whatsapp {
    color: #128c7e;
}

.share-modal__icon-btn--facebook {
    color: #1877f2;
}

.share-modal__icon-btn--linkedin {
    color: #0a66c2;
}

.share-modal__icon-btn--x {
    color: #111111;
}

.share-modal__icon-btn--telegram {
    color: #229ed9;
}

.share-modal__icon-btn--signal {
    color: #3a76f0;
}

.share-modal__icon-btn--email,
.share-modal__icon-btn--copy {
    color: var(--muted);
}

.share-modal__icon-btn--copy.is-copied {
    color: #1a7f4b;
    background: color-mix(in srgb, #1a7f4b 10%, transparent);
}

.share-modal .state-message {
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
}

@media (max-width: 420px) {
    .share-modal {
        padding: 0.65rem 0.7rem 0.75rem;
    }

    .share-modal__channels {
        gap: 0.12rem;
    }

    .share-modal__icon-btn {
        width: 1.5rem;
        height: 1.5rem;
        min-width: 1.5rem;
        min-height: 1.5rem;
        max-width: 1.5rem;
        max-height: 1.5rem;
        flex-basis: 1.5rem;
    }

    .share-modal__icon-btn svg {
        width: 0.88rem !important;
        height: 0.88rem !important;
        max-width: 0.88rem !important;
        max-height: 0.88rem !important;
    }
}

.mock-interview-cta {
    margin: 1.15rem 0 0.35rem;
    padding: 0.95rem 1rem;
    border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--border));
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.mock-interview-cta__btn {
    font-weight: 600;
    border-color: var(--accent);
    color: var(--brand);
    background: var(--surface);
}

.mock-interview-cta__btn:hover {
    background: var(--accent-soft);
}

.mock-interview-cta__hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

/* Lobster coach CTA on vacancy detail (candidates only) */
.lobsy-coach-cta {
    margin: 1.25rem 0 0.5rem;
    display: flex;
    justify-content: flex-start;
}

.lobsy-coach-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.55rem 0.85rem 0.55rem 0.45rem;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: start;
    max-width: 100%;
}

.lobsy-coach-cta__btn:hover .lobsy-coach-cta__bubble,
.lobsy-coach-cta__btn:focus-visible .lobsy-coach-cta__bubble {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 14%, transparent);
}

.lobsy-coach-cta__btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 55%, var(--brand));
    outline-offset: 3px;
    border-radius: 14px;
}

.lobsy-coach-cta__mascot {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.lobsy-coach-cta__bubble {
    position: relative;
    display: inline-block;
    max-width: 16rem;
    padding: 0.7rem 0.95rem;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
    color: var(--brand);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.35;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 8%, transparent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lobsy-coach-cta__bubble::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    width: 14px;
    height: 14px;
    background: var(--surface);
    border-left: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
    transform: translateY(-50%) rotate(45deg);
}

/* Coach avatar (chat + CTA) */
.lobsy-coach {
    display: block;
    position: relative;
    line-height: 0;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: transparent;
    overflow: visible;
}

.lobsy-coach__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    user-select: none;
    -webkit-user-drag: none;
}

.lobsy-coach__flag-badge {
    position: absolute;
    left: -6%;
    top: 18%;
    width: 38%;
    aspect-ratio: 100 / 66;
    transform: rotate(-14deg);
    pointer-events: none;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(18, 32, 51, 0.28);
    background: #fff;
}

.lobsy-coach__flag {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lobsy-coach--animate .lobsy-coach__img {
    animation: lobsy-float 4.8s ease-in-out infinite;
    transform-origin: 50% 70%;
}

.lobsy-coach--animate .lobsy-coach__flag-badge {
    animation: lobsy-flag-wave 5.6s ease-in-out infinite;
    transform-origin: 0% 80%;
}

@keyframes lobsy-flag-wave {
    0%,
    100% {
        transform: rotate(-14deg) translateY(0);
    }
    45% {
        transform: rotate(-10deg) translateY(-1px);
    }
    75% {
        transform: rotate(-16deg) translateY(1px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lobsy-coach--animate .lobsy-coach__img,
    .lobsy-coach--animate .lobsy-coach__flag-badge {
        animation: none !important;
    }
}

.mock-interview-modal__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.mock-interview-modal__avatar {
    width: 56px;
    height: 56px;
}

.mock-interview-bubble__head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.15rem;
}

.mock-interview-bubble__avatar {
    width: 36px;
    height: 36px;
}

.mock-interview-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 81;
    width: min(560px, calc(100vw - 1.5rem));
    max-height: min(88vh, 720px);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 1.1rem 1.2rem 1.15rem;
}

.mock-interview-modal__disclaimer {
    margin: 0 0 0.55rem;
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.mock-interview-progress {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand);
}

.mock-interview-hint {
    margin: 0.45rem 0 0.35rem;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
    color: var(--brand);
    font-size: 0.8rem;
    line-height: 1.35;
}

.mock-interview-chat {
    flex: 1;
    min-height: 220px;
    max-height: 42vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.35rem 0.15rem 0.65rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.mock-interview-chat__empty {
    margin: 1rem 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.mock-interview-bubble {
    max-width: 92%;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.mock-interview-bubble p {
    margin: 0.25rem 0 0;
    white-space: pre-wrap;
    line-height: 1.45;
    font-size: 0.92rem;
}

.mock-interview-bubble__role {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--brand);
}

.mock-interview-bubble--user .mock-interview-bubble__role {
    color: var(--muted);
}

.mock-interview-bubble--assistant {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 65%, white));
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.mock-interview-bubble--user {
    align-self: flex-end;
    background: var(--hover);
}

.mock-interview-bubble--typing {
    opacity: 0.75;
}

.mock-interview-block {
    margin-top: 0.45rem;
}

.mock-interview-block:first-of-type {
    margin-top: 0.3rem;
}

.mock-interview-block__label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.1rem;
}

.mock-interview-block--strong .mock-interview-block__label {
    color: #0f7a45;
}

.mock-interview-block--caution {
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    background: color-mix(in srgb, #fde8e8 75%, var(--surface));
    border: 1px solid color-mix(in srgb, #e8a0a0 50%, var(--border));
}

.mock-interview-block--caution .mock-interview-block__label {
    color: #b42318;
}

.mock-interview-block--tip {
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    background: color-mix(in srgb, #fff6db 80%, var(--surface));
    border: 1px solid color-mix(in srgb, #e2c36a 45%, var(--border));
}

.mock-interview-block--tip .mock-interview-block__label {
    color: #8a6a00;
}

.mock-interview-block--rewrite {
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    background: color-mix(in srgb, #e6f7f4 80%, var(--surface));
    border: 1px solid color-mix(in srgb, #7bc4b8 45%, var(--border));
}

.mock-interview-block--rewrite .mock-interview-block__label {
    color: #0f766e;
}

.mock-interview-block--rewrite p {
    font-style: italic;
}

.mock-interview-block--question {
    margin-top: 0.65rem;
    padding-top: 0.45rem;
    border-top: 1px dashed var(--border);
}

.mock-interview-block--question .mock-interview-block__label {
    color: var(--brand);
}

.mock-interview-block--question p {
    font-weight: 600;
}

.mock-interview-compose {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.mock-interview-compose textarea {
    width: 100%;
    resize: vertical;
    min-height: 3.2rem;
    font: inherit;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.mock-interview-compose textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
    border-color: var(--accent);
}

.mock-interview-compose__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.moderation-modal {
    width: min(480px, calc(100vw - 2rem));
}

.moderation-modal__warning {
    margin: 0 0 0.85rem;
    line-height: 1.45;
}

.moderation-modal__suggestion {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--hover);
    padding: 0.75rem 0.9rem;
}

.moderation-modal__suggestion strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.moderation-modal__suggestion p {
    margin: 0;
    line-height: 1.45;
}

.direct-contact-modal__actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.direct-contact-modal__btn {
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.direct-contact-modal__btn--whatsapp {
    background: #128c7e;
    border-color: #128c7e;
}

.direct-contact-modal__btn--phone {
    background: var(--brand, #c45c26);
}

.direct-contact-modal__btn--mail {
    background: #334155;
    border-color: #334155;
}

.api-key-modal {
    width: min(42rem, calc(100vw - 2rem));
    max-width: min(42rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1rem 1.1rem 1.1rem;
}

.api-key-modal__lead,
.api-key-modal .share-modal__lead {
    max-width: none;
    font-size: 0.88rem;
    line-height: 1.45;
}

.api-key-modal__label {
    display: block;
    margin: 0.85rem 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.api-key-modal__row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.api-key-modal__value,
.api-key-modal__input {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.85rem 0.9rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1.05rem;
    line-height: 1.45;
    letter-spacing: 0.02em;
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 88%, var(--brand) 6%);
    word-break: break-all;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    user-select: all;
}

.api-key-modal__value--endpoint {
    font-size: 0.92rem;
    display: block;
}

.api-key-modal__meta {
    margin: 0.65rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.api-key-modal__meta a {
    color: var(--brand);
    word-break: break-all;
}

.api-key-modal__copy {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    min-width: 3rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.api-key-modal__copy:hover {
    background: var(--hover);
}

.api-key-modal__copy.is-copied {
    color: #15803d;
    border-color: #86efac;
    background: #f0fdf4;
}

.api-key-modal__copy svg {
    width: 1.15rem;
    height: 1.15rem;
}

.api-cred-panel {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.85rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface) 92%, var(--brand) 5%);
}

.api-cred-panel--key {
    margin-top: 1rem;
}

.api-cred-field__label {
    display: block;
    margin: 0 0 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.api-cred-field__row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.api-cred-field__value {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92rem;
    line-height: 1.4;
    word-break: break-all;
    overflow-wrap: anywhere;
    user-select: all;
}

.api-cred-field__value--key {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.api-cred-field__name {
    display: block;
    margin: 0 0 0.35rem;
}

.api-cred-field__meta {
    margin: 0.4rem 0 0;
    font-size: 0.82rem;
}

.api-cred-field__help {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
}

.api-cred-field__link {
    display: inline-block;
    margin-top: 0.25rem;
    color: var(--brand);
    font-weight: 600;
    word-break: break-all;
}

.api-cred-example {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.85rem 0.75rem;
    background: var(--surface);
}

.api-cred-example summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.api-cred-example--modal {
    margin-top: 0.85rem;
}

.api-cred-example__code {
    margin: 0.45rem 0 0.65rem;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 88%, #0f172a 8%);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.78rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

.company-details__org-select {
    display: block;
    max-width: 28rem;
    margin: 0 0 0.25rem;
}

.company-details__overview-head {
    margin-bottom: 0.85rem;
}

.company-details__overview-head h2 {
    margin-bottom: 0.35rem;
}

.company-details__address {
    margin: 0;
}

.company-details__stats {
    margin-top: 0.25rem;
}

.company-details__badge {
    display: inline-block;
    margin-top: 0.45rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--muted);
    background: color-mix(in srgb, var(--muted) 12%, var(--surface));
    border: 1px solid var(--border);
}

.company-details__badge--org {
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, var(--surface));
    border-color: color-mix(in srgb, var(--brand) 22%, var(--border));
}

.company-details__badge--ok {
    color: #15803d;
    background: #f0fdf4;
    border-color: #86efac;
}

.company-details__card {
    padding: 1.05rem 1.1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.company-details__card h2 {
    margin-bottom: 0.35rem;
}

.company-details__lead {
    margin: 0 0 0.95rem;
    max-width: 46rem;
    line-height: 1.45;
}

.company-details__toggle {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface) 92%, var(--brand) 5%);
    cursor: pointer;
}

.company-details__toggle input {
    margin-top: 0.2rem;
    flex: 0 0 auto;
}

.company-details__toggle span {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.company-details__toggle .muted {
    margin: 0;
}

.company-details__channels {
    margin-top: 0.85rem;
}

.company-details__channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.15rem 0.75rem;
}

.company-details__channel-grid .scope-option {
    margin: 0.35rem 0;
    padding: 0.35rem 0.2rem;
    border-radius: 8px;
}

.company-details__channel-grid .scope-option:hover {
    background: color-mix(in srgb, var(--brand) 6%, transparent);
}

.company-details__contact-form {
    margin-top: 0.85rem;
    max-width: 28rem;
}

.company-details__actions {
    margin-top: 0.95rem;
}

.company-details__actions .login-submit {
    margin-top: 0;
    width: auto;
}

.company-details__callout {
    margin: 0.85rem 0 0;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--border));
    background: color-mix(in srgb, var(--brand) 7%, var(--surface));
    font-size: 0.9rem;
    line-height: 1.4;
}

.company-details__callout--warn {
    margin-bottom: 0.85rem;
    border-color: color-mix(in srgb, var(--warn, #b45309) 28%, var(--border));
    background: color-mix(in srgb, var(--warn, #b45309) 8%, var(--surface));
}

.company-details__empty-key {
    margin-top: 1rem;
}

.company-details__empty-key > .muted {
    margin: 0 0 0.65rem;
}

.company-details__key-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin-bottom: 0.4rem;
}

.company-details__key-head .api-cred-field__name {
    margin: 0;
}

.company-details__warn {
    margin: 0.55rem 0 0;
    font-size: 0.82rem;
}

.company-details__history {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.85rem 0.75rem;
    background: var(--surface);
}

.company-details__history summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.company-details__history .table-list {
    margin-top: 0.55rem;
}

.company-details__card .state-message {
    margin-top: 0.75rem;
}

@media (max-width: 560px) {
    .api-key-modal__value,
    .api-key-modal__input {
        font-size: 0.92rem;
        padding: 0.75rem 0.7rem;
    }

    .api-cred-field__value--key {
        font-size: 0.95rem;
    }

    .company-details__card {
        padding: 0.9rem 0.85rem 1rem;
    }
}

/* —— Bottom nav —— */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    padding: 0.45rem 0.85rem;
    padding-bottom: max(0.45rem, env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.08);
    overflow-x: auto;
    scrollbar-width: thin;
}

.app-shell.has-bottom-nav .app-main,
.app-shell:has(.bottom-nav) .app-main {
    /* Room for fixed bottom-nav; legal footer scrolls with content */
    padding-bottom: calc(4.5rem + 0.75rem);
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    flex: 0 0 auto;
    min-width: 4.75rem;
    max-width: 6.5rem;
    padding: 0.45rem 0.4rem;
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.bottom-nav__item:hover {
    background: var(--hover);
    color: var(--text);
}

.bottom-nav__item.is-active {
    background: var(--accent-soft);
    color: var(--brand);
}

.bottom-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    color: inherit;
}

.bottom-nav__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.bottom-nav__label {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .bottom-nav:not(.bottom-nav--compact) .bottom-nav__item {
        min-width: 2.75rem;
        max-width: none;
        padding: 0.4rem 0.5rem;
    }

    .app-shell.has-bottom-nav .app-main,
    .app-shell:has(.bottom-nav) .app-main {
        padding-bottom: calc(3.25rem + 0.75rem);
    }

    .token-wallet-chip__label {
        display: none;
    }
}

@media (max-width: 768px) {
    .bottom-nav__label {
        display: block !important;
    }
}

/* Bedrijfsmanager: hide desktop-only org admin from mobile/PWA bottom-nav */
.desktop-preferred-notice {
    display: none;
}

@media (max-width: 900px) {
    .bottom-nav__item--desktop-only {
        display: none !important;
    }

    .desktop-preferred-notice {
        display: block;
        margin: 0 0 1rem;
        padding: 0.9rem 1rem;
        border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
        border-radius: 10px;
        background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface));
    }

    .desktop-preferred-notice strong {
        display: block;
        margin-bottom: 0.25rem;
        color: var(--brand);
    }

    .desktop-preferred-notice p {
        margin: 0 0 0.5rem;
        color: var(--muted);
        font-size: 0.92rem;
        line-height: 1.4;
    }

    .admin-sublinks--desktop-preferred {
        display: none;
    }

    .org-module-grid {
        grid-template-columns: 1fr;
    }
}

.org-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 0.85rem;
    margin: 0.5rem 0 1.5rem;
}

.org-module-card {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.org-module-card:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface));
}

.org-module-card__icon {
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--brand);
}

.org-module-card__icon svg {
    width: 100%;
    height: 100%;
}

.org-module-card__title {
    font-weight: 700;
    font-size: 1rem;
}

.org-module-card__lead {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.35;
}

/* —— Admin hub —— */
.admin-hub {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.admin-hub__intro {
    margin-bottom: 1.75rem;
}

.admin-hub__intro h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    letter-spacing: -0.02em;
}

.admin-hub__intro p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.admin-hub__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.9rem;
}

.admin-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    min-height: 8.5rem;
    padding: 1.15rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-tile:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08);
}

.admin-tile:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.admin-tile__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--brand);
}

.admin-tile__icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.admin-tile__label {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

.panel-back {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}

.panel-back a {
    color: var(--muted);
}

.panel-back a:hover {
    color: var(--brand);
}

.cockpit-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
}

.cockpit-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 7rem;
    padding: 0.9rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.cockpit-stat__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.1;
}

.cockpit-stat__label {
    font-size: 0.85rem;
    color: var(--muted);
}

.admin-sublinks {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.admin-sublink {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.4rem 0.75rem;
    background: var(--accent-soft);
    color: var(--brand);
    border: none;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
}

.admin-sublink:hover {
    background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent));
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.company-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.company-search {
    flex: 1 1 16rem;
    min-width: 0;
}

.company-search input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
}

.company-search input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

.company-toolbar__count {
    font-size: 0.85rem;
    color: var(--muted);
    white-space: nowrap;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.9rem;
}

.company-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    min-height: 10rem;
}

.integration-tile {
    cursor: pointer;
    border-width: 2px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.integration-tile--ok {
    border-color: var(--success);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--success) 18%, transparent);
}

.integration-tile--fail {
    border-color: var(--danger);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--danger) 12%, transparent);
}

.integration-tile--unknown {
    border-color: var(--border);
}

.integration-tile--ok .company-card__meta { color: var(--success); }
.integration-tile--fail .company-card__meta { color: var(--danger); }
.integration-tile--unknown .company-card__meta { color: var(--muted); }

.integration-tile__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.integration-tile__actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.integration-tile__info {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: color-mix(in srgb, var(--surface, #fff) 92%, var(--muted) 8%);
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.85rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.integration-tile__info:hover,
.integration-tile__info.is-open {
    border-color: var(--brand);
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, transparent);
}

.integration-tile__chevron {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1;
}

.integration-help {
    margin: 0.65rem 0 0.25rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.65rem;
    border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
    background: color-mix(in srgb, var(--brand) 6%, var(--surface, #fff));
    cursor: default;
}

.integration-help__summary {
    margin: 0 0 0.65rem;
    font-weight: 600;
    color: var(--text);
}

.integration-help__list {
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.integration-help__list dt {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.integration-help__list dd {
    margin: 0.2rem 0 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text);
}

.integration-help__link {
    margin: 0.75rem 0 0;
}

.platform-features-card {
    gap: 0.65rem;
    max-width: 36rem;
}

.platform-features-card label:not(.filter-check) {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.integration-key-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
    cursor: default;
}

.integration-key-form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.integration-key-form input {
    width: 100%;
    box-sizing: border-box;
}

.integration-test-mail {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--border);
}

.integration-test-mail .btn-compact {
    align-self: flex-start;
}

/* Mask typed secrets without type=password (avoids browser autofill dots on empty fields). */
.integration-key-form input.integration-secret-input {
    -webkit-text-security: disc;
}

.company-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.35rem;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 700;
    overflow: hidden;
}

.company-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--surface);
}

.company-card__name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.25;
}

.company-card__meta {
    margin: 0;
    font-size: 0.82rem;
    color: var(--brand);
    font-weight: 600;
}

.company-card__address {
    margin: 0.15rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.35;
}

.period-tabs {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.period-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    width: auto;
    flex: 0 0 auto;
}

.period-tab--active {
    border-color: var(--accent);
    color: var(--brand);
    background: var(--accent-soft);
}

@media (max-width: 640px) {
    .panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .panel-header > .period-tabs {
        margin-left: 0;
    }

    .period-tabs {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .period-tab {
        flex: 1 1 calc(33.333% - 0.35rem);
        width: auto;
        text-align: center;
        padding: 0.45rem 0.5rem;
    }
}

.stat-card--selected {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

button.stat-card {
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

/* —— Role dashboards: equal-height Bento SaaS grid —— */
.panel-page--dashboard {
    max-width: 1180px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.panel-header--dashboard {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    gap: 0.75rem;
}

.panel-header--dashboard > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
}

.panel-header--dashboard .login-lead {
    max-width: 36rem;
}

.period-tabs--compact {
    gap: 0.2rem;
    padding: 0.18rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--brand) 3%, var(--surface));
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    flex: 0 1 auto;
}

.period-tabs--compact::-webkit-scrollbar {
    display: none;
}

.period-tabs--compact .period-tab {
    border: none;
    background: transparent;
    border-radius: 7px;
    padding: 0.32rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    flex: 0 0 auto;
}

.period-tabs--compact .period-tab--active {
    background: var(--surface);
    color: var(--brand);
    box-shadow: 0 1px 2px rgba(15, 45, 92, 0.08);
    border-color: transparent;
}

.dash-cat-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 0 0.85rem;
    padding-bottom: 0.05rem;
}

.dash-cat-tabs::-webkit-scrollbar {
    display: none;
}

.dash-cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.dash-cat-tab:hover {
    border-color: color-mix(in srgb, var(--brand) 28%, var(--border));
    color: var(--brand);
}

.dash-cat-tab--active {
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
    background: color-mix(in srgb, var(--brand) 7%, var(--surface));
    color: var(--brand);
}

.dash-cat-tab--warn {
    border-color: color-mix(in srgb, var(--danger) 40%, var(--border));
}

.dash-cat-tab--warn.dash-cat-tab--active {
    background: color-mix(in srgb, var(--danger-soft) 70%, var(--surface));
    color: var(--danger);
}

.dash-cat-tab__warn-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 16%, transparent);
    flex-shrink: 0;
}

.dash-cat-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--brand) 10%, var(--surface));
    color: var(--brand);
}

.dash-cat-tab--warn .dash-cat-tab__count {
    background: color-mix(in srgb, var(--danger) 12%, var(--surface));
    color: var(--danger);
}

.bento-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    width: 100%;
}

.bento-grid--with-rank {
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.85fr);
    align-items: start;
}

.bento-grid__main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.bento-grid__side {
    min-width: 0;
    position: sticky;
    top: 0.75rem;
}

/* One equal-height hero row for all kerncijfers */
.bento-hero {
    --bento-hero-cols: 4;
    display: grid;
    grid-template-columns: repeat(var(--bento-hero-cols), minmax(0, 1fr));
    gap: 0.65rem;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.bento-hero > .stat-card--tile {
    height: 100%;
    min-height: 6.25rem;
    box-shadow: none;
}

.bento-cell--category {
    background: color-mix(in srgb, var(--brand) 2.5%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    border-radius: 14px;
    padding: 0.85rem;
    min-width: 0;
}

.bento-cell--split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.bento-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
    gap: 0.55rem;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.bento-metrics > .stat-card--tile {
    height: 100%;
    min-height: 5.25rem;
    box-shadow: none;
}

.bento-empty {
    margin: 0.25rem 0 0;
    font-size: 0.86rem;
}

.dash-section__header {
    margin-bottom: 0.65rem;
}

.dash-section__header--compact {
    margin-bottom: 0.55rem;
}

.dash-section__header h2 {
    margin: 0;
    font-size: 1rem;
    color: var(--brand);
}

.dash-section__lead {
    margin: 0.2rem 0 0;
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.35;
}

/* Uniform tile chrome */
.stat-card--tile {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    justify-content: space-between;
    gap: 0.4rem;
}

/* Per-card Bento skeleton loaders */
.stat-card--skeleton {
    pointer-events: none;
    cursor: default;
    min-height: 5.5rem;
    background: color-mix(in srgb, var(--surface) 92%, var(--border));
    box-shadow: none;
}

.stat-card--skeleton.size-featured {
    min-height: 7rem;
}

.stat-card--skeleton.size-compact {
    min-height: 4.25rem;
}

.stat-card--skeleton .stat-card__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.skeleton-line {
    display: block;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--border) 55%, var(--surface)) 0%,
        color-mix(in srgb, var(--border) 25%, var(--surface)) 45%,
        color-mix(in srgb, var(--border) 55%, var(--surface)) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

.skeleton-line--label { width: 58%; height: 0.7rem; }
.skeleton-line--value { width: 36%; height: 1.35rem; }
.skeleton-line--hint { width: 44%; height: 0.55rem; opacity: 0.85; }
.skeleton-line--title { width: 9rem; height: 0.95rem; margin-bottom: 0.35rem; }
.skeleton-line--lead { width: 14rem; height: 0.65rem; }
.skeleton-line--row { width: 100%; height: 0.85rem; margin-top: 0.55rem; }

.skeleton-ring {
    display: block;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    flex: 0 0 auto;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--border) 55%, var(--surface)) 0%,
        color-mix(in srgb, var(--border) 25%, var(--surface)) 45%,
        color-mix(in srgb, var(--border) 55%, var(--surface)) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.35s ease-in-out infinite;
    align-self: flex-end;
}

@keyframes skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.stat-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
}

.stat-card__top .stat-card__label {
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    line-height: 1.25;
    max-height: 2.5em;
}

.stat-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    min-width: 0;
    min-height: 2.5rem;
}

.stat-card__main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1 1 auto;
}

.stat-card__value {
    line-height: 1.1;
    word-break: break-word;
}

.stat-card__hint {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-card__status {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-top: 0.2rem;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--brand) 35%, var(--border));
}

.stat-card__status--ok {
    background: color-mix(in srgb, var(--brand) 55%, #3d7a5f);
}

.stat-card__status--warn {
    background: var(--danger);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent);
}

.stat-card--emphasis {
    border-color: color-mix(in srgb, var(--brand) 22%, var(--border));
    background: linear-gradient(
        165deg,
        color-mix(in srgb, var(--brand) 6%, var(--surface)) 0%,
        var(--surface) 70%
    );
}

.stat-card--featured {
    border-color: color-mix(in srgb, var(--brand) 28%, var(--border));
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 55%),
        linear-gradient(165deg, color-mix(in srgb, var(--brand) 7%, var(--surface)) 0%, var(--surface) 72%);
}

.stat-card--emphasis .stat-card__value,
.stat-card--featured .stat-card__value {
    font-size: 1.55rem;
    letter-spacing: -0.02em;
    color: var(--brand-deep);
}

.stat-card--compact {
    padding: 0.7rem 0.75rem;
    gap: 0.25rem;
}

.stat-card--compact .stat-card__value {
    font-size: 1.2rem;
}

.stat-card--compact .stat-card__body {
    min-height: 2.1rem;
}

.stat-card--warning {
    border-width: 1px;
    border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
    background: linear-gradient(
        165deg,
        var(--danger-soft) 0%,
        var(--surface) 75%
    );
    box-shadow: none;
}

.stat-card--warning .stat-card__label {
    color: var(--danger);
}

.stat-card--warning .stat-card__value {
    color: var(--danger);
}

.stat-card--nav {
    min-height: 4.25rem;
    justify-content: space-between;
}

.stat-card__meter {
    display: block;
    margin-top: 0.2rem;
    height: 0.28rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 10%, var(--border));
    overflow: hidden;
    flex-shrink: 0;
}

.stat-card__meter-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: color-mix(in srgb, var(--brand) 75%, #3d7a5f);
}

.stat-card__spark,
.metric-sparkline {
    display: block;
    flex: 0 0 auto;
    max-width: 40%;
    height: auto;
    overflow: visible;
}

.metric-sparkline__line {
    stroke: color-mix(in srgb, var(--brand) 70%, #3d7a5f);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.metric-sparkline__dot {
    fill: color-mix(in srgb, var(--brand) 80%, #2f6f4e);
}

.metric-ring {
    --ring-size: 40px;
    position: relative;
    width: var(--ring-size);
    height: var(--ring-size);
    flex: 0 0 auto;
    max-width: 42%;
    aspect-ratio: 1;
}

.metric-ring__svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}

.metric-ring__track,
.metric-ring__value {
    fill: none;
    stroke-width: 3.4;
}

.metric-ring__track {
    stroke: color-mix(in srgb, var(--brand) 12%, var(--border));
}

.metric-ring__value {
    stroke: color-mix(in srgb, var(--brand) 70%, #3d7a5f);
    stroke-linecap: round;
    transition: stroke-dasharray 0.35s ease;
}

.metric-ring--warn .metric-ring__value {
    stroke: var(--danger);
}

.metric-ring__label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
}

.bento-rank {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bento-rank__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    box-shadow: var(--shadow);
    min-width: 0;
}

.bento-rank__card--flop {
    border-color: color-mix(in srgb, var(--danger) 22%, var(--border));
}

.bento-rank__header {
    margin-bottom: 0.55rem;
}

.bento-rank__header h3 {
    margin: 0;
    font-size: 0.92rem;
    color: var(--brand);
}

.bento-rank__header p {
    margin: 0.15rem 0 0;
    font-size: 0.76rem;
    color: var(--muted);
}

.bento-rank__empty {
    margin: 0;
    font-size: 0.84rem;
}

.bento-rank__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bento-rank__row {
    margin: 0;
}

.bento-rank__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    padding: 0.4rem 0.35rem;
    border-radius: 8px;
    min-width: 0;
}

.bento-rank__link:hover {
    background: color-mix(in srgb, var(--brand) 5%, transparent);
}

.bento-rank__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1 1 auto;
}

.bento-rank__title {
    font-size: 0.86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--brand-deep);
}

.bento-rank__sub {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bento-rank__metric {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    min-width: 3.6rem;
    flex: 0 0 auto;
}

.bento-rank__value {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--brand);
    min-width: 1.5rem;
    text-align: right;
}

.bento-rank__bar {
    display: block;
    width: 3.6rem;
    height: 0.28rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 10%, var(--border));
    overflow: hidden;
}

.bento-rank__bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.bento-rank__bar-fill--good {
    background: color-mix(in srgb, var(--brand) 55%, #3d7a5f);
}

.bento-rank__bar-fill--warn {
    background: color-mix(in srgb, var(--danger) 70%, #c45c26);
}

.intermediary-company-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.intermediary-company-card__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.intermediary-company-card__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 40%, var(--border));
    flex-shrink: 0;
}

.intermediary-company-card__dot--active {
    background: #2f6f4e;
}

.client-perf-bento {
    margin-top: 0.25rem;
}

.client-perf-section {
    margin-top: 1.25rem;
}

.client-perf-table-wrap {
    overflow-x: auto;
    border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
    border-radius: 1rem;
    background:
        linear-gradient(165deg, color-mix(in srgb, var(--surface) 92%, #fff) 0%, var(--surface) 100%);
}

.client-perf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 920px;
}

.client-perf-table th,
.client-perf-table td {
    padding: 0.75rem 0.85rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.client-perf-table thead th {
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    background: color-mix(in srgb, var(--surface) 70%, var(--bg));
    white-space: nowrap;
}

.client-perf-table__num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.client-perf-table__company {
    font-weight: 650;
    max-width: 12rem;
}

.client-perf-table__name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-perf-table__match {
    font-size: 0.84rem;
    white-space: nowrap;
}

.client-perf-table__alert {
    color: color-mix(in srgb, var(--danger, #b33) 80%, #222);
    font-weight: 650;
}

.client-perf-row--danger {
    background: color-mix(in srgb, var(--danger, #b33) 6%, transparent);
}

.client-perf-row--warn {
    background: color-mix(in srgb, #c45c26 7%, transparent);
}

.client-perf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    padding: 0.2rem 0.55rem;
    border-radius: 0.4rem;
    white-space: nowrap;
}

.client-perf-badge::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
}

.client-perf-badge--ok {
    color: #2f6f4e;
    background: color-mix(in srgb, #2f6f4e 14%, transparent);
}

.client-perf-badge--warn {
    color: #a85a1a;
    background: color-mix(in srgb, #c45c26 16%, transparent);
}

.client-perf-badge--danger {
    color: color-mix(in srgb, var(--danger, #b33) 90%, #400);
    background: color-mix(in srgb, var(--danger, #b33) 14%, transparent);
}

.client-perf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.client-perf-action {
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--brand);
    padding: 0.22rem 0.5rem;
    border-radius: 0.35rem;
    border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
    background: color-mix(in srgb, var(--surface) 80%, #fff);
    white-space: nowrap;
}

.client-perf-action:hover {
    background: color-mix(in srgb, var(--brand) 10%, var(--surface));
}

.client-perf-action--emphasis {
    color: #fff;
    border-color: transparent;
    background: color-mix(in srgb, var(--brand) 88%, #1a1a1a);
}

.client-perf-action--emphasis:hover {
    background: color-mix(in srgb, var(--brand) 72%, #1a1a1a);
}

@media (max-width: 900px) {
    .client-perf-table {
        font-size: 0.84rem;
    }

    .client-perf-table th,
    .client-perf-table td {
        padding: 0.6rem 0.65rem;
    }
}

/* Legacy alias used by sales/candidate panels */
.bento-cell--hero-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: stretch;
}

.bento-cell--hero-row > .stat-card {
    height: 100%;
    min-height: 5.5rem;
}

.bento-cell--featured > .stat-card {
    width: 100%;
}

@media (max-width: 1100px) {
    .bento-grid--with-rank {
        grid-template-columns: minmax(0, 1fr);
    }

    .bento-grid__side {
        position: static;
    }

    .bento-rank {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }
}

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

    .bento-cell--hero-row,
    .bento-cell--split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .panel-header--dashboard {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .period-tabs--compact {
        width: 100%;
        align-self: stretch;
    }

    .period-tabs--compact .period-tab {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }

    .dash-cat-tabs {
        margin-left: -0.1rem;
        margin-right: -0.1rem;
        padding-left: 0.1rem;
        padding-right: 0.1rem;
        gap: 0.35rem;
    }

    .dash-cat-tab {
        padding: 0.38rem 0.65rem;
        font-size: 0.76rem;
    }

    .dash-cat-tab__label {
        max-width: 11rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bento-hero,
    .bento-cell--hero-row,
    .bento-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .bento-hero > .stat-card--tile,
    .bento-metrics > .stat-card--tile {
        min-height: 5.1rem;
        padding: 0.7rem 0.75rem;
    }

    .bento-cell--category {
        padding: 0.75rem;
    }

    .bento-rank {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.6rem;
    }

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

    .stat-card--emphasis .stat-card__value,
    .stat-card--featured .stat-card__value {
        font-size: 1.3rem;
    }

    .stat-card--compact .stat-card__value {
        font-size: 1.1rem;
    }

    .stat-card__spark,
    .metric-sparkline {
        max-width: 36%;
    }

    .metric-ring {
        --ring-size: 34px !important;
        max-width: 36%;
    }

    .metric-ring__label {
        font-size: 0.55rem;
    }

    .bento-rank__bar,
    .bento-rank__metric {
        min-width: 3rem;
        width: 3rem;
    }
}

@media (max-width: 380px) {
    .bento-hero,
    .bento-cell--hero-row,
    .bento-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat-card__spark,
    .metric-sparkline {
        display: none;
    }
}

.table-row--link {
    text-decoration: none;
    color: inherit;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.table-row--link:hover {
    background: var(--hover);
}

.branch-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0.5rem 0 1rem;
}

.status-pill {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--muted);
    white-space: nowrap;
}

.status-pill--accepted {
    color: var(--brand);
    background: var(--accent-soft);
    border-color: transparent;
}

.status-pill--rejected {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: transparent;
}

.status-pill--pending {
    color: var(--warn);
    background: var(--warn-soft);
    border-color: transparent;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
    max-width: 28rem;
    min-width: 0;
    width: 100%;
}

.profile-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    min-width: 0;
}

.profile-form input[type="date"],
.profile-form input[type="number"],
.profile-form input[type="text"],
.profile-form select,
.profile-form textarea {
    font: inherit;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
}

.profile-form textarea {
    resize: vertical;
    min-height: 5rem;
    line-height: 1.4;
}

.profile-address {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.profile-address .address-field {
    grid-template-columns: 1fr auto;
}

.profile-address .address-field input {
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    font-weight: 500;
}

.profile-address__hint {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
}

.profile-toggle {
    flex-direction: row !important;
    align-items: center;
    gap: 0.55rem !important;
    font-weight: 600;
}

.profile-roles {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
    gap: 0.45rem;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.profile-roles legend {
    padding: 0 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.profile-roles label {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.4rem;
    font-weight: 500;
    text-transform: capitalize;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.3;
}

.profile-roles label input {
    flex: 0 0 auto;
    margin-top: 0.15rem;
    width: auto;
}

.profile-roles label.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.profile-min-employers {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.85rem 0.65rem;
    margin: 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.profile-min-employers legend {
    padding: 0 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.profile-min-employers__options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.85rem;
}

.profile-min-employers__options label {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}

.profile-min-employers__options input {
    margin: 0;
    width: auto;
    padding: 0;
}

.masterdata-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.masterdata-tabs .provider-btn.is-active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.masterdata-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.masterdata-panel__header h2 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

.masterdata-row {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch !important;
}

.masterdata-row__fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.55rem;
}

.masterdata-row__fields label,
.masterdata-add label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.masterdata-row__fields input,
.masterdata-add input {
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.masterdata-row__sort {
    max-width: 7rem;
}

.masterdata-row__flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.masterdata-row__flags label {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    color: var(--text);
}

.masterdata-add {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.masterdata-add h3 {
    margin: 0;
    font-size: 0.95rem;
}

.provider-btn--danger {
    color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 30%, var(--border));
}

/* Sprint 5 — publish popup, vacancy editor, checkboxes */
.publish-modal {
    max-width: 28rem;
}

.publish-options {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 1rem 0;
}

.publish-option {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-weight: 500;
    cursor: pointer;
}

.publish-option em {
    display: block;
    font-style: normal;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.token-topup-modal {
    max-width: 30rem;
}

.token-topup-options {
    border: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.token-topup-options legend {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.pushbom-preview {
    margin: 0.75rem 0 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft));
}

.pushbom-preview__count {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.pushbom-preview__cost {
    margin: 0.5rem 0 0;
}

.checkbox-set {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.checkbox-set legend {
    padding: 0 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.vacancy-editor__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 1.5rem;
    align-items: start;
    min-width: 0;
    width: 100%;
}

.vacancy-editor .login-form {
    gap: 0.55rem;
    min-width: 0;
    max-width: 100%;
}

.vacancy-editor .login-form > label {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
    min-width: 0;
}

.vacancy-editor .login-form > label > input:not([type="checkbox"]):not([type="radio"]),
.vacancy-editor .login-form > label > select,
.vacancy-editor .login-form > label > textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.vacancy-editor .login-form fieldset {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.vacancy-editor .login-form fieldset legend {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--text);
    padding: 0 0.2rem;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.vacancy-editor .profile-roles {
    gap: 0.35rem;
    padding: 0.65rem 0.8rem;
}

.vacancy-editor .profile-roles label,
.vacancy-editor .profile-min-employers label {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

@media (max-width: 900px) {
    .vacancy-editor__grid {
        grid-template-columns: 1fr;
    }
}

.vacancy-field-hint {
    margin: 0;
    line-height: 1.35;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.login-form label.vacancy-toggle-row,
.vacancy-toggle-row {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 92%, var(--brand) 5%);
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
    margin: 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.login-form .profile-roles label,
.login-form .profile-min-employers label,
.login-form .vacancy-contact__channel,
.login-form .checkbox-row {
    text-transform: none;
    letter-spacing: normal;
    color: var(--text);
}

.vacancy-toggle-row input {
    margin-top: 0.2rem;
    flex: 0 0 auto;
    width: auto;
}

.vacancy-toggle-row span {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.vacancy-toggle-row strong {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.vacancy-toggle-row .muted {
    margin: 0;
    font-weight: 400;
}

.vacancy-hours,
.vacancy-schedule,
.vacancy-legal,
.vacancy-contact,
.vacancy-intermediary {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.vacancy-hours legend,
.vacancy-schedule legend,
.vacancy-legal legend,
.vacancy-contact legend,
.vacancy-intermediary legend {
    padding: 0 0.2rem;
    font-size: 0.92rem;
    font-weight: 650;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text);
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.vacancy-hours__row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.55rem 0.65rem;
    min-width: 0;
}

.vacancy-hours__title {
    flex: 0 0 auto;
    align-self: center;
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--text);
    margin-right: 0.15rem;
    overflow-wrap: anywhere;
}

.vacancy-hours__row label {
    flex: 0 1 6.5rem;
    min-width: 5.5rem;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
}

.vacancy-hours__row input[type="number"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0.55rem;
}

.vacancy-hours__sep {
    align-self: end;
    padding-bottom: 0.55rem;
    color: var(--muted);
    font-weight: 600;
}

.vacancy-hours__meta {
    align-self: center;
    margin-left: auto;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 560px) {
    .vacancy-hours__title {
        flex: 1 1 100%;
        margin: 0 0 0.1rem;
    }

    .vacancy-hours__row label {
        flex: 1 1 5.5rem;
        min-width: 0;
    }

    .vacancy-hours__meta {
        margin-left: 0;
        flex: 1 1 100%;
    }
}

.vacancy-schedule__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 0.35rem;
}

.vacancy-schedule__table-wrap.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.vacancy-schedule__table {
    min-width: 32rem;
}

.vacancy-schedule__table th,
.vacancy-schedule__table td {
    text-align: center;
    vertical-align: middle;
}

.vacancy-schedule__table th:first-child,
.vacancy-schedule__table td:first-child {
    text-align: left;
}

.vacancy-legal__list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vacancy-legal__item {
    display: grid;
    grid-template-columns: 1.15rem minmax(0, 1fr) 1.45rem;
    column-gap: 0.6rem;
    row-gap: 0.3rem;
    align-items: start;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.vacancy-legal__item.is-open {
    border-color: color-mix(in srgb, var(--brand) 28%, var(--border));
    background: color-mix(in srgb, var(--surface) 92%, var(--brand) 6%);
}

.vacancy-legal__check {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0.12rem 0 0;
    accent-color: var(--brand);
    cursor: pointer;
}

.vacancy-legal__text {
    margin: 0;
    min-width: 0;
    display: block;
    text-transform: none !important;
    letter-spacing: normal;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--text);
    cursor: pointer;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.vacancy-legal__info {
    justify-self: end;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted, #667);
    font-size: 0.72rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    cursor: help;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vacancy-legal__info:hover,
.vacancy-legal__info:focus-visible {
    border-color: var(--brand);
    color: var(--brand);
    outline: none;
}

.vacancy-legal__tip {
    grid-column: 2 / -1;
    display: block;
    font-size: 0.84rem;
    font-weight: 400;
    color: var(--muted, #667);
    line-height: 1.4;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 88%, var(--brand) 8%);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.vacancy-intermediary__kvk-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: end;
}

.vacancy-intermediary__kvk-row label {
    margin: 0;
}

@media (max-width: 560px) {
    .vacancy-intermediary__kvk-row {
        grid-template-columns: 1fr;
    }
}

.vacancy-contact__company {
    margin: 0 0 0.35rem;
    color: var(--muted, #667);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.vacancy-contact__channels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.25rem;
}

@media (max-width: 560px) {
    .vacancy-contact__channels {
        grid-template-columns: 1fr;
    }
}

.vacancy-contact__channel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    cursor: pointer;
}

.richtext-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 0.4rem;
}

.richtext-toolbar__group {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.richtext-toolbar__sep {
    width: 1px;
    height: 1.15rem;
    margin: 0 0.25rem;
    background: var(--border);
    flex-shrink: 0;
}

.richtext-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    padding: 0;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.richtext-btn:hover {
    background: #f3f3f3;
}

.richtext-btn.is-active {
    background: #2f6fed;
    border-color: #2f6fed;
    color: #fff;
}

.richtext-btn svg {
    width: 0.95rem;
    height: 0.95rem;
    display: block;
}

.richtext-btn--italic {
    font-style: italic;
}

.richtext-btn--underline {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vacancy-preview h2 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.vacancy-card--preview {
    pointer-events: none;
}

.vacancy-card--preview .vacancy-card-top {
    min-height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0;
    margin: -0.25rem -0.25rem 0.75rem;
}

.salary-table-preview {
    margin: 0.25rem 0 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface));
}

.salary-table-preview__title {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
}

.salary-table-preview .wage-table {
    width: 100%;
    font-size: 0.86rem;
}

.salary-table-preview .wage-table th,
.salary-table-preview .wage-table td {
    padding: 0.15rem 0.25rem;
}

.salary-table-preview .wage-table td {
    text-align: right;
}

.vacancy-preview__body {
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0.5rem 0;
    max-height: 10rem;
    overflow: auto;
}

/* Sprint 6 — admin grids */
.panel-page--wide {
    max-width: min(1480px, 100%);
}

.panel-page .filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
    margin-bottom: 0.75rem;
}

.panel-page .filter-bar label {
    flex: 0 1 12rem;
}

.panel-page .filter-bar label.filter-bar__query {
    flex: 1 1 18rem;
    max-width: 32rem;
}

.panel-page .filter-bar .muted,
.panel-page .filter-bar .filter-check {
    align-self: center;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0.75rem 0 1.25rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    table-layout: auto;
}

.data-table th,
.data-table td {
    padding: 0.55rem 0.7rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    white-space: nowrap;
}

.data-table th.data-table__col--wrap,
.data-table td.data-table__col--wrap {
    white-space: normal;
    min-width: 8rem;
    max-width: 16rem;
}

.data-table td.inline-actions {
    white-space: normal;
}

.data-table th {
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--muted);
    background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft));
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover td {
    background: color-mix(in srgb, var(--accent-soft) 45%, transparent);
}

.data-table__row--interactive {
    cursor: pointer;
}

.data-table__row--interactive:focus-within td {
    background: color-mix(in srgb, var(--accent-soft) 45%, transparent);
}

.data-table__col--actions {
    width: 3.25rem;
    text-align: right;
    white-space: nowrap;
}

.data-table th.data-table__col--actions,
.data-table td.data-table__col--actions {
    position: sticky;
    right: 0;
    z-index: 2;
    background: var(--surface);
    box-shadow: -6px 0 10px -8px rgba(15, 45, 92, 0.28);
}

.data-table th.data-table__col--actions {
    background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft));
    z-index: 3;
}

.data-table tbody tr:hover td.data-table__col--actions,
.data-table__row--interactive:focus-within td.data-table__col--actions {
    background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
}

/* Open row must stack above other sticky action cells so their dots don't cover the menu. */
.data-table tbody tr:has(.row-actions-menu.is-open) > td.data-table__col--actions {
    z-index: 60;
}

.table-scroll:has(.row-actions-menu.is-open) {
    overflow: visible;
}

.row-actions-menu {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
}

.row-actions-menu.is-open {
    z-index: 60;
}

.row-actions-menu__toggle {
    flex-shrink: 0;
}

.row-actions-menu__panel {
    position: absolute;
    top: calc(100% + 0.3rem);
    right: 0;
    z-index: 70;
    min-width: 12.5rem;
    max-width: min(18rem, calc(100vw - 2rem));
    padding: 0.35rem;
    margin: 0;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

button.data-table__sort {
    appearance: none;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

button.data-table__sort:hover,
button.data-table__sort:focus-visible {
    color: var(--brand);
    outline: none;
}

button.data-table__sort[aria-sort="ascending"]::after,
button.data-table__sort[aria-sort="descending"]::after {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--brand);
}

button.data-table__sort[aria-sort="ascending"]::after {
    content: "↑";
}

button.data-table__sort[aria-sort="descending"]::after {
    content: "↓";
}

.vacancy-grid tbody tr:nth-last-child(-n+3) .row-actions-menu__panel {
    top: auto;
    bottom: calc(100% + 0.3rem);
}

html[dir="rtl"] .row-actions-menu__panel {
    right: auto;
    left: 0;
}

.row-actions-menu__item {
    display: block;
    width: 100%;
    min-height: 2.4rem;
    padding: 0.45rem 0.75rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

html[dir="rtl"] .row-actions-menu__item {
    text-align: right;
}

.row-actions-menu__item:hover:not(:disabled),
.row-actions-menu__item:focus-visible {
    background: var(--accent-soft);
    color: var(--brand);
    outline: none;
}

.row-actions-menu__item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .vacancy-grid .data-table {
        font-size: 0.84rem;
    }

    .vacancy-grid .data-table th,
    .vacancy-grid .data-table td {
        padding: 0.5rem 0.55rem;
    }

    .vacancy-grid .data-table th.data-table__col--wrap,
    .vacancy-grid .data-table td.data-table__col--wrap {
        min-width: 7rem;
        max-width: 11rem;
    }

    .row-actions-menu__panel {
        position: fixed;
        top: auto;
        right: 0.75rem;
        bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
        left: 0.75rem;
        z-index: 80;
        min-width: 0;
        max-width: none;
        max-height: min(60dvh, 22rem);
        overflow: auto;
        padding: 0.45rem;
        border-radius: 14px;
    }

    .row-actions-menu__item {
        min-height: 2.75rem;
        font-size: 0.95rem;
    }
}

.filter-check {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.filter-check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent);
}

button.linkish {
    appearance: none;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 600;
    color: var(--brand);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

button.linkish:hover {
    color: var(--accent-hover);
}

.admin-sublink--active {
    background: var(--accent);
    color: #fff;
}

.admin-sublink--active:hover {
    background: color-mix(in srgb, var(--accent) 88%, #000);
    color: #fff;
}

/* Sprint 7 — registration wizard */
.register-card {
    max-width: 560px;
}

.register-brand {
    margin-bottom: 0.85rem;
}

.wizard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    margin: 0 0 1.25rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.wizard-step.is-active {
    color: var(--brand);
    font-weight: 700;
}

.wizard-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.65rem;
    align-items: center;
    margin-top: 1rem;
}

.register-establishment-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.wizard-actions .provider-btn,
.wizard-actions .login-submit,
.wizard-actions a.provider-btn {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    margin-top: 0;
    text-decoration: none;
}

.login-register__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.65rem;
    align-items: stretch;
}

.login-register__actions .provider-btn {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
}

.login-register__back {
    background: transparent;
}

.register-choice {
    width: 100%;
    text-align: left;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
}

.register-choice__main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.register-choice.is-selected {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.register-choice--unavailable {
    cursor: default;
    opacity: 0.92;
    border-color: color-mix(in srgb, var(--border) 80%, transparent);
    background: color-mix(in srgb, var(--muted) 6%, var(--surface));
}

.register-claim-link {
    display: inline-block;
    margin-top: 0.45rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--brand);
    font: inherit;
    font-size: 0.86rem;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
}

.register-claim-link:hover {
    color: color-mix(in srgb, var(--brand) 75%, #000);
}

.register-claim-panel {
    margin-top: 0.65rem;
    padding: 0.75rem 0.8rem;
    border-radius: 8px;
    border: 1px dashed color-mix(in srgb, var(--brand) 35%, var(--border));
    background: color-mix(in srgb, var(--brand) 5%, var(--surface));
}

.register-claim-panel__text,
.register-claim-intro {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

.scope-fieldset--compact {
    margin-bottom: 1rem;
}

.register-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 0.35rem 0.25rem 0.5rem;
}

.register-result__mascot {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: register-mascot-bob 1.8s ease-in-out infinite;
}

.register-result__title {
    margin: 0.35rem 0 0;
    font-size: 1.55rem;
    letter-spacing: -0.02em;
    color: var(--brand);
}

.register-result__lead {
    margin: 0.35rem 0 0;
    max-width: 34rem;
    line-height: 1.5;
    color: var(--text);
}

.login-submit--compact {
    width: auto;
    min-width: 0;
    padding-inline: 1.1rem;
}

@keyframes register-mascot-bob {
    from { transform: translateY(0); }
    to { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
    .register-result__mascot {
        animation: none;
    }
}

.scope-fieldset {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1rem 1rem;
    margin: 0;
}

.scope-fieldset legend {
    padding: 0 0.35rem;
    font-weight: 600;
}

.scope-option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 0.65rem 0;
    cursor: pointer;
}

.scope-option span {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.token-pack-options {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.token-pack-options .scope-option {
    margin: 0.35rem 0;
    padding: 0.35rem 0.25rem;
    border-radius: 8px;
}

.token-pack-options .scope-option:hover {
    background: color-mix(in srgb, var(--brand) 6%, transparent);
}

.payment-method-picker {
    margin: 0.75rem 0 0.25rem;
}

.payment-method-picker__lead {
    margin: 0.35rem 0 0.65rem;
    font-size: 0.92rem;
}

.payment-method-picker__remember {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 0.85rem;
    cursor: pointer;
    font-size: 0.92rem;
}

.payment-method-picker__remember input {
    margin-top: 0.2rem;
}

.payment-method-picker--compact .payment-method-picker__remember {
    margin-top: 0.65rem;
}

.badge-ok,
.badge-warn {
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-ok { color: var(--brand); }
.badge-warn { color: var(--warn); }

.source-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.1rem 0.45rem;
    border-radius: 0.25rem;
    vertical-align: baseline;
}

.source-badge--manual {
    color: var(--text-muted, #5a6570);
    background: color-mix(in srgb, var(--text-muted, #5a6570) 12%, transparent);
}

.source-badge--api {
    color: var(--brand, #0b6e4f);
    background: color-mix(in srgb, var(--brand, #0b6e4f) 14%, transparent);
}

.source-badge--csv {
    color: #0a5c8a;
    background: color-mix(in srgb, #0a5c8a 14%, transparent);
}

/* —— CSV import —— */
.csv-howto__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1rem 0;
}

.csv-howto code {
    font-size: 0.85em;
}

.csv-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 9rem;
    padding: 1.5rem 1rem;
    border: 2px dashed color-mix(in srgb, var(--brand, #0b6e4f) 45%, var(--border, #d0d5da));
    border-radius: 0.75rem;
    background:
        radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--brand, #0b6e4f) 10%, transparent), transparent 55%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface, #fff) 92%, #e8f2ee), var(--surface, #fff));
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.csv-dropzone.is-dragover {
    border-color: var(--brand, #0b6e4f);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #0b6e4f) 18%, transparent);
    transform: translateY(-1px);
}

.csv-dropzone__title {
    font-weight: 650;
    color: var(--text, #1a2229);
}

.csv-dropzone__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.csv-dropzone__file {
    margin-top: 0.35rem;
    z-index: 1;
    pointer-events: none;
}

.csv-results-table .csv-inline-input {
    width: 100%;
    min-width: 7rem;
    font: inherit;
    padding: 0.35rem 0.45rem;
    border: 1px solid var(--border, #d0d5da);
    border-radius: 0.35rem;
    background: var(--surface, #fff);
}

.csv-results-table .mono,
.csv-inline-input.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85em;
}

.csv-row--fail {
    background: color-mix(in srgb, var(--warn, #b45309) 6%, transparent);
}

.csv-row--ok {
    background: color-mix(in srgb, var(--brand, #0b6e4f) 5%, transparent);
}

.csv-row-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 14rem;
}

.csv-error {
    margin: 0;
    color: var(--warn, #b45309);
    font-size: 0.9rem;
}

.csv-inline-label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.8rem;
    color: var(--text-muted, #5a6570);
}

.csv-inline-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.csv-inline-row .csv-inline-input {
    flex: 1 1 6rem;
    min-width: 5rem;
}

.csv-celebrate-modal {
    max-width: 28rem;
}

.csv-celebrate {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.csv-celebrate__mascot {
    width: 7.5rem;
    height: 7.5rem;
    object-fit: contain;
    animation: csv-lobster-party 0.9s ease-in-out infinite alternate;
    filter: drop-shadow(0 8px 16px color-mix(in srgb, var(--brand, #0b6e4f) 25%, transparent));
}

.csv-celebrate__score {
    font-size: 1.15rem;
    margin: 0;
}

@keyframes csv-lobster-party {
    from {
        transform: translateY(0) rotate(-6deg) scale(1);
    }
    to {
        transform: translateY(-10px) rotate(6deg) scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .csv-celebrate__mascot {
        animation: none;
    }
}

.register-celebrate-modal {
    z-index: 40;
}

.register-celebrate-backdrop {
    z-index: 39;
}

.register-celebrate__title {
    margin: 0.35rem 0 0;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand-ink, #1a2b3c);
}

/* —— Legal pages & footer —— */
.legal-page {
    max-width: 720px;
}

.legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
    padding: 0 0 0.85rem;
    border-bottom: 1px solid var(--border);
}

.legal-toc a {
    display: inline-flex;
    align-items: center;
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.25;
    padding: 0.45rem 0.7rem;
    border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--surface) 92%, var(--brand) 4%);
}

.legal-toc a:hover {
    background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}

.legal-toc a.legal-toc__link--active {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
    text-decoration: none;
}

.legal-doc {
    position: relative;
    z-index: 1;
}

.legal-doc section {
    margin-bottom: 1.5rem;
}

.legal-doc h2 {
    margin: 0 0 0.55rem;
    font-size: 1.1rem;
}

.legal-doc h3 {
    margin: 0.85rem 0 0.4rem;
    font-size: 1rem;
}

.legal-doc p,
.legal-doc li {
    color: var(--text);
    line-height: 1.55;
    font-size: 0.95rem;
}

.legal-doc ul {
    margin: 0.4rem 0 0.75rem;
    padding-left: 1.25rem;
}

.legal-doc li {
    margin-bottom: 0.35rem;
}

.about-page {
    position: relative;
    /* Must stay visible so mobile touch-scroll on .app-main is not trapped/clipped */
    overflow: visible;
}

.about-page__watermark {
    position: absolute;
    top: 3.5rem;
    left: 50%;
    width: min(420px, 78%);
    transform: translateX(-50%);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.about-page__watermark img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(420px, 55vh);
    object-fit: contain;
    opacity: 0.07;
}

.about-page > *:not(.about-page__watermark) {
    position: relative;
    z-index: 1;
}

.about-doc strong {
    font-weight: 700;
}

.about-admin-body {
    width: 100%;
    min-height: 22rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.45;
}

.about-admin-preview__doc {
    margin-top: 0.75rem;
    padding: 1rem 1.1rem;
    background: color-mix(in srgb, var(--surface) 88%, var(--brand) 4%);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
}

.legal-consent {
    align-items: flex-start !important;
    margin: 0.75rem 0 0.25rem;
    font-weight: 500 !important;
    line-height: 1.45;
}

.legal-consent input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.legal-consent .auth-link {
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.app-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    margin-top: auto;
    padding: 0.75rem 1.25rem 0.5rem;
    background: transparent;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.app-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
}

.app-footer__links a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.app-footer__links a:hover {
    color: var(--brand);
}

.app-footer__copy {
    margin: 0;
}

@media (max-width: 1024px) {
    .legal-page {
        padding-bottom: 2.5rem;
    }

    .legal-toc {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        margin-bottom: 1.25rem;
    }

    .legal-toc a {
        justify-content: center;
        text-align: center;
        font-size: 0.78rem;
        padding: 0.55rem 0.4rem;
        min-height: 2.6rem;
    }

    .app-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 0.55rem 0.75rem 0.45rem;
    }

    .app-footer__links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        width: 100%;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        overflow: hidden;
        background: var(--surface);
    }

    .app-footer__links a {
        text-align: center;
        text-decoration: none;
        font-size: 0.68rem;
        font-weight: 600;
        line-height: 1.2;
        padding: 0.55rem 0.35rem;
        color: var(--brand);
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .app-footer__links a:nth-child(2n) {
        border-right: none;
    }

    .app-footer__links a:nth-last-child(-n + 2) {
        border-bottom: none;
    }

    .app-footer__copy {
        display: none;
    }
}

@media (max-width: 420px) {
    .legal-toc {
        grid-template-columns: 1fr;
    }

    .legal-toc a {
        justify-content: flex-start;
        text-align: left;
        padding-left: 0.75rem;
        min-height: 2.4rem;
    }
}

.profile-entry-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 0.45rem;
}

.profile-entry-row input {
    min-width: 0;
    width: 100%;
}

.profile-employers {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1rem 1rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.profile-employers legend {
    padding: 0 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.profile-employer-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface) 92%, var(--hover));
}

.profile-employer-card__top {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.6fr) 5.5rem auto;
    gap: 0.75rem 0.85rem;
    align-items: end;
}

.profile-employer-card__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.profile-employer-card__field input,
.profile-employer-card__field textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 0.7rem;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text);
    background: var(--surface);
}

.profile-employer-card__field textarea {
    min-height: 4.75rem;
    resize: vertical;
    line-height: 1.4;
}

.profile-employer-card__field input:focus,
.profile-employer-card__field textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
    border-color: var(--accent);
}

.profile-employer-card__field--years {
    max-width: none;
}

.profile-employer-card__field--description {
    width: 100%;
}

.profile-employer-card__top .icon-btn {
    align-self: end;
    margin-bottom: 0.05rem;
}

.profile-employers > .icon-btn--add {
    align-self: flex-start;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font: inherit;
    cursor: pointer;
    flex: 0 0 auto;
}

.icon-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
}

.icon-btn:hover {
    background: var(--hover);
    color: var(--brand);
    border-color: color-mix(in srgb, var(--brand) 25%, var(--border));
}

.icon-btn--add {
    color: var(--brand);
    border-color: color-mix(in srgb, var(--brand) 22%, var(--border));
    background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}

.icon-btn--add:hover {
    background: color-mix(in srgb, var(--brand) 12%, var(--surface));
    color: var(--brand);
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}

.icon-btn--danger {
    color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 22%, var(--border));
    background: color-mix(in srgb, var(--danger) 6%, var(--surface));
}

.icon-btn--danger:hover {
    background: var(--danger-soft, color-mix(in srgb, var(--danger) 12%, var(--surface)));
    border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
    color: var(--danger);
}

.map-popup__pager {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    gap: 0.15rem;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.map-popup__pager-nav {
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    border: none;
    background: var(--brand);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(15, 45, 92, 0.22);
}

.map-popup__pager-nav:hover:not(:disabled) {
    background: var(--accent-hover);
}

.map-popup__pager-nav:disabled {
    opacity: 0.4;
    cursor: default;
}

.map-popup__pager-status {
    min-width: 4.2rem;
    padding: 0 0.45rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(15, 45, 92, 0.22);
}

.leaflet-popup.job-map-popup a.leaflet-popup-close-button {
    top: -10px !important;
    right: -10px !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 28px !important;
    text-align: center !important;
    color: #fff !important;
    background: var(--brand) !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(15, 45, 92, 0.25);
    z-index: 30 !important;
}

.leaflet-popup.job-map-popup--cluster a.leaflet-popup-close-button {
    top: 0 !important;
    right: 0 !important;
}

.leaflet-popup.job-map-popup > .map-popup__wage-info {
    top: -10px !important;
    right: 26px !important;
    width: 28px !important;
    height: 28px !important;
    z-index: 31 !important;
}

.leaflet-popup.job-map-popup--cluster > .map-popup__wage-info {
    top: 0 !important;
    right: 36px !important;
}

@media (max-width: 768px) {
    .leaflet-popup.job-map-popup a.leaflet-popup-close-button {
        top: -12px !important;
        right: -10px !important;
        width: 32px !important;
        height: 32px !important;
        line-height: 32px !important;
        font-size: 20px !important;
    }

    .leaflet-popup.job-map-popup > .map-popup__wage-info {
        top: -12px !important;
        right: 30px !important;
        width: 32px !important;
        height: 32px !important;
    }

    .leaflet-popup.job-map-popup--cluster a.leaflet-popup-close-button {
        top: 0 !important;
        right: 0 !important;
    }

    .leaflet-popup.job-map-popup--cluster > .map-popup__wage-info {
        top: 0 !important;
        right: 40px !important;
    }
}

@media (max-width: 640px) {
    .profile-employer-card__top {
        grid-template-columns: 1fr 1fr;
    }

    .profile-employer-card__field--years {
        grid-column: 1;
    }

    .profile-employer-card__top .icon-btn {
        grid-column: 2;
        justify-self: end;
        align-self: end;
    }
}

/* Vacature-aanmaken + klantprofiel: teksten volledig leesbaar op mobiel */
@media (max-width: 640px) {
    .panel-page {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .profile-page__header {
        margin-left: -0.85rem;
        margin-right: -0.85rem;
    }

    .detail-card {
        padding: 1rem 0.85rem;
    }

    .panel-page h1,
    .detail-card h1,
    .profile-page__title {
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.25;
    }

    .profile-form {
        max-width: none;
    }

    .profile-roles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0.65rem 0.7rem;
    }

    .profile-roles--wide {
        grid-template-columns: 1fr;
    }

    .vacancy-hours,
    .vacancy-schedule,
    .vacancy-legal,
    .vacancy-contact,
    .vacancy-intermediary,
    .profile-employers,
    .profile-min-employers {
        padding: 0.6rem 0.7rem;
    }

    .vacancy-legal__item {
        padding: 0.55rem 0.55rem;
        column-gap: 0.5rem;
    }

    .vacancy-legal__text {
        font-size: 0.88rem;
        line-height: 1.4;
    }

    .vacancy-toggle-row {
        padding: 0.65rem 0.7rem;
    }

    .vacancy-schedule__table {
        min-width: 28rem;
    }

    .vacancy-schedule__table th,
    .vacancy-schedule__table td {
        padding: 0.35rem 0.3rem;
        font-size: 0.78rem;
    }

    .profile-employer-card {
        padding: 0.75rem 0.7rem;
    }

    .salary-table-preview {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 420px) {
    .profile-roles {
        grid-template-columns: 1fr;
    }

    .profile-employer-card__top {
        grid-template-columns: 1fr;
    }

    .profile-employer-card__field--years {
        grid-column: 1;
        max-width: 8rem;
    }

    .profile-employer-card__top .icon-btn {
        grid-column: 1;
        justify-self: start;
    }

    .vacancy-contact__channel {
        width: 100%;
    }
}

/* —— Sollicitatieflow (mobiel-first) —— */
.apply-flow {
    margin-top: 1.25rem;
    scroll-margin-top: 5rem;
}

.apply-flow__header {
    margin-bottom: 0.75rem;
}

.apply-flow__title {
    margin: 0;
    font-size: 1.15rem;
    color: var(--brand);
}

.apply-flow__lead {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.4;
}

.apply-steps {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
}

.apply-steps__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
    min-width: 0;
    opacity: 0.55;
}

.apply-steps__item.is-current,
.apply-steps__item.is-done {
    opacity: 1;
}

.apply-steps__num {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
}

.apply-steps__item.is-current .apply-steps__num {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.apply-steps__item.is-done .apply-steps__num {
    background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface));
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
    color: var(--brand);
}

.apply-steps__label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--muted);
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apply-steps__item.is-current .apply-steps__label,
.apply-steps__item.is-done .apply-steps__label {
    color: var(--brand);
}

.apply-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 92%, var(--pearl-cool));
    box-shadow: var(--shadow);
}

.apply-panel--warn {
    background: var(--warn-soft);
    border-color: color-mix(in srgb, var(--warn) 28%, var(--border));
}

.apply-panel--verify {
    background: color-mix(in srgb, var(--accent-soft) 65%, var(--surface));
    border-color: color-mix(in srgb, var(--brand) 28%, var(--border));
}

.apply-panel--success {
    background: color-mix(in srgb, #e8f6ee 70%, var(--surface));
    border-color: color-mix(in srgb, #1f7a45 25%, var(--border));
}

.apply-panel__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--brand);
}

.apply-panel__text {
    margin: 0;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.45;
}

.apply-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.apply-checklist li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.92rem;
    font-weight: 600;
}

.apply-checklist li::before {
    content: "";
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 999px;
    border: 1.5px solid color-mix(in srgb, var(--warn) 55%, var(--border));
    background: color-mix(in srgb, var(--warn-soft) 80%, var(--surface));
    flex-shrink: 0;
}

.apply-checklist li.is-done {
    color: var(--muted);
    font-weight: 500;
}

.apply-checklist li.is-done::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    border-color: #1f7a45;
    background: #1f7a45;
}

.apply-section {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.apply-section__title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.apply-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.apply-field select {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    font: inherit;
}

.apply-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    font-weight: 500;
    line-height: 1.4;
    font-size: 0.92rem;
}

.apply-check input {
    margin-top: 0.15rem;
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

.apply-check .auth-link {
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.apply-code-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-weight: 600;
}

.apply-code-field__input {
    width: 100%;
    min-height: 3.25rem;
    text-align: center;
    letter-spacing: 0.35em;
    font-size: 1.55rem;
    font-weight: 700;
    border-radius: var(--radius);
    border: 1.5px solid color-mix(in srgb, var(--brand) 35%, var(--border));
    background: var(--surface);
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.apply-flow__primary,
a.apply-flow__primary {
    width: 100%;
    justify-content: center;
    min-height: 2.9rem;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.apply-flow__secondary,
a.apply-flow__secondary {
    width: 100%;
    justify-content: center;
    min-height: 2.6rem;
    text-align: center;
}

.apply-flow__hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
    text-align: center;
}

.apply-flow__message {
    margin: 0.75rem 0 0;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--warn-soft);
    border: 1px solid color-mix(in srgb, var(--warn) 25%, var(--border));
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.4;
}

.apply-flow__message.is-success {
    background: color-mix(in srgb, #e8f6ee 70%, var(--surface));
    border-color: color-mix(in srgb, #1f7a45 25%, var(--border));
}

@media (min-width: 769px) {
    .apply-flow {
        max-width: 28rem;
    }

    .apply-steps__label {
        font-size: 0.74rem;
        white-space: normal;
    }
}



/* Floating Lobsy assistant (role-based) */
.lobsy-assistant {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 55;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    pointer-events: none;
}

.lobsy-assistant.has-bottom-nav {
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 720px) {
    .lobsy-assistant.has-bottom-nav {
        bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
    }
}

.lobsy-assistant__fab,
.lobsy-assistant__panel,
.lobsy-assistant__compose,
.lobsy-assistant__actions,
.lobsy-assistant__action {
    pointer-events: auto;
}

.lobsy-assistant__fab {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--accent) 40%, var(--border));
    background: var(--surface);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 18%, transparent);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}

.lobsy-assistant__fab:hover,
.lobsy-assistant__fab:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 55%, var(--brand));
    outline-offset: 3px;
    transform: translateY(-2px);
}

.lobsy-assistant__fab-logo {
    width: 68px;
    height: 68px;
}

.lobsy-assistant__panel {
    width: min(380px, calc(100vw - 1.5rem));
    max-height: min(70vh, 560px);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 0.85rem 0.9rem 0.95rem;
}

.lobsy-assistant__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.lobsy-assistant__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.lobsy-assistant__logo {
    width: 64px;
    height: 64px;
}

.lobsy-assistant__header h2 {
    margin: 0;
    font-size: 1rem;
    color: var(--brand);
}

.lobsy-assistant__lead {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.3;
}

.lobsy-assistant__chat {
    flex: 1;
    min-height: 180px;
    max-height: 38vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.35rem 0.1rem 0.55rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.lobsy-assistant__bubble {
    max-width: 94%;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.lobsy-assistant__bubble p {
    margin: 0.2rem 0 0;
    white-space: pre-wrap;
    font-size: 0.88rem;
    line-height: 1.4;
}

.lobsy-assistant__bubble--assistant {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 65%, white));
}

.lobsy-assistant__bubble--user {
    align-self: flex-end;
    background: var(--hover);
}

.lobsy-assistant__bubble--typing {
    opacity: 0.8;
}

.lobsy-assistant__bubble-head {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--brand);
}

.lobsy-assistant__bubble-logo {
    width: 38px;
    height: 38px;
}

.lobsy-assistant__bubble-role {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
}

.lobsy-assistant__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.lobsy-assistant__action {
    font-size: 0.78rem;
    padding: 0.35rem 0.55rem;
}

.lobsy-assistant__disclaimer {
    margin: 0;
    padding: 0.45rem 0.85rem 0.75rem;
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--muted, #6b7280);
}

.lobsy-assistant__disclaimer a {
    white-space: nowrap;
}

.consent-reaccept-backdrop {
    z-index: 80;
}

.consent-reaccept-modal {
    z-index: 81;
    max-width: 32rem;
}

.consent-reaccept__links {
    margin: 0.75rem 0 1rem;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.35rem;
}

.consent-reaccept__check {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    font-size: 0.92rem;
    line-height: 1.4;
}

.consent-reaccept__check input {
    margin-top: 0.2rem;
}

.lobsy-assistant__compose {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.55rem;
}

.lobsy-assistant__compose textarea {
    width: 100%;
    resize: vertical;
    min-height: 2.6rem;
    font: inherit;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.lobsy-assistant__compose textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
    border-color: var(--accent);
}

@media (max-width: 480px) {
    .lobsy-assistant {
        right: 0.5rem;
        bottom: 0.5rem;
    }

    .lobsy-assistant.has-bottom-nav {
        bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
    }

    .lobsy-assistant__fab {
        width: 60px;
        height: 60px;
    }

    .lobsy-assistant__fab-logo {
        width: 50px;
        height: 50px;
    }

    .lobsy-assistant__panel {
        width: calc(100vw - 1rem);
        max-height: calc(100dvh - 5rem);
        padding: 0.65rem 0.7rem 0.75rem;
    }

    .lobsy-assistant.has-bottom-nav .lobsy-assistant__panel {
        max-height: calc(100dvh - 8.5rem - env(safe-area-inset-bottom, 0px));
    }

    .lobsy-assistant__logo {
        width: 48px;
        height: 48px;
    }

    .lobsy-assistant__chat {
        min-height: 100px;
        max-height: 38vh;
    }

    .lobsy-assistant__bubble-logo {
        width: 28px;
        height: 28px;
    }

    .lobsy-assistant__compose {
        margin-top: 0.4rem;
    }

    .lobsy-assistant__compose textarea {
        min-height: 2.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lobsy-assistant__fab:hover,
    .lobsy-assistant__fab:focus-visible {
        transform: none;
    }
}

/* Partner sales page */
.partner-sales__hero {
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.25rem;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(15, 45, 92, 0.08), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at top right, rgba(15, 45, 92, 0.12), transparent 55%);
  border: 1px solid rgba(15, 45, 92, 0.12);
}

.partner-sales__brand {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand, #0f2d5c);
}

.partner-sales__hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--brand-deep, #0a2044);
}

.partner-sales__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  align-items: center;
}

.partner-sales__code {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
}

.partner-sales__usps {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.partner-sales__box {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: rgba(15, 45, 92, 0.06);
  border: 1px solid rgba(15, 45, 92, 0.14);
}

@media (max-width: 640px) {
  .partner-sales__cta .login-submit {
    width: 100%;
  }
}

/* Cookie consent (ePrivacy) */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(15, 45, 92, 0.96), rgba(10, 32, 68, 0.98));
  color: #f7f4f0;
  box-shadow: 0 -8px 28px rgba(15, 45, 92, 0.28);
}

.cookie-consent__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-consent__mascot {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.28));
  animation: lobsy-dialog-bob 1.8s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent__mascot {
    animation: none;
  }
}

.cookie-consent__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.cookie-consent__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(247, 244, 240, 0.92);
  max-width: 46rem;
}

.cookie-consent__text a {
  color: #fff;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cookie-consent__actions .btn-compact {
  background: transparent;
  color: #f7f4f0;
  border: 1px solid rgba(247, 244, 240, 0.45);
}

.cookie-consent__actions .btn-compact--primary {
  background: #f54a1b;
  border-color: #f54a1b;
  color: #fff;
}

@media (max-width: 640px) {
  .cookie-consent__actions {
    width: 100%;
  }

  .cookie-consent__actions .btn-compact {
    flex: 1 1 auto;
  }
}

/* Vacancy categories: create summary, map filter, legend */
.vacancy-category-summary {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.35rem 0 0.85rem;
}

.vacancy-category-swatch,
.category-filter__swatch {
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 0.2rem;
    background: var(--category-color, var(--map-pin));
    flex: 0 0 auto;
    margin-top: 0.2rem;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.vacancy-category-extra {
    margin: 0.75rem 0 1rem;
    padding: 0.75rem 0 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.vacancy-category-extra legend {
    padding: 0;
    font-weight: 650;
}

.vacancy-category-fields {
    margin: 0.65rem 0;
    border: 0;
}

.vacancy-category-fields__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 0.35rem 0.75rem;
}

.category-filter {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.category-filter--desktop {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.85rem;
    margin: 0.35rem 0 0.65rem;
}

.category-filter__option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.map-legend {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    max-width: min(12rem, calc(100% - 1rem));
    pointer-events: none;
}

.map-legend__toggle,
.map-legend__panel {
    pointer-events: auto;
}

.map-legend__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 0 1px rgba(43, 38, 34, 0.12), 0 1px 3px rgba(20, 16, 12, 0.08);
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.map-legend__toggle:hover,
.map-legend__toggle:focus-visible {
    background: #fff;
    box-shadow: 0 0 0 1px rgba(43, 38, 34, 0.18), 0 2px 6px rgba(20, 16, 12, 0.1);
    outline: none;
}

.map-legend.is-open .map-legend__toggle {
    background: #fff;
    box-shadow: 0 0 0 1px rgba(43, 38, 34, 0.16), 0 2px 6px rgba(20, 16, 12, 0.1);
}

.map-legend__toggle-dots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    width: 0.7rem;
    height: 0.7rem;
}

.map-legend__toggle-dots i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--category-color, #9a928a);
}

.map-legend__panel {
    margin: 0;
    padding: 0.4rem 0.45rem;
    border: 0;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 0 1px rgba(43, 38, 34, 0.1), 0 6px 16px rgba(20, 16, 12, 0.1);
}

.map-legend__panel[hidden] {
    display: none !important;
}

.map-legend__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.15rem;
}

.map-legend__item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.15rem 0.25rem;
    font-size: 0.72rem;
    line-height: 1.25;
    color: #5b534c;
    font-weight: 500;
}

.map-legend__swatch {
    width: 0.45rem;
    height: 0.45rem;
    margin-top: 0;
    border-radius: 50%;
    flex: 0 0 auto;
    background: var(--category-color, var(--map-pin));
    box-shadow: none;
}

.map-popup__category,
.map-popup__status {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: #5b534c;
}

@media (max-width: 768px) {
    .map-legend {
        top: 0.4rem;
        right: 0.4rem;
    }

    .category-filter--desktop {
        display: none;
    }
}

/* Geschikt voor 65+ label */
:root {
    --senior65-color: #5B21B6;
}

.suitable65-label,
.suitable65-label-row .suitable65-label,
.map-popup__senior65 .suitable65-label {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 0.15rem;
    background: var(--senior65-color, #5B21B6);
    vertical-align: -0.05rem;
    margin-right: 0.25rem;
}

.suitable65-label-row,
.suitable65-inline,
.map-popup__senior65 {
    margin: 0.25rem 0 0;
    color: var(--senior65-color, #5B21B6);
    font-weight: 650;
    font-size: 0.88rem;
}

.suitable65-inline {
    color: #f3e8ff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.job-card__badge--senior65 {
    background: var(--senior65-color, #5B21B6);
    color: #fff;
}

.suitable65-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.vacancy-detail-category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.35rem 0 0;
    font-weight: 600;
}

/* ===== Westland teaser landing (/westland · /lancering) ===== */
.teaser-shell {
    --wl-ink: #0c243f;
    --wl-ink-soft: #3d536c;
    --wl-foam: #f3f7f4;
    --wl-glass: #d7e8dc;
    --wl-coral: #f54a1b;
    --wl-coral-deep: #d93a12;
    --wl-navy: #0f2d5c;
    --wl-wa: #128c7e;
    --wl-wa-deep: #0b6b60;
    --wl-display: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
    --wl-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--wl-foam);
    color: var(--wl-ink);
    font-family: var(--wl-body);
}

.teaser-shell__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1.25rem;
    background: color-mix(in srgb, #fffcfa 88%, var(--wl-glass));
    border-bottom: 1px solid color-mix(in srgb, var(--wl-navy) 12%, transparent);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(10px);
}

.teaser-shell__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--wl-navy);
    font-family: var(--wl-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.teaser-shell__logo {
    width: 2.1rem;
    height: 2.1rem;
}

.teaser-shell__logo .lobsy-logo__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.teaser-shell__name {
    font-size: 1.2rem;
}

.teaser-shell__nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.teaser-shell__link {
    font-weight: 600;
    color: var(--wl-navy);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
}

.teaser-shell__link:hover {
    background: color-mix(in srgb, var(--wl-navy) 8%, transparent);
}

.teaser-shell__link--quiet {
    color: var(--wl-ink-soft);
    font-weight: 500;
}

.teaser-shell__main {
    flex: 1;
}

.wl-teaser {
    overflow-x: clip;
}

.wl-kicker {
    margin: 0 0 0.55rem;
    font-family: var(--wl-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wl-coral);
}

.wl-kicker--on-dark {
    color: color-mix(in srgb, #fff 70%, var(--wl-coral));
}

/* Hero */
.wl-hero {
    position: relative;
    min-height: min(100svh, 52rem);
    display: grid;
    align-items: end;
    color: #fffcfa;
    isolation: isolate;
}

.wl-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.wl-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transform: scale(1.06);
    animation: wl-hero-drift 22s ease-in-out infinite alternate;
}

.wl-hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 24, 44, 0.28) 0%, rgba(8, 24, 44, 0.55) 42%, rgba(8, 24, 44, 0.88) 100%),
        linear-gradient(90deg, rgba(8, 24, 44, 0.45) 0%, transparent 55%);
}

.wl-hero__content {
    position: relative;
    z-index: 1;
    max-width: 44rem;
    padding: clamp(2.5rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.75rem, 7vw, 4.5rem);
    animation: wl-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wl-hero__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.1rem;
    font-family: var(--wl-display);
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.wl-hero__mark {
    width: clamp(2.6rem, 6vw, 3.4rem);
    height: clamp(2.6rem, 6vw, 3.4rem);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.wl-hero__mark .lobsy-logo__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wl-hero__title {
    margin: 0 0 1rem;
    font-family: var(--wl-display);
    font-size: clamp(2rem, 5.5vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-wrap: balance;
}

.wl-hero__title-accent {
    color: #ffb39a;
}

.wl-hero__lead {
    margin: 0 0 1.6rem;
    max-width: 34rem;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.45;
    color: color-mix(in srgb, #fffcfa 88%, transparent);
}

.wl-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.wl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-family: var(--wl-display);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    border: 2px solid transparent;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.wl-btn:hover {
    transform: translateY(-2px);
}

.wl-btn:active {
    transform: translateY(0);
}

.wl-btn--primary {
    background: var(--wl-coral);
    color: #fff;
    box-shadow: 0 10px 28px rgba(245, 74, 27, 0.35);
    animation: wl-cta-glow 2.8s ease-in-out infinite;
}

.wl-btn--primary:hover {
    background: var(--wl-coral-deep);
}

.wl-btn--on-dark {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.wl-btn--whatsapp {
    background: color-mix(in srgb, #fffcfa 12%, transparent);
    color: #fffcfa;
    border-color: color-mix(in srgb, #fffcfa 45%, transparent);
    backdrop-filter: blur(6px);
}

.wl-btn--whatsapp:hover {
    background: color-mix(in srgb, #fffcfa 22%, transparent);
}

.wl-finale .wl-btn--whatsapp,
.wl-intro .wl-btn--whatsapp {
    background: var(--wl-wa);
    color: #fff;
    border-color: transparent;
}

.wl-finale .wl-btn--whatsapp:hover,
.wl-intro .wl-btn--whatsapp:hover {
    background: var(--wl-wa-deep);
}

.wl-btn__emoji {
    font-size: 1.15em;
    line-height: 1;
    animation: wl-lobster-bob 2.4s ease-in-out infinite;
}

.wl-btn__icon {
    display: inline-flex;
}

/* Intro + portrait */
.wl-intro {
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    max-width: 68rem;
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
    animation: wl-rise 1s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wl-intro__copy h2 {
    margin: 0 0 1rem;
    font-family: var(--wl-display);
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--wl-navy);
}

.wl-intro__copy p {
    margin: 0 0 1rem;
    font-size: 1.08rem;
    line-height: 1.55;
    color: var(--wl-ink-soft);
}

.wl-intro__copy strong {
    color: var(--wl-ink);
}

.wl-intro__whatsapp-note {
    padding: 0.85rem 0;
    border-top: 1px solid color-mix(in srgb, var(--wl-navy) 12%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--wl-navy) 12%, transparent);
}

.wl-text-link {
    display: inline-block;
    margin-top: 0.35rem;
    font-weight: 700;
    color: var(--wl-wa);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.wl-portrait {
    margin: 0;
}

.wl-portrait__frame {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 1.25rem 1.25rem 0.35rem 1.25rem;
    background: var(--wl-navy);
    box-shadow: 0 24px 48px rgba(15, 45, 92, 0.18);
}

.wl-portrait__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.wl-portrait__fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 0.5rem;
    text-align: center;
    color: #fffcfa;
    background: radial-gradient(circle at 40% 30%, var(--wl-coral), var(--wl-navy) 70%);
}

.wl-portrait__initials {
    font-family: var(--wl-display);
    font-size: 3.5rem;
    font-weight: 800;
}

.wl-portrait__hint {
    font-size: 0.85rem;
    opacity: 0.85;
    padding: 0 1rem;
}

.wl-portrait__caption {
    margin-top: 1rem;
}

.wl-portrait__quote {
    margin: 0;
    font-family: var(--wl-display);
    font-size: 1.15rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.4;
    color: var(--wl-navy);
    text-wrap: pretty;
}

.wl-portrait__sign {
    margin: 0.65rem 0 0;
    font-size: 0.95rem;
    color: var(--wl-ink-soft);
}

/* Launch band */
.wl-launch {
    position: relative;
    background:
        linear-gradient(135deg, #0a2044 0%, #123a5c 48%, #1a4d4a 100%);
    color: #fffcfa;
    overflow: hidden;
}

.wl-launch::before {
    content: "";
    position: absolute;
    inset: auto -10% -40% 40%;
    height: 80%;
    background: radial-gradient(circle, rgba(245, 74, 27, 0.35), transparent 65%);
    pointer-events: none;
}

.wl-launch__inner {
    position: relative;
    max-width: 42rem;
    margin: 0 auto;
    padding: clamp(3.25rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem);
    text-align: center;
}

.wl-launch__date {
    display: grid;
    gap: 0.15rem;
    margin: 0 0 1.25rem;
    font-family: var(--wl-display);
    line-height: 0.95;
}

.wl-launch__day {
    font-size: clamp(4.5rem, 16vw, 7.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #ffb39a;
}

.wl-launch__month {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

.wl-launch__year {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 600;
    opacity: 0.85;
}

.wl-launch__lead {
    margin: 0 0 1.5rem;
    font-size: 1.15rem;
    line-height: 1.5;
    text-wrap: pretty;
}

.wl-launch__perks {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: grid;
    gap: 0.85rem;
    text-align: left;
}

.wl-launch__perks li {
    padding: 0.85rem 0 0.85rem 1rem;
    border-left: 3px solid var(--wl-coral);
    background: color-mix(in srgb, #fffcfa 6%, transparent);
    line-height: 1.45;
}

/* Rates — typographic, not card chrome */
.wl-rates {
    max-width: 68rem;
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.wl-rates__header {
    max-width: 40rem;
    margin-bottom: 2rem;
}

.wl-rates__header h2 {
    margin: 0 0 0.75rem;
    font-family: var(--wl-display);
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--wl-navy);
}

.wl-rates__lead {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.5;
    color: var(--wl-ink-soft);
}

.wl-rates__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid color-mix(in srgb, var(--wl-navy) 14%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--wl-navy) 14%, transparent);
}

.wl-rate {
    padding: 1.5rem 1.25rem 1.75rem;
    border-right: 1px solid color-mix(in srgb, var(--wl-navy) 14%, transparent);
}

.wl-rate:last-child {
    border-right: none;
}

.wl-rate__title {
    margin: 0 0 0.75rem;
    font-family: var(--wl-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--wl-navy);
}

.wl-rate__price {
    margin: 0 0 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.wl-rate__amount {
    font-family: var(--wl-display);
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--wl-ink);
}

.wl-rate__unit {
    color: var(--wl-ink-soft);
    font-size: 0.95rem;
}

.wl-rate__note {
    margin: 0;
    color: var(--wl-ink-soft);
    font-size: 0.98rem;
}

.wl-rate__list {
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.wl-rate__row {
    display: grid;
    gap: 0.15rem;
}

.wl-rate__row dt {
    font-weight: 700;
    color: var(--wl-ink);
}

.wl-rate__row dd {
    margin: 0;
    color: var(--wl-ink-soft);
}

.wl-rate__bonus {
    display: inline-block;
    margin-left: 0.25rem;
    color: var(--wl-coral-deep);
    font-weight: 700;
}

.wl-rate--deal {
    background: color-mix(in srgb, var(--wl-glass) 55%, transparent);
}

.wl-rate__badge {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wl-coral-deep);
}

.wl-rate__deal-points {
    margin: 0.75rem 0 0;
    padding-left: 1.1rem;
    color: var(--wl-ink-soft);
    line-height: 1.45;
}

.wl-rates__nuance {
    margin-top: 2rem;
    padding: 1.25rem 0 0;
    border-top: 1px dashed color-mix(in srgb, var(--wl-navy) 22%, transparent);
}

.wl-rates__nuance h3 {
    margin: 0 0 0.65rem;
    font-family: var(--wl-display);
    font-size: 1.1rem;
    color: var(--wl-navy);
}

.wl-rates__nuance ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--wl-ink-soft);
    line-height: 1.5;
}

.wl-rates__nuance li + li {
    margin-top: 0.4rem;
}

/* Finale */
.wl-finale {
    text-align: center;
    padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(4rem, 9vw, 6rem);
    background:
        linear-gradient(180deg, transparent, color-mix(in srgb, var(--wl-glass) 70%, transparent));
}

.wl-finale h2 {
    margin: 0 0 0.75rem;
    font-family: var(--wl-display);
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--wl-navy);
}

.wl-finale > p {
    margin: 0 auto 1.5rem;
    max-width: 34rem;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--wl-ink-soft);
}

.wl-finale__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.wl-finale__fine {
    margin: 1.5rem 0 0;
    font-size: 0.95rem;
    color: var(--wl-ink-soft);
}

.wl-finale__fine a {
    color: var(--wl-navy);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

@keyframes wl-hero-drift {
    from { transform: scale(1.06) translate3d(0, 0, 0); }
    to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@keyframes wl-rise {
    from {
        opacity: 0;
        transform: translate3d(0, 1.25rem, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes wl-cta-glow {
    0%, 100% { box-shadow: 0 10px 28px rgba(245, 74, 27, 0.32); }
    50% { box-shadow: 0 14px 36px rgba(245, 74, 27, 0.48); }
}

@keyframes wl-lobster-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-2px) rotate(-8deg); }
}

@media (max-width: 900px) {
    .wl-intro {
        grid-template-columns: 1fr;
    }

    .wl-portrait {
        order: -1;
        max-width: 22rem;
        margin-inline: auto;
        width: 100%;
    }

    .wl-rates__grid {
        grid-template-columns: 1fr;
    }

    .wl-rate {
        border-right: none;
        border-bottom: 1px solid color-mix(in srgb, var(--wl-navy) 14%, transparent);
    }

    .wl-rate:last-child {
        border-bottom: none;
    }
}

@media (max-width: 560px) {
    .wl-hero {
        min-height: min(100svh, 40rem);
        align-items: end;
    }

    .wl-hero__cta,
    .wl-finale__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .wl-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wl-hero__img,
    .wl-hero__content,
    .wl-intro,
    .wl-btn--primary,
    .wl-btn__emoji {
        animation: none !important;
    }

    .wl-hero__img {
        transform: none;
    }
}

/* ===== CNAME admin help (? checklist) ===== */
.cname-admin__header {
    align-items: flex-start;
}

.cname-admin__title-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.cname-admin__title-row h2 {
    margin: 0;
}

.cname-help-btn {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    border: 1.5px solid color-mix(in srgb, var(--brand) 35%, var(--border));
    background: color-mix(in srgb, var(--brand) 8%, var(--surface));
    color: var(--brand);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.cname-help-btn:hover,
.cname-help-btn[aria-expanded="true"] {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.cname-admin__form label {
    display: block;
    margin-top: 0.75rem;
}

.cname-admin__form input[type="text"],
.cname-admin__form input:not([type]) {
    width: 100%;
    margin-top: 0.25rem;
}

.cname-help-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 24, 40, 0.45);
    z-index: 80;
}

.cname-help-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 81;
    width: min(40rem, calc(100vw - 1.5rem));
    max-height: min(88vh, 44rem);
    overflow: auto;
    background: var(--surface);
    color: var(--text);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 1.25rem 1.35rem 1.1rem;
}

.cname-help-panel__head {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cname-help-panel__kicker {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--coral);
}

.cname-help-panel__head h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--brand);
}

.cname-help-panel__lead {
    margin: 0.4rem 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.cname-help-panel__close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
    padding: 0.15rem 0.35rem;
}

.cname-help-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.cname-help-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    padding: 0.75rem 0.15rem;
    border-top: 1px solid color-mix(in srgb, var(--brand) 12%, var(--border));
}

.cname-help-step:first-child {
    border-top: none;
    padding-top: 0;
}

.cname-help-step__badge {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
}

.cname-help-step__body h3 {
    margin: 0.1rem 0 0.35rem;
    font-size: 1.05rem;
    color: var(--brand-deep);
}

.cname-help-step__body p {
    margin: 0 0 0.45rem;
    color: var(--muted);
    line-height: 1.45;
}

.cname-help-step__body ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text);
    line-height: 1.45;
}

.cname-help-step__body li + li {
    margin-top: 0.25rem;
}

.cname-help-step__body code {
    font-size: 0.88em;
    background: color-mix(in srgb, var(--brand) 8%, var(--pearl-shine));
    padding: 0.05rem 0.3rem;
    border-radius: 0.3rem;
}

.cname-help-step__ok {
    color: var(--success) !important;
}

.cname-help-panel__foot {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 560px) {
    .cname-help-panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-height: 92vh;
        border-radius: 1rem 1rem 0 0;
    }
}
