.mobile-conversations-v2,
.mobile-folders-v2 {
    display: none;
}

@media (max-width: 768px) {
    /* F106 mobile recovery: the Cobalt desktop pages run in ChildLayout
       (.app-shell--child), while the older mobile blueprint rules targeted
       .app-shell--v2. Keep the desktop system at >=1280px and restore the
       mobile-first shell for the seven child pages below that breakpoint. */
    .app-shell--child .mobile-header {
        display: none !important;
    }

    .app-shell--child .mud-main-content {
        background: var(--paper);
        padding-bottom: calc(var(--mobile-nav-h, 68px) + env(safe-area-inset-bottom, 0px)) !important;
    }

    .app-shell--child .app-content-container {
        padding: 0 !important;
        max-width: 100%;
        overflow-x: hidden;
    }

    .app-shell--child .mobile-bottomnav {
        left: 0;
        right: 0;
        width: auto;
        height: calc(var(--mobile-nav-h, 68px) + env(safe-area-inset-bottom, 0px));
        padding: 6px max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px));
        border-top: 1px solid color-mix(in srgb, var(--mist) 80%, transparent);
        background: color-mix(in srgb, #ffffff 94%, var(--paper));
        box-shadow: 0 -10px 30px rgba(27, 27, 31, 0.08);
    }

    .app-shell--child .mobile-nav-item {
        min-height: 54px;
        justify-content: center;
        gap: 3px;
        padding: 8px 0 12px;
        border-radius: var(--r-lg);
        color: var(--ink-2);
        font-size: 10.5px;
        font-weight: 700;
    }

    .app-shell--child .mobile-nav-icon {
        width: 40px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
    }

    .app-shell--child .mobile-nav-item.active {
        background: color-mix(in srgb, var(--primary) 14%, var(--paper));
        color: var(--primary-2);
    }

    .app-shell--child .mobile-nav-item.active .mobile-nav-icon {
        background: transparent;
        color: var(--primary-2);
    }

    .db-mobile,
    .fyxo-list-page,
    .fyxo-chat-page,
    .folder-page,
    .avatar-page-v2,
    .leerprofiel-page,
    .child-settings-page,
    .settings-page-v2 {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .fyxo-list-page,
    .folder-page,
    .avatar-page-v2,
    .leerprofiel-page,
    .child-settings-page,
    .settings-page-v2 {
        min-height: calc(100dvh - var(--mobile-nav-h, 68px));
        padding: 16px 16px calc(var(--mobile-nav-h, 68px) + 32px);
        background: var(--paper);
        color: var(--ink);
    }

    .fyxo-list-page .fyxo-list-header,
    .folder-page .folder-page__header,
    .avatar-page-v2 .avatar-subpage-header,
    .leerprofiel-page .leerprofiel-subpage-header,
    .child-settings-page .child-settings-header,
    .settings-page-v2 .settings-subpage-header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        margin: 0 0 16px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .fyxo-list-page .fyxo-list-heading,
    .folder-page .folder-page__title,
    .avatar-page-v2 .avatar-subpage-title,
    .leerprofiel-page .leerprofiel-subpage-title,
    .child-settings-page .child-settings-title,
    .settings-page-v2 .settings-subpage-title {
        min-width: 0;
    }

    .fyxo-list-page .fyxo-list-title,
    .folder-page .folder-page__title,
    .avatar-page-v2 .avatar-subpage-title,
    .leerprofiel-page .leerprofiel-subpage-title,
    .child-settings-page .child-settings-title,
    .settings-page-v2 .settings-subpage-title {
        margin: 0;
        color: var(--ink);
        font-family: var(--font-display, "Inter", system-ui, sans-serif);
        font-size: 22px;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: 0;
    }

    .fyxo-list-page .fyxo-list-title span,
    .folder-page .folder-page__title span,
    .avatar-page-v2 .avatar-subpage-title span,
    .leerprofiel-page .leerprofiel-subpage-title span,
    .child-settings-page .child-settings-title span,
    .settings-page-v2 .settings-subpage-title span {
        color: var(--primary-2);
        font-family: var(--font-accent, "Fraunces", Georgia, serif);
        font-style: italic;
        font-weight: 600;
    }

    .fyxo-list-page .fyxo-list-date,
    .fyxo-list-page .fyxo-list-subtitle {
        display: block;
        margin: 0;
    }

    .fyxo-list-page .fyxo-list-date {
        color: var(--ink-2);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .fyxo-list-page .fyxo-list-subtitle {
        margin-top: 4px;
        color: var(--ink-2);
        font-size: 13px;
        line-height: 1.4;
    }

    .fyxo-list-page .fyxo-list-brandmark {
        display: none;
    }

    .fyxo-list-page .fyxo-list-header__actions,
    .folder-page .folder-page__actions {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
    }

    .fyxo-list-page .fyxo-list-header__actions .fyxo-btn--ghost,
    .fyxo-list-page .fyxo-list-header__actions .fyxo-btn--primary span,
    .folder-page .folder-page__actions .fyxo-btn span {
        display: none;
    }

    .fyxo-list-page .fyxo-list-header__actions .fyxo-btn,
    .folder-page .folder-page__actions .fyxo-btn {
        width: 44px;
        min-width: 44px;
        height: 44px;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
    }

    .fyxo-list-page .fyxo-list-toolbar {
        display: block;
        margin: 0 0 12px;
        padding: 0;
        border: 0;
    }

    .fyxo-list-page .fyxo-search-box {
        min-height: 48px;
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 10px;
        padding: 0 14px;
        border: 1px solid var(--mist);
        border-radius: var(--r-lg);
        background: #ffffff;
        color: var(--ink-2);
        box-shadow: var(--shadow-card);
    }

    .fyxo-list-page .fyxo-search-box input {
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--ink);
        font: inherit;
        font-size: 14px;
    }

    .fyxo-list-page .fyxo-search-kbd,
    .fyxo-list-page .fyxo-sort-pill {
        display: none;
    }

    .fyxo-list-page .fyxo-filter-pills {
        display: flex;
        gap: 8px;
        margin: 0 -16px 12px;
        padding: 0 16px 2px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .fyxo-list-page .fyxo-filter-pill {
        min-height: 40px;
        flex: 0 0 auto;
        padding: 0 14px;
        border: 1px solid var(--mist);
        border-radius: 999px;
        background: #ffffff;
        color: var(--ink-2);
        font: inherit;
        font-size: 12px;
        font-weight: 800;
    }

    .fyxo-list-page .fyxo-filter-pill--active {
        border-color: var(--ink);
        background: var(--ink);
        color: #ffffff;
    }

    .fyxo-list-page .fyxo-filter-pill span {
        min-width: 22px;
        padding: 2px 7px;
        border-radius: 999px;
        background: var(--paper);
        color: inherit;
        font-size: 11px;
    }

    .fyxo-list-page .conv-section {
        margin: 0 0 18px;
    }

    .fyxo-list-page .conv-section__header {
        margin: 0 0 8px;
        padding: 0;
    }

    .fyxo-list-page .conv-section__unfiled-label {
        color: var(--ink-2);
        font-size: 11px;
        letter-spacing: 0.12em;
    }

    .fyxo-list-page .conv-section__count {
        min-width: 24px;
        padding: 2px 8px;
        border: 1px solid var(--mist);
        border-radius: 999px;
        background: #ffffff;
        color: var(--ink-2);
        font-size: 12px;
        font-weight: 800;
        text-align: center;
    }

    .fyxo-list-page .fyxo-conv-list {
        gap: 10px;
    }

    .fyxo-list-page .fyxo-conv-item {
        position: relative;
        display: block;
        border-radius: var(--r-lg);
        overflow: visible;
    }

    .fyxo-list-page .fyxo-conv-link {
        border: 1px solid var(--mist);
        border-radius: var(--r-lg);
        background: #ffffff;
        box-shadow: var(--shadow-card);
    }

    .fyxo-list-page .fyxo-conv-item__inner {
        min-height: 78px;
        gap: 12px;
        padding: 14px 52px 14px 14px;
    }

    .fyxo-list-page .fyxo-conv-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: color-mix(in srgb, var(--primary) 12%, var(--paper));
        color: var(--primary-2);
    }

    .fyxo-list-page .fyxo-conv-title {
        color: var(--ink);
        font-size: 15px;
        font-weight: 800;
    }

    .fyxo-list-page .fyxo-conv-preview {
        display: block;
        overflow: hidden;
        max-width: 220px;
        color: var(--ink-2);
        font-size: 12.5px;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fyxo-list-page .fyxo-conv-meta {
        display: flex;
        gap: 8px;
        overflow: hidden;
        color: var(--ink-2);
        font-size: 11.5px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fyxo-list-page .fyxo-folder-chip {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        max-width: 120px;
        overflow: hidden;
        color: var(--primary-2);
        text-overflow: ellipsis;
    }

    .fyxo-list-page .fyxo-conv-arrow {
        display: none;
    }

    .fyxo-list-page .fyxo-conv-actions {
        position: absolute;
        top: 50%;
        right: 8px;
        z-index: 2;
        display: flex;
        border: 0;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(-50%);
    }

    .fyxo-list-page .fyxo-conv-actions .fyxo-conv-action:not(.fyxo-conv-folder-btn) {
        display: none;
    }

    .fyxo-list-page .fyxo-conv-action,
    .fyxo-list-page .fyxo-conv-folder-btn {
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
        border: 1px solid var(--mist);
        border-radius: 50%;
        background: #ffffff;
        color: var(--primary-2);
        box-shadow: 0 4px 12px rgba(14, 26, 58, 0.06);
    }

    .folder-page .folder-form-panel,
    .folder-page .folder-empty,
    .folder-page .fyxo-state-card {
        border: 1px solid var(--mist);
        border-radius: var(--r-lg);
        background: #ffffff;
        box-shadow: var(--shadow-card);
    }

    .folder-page .folder-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 14px 0 0;
        padding: 0;
        list-style: none;
    }

    .folder-page .folder-card {
        min-width: 0;
        min-height: 142px;
        border: 1px solid var(--mist);
        border-radius: var(--r-lg);
        background: #ffffff;
        box-shadow: var(--shadow-card);
    }

    .folder-page .folder-card__link {
        min-height: 104px;
        padding: 14px;
    }

    .folder-page .folder-card__icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        background: color-mix(in srgb, var(--primary) 14%, var(--paper));
        color: var(--primary-2);
    }

    .folder-page .folder-card__name {
        font-size: 14px;
        font-weight: 900;
    }

    .folder-page .folder-card__meta {
        font-size: 11px;
    }

    .folder-page .folder-card__actions {
        display: flex;
        padding: 0 10px 10px;
        gap: 6px;
    }

    .folder-page .fyxo-btn-icon {
        min-width: 38px;
        min-height: 38px;
    }

    .fyxo-chat-page {
        position: fixed;
        inset: 0 0 calc(var(--mobile-nav-h, 68px) + env(safe-area-inset-bottom, 0px));
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        max-width: none;
        padding: 0;
        background: var(--paper);
    }

    .fyxo-chat-page .fyxo-chat-header {
        position: sticky;
        top: 0;
        z-index: 30;
        display: grid;
        grid-template-columns: 44px 40px minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        min-height: 64px;
        padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
        border-bottom: 1px solid var(--mist);
        background: color-mix(in srgb, #ffffff 94%, var(--paper));
        box-shadow: 0 8px 24px rgba(14, 26, 58, 0.05);
    }

    .fyxo-chat-page .fyxo-chat-back,
    .fyxo-chat-page .fyxo-chat-action {
        width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
        border: 1px solid var(--mist);
        border-radius: 50%;
        background: #ffffff;
        color: var(--ink);
        box-shadow: none;
    }

    .fyxo-chat-page .fyxo-chat-avatar {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .fyxo-chat-page .fyxo-chat-title-text {
        display: block;
        overflow: hidden;
        color: var(--ink);
        font-size: 14px;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fyxo-chat-page .fyxo-chat-meta-pill,
    .fyxo-chat-page .fyxo-chat-action--label span,
    .fyxo-chat-page .fyxo-chat-action--danger,
    .fyxo-chat-page .fyxo-chat-actions .fyxo-chat-action:last-child {
        display: none;
    }

    .fyxo-chat-page .fyxo-chat-presence {
        overflow: hidden;
        color: var(--ink-2);
        font-size: 11px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .fyxo-chat-page .fyxo-chat-notice-wrap,
    .fyxo-chat-page .fyxo-chat-state-wrap {
        padding: 12px;
    }

    .fyxo-chat-page .fyxo-bubble-stream {
        min-height: 0;
        padding: 14px 12px 18px;
        overflow-y: auto;
    }

    .fyxo-chat-page .fyxo-bubble-row {
        gap: 8px;
        margin-bottom: 10px;
    }

    .fyxo-chat-page .fyxo-bubble {
        max-width: min(82vw, 310px);
        border-radius: 16px;
        font-size: 14px;
        line-height: 1.45;
    }

    .fyxo-chat-page .fyxo-bubble--user {
        border-bottom-right-radius: 6px;
        background: var(--primary);
        color: #ffffff;
    }

    .fyxo-chat-page .fyxo-bubble--fyxo {
        border: 1px solid var(--mist);
        border-bottom-left-radius: 6px;
        background: #ffffff;
        color: var(--ink);
    }

    .fyxo-chat-page .fyxo-composer {
        position: sticky;
        bottom: 0;
        z-index: 25;
        padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--mist);
        background: color-mix(in srgb, #ffffff 94%, var(--paper));
    }

    .fyxo-chat-page .fyxo-composer-inner {
        display: grid;
        grid-template-columns: 36px 36px 36px minmax(0, 1fr) 44px;
        align-items: end;
        gap: 6px;
        padding: 8px;
        border: 1px solid var(--mist);
        border-radius: var(--r-lg);
        background: var(--paper);
    }

    .fyxo-chat-page .fyxo-composer-icon-btn {
        width: 36px;
        height: 36px;
        min-height: 36px;
        border-radius: 50%;
        background: #ffffff;
    }

    .fyxo-chat-page .fyxo-composer-input {
        min-height: 40px;
        max-height: 116px;
        padding: 9px 0;
        border: 0;
        background: transparent;
        font-size: 14px;
    }

    .fyxo-chat-page .fyxo-send-btn {
        width: 44px;
        height: 44px;
        min-height: 44px;
        border-radius: 50%;
        background: var(--primary);
        box-shadow: 0 4px 14px rgba(45, 107, 255, 0.35);
    }

    .fyxo-chat-page .fyxo-composer-footnote {
        display: none;
    }

    .avatar-page-v2,
    .leerprofiel-page,
    .child-settings-page,
    .settings-page-v2 {
        padding-top: 14px;
    }

    .avatar-page-v2 .avatar-subpage-back,
    .leerprofiel-page .leerprofiel-subpage-back,
    .child-settings-page .child-settings-back,
    .settings-page-v2 .settings-subpage-back {
        width: 40px;
        height: 40px;
        min-height: 40px;
        justify-content: center;
        padding: 0;
        border: 1px solid var(--mist);
        border-radius: 50%;
        background: #ffffff;
        color: var(--ink);
        box-shadow: var(--shadow-card);
    }

    .avatar-page-v2 .avatar-subpage-back span,
    .leerprofiel-page .leerprofiel-subpage-back span,
    .child-settings-page .child-settings-back span,
    .settings-page-v2 .settings-subpage-back span {
        display: none;
    }

    .avatar-page-v2 .avatar-subpage-save,
    .child-settings-page .child-settings-save {
        min-height: 40px;
        padding: 0 14px;
        border-radius: 999px;
        background: var(--primary);
        color: #ffffff;
        font-weight: 900;
    }

    .avatar-page-v2 .avatar-page-scroll,
    .leerprofiel-page .leerprofiel-scroll,
    .child-settings-page .child-settings-scroll,
    .settings-page-v2 .settings-page-scroll {
        padding-bottom: calc(var(--mobile-nav-h, 68px) + 32px);
    }

    .avatar-page-v2 .avatar-hero,
    .leerprofiel-page .leerprofiel-hero,
    .child-settings-page .child-settings-hero,
    .settings-page-v2 .settings-hero {
        margin: 0 0 16px;
        padding: 18px;
        border: 1px solid var(--mist);
        border-radius: var(--r-lg);
        background: #ffffff;
        box-shadow: var(--shadow-card);
    }

    .avatar-page-v2 .avatar-hero::after,
    .leerprofiel-page .leerprofiel-hero::after,
    .child-settings-page .child-settings-hero::after,
    .settings-page-v2 .settings-hero::after {
        display: none;
    }

    .leerprofiel-page .leerprofiel-hero-title,
    .child-settings-page .child-settings-hero-title,
    .settings-page-v2 .settings-hero-title {
        color: var(--ink);
        font-size: 24px;
        font-weight: 900;
        line-height: 1.1;
    }

    .leerprofiel-page .leerprofiel-hero-sub,
    .child-settings-page .child-settings-hero-sub,
    .settings-page-v2 .settings-hero-sub {
        color: var(--ink-2);
        font-size: 13px;
        line-height: 1.45;
    }

    .leerprofiel-page .leerprofiel-card,
    .leerprofiel-page .leerprofiel-info-block,
    .child-settings-page .child-settings-card,
    .settings-page-v2 .version-card,
    .settings-page-v2 .pwa-install-block {
        border: 1px solid var(--mist);
        border-radius: var(--r-lg);
        background: #ffffff;
        box-shadow: var(--shadow-card);
    }

    .leerprofiel-page .leerprofiel-row,
    .child-settings-page .toggle-row {
        min-height: 56px;
    }

    .leerprofiel-page .leerprofiel-row-icon,
    .child-settings-page .toggle-row-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: color-mix(in srgb, var(--primary) 14%, var(--paper));
        color: var(--primary-2);
    }

    /* Blazor scoped component styles are loaded after app-mobile.css. Keep a
       higher-specificity mobile bridge for the Cobalt child shell so the mobile
       handoff rules still win without using the desktop breakpoint. */
    .app-shell--child .app-content-container :is(.db-mobile,
    .fyxo-list-page,
    .fyxo-chat-page,
    .folder-page,
    .avatar-page-v2,
    .leerprofiel-page,
    .child-settings-page,
    .settings-page-v2) {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .app-shell--child .app-content-container :is(.fyxo-list-page,
    .folder-page,
    .avatar-page-v2,
    .leerprofiel-page,
    .child-settings-page,
    .settings-page-v2) {
        min-height: calc(100dvh - var(--mobile-nav-h, 68px));
        padding: 16px 16px calc(var(--mobile-nav-h, 68px) + 32px);
        background: var(--paper);
        color: var(--ink);
    }

    .app-shell--child .fyxo-list-page .fyxo-list-date,
    .app-shell--child .fyxo-list-page .fyxo-list-subtitle {
        display: block;
    }

    .app-shell--child .fyxo-list-page .fyxo-list-title {
        letter-spacing: 0;
    }

    .app-shell--child .fyxo-list-page .fyxo-list-toolbar {
        display: block;
    }

    .app-shell--child .fyxo-list-page .fyxo-filter-pills {
        display: flex;
    }

    .app-shell--child .fyxo-list-page .fyxo-conv-preview {
        display: block;
    }

    .app-shell--child .fyxo-list-page .fyxo-folder-chip {
        display: inline-flex;
    }

    .app-shell--child .fyxo-list-page .fyxo-conv-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --mobile-bg: var(--paper);
        --mobile-surface: #ffffff;
        --mobile-surface-2: var(--paper-2);
        --mobile-primary: var(--primary);
        --mobile-primary-mid: var(--primary-2);
        --mobile-primary-lt: color-mix(in srgb, var(--primary) 14%, var(--paper));
        --mobile-accent: var(--primary-2);
        --mobile-accent-lt: color-mix(in srgb, var(--primary) 18%, var(--paper));
        --mobile-text: var(--ink);
        --mobile-text-mid: var(--ink-2);
        --mobile-text-muted: var(--ink-2);
        --mobile-border: var(--mist);
        --mobile-shadow: var(--shadow-card);
        --mobile-shadow-lg: var(--shadow-pop);
        --mobile-radius: 18px;
        --mobile-radius-sm: 12px;
        --mobile-nav-h: 68px;
    }

    body {
        background: var(--mobile-bg);
    }

    .app-shell--v2 .mobile-header {
        display: none !important;
    }

    .app-shell--v2 .mud-main-content {
        background: var(--mobile-bg);
        padding-bottom: var(--mobile-nav-h) !important;
    }

    .app-shell--v2 .app-content-container {
        padding: 0 !important;
    }

    .app-shell--v2 .mobile-bottomnav {
        left: 0;
        right: 0;
        width: auto;
        max-width: 100vw;
        box-sizing: border-box;
        overflow: hidden;
        height: var(--mobile-nav-h);
        align-items: stretch;
        padding: 0 max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0) max(4px, env(safe-area-inset-left, 0px));
        background: #ffffff;
        border-top: 1px solid var(--mobile-border);
        box-shadow: 0 -8px 24px rgba(30, 19, 64, 0.08);
    }

    .app-shell--v2 .mobile-nav-item {
        justify-content: center;
        gap: 3px;
        padding: 8px 0 12px;
        color: var(--mobile-text-muted);
        font-size: 10.5px;
        font-weight: 600;
    }

    .app-shell--v2 .mobile-nav-icon {
        width: 40px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        transition: background 0.18s;
    }

    /* `.mobile-nav-item.active` and `.mobile-nav-item.active .mobile-nav-icon`
       definitive Cobalt Blueprint styling lives in the @media block lower in
       this file (around line 1820) — kept there so the file's two media
       blocks don't conflict and Codex F083 round 2 stays clean. */

    .app-shell--v2 .mobile-nav-dot {
        display: none;
    }

    .mobile-page-enter {
        animation: mobile-page-enter 0.2s ease both;
    }

    /* F084: the chat page wrapper carries the fixed-position .mobile-chat-header.
       The CSS spec promotes any transform: none in a `to` keyframe to
       matrix(1,0,0,1,0,0) for interpolation, so animation-fill-mode: both
       leaves a residual identity matrix on the wrapper — which still
       creates a new containing block and breaks viewport-fixed positioning
       for descendants. The chat page therefore uses an opacity-only fade
       so no transform value is ever applied to the wrapper. */
    .calm-chat-page.mobile-page-enter {
        animation: none;
    }

    @keyframes mobile-page-enter {
        from {
            opacity: 0;
            transform: translateY(6px);
        }

        to {
            opacity: 1;
            transform: none;
        }
    }

    .mobile-home-v2 {
        min-height: calc(100vh - var(--mobile-nav-h));
        background: var(--mobile-bg);
        padding-bottom: 20px;
    }

    .mobile-home-v2 .home-hero {
        position: relative;
        min-height: 274px;
        padding: 28px 22px 0;
        overflow: hidden;
        background:
            radial-gradient(circle at 83% 13%, rgba(255, 255, 255, 0.18) 0 5px, transparent 6px),
            radial-gradient(circle at 14% 88%, rgba(255, 255, 255, 0.13) 0 4px, transparent 5px),
            linear-gradient(155deg, var(--ink) 0%, var(--primary) 45%, var(--oat) 100%);
        color: #ffffff;
    }

    .mobile-home-v2 .home-hero::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -1px;
        left: 0;
        height: 28px;
        background: var(--mobile-bg);
        border-radius: 28px 28px 0 0;
        z-index: 2;
    }

    .mobile-home-v2 .hero-sparkles {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        pointer-events: none;
    }

    .mobile-home-v2 .hero-top {
        position: relative;
        z-index: 4;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
    }

    .mobile-home-v2 .hero-greeting-text {
        margin-bottom: 3px;
        color: rgba(255, 255, 255, 0.72);
        font-size: 18px;
        font-weight: 600;
    }

    .calm-dashboard-mobile {
        padding: 10px 0 20px;
    }

    .calm-dashboard-mobile .app-greet {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 10px 22px 6px;
        margin-bottom: 14px;
    }

    .calm-dashboard-mobile .greet-kicker {
        margin: 0 0 2px;
        color: var(--ink-2);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .calm-dashboard-mobile .greet-name {
        margin: 0;
        color: var(--ink);
        font-size: 24px;
        font-weight: 800;
        line-height: 1.1;
    }

    .calm-dashboard-mobile .app-greet .hero-user-avatar {
        width: 38px;
        height: 38px;
        border: 0;
        background: var(--ink);
        color: #fff;
        font-size: 13px;
        font-weight: 800;
    }

    .calm-dashboard-mobile .today-card {
        min-height: 150px;
        margin: 0 20px 14px;
        padding: 18px;
        border-radius: 18px;
        background: var(--ink);
        color: #fff;
        box-shadow: var(--shadow-card);
    }

    .calm-dashboard-mobile .today-card::after,
    .calm-dashboard-mobile .hero-sparkles {
        display: none;
    }

    .calm-dashboard-mobile .today-kicker {
        margin: 0 0 4px;
        color: rgba(255,255,255,.62);
        font-size: 10.5px;
        font-weight: 800;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .calm-dashboard-mobile .today-title {
        max-width: 190px;
        margin: 0 0 8px;
        color: #fff;
        font-size: 16px;
        font-weight: 800;
        line-height: 1.25;
    }

    .calm-dashboard-mobile .hero-start-btn {
        min-width: auto;
        height: auto;
        margin-top: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        color: var(--primary);
        font-size: 12px;
        font-weight: 700;
        backdrop-filter: none;
    }

    .calm-dashboard-mobile .hero-fyxo {
        right: 10px;
        bottom: 10px;
    }

    .calm-dashboard-mobile .hero-fyxo .fyxo {
        width: 92px;
        height: 92px;
    }

    .calm-dashboard-mobile .hero-fyxo img {
        width: 92px;
        height: 92px;
        filter: drop-shadow(0 10px 24px color-mix(in srgb, var(--oat) 25%, transparent));
    }

    .mobile-home-v2 .hero-name {
        margin: 0;
        color: #ffffff;
        font-size: 40px;
        font-weight: 900;
        line-height: 1.03;
        letter-spacing: 0;
    }

    .mobile-home-v2 .hero-sub {
        max-width: 220px;
        margin: 10px 0 0;
        color: rgba(255, 255, 255, 0.78);
        font-size: 20px;
        font-weight: 600;
        line-height: 1.45;
    }

    .mobile-home-v2 .hero-start-btn {
        height: 52px;
        min-width: 250px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-top: 18px;
        padding: 0 26px;
        border: 2px solid rgba(255, 255, 255, 0.35);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.22);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
        color: #ffffff;
        font-size: 20px;
        font-weight: 850;
        line-height: 1;
        cursor: pointer;
        backdrop-filter: blur(8px);
    }

    .mobile-home-v2 .hero-start-btn:disabled {
        opacity: 0.72;
        cursor: progress;
    }

    .mobile-home-v2 .hero-user-avatar {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 64px;
        height: 64px;
        border: 2px solid rgba(255, 255, 255, 0.45);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.25);
        color: #ffffff;
        font-size: 25px;
        font-weight: 900;
        letter-spacing: 0;
        text-decoration: none;
        overflow: hidden;
    }

    .mobile-home-v2 .hero-user-avatar-image {
        width: 100%;
        height: 100%;
        display: block;
        border-radius: 50%;
        object-fit: cover;
    }

    .mobile-home-v2 .hero-fyxo {
        position: absolute;
        right: -18px;
        bottom: 12px;
        z-index: 3;
        pointer-events: none;
    }

    .mobile-home-v2 .hero-fyxo img {
        width: 240px;
        height: 240px;
        object-fit: contain;
        display: block;
        mix-blend-mode: normal;
        filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.22));
    }

    .mobile-home-v2 .pwa-install-block {
        margin: 18px 20px 0;
        width: calc(100% - 40px) !important;
        max-width: calc(100% - 40px);
        box-sizing: border-box;
    }

    .mobile-home-v2 .home-pad {
        margin-top: 20px;
        padding: 0 20px;
    }

    .mobile-home-v2 .section-label {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 18px;
        color: var(--mobile-text);
        font-size: 20px;
        font-weight: 900;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .mobile-home-v2 .section-label::after {
        content: "";
        flex: 1;
        height: 1.5px;
        border-radius: 2px;
        background: var(--mobile-border);
    }

    .mobile-home-v2 .qs-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-bottom: 28px;
    }

    .mobile-home-v2 .qs-card {
        min-height: 164px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 18px;
        padding: 24px 20px;
        border: 0;
        border-radius: 24px;
        text-align: left;
        cursor: pointer;
    }

    .mobile-home-v2 .qs-card:disabled {
        opacity: 0.68;
        cursor: progress;
    }

    .mobile-home-v2 .qs-icon {
        width: 54px;
        height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        font-size: 28px;
    }

    .mobile-home-v2 .qs-label {
        font-size: 21px;
        font-weight: 800;
        line-height: 1.22;
    }

    .mobile-home-v2 .qs-toets {
        background: linear-gradient(140deg, #f0e6ff, #ddd1ff);
        color: #065f46;
    }

    .mobile-home-v2 .qs-huiswerk {
        background: linear-gradient(140deg, #fff3e0, #ffe0b2);
        color: #b45309;
    }

    .mobile-home-v2 .qs-spreek {
        background: linear-gradient(140deg, #e8f5e9, #c8e6c9);
        color: var(--ink);
    }

    .mobile-home-v2 .qs-vraag {
        background: linear-gradient(140deg, #e3f2fd, #bbdefb);
        color: #1e40af;
    }

    .mobile-home-v2 .qs-card .qs-icon {
        background: rgba(255, 255, 255, 0.58);
    }

    .mobile-home-v2 .recent-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-home-v2 .recent-item {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 18px;
        padding: 18px 22px;
        border: 0;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 1px 6px color-mix(in srgb, var(--primary) 7%, transparent);
        text-align: left;
        text-decoration: none;
    }

    .mobile-home-v2 .recent-dot {
        width: 58px;
        height: 58px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        border-radius: 14px;
        background: color-mix(in srgb, var(--primary) 14%, var(--paper));
        color: var(--primary);
        font-size: 28px;
    }

    .mobile-home-v2 .recent-info {
        flex: 1;
        min-width: 0;
    }

    .mobile-home-v2 .recent-title {
        display: block;
        overflow: hidden;
        color: var(--mobile-text);
        font-size: 21px;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-home-v2 .recent-meta {
        display: block;
        margin-top: 1px;
        color: var(--mobile-text-muted);
        font-size: 16px;
    }

    .mobile-home-v2 .recent-chip {
        flex: 0 0 auto;
        padding: 5px 12px;
        border-radius: 20px;
        background: color-mix(in srgb, var(--primary) 14%, var(--paper));
        color: var(--primary);
        font-size: 14px;
        font-weight: 800;
    }

    .mobile-home-v2 .recent-empty {
        margin: 0;
        padding: 14px;
        border-radius: var(--r-md);
        background: #ffffff;
        color: var(--mobile-text-muted);
        font-size: 13px;
        box-shadow: var(--mobile-shadow);
    }

    .calm-dashboard-mobile .home-pad {
        margin-top: 20px;
    }

    .calm-dashboard-mobile .section-label {
        margin-bottom: 8px;
        color: var(--ink-2);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .06em;
    }

    .calm-dashboard-mobile .qs-grid {
        gap: 8px;
        margin-bottom: 18px;
    }

    .calm-dashboard-mobile .qs-card {
        min-height: 96px;
        gap: 8px;
        padding: 14px 12px;
        border: 1px solid var(--mist);
        border-radius: 14px;
        background: var(--paper-2);
        color: var(--ink);
        box-shadow: var(--shadow-card);
    }

    .calm-dashboard-mobile .qs-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 16px;
    }

    .calm-dashboard-mobile .qs-label {
        font-size: 12.5px;
        font-weight: 800;
        line-height: 1.3;
    }

    .calm-dashboard-mobile .qs-toets,
    .calm-dashboard-mobile .qs-huiswerk,
    .calm-dashboard-mobile .qs-spreek,
    .calm-dashboard-mobile .qs-vraag {
        background: var(--paper-2);
        color: var(--ink);
    }

    .calm-dashboard-mobile .qs-toets .qs-icon {
        background: color-mix(in srgb, var(--primary) 16%, var(--paper));
        color: var(--primary-2);
    }

    .calm-dashboard-mobile .qs-huiswerk .qs-icon {
        background: color-mix(in srgb, var(--primary) 20%, var(--paper));
        color: #a85d12;
    }

    .calm-dashboard-mobile .qs-spreek .qs-icon {
        background: color-mix(in srgb, var(--berry) 13%, var(--paper));
        color: var(--berry);
    }

    .calm-dashboard-mobile .qs-vraag .qs-icon {
        background: color-mix(in srgb, var(--oat) 25%, var(--paper));
        color: var(--ink-2);
    }

    .calm-dashboard-mobile .recent-item {
        gap: 10px;
        padding: 10px 12px;
        border: 1px solid var(--mist);
        border-radius: 12px;
        background: var(--paper-2);
        box-shadow: var(--shadow-card);
    }

    .calm-dashboard-mobile .recent-dot {
        width: 30px;
        height: 30px;
        border-radius: 9px;
        background: color-mix(in srgb, var(--primary) 14%, var(--paper));
        color: var(--primary-2);
        font-size: 14px;
    }

    .calm-dashboard-mobile .recent-title {
        color: var(--ink);
        font-size: 13px;
        font-weight: 700;
    }

    .calm-dashboard-mobile .recent-meta,
    .calm-dashboard-mobile .recent-chip {
        color: var(--ink-2);
        font-size: 10.5px;
    }

    .calm-dashboard-mobile .recent-chip {
        border: 1px solid var(--mist);
        background: transparent;
    }

    .conversation-desktop-view,
    .folders-desktop-view {
        display: none !important;
    }

    .mobile-conversations-v2,
    .mobile-folders-v2 {
        display: block;
        min-height: calc(100vh - var(--mobile-nav-h));
        padding: 16px 16px 86px;
        background: var(--mobile-bg);
    }

    .mobile-list-hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin: -16px -16px 16px;
        padding: 22px 18px 24px;
        border-radius: 0 0 26px 26px;
        background: linear-gradient(155deg, var(--ink) 0%, var(--primary) 100%);
        color: #ffffff;
        overflow: hidden;
    }

    .mobile-list-hero--folders {
        min-height: 154px;
        background:
            radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.24), transparent 26%),
            linear-gradient(155deg, var(--ink) 0%, var(--primary) 100%);
    }

    .mobile-list-kicker {
        margin: 0 0 4px;
        color: rgba(255, 255, 255, 0.72);
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .mobile-list-hero h1 {
        margin: 0;
        color: #ffffff;
        font-size: 25px;
        line-height: 1.08;
    }

    .mobile-list-hero p:last-child {
        max-width: 220px;
        margin: 7px 0 0;
        color: rgba(255, 255, 255, 0.78);
        font-size: 13px;
        line-height: 1.4;
    }

    .mobile-list-hero img {
        width: 118px;
        height: 118px;
        object-fit: contain;
        flex: 0 0 auto;
        filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.2));
    }

    .mobile-search {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 14px;
        height: 46px;
        border: 1px solid var(--mobile-border);
        border-radius: 999px;
        background: #ffffff;
        color: var(--mobile-text-muted);
        box-shadow: var(--mobile-shadow);
    }

    .mobile-search input {
        min-width: 0;
        flex: 1;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--mobile-text);
        font: inherit;
    }

    .mobile-filter-row {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 14px 0 12px;
        scrollbar-width: none;
    }

    .mobile-filter-chip {
        flex: 0 0 auto;
        padding: 8px 13px;
        border: 1px solid var(--mobile-border);
        border-radius: 999px;
        background: #ffffff;
        color: var(--mobile-text-mid);
        font-size: 12px;
        font-weight: 800;
    }

    .mobile-filter-chip.active {
        border-color: var(--primary);
        background: color-mix(in srgb, var(--primary) 14%, var(--paper));
        color: var(--primary);
    }

    .mobile-conversation-list {
        display: flex;
        flex-direction: column;
        gap: 9px;
    }

    .mobile-conversation-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        align-items: center;
        padding: 11px;
        border-radius: var(--r-md);
        background: #ffffff;
        box-shadow: var(--mobile-shadow);
    }

    .mobile-conversation-card a {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 11px;
        color: inherit;
        text-decoration: none;
    }

    .mobile-conversation-icon {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: color-mix(in srgb, var(--primary) 14%, var(--paper));
        color: var(--primary);
        font-weight: 900;
    }

    .mobile-conversation-copy {
        min-width: 0;
        flex: 1;
    }

    .mobile-conversation-title {
        display: block;
        overflow: hidden;
        color: var(--mobile-text);
        font-size: 14px;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-conversation-meta {
        display: block;
        margin-top: 2px;
        color: var(--mobile-text-muted);
        font-size: 11.5px;
    }

    .mobile-icon-danger {
        width: 34px;
        height: 34px;
        border: 0;
        border-radius: 50%;
        background: #fef2f2;
        color: #b91c1c;
        font-weight: 900;
    }

    .mobile-empty-panel,
    .mobile-info-panel,
    .mobile-create-panel {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 14px;
        border-radius: var(--r-md);
        background: #ffffff;
        color: var(--mobile-text-muted);
        box-shadow: var(--mobile-shadow);
    }

    .mobile-empty-panel strong,
    .mobile-info-panel strong {
        color: var(--mobile-text);
    }

    .mobile-fab {
        position: fixed;
        right: 18px;
        bottom: calc(var(--mobile-nav-h) + 16px);
        width: 56px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--primary);
        color: #ffffff;
        font-size: 32px;
        font-weight: 500;
        line-height: 1;
        text-decoration: none;
        box-shadow: var(--mobile-shadow-lg);
        z-index: 30;
    }

    .mobile-conversations-v2 {
        position: relative;
        padding: 0 0 86px;
        overflow-x: hidden;
    }

    .mobile-conversations-v2 .mobile-list-hero--conversations {
        position: relative;
        display: block;
        min-height: 144px;
        margin: 0;
        padding: 20px 20px 56px;
        border-radius: 0;
        background:
            radial-gradient(circle at 88% 5%, rgba(255, 255, 255, 0.08) 0 85px, transparent 86px),
            linear-gradient(155deg, var(--ink) 0%, var(--primary) 50%, var(--oat) 100%);
    }

    .mobile-conversations-v2 .mobile-list-hero--conversations::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -1px;
        left: 0;
        height: 32px;
        border-radius: 32px 32px 0 0;
        background: var(--mobile-bg);
        z-index: 1;
    }

    .mobile-conversations-v2 .mobile-list-hero--conversations > div {
        position: relative;
        z-index: 2;
    }

    .mobile-conversations-v2 .mobile-list-hero--conversations h1 {
        max-width: 205px;
        font-size: 26px;
        font-weight: 900;
    }

    .mobile-conversations-v2 .mobile-list-hero--conversations img {
        position: absolute;
        top: 8px;
        right: -16px;
        width: 128px;
        height: 128px;
        z-index: 2;
    }

    .mobile-conversations-v2 .mobile-search--floating {
        position: relative;
        z-index: 5;
        height: 50px;
        margin: -22px 16px 0;
        padding: 0 16px;
        border: 1.5px solid color-mix(in srgb, var(--primary) 10%, transparent);
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 6px 22px color-mix(in srgb, var(--primary) 16%, transparent);
    }

    .mobile-conversations-v2 .mobile-filter-row {
        gap: 8px;
        padding: 16px 16px 4px;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-conversations-v2 .mobile-filter-chip {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 7px 16px;
        border: 1.5px solid var(--mobile-border);
        background: #ffffff;
        color: var(--mobile-text-muted);
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
    }

    .mobile-conversations-v2 .mobile-filter-chip.active {
        border-color: var(--primary);
        background: var(--primary);
        color: #ffffff;
        box-shadow: 0 3px 10px color-mix(in srgb, var(--primary) 25%, transparent);
    }

    .mobile-conversations-v2 .mobile-conversation-list {
        gap: 0;
        padding-top: 4px;
    }

    .mobile-conversations-v2 .mobile-conversation-group-label {
        margin: 18px 16px 8px;
        color: var(--mobile-text-muted);
        font-size: 11.5px;
        font-weight: 900;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .mobile-conversations-v2 .mobile-conversation-card {
        display: block;
        margin: 0 16px 10px;
        padding: 0;
        border: 1px solid color-mix(in srgb, var(--primary) 6%, transparent);
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 2px 10px color-mix(in srgb, var(--primary) 8%, transparent);
    }

    .mobile-conversations-v2 .mobile-conversation-card .mobile-conversation-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px;
    }

    .mobile-conversations-v2 .mobile-conversation-icon {
        width: 46px;
        height: 46px;
        border-radius: 13px;
        font-size: 22px;
    }

    .mobile-conversations-v2 .mobile-conversation-icon.is-toets,
    .mobile-conversations-v2 .mobile-conversation-pill.is-toets {
        background: color-mix(in srgb, var(--primary) 14%, var(--paper));
        color: #065f46;
    }

    .mobile-conversations-v2 .mobile-conversation-icon.is-huiswerk,
    .mobile-conversations-v2 .mobile-conversation-pill.is-huiswerk {
        background: #fef3c7;
        color: #92400e;
    }

    .mobile-conversations-v2 .mobile-conversation-icon.is-spreekbeurt,
    .mobile-conversations-v2 .mobile-conversation-pill.is-spreekbeurt {
        background: #ede9fe;
        color: #5b21b6;
    }

    .mobile-conversations-v2 .mobile-conversation-icon.is-vraag,
    .mobile-conversations-v2 .mobile-conversation-pill.is-vraag {
        background: color-mix(in srgb, var(--primary) 14%, var(--paper));
        color: #1e40af;
    }

    .mobile-conversations-v2 .mobile-conversation-title {
        font-size: 15px;
        font-weight: 800;
    }

    .mobile-conversations-v2 .mobile-conversation-meta {
        display: none;
    }

    .mobile-conversations-v2 .mobile-conversation-pill {
        display: inline-flex;
        width: max-content;
        margin-top: 4px;
        padding: 2px 8px;
        border-radius: 10px;
        font-size: 10.5px;
        font-weight: 800;
    }

    .mobile-conversations-v2 .mobile-conversation-preview {
        display: block;
        max-width: 190px;
        margin-top: 4px;
        overflow: hidden;
        color: var(--mobile-text-muted);
        font-size: 12.5px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-conversations-v2 .mobile-conversation-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .mobile-conversations-v2 .mobile-conversation-time {
        color: var(--mobile-text-muted);
        font-size: 11.5px;
        white-space: nowrap;
    }

    .mobile-conversations-v2 .mobile-conversation-unread {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--primary);
        color: #ffffff;
        font-size: 11px;
        font-weight: 900;
    }

    .mobile-conversations-v2 .mobile-conversation-delete {
        display: flex;
        align-items: center;
        gap: 6px;
        width: max-content;
        margin: 0 14px 14px auto;
        padding: 7px 10px;
        border: 1px solid rgba(220, 38, 38, 0.18);
        border-radius: 999px;
        background: rgba(254, 242, 242, 0.9);
        color: #991b1b;
        font: inherit;
        font-size: 12px;
        font-weight: 850;
    }

    .mobile-conversations-v2 .mobile-conversation-confirm,
    .mobile-folder-confirm {
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 8px;
        margin: 0 14px 14px;
        padding: 10px;
        border: 1px solid rgba(220, 38, 38, 0.14);
        border-radius: 12px;
        background: #fff7ed;
        color: #7f1d1d;
        font-size: 12px;
        font-weight: 800;
    }

    .mobile-conversations-v2 .mobile-conversation-confirm button,
    .mobile-folder-confirm button {
        min-height: 32px;
        padding: 0 10px;
        border-radius: 999px;
        font: inherit;
        font-size: 12px;
        font-weight: 850;
    }

    .mobile-conversations-v2 .mobile-conversation-cancel,
    .mobile-folder-cancel {
        border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
        background: #ffffff;
        color: var(--mobile-text);
    }

    .mobile-conversations-v2 .mobile-conversation-confirm-delete,
    .mobile-folder-confirm-delete {
        border: 1px solid #b91c1c;
        background: #b91c1c;
        color: #ffffff;
    }

    .mobile-conversations-v2 .mobile-fab {
        right: 20px;
        width: 54px;
        height: 54px;
        background: linear-gradient(135deg, var(--primary), var(--primary-2));
        box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 40%, transparent);
    }

    .mobile-folder-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 14px;
    }

    .mobile-folder-card {
        min-height: 142px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 14px;
        border: 0;
        border-radius: var(--r-lg);
        background: #ffffff;
        color: var(--mobile-text);
        text-align: left;
        box-shadow: var(--mobile-shadow);
    }

    .mobile-folder-card a {
        color: inherit;
        text-decoration: none;
    }

    .mobile-folder-card--new {
        align-items: center;
        justify-content: center;
        gap: 10px;
        border: 1.5px dashed color-mix(in srgb, var(--primary) 38%, transparent);
        background: color-mix(in srgb, var(--primary) 14%, var(--paper));
        color: var(--primary);
        font-weight: 900;
        text-align: center;
    }

    .mobile-folder-plus {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.72);
        font-size: 28px;
        line-height: 1;
    }

    .mobile-folder-icon {
        display: flex;
        color: var(--primary);
    }

    .mobile-folder-title {
        display: block;
        margin-top: 10px;
        color: var(--mobile-text);
        font-size: 14px;
        font-weight: 900;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .mobile-folder-meta {
        display: block;
        margin-top: 4px;
        color: var(--mobile-text-muted);
        font-size: 11px;
    }

    .mobile-folder-delete {
        align-self: flex-start;
        margin-top: 12px;
        padding: 5px 9px;
        border: 0;
        border-radius: 999px;
        background: #fef2f2;
        color: #b91c1c;
        font-size: 11px;
        font-weight: 800;
    }

    .mobile-create-panel {
        margin-top: 12px;
    }

    .mobile-create-panel label {
        color: var(--mobile-text);
        font-size: 13px;
        font-weight: 800;
    }

    .profile-hub {
        min-height: calc(100vh - var(--mobile-nav-h));
        padding: 0 16px 24px;
        background: var(--paper);
    }

    .profile-hub-hero {
        position: relative;
        margin: 0 -16px;
        padding: 36px 20px 90px;
        background: linear-gradient(155deg, var(--ink) 0%, var(--primary) 50%, var(--oat) 100%);
        color: #ffffff;
        text-align: center;
        overflow: hidden;
    }

    .profile-hub-hero::before {
        content: "";
        position: absolute;
        top: -40px;
        right: -40px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.07);
        pointer-events: none;
    }

    .profile-hub-hero::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -1px;
        left: 0;
        height: 44px;
        border-radius: 44px 44px 0 0;
        background: var(--paper);
    }

    .profile-hub-hero-ring {
        position: absolute;
        bottom: -80px;
        left: -60px;
        width: 240px;
        height: 240px;
        border: 36px solid rgba(255, 255, 255, 0.06);
        border-radius: 50%;
        pointer-events: none;
    }

    .profile-hub-avatar-wrap {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .profile-hub-avatar-ring {
        position: relative;
        width: 96px;
        height: 96px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        border: 3px solid rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    }

    .profile-hub-avatar-circle {
        width: 88px;
        height: 88px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--oat));
        color: #ffffff;
        font-size: 32px;
        font-weight: 800;
        letter-spacing: -1px;
        overflow: hidden;
    }

    .profile-hub-avatar-image {
        width: 100%;
        height: 100%;
        display: block;
        border-radius: 50%;
        object-fit: cover;
    }

    .profile-hub-edit-badge {
        position: absolute;
        right: -1px;
        bottom: -1px;
        width: 26px;
        height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid rgba(255, 255, 255, 0.6);
        border-radius: 50%;
        background: #ffffff;
        color: var(--primary);
        font-size: 13px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .profile-hub-name {
        margin: 4px 0 0;
        color: #ffffff;
        font-size: 22px;
        font-weight: 800;
    }

    .profile-hub-email {
        margin: 0;
        color: rgba(255, 255, 255, 0.75);
        font-size: 13px;
    }

    .profile-hub-tag {
        margin: 0;
        padding: 3px 12px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.18);
        color: rgba(255, 255, 255, 0.9);
        font-size: 12px;
        font-weight: 600;
    }

    .profile-hub-links {
        display: flex;
        flex-direction: column;
        margin-top: 18px;
    }

    .profile-hub-card {
        display: flex;
        align-items: center;
        gap: 14px;
        width: 100%;
        padding: 14px 16px;
        border: 0;
        border-radius: var(--r-lg);
        background: var(--paper-2);
        color: var(--ink);
        text-align: left;
        text-decoration: none;
        box-shadow: var(--shadow-card);
        border: 1px solid var(--mist);
        transition: transform 0.12s, box-shadow 0.12s;
    }

    .profile-hub-card:active {
        transform: scale(0.98);
    }

    .profile-hub-card--forum,
    .profile-hub-card--share {
        border-color: color-mix(in srgb, var(--primary) 24%, var(--mist));
        background:
            linear-gradient(180deg, color-mix(in srgb, var(--primary) 12%, var(--paper)) 0%, var(--paper-2) 100%);
    }

    .profile-hub-card--forum .profile-hub-card-icon,
    .profile-hub-card--share .profile-hub-card-icon {
        background: var(--primary);
        color: #fff;
    }

    .profile-hub-card-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--r-md);
        background: color-mix(in srgb, var(--primary) 14%, var(--paper));
        color: var(--primary);
        flex: 0 0 auto;
    }

    .profile-hub-card-copy {
        flex: 1;
        min-width: 0;
    }

    .profile-hub-card-title {
        display: block;
        color: var(--ink);
        font-size: 15px;
        font-weight: 700;
    }

    .profile-hub-card-text {
        display: block;
        margin-top: 2px;
        color: var(--ink-2);
        font-size: 12px;
        line-height: 1.35;
    }

    .profile-hub-card-arrow {
        color: var(--ink-2);
        font-size: 20px;
        font-weight: 300;
        line-height: 1;
    }

    .profile-hub-error {
        margin: 14px 0 0;
        padding: 12px 14px;
        border-radius: var(--r-md);
        background: #fef2f2;
        color: #991b1b;
        font-size: 13px;
    }

    .profile-hub-v2 .profile-hub-hero {
        min-height: 238px;
        padding-top: calc(24px + env(safe-area-inset-top, 0px));
    }

    .profile-hub-stats {
        position: relative;
        z-index: 2;
        display: flex;
        gap: 10px;
        margin-top: -20px;
    }

    .profile-hub-stat {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 74px;
        padding: 14px 8px;
        border: 1px solid var(--mist);
        border-radius: var(--r-md);
        background: var(--paper-2);
        color: var(--ink);
        box-shadow: var(--shadow-card);
    }

    .profile-hub-stat-value {
        color: var(--primary);
        font-size: 22px;
        font-weight: 900;
        line-height: 1;
    }

    .profile-hub-stat--streak .profile-hub-stat-value {
        color: var(--primary-2);
    }

    .profile-hub-stat-label {
        margin-top: 2px;
        color: var(--ink-2);
        font-size: 11px;
        font-weight: 500;
        text-align: center;
    }

    .profile-hub-section-label {
        margin: 22px 0 8px;
        color: var(--ink-2);
        font-size: 11.5px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .profile-hub-menu-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .profile-hub-card--danger {
        font: inherit;
        cursor: pointer;
    }

    .profile-hub-card--danger .profile-hub-card-icon,
    .profile-hub-card--danger .profile-hub-card-title,
    .profile-hub-card--danger .profile-hub-card-arrow {
        color: #b91c1c;
    }

    .profile-hub-card--danger .profile-hub-card-icon {
        background: #fef2f2;
    }

    .profile-hub-card--admin .profile-hub-card-icon,
    .profile-hub-card--admin .profile-hub-card-title,
    .profile-hub-card--admin .profile-hub-card-arrow {
        color: var(--primary-2);
    }

    .profile-hub-card--admin .profile-hub-card-icon {
        background: color-mix(in srgb, var(--primary) 14%, var(--paper));
    }

    .profile-subpage {
        min-height: calc(100vh - var(--mobile-nav-h));
        padding: 0 16px calc(var(--mobile-nav-h) + 24px);
        background: var(--mobile-bg);
    }

    .profile-subpage-hero {
        position: relative;
        margin: 0 -16px 16px;
        padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 44px;
        border-radius: 0 0 28px 28px;
        background:
            radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.22), transparent 24%),
            linear-gradient(160deg, var(--ink) 0%, var(--primary) 100%);
        color: #ffffff;
        overflow: hidden;
    }

    .profile-subpage-back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        margin-bottom: 18px;
        padding: 7px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.18);
        color: #ffffff;
        font-size: 12px;
        font-weight: 900;
        text-decoration: none;
    }

    .profile-subpage-kicker {
        display: block;
        margin-bottom: 6px;
        color: rgba(255, 255, 255, 0.72);
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .profile-subpage-hero h1 {
        margin: 0;
        color: #ffffff;
        font-size: 28px;
        line-height: 1.08;
        font-weight: 900;
    }

    .profile-subpage-hero p {
        max-width: 20rem;
        margin: 8px 0 0;
        color: rgba(255, 255, 255, 0.78);
        font-size: 13.5px;
        line-height: 1.45;
    }

    .profile-subpage-status,
    .profile-subpage .settings-section,
    .profile-subpage .pwa-install-block,
    .profile-learning-v2 .leercontext-panel,
    .profile-learning-v2 .leerprofiel-loading,
    .profile-learning-v2 .leerprofiel-error {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border: 0;
        border-radius: var(--r-lg);
        background: #ffffff;
        box-shadow: var(--mobile-shadow);
    }

    .profile-subpage .settings-section,
    .profile-learning-v2 .leercontext-panel {
        margin: 0 0 12px !important;
        padding: 16px !important;
    }

    .profile-subpage .pwa-install-block {
        margin: 0 0 12px;
    }

    .profile-subpage .settings-section h2,
    .profile-learning-v2 .leercontext-header h2,
    .profile-learning-v2 .lc-section h3 {
        color: var(--mobile-text);
    }

    .profile-subpage .settings-intro,
    .profile-learning-v2 .leercontext-intro {
        color: var(--mobile-text-muted);
    }

    .profile-subpage .settings-toggle {
        align-items: flex-start;
        padding: 12px;
        border-radius: var(--r-md);
        background: var(--paper-2);
        color: var(--mobile-text);
        font-weight: 800;
    }

    .profile-subpage .settings-toggle input[type="checkbox"] {
        margin-top: 2px;
        accent-color: var(--primary);
    }

    .profile-subpage .settings-btn-primary,
    .profile-subpage .settings-btn-secondary,
    .profile-learning-v2 .btn-primary,
    .profile-learning-v2 .leerprofiel-retry-btn {
        min-height: 44px;
        border-radius: 999px;
        font-weight: 900;
    }

    .profile-subpage .settings-btn-primary,
    .profile-learning-v2 .btn-primary {
        background: var(--primary);
        color: #ffffff;
    }

    .profile-learning-v2 .lc-select {
        max-width: none;
        min-height: 44px;
        border-color: var(--mobile-border);
        border-radius: var(--r-md);
        background: var(--mobile-bg);
    }

    .profile-learning-v2 .lc-subject-chip {
        min-height: 36px;
        border-color: var(--mobile-border);
        background: var(--mobile-bg);
        font-weight: 800;
    }

    .profile-learning-v2 .lc-subject-chip.active {
        border-color: var(--primary);
        background: var(--primary);
    }
}

@media (max-width: 768px) {
    .app-shell--v2 .mud-main-content {
        background:
            linear-gradient(180deg, color-mix(in srgb, var(--oat) 10%, var(--paper)) 0%, var(--paper) 180px);
        padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px)) !important;
    }

    .app-shell--v2 .mobile-bottomnav {
        height: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px));
        padding: 6px max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px));
        border-top: 1px solid color-mix(in srgb, var(--mist) 80%, transparent);
        background: color-mix(in srgb, #ffffff 94%, var(--paper));
        box-shadow: 0 -10px 30px rgba(27, 27, 31, 0.08);
    }

    .app-shell--v2 .mobile-nav-item {
        min-height: 54px;
        border-radius: var(--r-lg);
        color: var(--ink-2);
        font-size: 10.5px;
        font-weight: 700;
    }

    /* Active nav item = cobalt-tint pill at 14px radius (handoff §6.C). */
    .app-shell--v2 .mobile-nav-item.active {
        background: color-mix(in srgb, var(--primary) 14%, var(--paper));
        border-radius: 14px;
        color: var(--primary-2);
    }

    .app-shell--v2 .mobile-nav-item.active .mobile-nav-icon {
        background: transparent;
        color: var(--primary-2);
    }

    .mobile-home-v2,
    .mobile-conversations-v2,
    .mobile-folders-v2,
    .profile-hub,
    .settings-page-v2 {
        max-width: 430px;
        margin: 0 auto;
    }

    .mobile-home-v2 {
        padding: 10px 0 calc(var(--mobile-nav-h) + 28px);
    }

    .calm-dashboard-mobile .app-greet {
        padding: 12px 20px 8px;
        margin-bottom: 8px;
    }

    .calm-dashboard-mobile .greet-name {
        /* Handoff §6.C: greeting at 24px Inter weight 800. */
        font-size: 24px;
    }

    /* F083 (2026-05-09): the today-card, hero-fyxo, hero-start-btn, today-kicker,
       today-title and the .calm-dashboard-mobile-scoped avatar override that used
       to live here have moved to Modules/_Shared/Pages/Dashboard.razor.css.
       That scoped file is now the canonical Cobalt Blueprint home-screen source.
       The earlier @media block in this file (around line 165) still provides the
       baseline mobile layout that Dashboard.razor.css extends. */

    .calm-dashboard-mobile .qs-icon,
    .calm-dashboard-mobile .recent-dot,
    .mobile-conversation-icon,
    .profile-hub-card-icon,
    .toggle-row-icon {
        background: color-mix(in srgb, var(--primary) 14%, var(--paper));
        color: var(--primary-2);
    }

    .calm-dashboard-mobile .home-pad {
        margin-top: 18px;
        padding: 0 18px;
    }

    .calm-dashboard-mobile .section-label {
        margin-bottom: 10px;
        color: var(--ink-2);
        font-size: 11px;
        letter-spacing: .08em;
    }

    .calm-dashboard-mobile .section-label::after {
        background: var(--mist);
    }

    .calm-dashboard-mobile .qs-grid,
    .mobile-folder-grid {
        gap: 10px;
    }

    .calm-dashboard-mobile .qs-card,
    .mobile-folder-card,
    .profile-hub-card {
        border: 1px solid var(--mist);
        background: #ffffff;
        box-shadow: var(--shadow-card);
    }

    .calm-dashboard-mobile .qs-card {
        min-height: 108px;
        padding: 14px;
    }

    .calm-dashboard-mobile .qs-label {
        font-size: 13px;
    }

    .calm-dashboard-mobile .recent-item {
        min-height: 56px;
        border-radius: var(--r-md);
        background: #ffffff;
    }

    .calm-dashboard-mobile {
        --dashboard-bg: #FCFAF8;
        --dashboard-surface: #FFFFFF;
        --dashboard-ink: #031D41;
        --dashboard-ink-muted: #34465F;
        --dashboard-primary: #1872F6;
        --dashboard-primary-dark: #0E66E8;
        --dashboard-navy: #031D41;
        --dashboard-navy-2: #062B5F;
        --dashboard-teal: #40A992;
        --dashboard-teal-2: #67C9A9;
        --dashboard-mint-soft: #DDF3EC;
        --dashboard-mint-softer: #EAF7F3;
        --dashboard-pill-muted: #EBF0F7;
        --dashboard-border: #E6E8EC;
        --dashboard-shadow: rgba(3, 29, 65, 0.10);
        --dashboard-blue-shadow: rgba(24, 114, 246, 0.22);
        background: var(--dashboard-bg);
        color: var(--dashboard-ink);
    }

    .mobile-home-v2.calm-dashboard-mobile {
        background: var(--dashboard-bg);
    }

    .calm-dashboard-mobile .greet-kicker,
    .calm-dashboard-mobile .section-label {
        color: var(--dashboard-ink-muted);
    }

    .calm-dashboard-mobile .greet-name,
    .calm-dashboard-mobile .today-title,
    .calm-dashboard-mobile .qs-label,
    .calm-dashboard-mobile .recent-title {
        color: var(--dashboard-ink);
    }

    .calm-dashboard-mobile .app-greet .hero-user-avatar {
        border-color: var(--dashboard-border);
        background: var(--dashboard-ink);
        box-shadow: 0 10px 28px var(--dashboard-shadow);
    }

    .calm-dashboard-mobile .today-card {
        border-color: color-mix(in srgb, var(--dashboard-primary) 18%, var(--dashboard-navy));
        background:
            radial-gradient(circle at 18% 8%, rgba(24, 114, 246, 0.18), transparent 34%),
            linear-gradient(135deg, var(--dashboard-navy) 0%, var(--dashboard-navy-2) 100%);
        box-shadow: 0 18px 42px rgba(3, 29, 65, 0.18);
    }

    .calm-dashboard-mobile .today-card::before {
        background:
            radial-gradient(circle at 62% 38%, rgba(255, 255, 255, 0.12), transparent 0 36%),
            linear-gradient(145deg, var(--dashboard-teal-2), var(--dashboard-teal));
        opacity: 1;
    }

    .calm-dashboard-mobile .today-title {
        color: #ffffff;
    }

    .calm-dashboard-mobile .today-kicker {
        color: #ffffff;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .calm-dashboard-mobile .hero-start-btn {
        background: linear-gradient(135deg, var(--dashboard-primary), var(--dashboard-primary-dark));
        color: #ffffff;
        box-shadow: 0 12px 28px var(--dashboard-blue-shadow);
    }

    .calm-dashboard-mobile .hero-fyxo img {
        filter: drop-shadow(0 14px 26px rgba(3, 29, 65, 0.24));
    }

    .calm-dashboard-mobile .qs-card,
    .calm-dashboard-mobile .recent-item {
        border-color: var(--dashboard-border);
        background: var(--dashboard-surface);
        box-shadow: 0 12px 34px var(--dashboard-shadow);
    }

    .calm-dashboard-mobile .qs-icon,
    .calm-dashboard-mobile .recent-dot {
        background: var(--dashboard-mint-soft);
        color: var(--dashboard-primary);
    }

    .calm-dashboard-mobile .recent-meta,
    .calm-dashboard-mobile .recent-chip,
    .calm-dashboard-mobile .recent-empty {
        color: var(--dashboard-ink-muted);
    }

    .calm-dashboard-mobile .section-label::after {
        background: var(--dashboard-border);
    }

    .calm-dashboard-mobile .qs-toets,
    .calm-dashboard-mobile .qs-huiswerk,
    .calm-dashboard-mobile .qs-spreek,
    .calm-dashboard-mobile .qs-vraag {
        background: var(--dashboard-surface);
        color: var(--dashboard-ink);
    }

    .calm-dashboard-mobile .qs-toets .qs-icon,
    .calm-dashboard-mobile .qs-huiswerk .qs-icon,
    .calm-dashboard-mobile .qs-spreek .qs-icon,
    .calm-dashboard-mobile .qs-vraag .qs-icon {
        background: linear-gradient(135deg, var(--dashboard-mint-softer), var(--dashboard-mint-soft));
        color: var(--dashboard-primary);
    }

    .calm-dashboard-mobile .recent-chip {
        background: var(--dashboard-mint-softer);
    }

    .calm-dashboard-mobile .recent-empty {
        border: 1px solid var(--dashboard-border);
        background: var(--dashboard-surface);
        box-shadow: 0 12px 34px var(--dashboard-shadow);
    }

    .calm-dashboard-mobile .pwa-install-block {
        border-color: color-mix(in srgb, var(--dashboard-primary) 18%, var(--dashboard-border));
        background:
            linear-gradient(135deg, var(--dashboard-mint-softer), color-mix(in srgb, var(--dashboard-primary) 6%, var(--dashboard-surface))),
            var(--dashboard-surface);
        box-shadow: 0 12px 34px var(--dashboard-shadow);
    }

    .calm-dashboard-mobile .pwa-install-mark,
    .calm-dashboard-mobile .pwa-install-button {
        background: linear-gradient(135deg, var(--dashboard-primary), var(--dashboard-primary-dark));
        color: #ffffff;
        box-shadow: 0 10px 22px var(--dashboard-blue-shadow);
    }

    .calm-dashboard-mobile .pwa-install-copy h2 {
        color: var(--dashboard-ink);
    }

    .calm-dashboard-mobile .pwa-install-copy p,
    .calm-dashboard-mobile .pwa-install-status {
        color: var(--dashboard-ink-muted) !important;
    }

    .app-shell--v2:has(.calm-dashboard-mobile) .mobile-bottomnav {
        --dashboard-bg: #FCFAF8;
        --dashboard-surface: #FFFFFF;
        --dashboard-ink: #031D41;
        --dashboard-ink-muted: #34465F;
        --dashboard-primary: #1872F6;
        --dashboard-primary-dark: #0E66E8;
        --dashboard-border: #E6E8EC;
        --dashboard-shadow: rgba(3, 29, 65, 0.10);
        border-top-color: var(--dashboard-border);
        background: var(--dashboard-surface);
        box-shadow: 0 -12px 32px var(--dashboard-shadow);
    }

    .app-shell--v2:has(.calm-dashboard-mobile) .mobile-nav-item {
        color: var(--dashboard-ink-muted);
    }

    .app-shell--v2:has(.calm-dashboard-mobile) .mobile-nav-item.active {
        color: var(--dashboard-primary);
    }

    .app-shell--v2:has(.calm-dashboard-mobile) .mobile-nav-item.active .mobile-nav-icon {
        background: color-mix(in srgb, var(--dashboard-primary) 13%, #ffffff);
        color: var(--dashboard-primary);
    }

    .mobile-conversations-v2,
    .mobile-folders-v2 {
        padding-bottom: calc(var(--mobile-nav-h) + 34px);
    }

    .mobile-list-hero,
    .mobile-conversations-v2 .mobile-list-hero--conversations {
        margin: 0 16px 14px;
        min-height: 132px;
        padding: 18px;
        border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--ink));
        border-radius: var(--r-lg);
        background: var(--ink);
        box-shadow: var(--shadow-card);
    }

    .mobile-list-hero::after,
    .mobile-conversations-v2 .mobile-list-hero--conversations::after {
        display: none;
    }

    .mobile-list-hero--folders {
        background: var(--ink);
    }

    .mobile-list-kicker {
        color: color-mix(in srgb, var(--paper) 72%, transparent);
        letter-spacing: .06em;
    }

    .mobile-list-hero h1,
    .mobile-conversations-v2 .mobile-list-hero--conversations h1 {
        max-width: 230px;
        font-size: 25px;
    }

    .mobile-list-hero p:last-child {
        color: color-mix(in srgb, var(--paper) 78%, transparent);
    }

    .mobile-list-hero img,
    .mobile-conversations-v2 .mobile-list-hero--conversations img {
        right: 4px;
        top: 16px;
        width: 112px;
        height: 112px;
        filter: drop-shadow(var(--shadow-fyxo));
    }

    .mobile-conversations-v2 .mobile-search--floating,
    .mobile-search {
        min-height: 50px;
        margin: 0 16px;
        border: 1px solid var(--mist);
        border-radius: var(--r-lg);
        background: #ffffff;
        box-shadow: var(--shadow-card);
    }

    .mobile-search input:focus-visible {
        outline: 2px solid var(--primary-2);
        outline-offset: 2px;
    }

    .mobile-conversations-v2 .mobile-filter-row {
        padding: 14px 16px 6px;
    }

    .mobile-filter-chip,
    .mobile-conversations-v2 .mobile-filter-chip {
        min-height: 40px;
        border-color: var(--mist);
        background: #ffffff;
        color: var(--ink);
    }

    .mobile-filter-chip.active,
    .mobile-conversations-v2 .mobile-filter-chip.active {
        border-color: var(--primary);
        background: var(--primary);
        color: #ffffff;
    }

    .mobile-conversations-v2 .mobile-conversation-card {
        margin: 0 16px 10px;
        border: 1px solid var(--mist);
        border-radius: var(--r-lg);
        background: #ffffff;
        box-shadow: var(--shadow-card);
    }

    .mobile-conversations-v2 .mobile-conversation-card .mobile-conversation-link {
        min-height: 78px;
    }

    .mobile-conversations-v2 .mobile-conversation-icon.is-toets,
    .mobile-conversations-v2 .mobile-conversation-pill.is-toets,
    .mobile-conversations-v2 .mobile-conversation-icon.is-huiswerk,
    .mobile-conversations-v2 .mobile-conversation-pill.is-huiswerk {
        background: color-mix(in srgb, var(--primary) 14%, var(--paper));
        color: var(--primary-2);
    }

    .mobile-conversations-v2 .mobile-conversation-icon.is-spreekbeurt,
    .mobile-conversations-v2 .mobile-conversation-pill.is-spreekbeurt {
        background: color-mix(in srgb, var(--berry) 10%, var(--paper));
        color: var(--berry);
    }

    .mobile-conversations-v2 .mobile-conversation-icon.is-vraag,
    .mobile-conversations-v2 .mobile-conversation-pill.is-vraag {
        background: color-mix(in srgb, var(--oat) 22%, var(--paper));
        color: var(--ink);
    }

    .mobile-conversations-v2 .mobile-conversation-preview {
        max-width: 210px;
    }

    .mobile-conversations-v2 .mobile-conversation-delete,
    .mobile-folder-delete {
        min-height: 36px;
        padding: 8px 12px;
    }

    .mobile-conversations-v2 .mobile-conversation-confirm button,
    .mobile-folder-confirm button {
        min-height: 44px;
    }

    .mobile-conversations-v2 .mobile-fab {
        bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px) + 18px);
        background: var(--primary);
        box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 34%, transparent);
    }

    .mobile-info-panel,
    .mobile-create-panel,
    .mobile-empty-panel {
        margin: 0 16px;
        border: 1px solid var(--mist);
        background: #ffffff;
    }

    .mobile-folder-grid {
        margin: 14px 16px 0;
    }

    .mobile-folder-card {
        min-height: 138px;
    }

    .mobile-folder-card--new {
        border-style: dashed;
        background: color-mix(in srgb, var(--primary) 10%, #ffffff);
        color: var(--primary-2);
    }

    .mobile-folder-plus {
        background: #ffffff;
        color: var(--primary-2);
    }

    .mobile-folder-icon {
        color: var(--primary-2);
    }

    .calm-chat-page.mobile-chat-v2 {
        padding-top: calc(62px + env(safe-area-inset-top, 0px));
    }

    .calm-chat-page .mobile-chat-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        /* F084: very high z-index + isolation:isolate so the header forms its own
           stacking context that wins over any positioned descendant of the chat
           page (message bubbles set position:relative, the chat-input-area sets
           position:sticky with z-index:80, etc). */
        z-index: 1000;
        isolation: isolate;
        margin: 0;
        padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 8px;
        border: 0;
        border-bottom: 1px solid var(--mist);
        background: var(--paper);
        box-sizing: border-box;
    }

    .calm-chat-page .mobile-chat-back,
    .calm-chat-page .mobile-chat-options-btn,
    .calm-chat-page .mobile-chat-fyxo {
        min-height: 44px;
        flex-shrink: 0;
        border: 1px solid var(--mist);
        background: #ffffff;
        color: var(--ink);
        box-shadow: var(--shadow-card);
    }

    .calm-chat-page .mobile-chat-presence {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .calm-chat-page .mobile-chat-context-card {
        margin: 8px 16px 12px;
        padding: 16px;
        border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--ink));
        border-radius: var(--r-lg);
        background: var(--ink);
        color: #ffffff;
        box-shadow: var(--shadow-card);
    }

    .calm-chat-page .mobile-chat-context-card h1 {
        color: #ffffff;
    }

    .calm-chat-page .mobile-chat-context-card p {
        color: color-mix(in srgb, var(--paper) 78%, transparent);
    }

    .calm-chat-page .mobile-chat-context-kicker {
        border-color: transparent;
        background: var(--primary);
        color: #ffffff;
    }

    .mobile-chat-window-shell {
        position: relative;
        z-index: 0;
        padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px) + 18px);
    }

    .mobile-chat-window-shell ::deep .chat-window {
        min-height: calc(100vh - var(--mobile-nav-h, 68px) - 178px);
    }

    .mobile-chat-window-shell ::deep .chat-messages {
        min-height: 44vh;
        padding: 14px 16px;
        background: var(--paper);
    }

    .mobile-chat-window-shell ::deep .chat-quick {
        padding: 8px 16px 0;
    }

    .mobile-chat-window-shell ::deep .chat-input-area {
        bottom: calc(var(--mobile-nav-h, 68px) + env(safe-area-inset-bottom, 0px) + 8px);
        margin: 0 12px 0;
        border-radius: var(--r-lg);
        background: #ffffff;
    }

    .mobile-chat-window-shell ::deep .chat-input-chips {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .mobile-chat-window-shell ::deep .btn-upload-doc,
    .mobile-chat-window-shell ::deep .btn-upload-image {
        min-height: 40px;
        padding: 0 12px;
        background: color-mix(in srgb, var(--primary) 8%, var(--paper));
        color: var(--ink);
    }

    .mobile-chat-window-shell ::deep .chat-input {
        min-height: 48px;
        border-radius: var(--r-md);
        background: var(--paper);
    }

    .mobile-chat-window-shell ::deep .btn-send {
        width: 48px;
        height: 48px;
        background: var(--primary);
    }

    .profile-hub {
        padding: 0 16px calc(var(--mobile-nav-h) + 28px);
    }

    .profile-hub-hero {
        min-height: 230px;
        margin: 0 -16px;
        padding: calc(32px + env(safe-area-inset-top, 0px)) 20px 76px;
        background: var(--ink);
    }

    .profile-hub-hero::before {
        top: -24px;
        right: -46px;
        width: 188px;
        height: 188px;
        background: var(--primary-2);
        opacity: .95;
    }

    .profile-hub-hero-ring {
        bottom: -70px;
        left: 50%;
        width: 220px;
        height: 150px;
        border: 0;
        border-radius: 55% 55% 0 0;
        background: var(--paper-2);
        transform: translateX(-50%);
    }

    .profile-hub-avatar-ring {
        background: #ffffff;
        border-color: var(--mist);
    }

    .profile-hub-avatar-circle {
        background: var(--paper);
        color: var(--primary-2);
    }

    .profile-hub-tag {
        border-color: color-mix(in srgb, var(--paper) 36%, transparent);
        background: color-mix(in srgb, var(--paper) 14%, transparent);
    }

    .profile-hub-stats {
        margin-top: -26px;
    }

    .profile-hub-stat {
        min-height: 78px;
        background: #ffffff;
    }

    .profile-hub-card {
        min-height: 62px;
        background: #ffffff;
    }

    .profile-hub-card--forum,
    .profile-hub-card--share {
        background: color-mix(in srgb, var(--primary) 8%, #ffffff);
    }

    .profile-hub-card--forum .profile-hub-card-icon,
    .profile-hub-card--share .profile-hub-card-icon {
        background: color-mix(in srgb, var(--primary) 14%, var(--paper));
        color: var(--primary-2);
    }

    .settings-page-v2 {
        padding-bottom: calc(var(--mobile-nav-h) + 24px);
    }

    .settings-subpage-header {
        background: color-mix(in srgb, #ffffff 92%, var(--paper));
    }

    .settings-subpage-save {
        min-height: 36px;
        padding: 0 12px;
        border-radius: var(--r-pill);
        background: var(--primary);
        color: #ffffff;
    }

    .settings-page-scroll {
        padding-bottom: calc(var(--mobile-nav-h) + 44px);
    }

    .settings-card,
    .version-card {
        background: #ffffff;
    }

    .toggle-row {
        min-height: 52px;
    }

    .version-update-btn {
        min-height: 46px;
    }

    .version-update-btn--primary {
        background: var(--primary);
    }
}
