/**
 * JRH One — designed mobile app shell (≤768px).
 * Login, agent home, properties, agenda. Desktop rules stay untouched.
 */

@media (max-width: 768px) {
    :root {
        --m-space: 16px;
        --m-gap: 24px;
        --m-radius: 20px;
        --m-radius-sm: 14px;
        --m-touch: 44px;
        --m-nav-h: calc(74px + env(safe-area-inset-bottom, 0px));
        --m-pad: 16px;
        --m-cta-h: 54px;
    }

    html {
        font-size: 16px;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
        background: var(--color-bg);
        color: var(--color-text);
    }

    img,
    svg {
        max-width: 100%;
    }

    body.has-app-rail .app-main-inner {
        padding: 8px 16px calc(var(--m-nav-h) + 24px);
        max-width: 430px;
        margin: 0 auto;
        background: var(--color-bg);
        min-width: 0;
        width: 100%;
    }

    body.has-app-rail .app-main-inner > * {
        min-width: 0;
        max-width: 100%;
    }

    body.has-app-rail .app-main-inner input,
    body.has-app-rail .app-main-inner select,
    body.has-app-rail .app-main-inner textarea {
        font-size: 16px;
    }

    /* ── Topbar ─────────────────────────────────────────── */
    body.has-app-rail .site-header {
        position: sticky;
        top: 0;
        z-index: 30;
        padding-top: env(safe-area-inset-top, 0px);
        background: color-mix(in srgb, var(--color-bg) 92%, transparent);
        backdrop-filter: blur(12px);
        border-bottom: 0;
        box-shadow: none;
        min-height: calc(56px + env(safe-area-inset-top, 0px));
    }

    body.has-app-rail .header-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        min-height: 56px;
        padding: 4px 12px 4px 16px;
        gap: 8px;
    }

    body.has-app-rail .nav-toggle {
        display: none !important;
    }

    body.has-app-rail .header-zone-left {
        display: flex !important;
        order: 1;
        justify-content: flex-start;
        align-items: center;
        min-width: 0;
        padding: 0;
    }

    body.has-app-rail .header-zone-search,
    body.has-app-rail .header-tools-desktop {
        display: none !important;
    }

    body.has-app-rail .header-zone-right {
        order: 2;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    body.is-contacts-page .m-topbar-title,
    body.is-acm-page .m-topbar-title,
    body.is-properties-page .m-topbar-title,
    body.is-agenda-page .m-topbar-title {
        display: block;
    }

    body.is-contacts-page .m-topbar-brand,
    body.is-acm-page .m-topbar-brand,
    body.is-properties-page .m-topbar-brand,
    body.is-agenda-page .m-topbar-brand,
    body.is-contacts-page .site-brand,
    body.is-acm-page .site-brand,
    body.is-properties-page .site-brand,
    body.is-agenda-page .site-brand {
        display: none;
    }

    .m-topbar-title {
        display: none;
        margin: 0;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--color-text);
        letter-spacing: -0.02em;
    }

    body.is-properties-page .m-topbar-title,
    body.is-agenda-page .m-topbar-title {
        display: block;
    }

    body.is-properties-page .m-topbar-brand,
    body.is-agenda-page .m-topbar-brand,
    body.is-properties-page .site-brand,
    body.is-agenda-page .site-brand {
        display: none;
    }

    body.is-home-v2 .m-topbar-title {
        display: none;
    }

    .m-topbar-brand .brand-logo,
    .m-topbar-brand.site-brand-logo {
        max-height: 28px;
        width: auto;
    }

    .nav-notifications-link--mobile-header {
        width: var(--m-touch);
        min-height: var(--m-touch);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        text-decoration: none;
    }

    .m-topbar-avatar {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border: 0;
        border-radius: 999px;
        background: var(--color-brand-soft);
        color: var(--color-brand);
        font-size: 0.72rem;
        font-weight: 700;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    html[data-theme="dark"] .m-topbar-avatar {
        background: var(--color-brand-soft);
        color: var(--purple-light);
    }

    /* ── Bottom nav ─────────────────────────────────────── */
    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: stretch;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        min-height: var(--m-nav-h);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        background: var(--color-surface);
        border-top: 1px solid var(--color-border);
        box-shadow: 0 -8px 24px color-mix(in srgb, var(--color-text) 6%, transparent);
    }

    .mobile-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-height: var(--m-touch);
        padding: 4px 2px;
        border: 0;
        background: transparent;
        color: var(--color-text-muted);
        text-decoration: none;
        font-size: 0.68rem;
        font-weight: 600;
        border-radius: 12px;
    }

    .mobile-bottom-nav-icon {
        width: 22px;
        height: 22px;
        display: inline-flex;
    }

    .mobile-bottom-nav-icon svg {
        width: 22px;
        height: 22px;
    }

    .mobile-bottom-nav-item.active {
        color: var(--color-brand);
        background: color-mix(in srgb, var(--color-brand) 14%, transparent);
    }

    html[data-theme="dark"] .mobile-bottom-nav-item.active {
        color: var(--purple-primary);
        background: color-mix(in srgb, var(--purple-primary) 16%, transparent);
    }

    /* ── Shared bits ────────────────────────────────────── */
    .m-chip-row {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 4px 4px;
        margin: 0 0 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        background: transparent;
    }

    .m-chip-row::-webkit-scrollbar {
        display: none;
    }

    .m-chip-row a,
    .m-chip {
        flex: 0 0 auto;
        min-height: var(--m-touch);
        padding: 8px 16px;
        border-radius: 999px;
        border: 1px solid var(--color-border);
        background: var(--color-surface);
        color: var(--color-text);
        text-decoration: none;
        font-size: 0.88rem;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .m-chip-row a.is-active,
    .m-chip.is-active {
        background: var(--color-brand);
        border-color: var(--color-brand);
        color: #fff;
    }

    html[data-theme="dark"] .m-chip-row a.is-active,
    html[data-theme="dark"] .m-chip.is-active {
        background: var(--purple-primary);
        border-color: var(--purple-primary);
    }

    /* ── Mobile home / Más architecture ─────────────────── */
    .m-home.hide-desktop,
    .m-home {
        display: flex !important;
        flex-direction: column;
        gap: var(--m-gap);
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 4px 0 8px;
    }

    .m-hello {
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
    }

    .m-hello h1,
    .m-more__title {
        margin: 0;
        font-size: 1.9rem;
        line-height: 1.15;
        font-weight: 800;
        letter-spacing: -0.04em;
        color: var(--color-text);
    }

    .m-hello p {
        margin: 0;
        font-size: 1rem;
        line-height: 1.4;
        color: var(--color-text-muted);
    }

    .m-kicker {
        margin: 0 0 8px;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--color-text-muted);
    }

    .m-card,
    .m-kpi,
    .m-tile,
    .m-list__row,
    .m-account,
    .m-rows {
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: 20px;
        min-width: 0;
        max-width: 100%;
    }

    .m-card {
        padding: 16px 18px;
    }

    .m-today__stats {
        margin: 0 0 12px;
        font-size: 1.2rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .m-today__next-label {
        margin: 0;
        font-size: 0.78rem;
        font-weight: 700;
        color: var(--color-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .m-today__next {
        margin: 4px 0 12px;
        font-size: 0.98rem;
        color: var(--color-text);
    }

    .m-today__link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        font-weight: 700;
        color: var(--color-brand);
        text-decoration: none;
    }

    html[data-theme="dark"] .m-today__link {
        color: var(--purple-light);
    }

    .m-jrh-card__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }

    .m-jrh-card__head h2 {
        margin: 0;
        font-size: 1.15rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .m-jrh-card__bot {
        flex: 0 0 auto;
        width: 64px;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
        background: transparent;
        pointer-events: none;
    }

    .m-jrh-card__bot img,
    .m-jrh-card .jrh-bot-hero,
    .m-jrh-card .jrh-bot-avatar {
        width: 64px;
        height: 64px;
        max-width: 64px;
        max-height: 64px;
        object-fit: contain;
        object-position: center;
        background: transparent;
        transform: none;
        filter: drop-shadow(0 8px 14px color-mix(in srgb, var(--color-text) 14%, transparent));
    }

    .m-composer {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        padding: 4px 4px 4px 14px;
        border-radius: 16px;
        background: var(--color-surface-secondary);
        border: 1px solid var(--color-border);
    }

    .m-composer__input {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 48px;
        border: 0;
        background: transparent;
        color: var(--color-text);
        font: inherit;
        font-size: 16px;
    }

    .m-composer__input:focus {
        outline: none;
    }

    .m-composer__mic,
    .m-composer__send {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        min-width: 48px;
        border: 0;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--color-brand);
        background: var(--color-brand-soft);
    }

    .m-composer__send {
        color: #fff;
        background: var(--color-brand);
    }

    html[data-theme="dark"] .m-composer__mic {
        color: var(--purple-light);
        background: color-mix(in srgb, var(--purple-primary) 22%, transparent);
    }

    html[data-theme="dark"] .m-composer__send {
        background: var(--purple-primary);
    }

    .m-composer__send svg {
        width: 20px;
        height: 20px;
    }

    .m-jrh-card .m-chip-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
        margin: 14px 0 0;
        padding: 0;
    }

    .m-jrh-card .m-chip,
    .m-jrh-card .jrh-chip-more,
    .m-jrh-card .jrh-chip-more__toggle {
        width: 100%;
        max-width: none;
        white-space: nowrap;
        justify-content: center;
    }

    .m-section {
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-width: 0;
        width: 100%;
    }

    .m-section__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-width: 0;
    }

    .m-section__head h2 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 800;
    }

    .m-section__head a,
    .m-section__all {
        min-height: 44px;
        border: 0;
        background: transparent;
        color: var(--color-brand);
        font: inherit;
        font-size: 0.92rem;
        font-weight: 700;
        text-decoration: none;
        cursor: pointer;
        padding: 0;
    }

    html[data-theme="dark"] .m-section__head a,
    html[data-theme="dark"] .m-section__all {
        color: var(--purple-light);
    }

    .m-tile-grid,
    .m-kpi-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
        min-width: 0;
    }

    .m-tile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        min-height: 92px;
        padding: 16px;
        text-decoration: none;
        color: var(--color-text);
    }

    .m-tile__svg {
        width: 24px;
        height: 24px;
        color: var(--color-brand);
    }

    html[data-theme="dark"] .m-tile__svg {
        color: var(--purple-light);
    }

    .m-tile span {
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1.25;
    }

    .m-kpi {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 16px;
        min-height: 92px;
    }

    .m-kpi span {
        font-size: 0.82rem;
        color: var(--color-text-muted);
        font-weight: 700;
    }

    .m-kpi strong {
        font-size: 1.15rem;
        letter-spacing: -0.03em;
        overflow-wrap: anywhere;
    }

    .m-kpi small {
        color: #12b76a;
        font-weight: 700;
    }

    .m-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-width: 0;
    }

    .m-list__row {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 16px;
        text-decoration: none;
        color: var(--color-text);
        min-height: 64px;
    }

    .m-list__row strong {
        font-size: 0.98rem;
    }

    .m-list__row span,
    .m-list__meta {
        color: var(--color-text-muted);
        font-size: 0.88rem;
    }

    .m-empty {
        margin: 0;
        color: var(--color-text-muted);
        font-size: 0.95rem;
    }

    /* ── Login ──────────────────────────────────────────── */
    body.is-login-page .site-header,
    body.is-login-page .site-footer {
        display: none;
    }

    body.is-login-page .app-main-inner {
        max-width: none;
        padding: 0;
        min-height: 100dvh;
        align-items: stretch;
        justify-content: flex-start;
    }

    body.is-login-page .login-page {
        min-height: 100dvh;
        background: var(--color-bg);
        padding: calc(12px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px));
    }

    body.is-login-page .login-page__waves,
    body.is-login-page .login-features,
    body.is-login-page .login-quote,
    body.is-login-page .login-card__brand,
    body.is-login-page .login-card__header {
        display: none;
    }

    body.is-login-page .login-page__grid {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        min-height: auto;
        padding: 0;
        gap: 16px;
    }

    body.is-login-page .login-marketing {
        display: flex !important;
        flex-direction: column;
        padding: 8px 0 0;
        gap: 12px;
    }

    body.is-login-page .login-marketing__logo .brand-logo,
    body.is-login-page .login-marketing__logo {
        width: min(220px, 72vw);
        max-width: 220px;
        height: auto;
    }

    body.is-login-page .login-marketing__headline {
        font-size: clamp(1.55rem, 6.4vw, 1.9rem);
        line-height: 1.2;
        max-width: 16ch;
        color: var(--color-text);
        letter-spacing: -0.03em;
    }

    body.is-login-page .login-marketing__headline-accent {
        color: var(--color-brand);
    }

    html[data-theme="dark"] body.is-login-page .login-marketing__headline-accent {
        color: var(--purple-light);
    }

    body.is-login-page .login-marketing__description {
        font-size: 0.92rem;
        line-height: 1.5;
        color: var(--color-text-muted);
        max-width: 36em;
    }

    body.is-login-page .login-page__form-column,
    body.is-login-page .login-card,
    html[data-theme="dark"] body.is-login-page .login-page__form-column,
    html[data-theme="dark"] body.is-login-page .login-card {
        width: 100%;
        max-width: none;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    body.is-login-page .login-input-shell,
    body.is-login-page .login-input {
        min-height: var(--m-touch);
        border-radius: 14px;
        background: var(--color-surface);
        border-color: var(--color-border);
    }

    body.is-login-page .login-submit {
        min-height: 52px;
        width: 100%;
        border-radius: 999px;
        font-size: 1rem;
        font-weight: 700;
        background: var(--color-brand);
        border-color: var(--color-brand);
        color: #fff;
    }

    body.is-login-page .login-submit:hover,
    body.is-login-page .login-submit:active {
        background: var(--color-brand-hover);
        border-color: var(--color-brand-hover);
    }

    html[data-theme="dark"] body.is-login-page .login-submit {
        background: var(--purple-primary);
        border-color: var(--purple-primary);
    }

    body.is-login-page .login-auth-toolbar {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-bottom: 8px;
    }

    body.is-login-page .login-form__row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-height: var(--m-touch);
    }

    body.is-login-page .login-checkbox,
    body.is-login-page .login-link,
    body.is-login-page .login-password-toggle {
        min-height: var(--m-touch);
        display: inline-flex;
        align-items: center;
    }

    body.is-login-page .login-card__footer {
        text-align: center;
        padding-bottom: 8px;
    }

    /* ── Home ───────────────────────────────────────────── */
    body.is-home-v2 .home-v2 {
        max-width: none;
        padding: 4px 0 24px;
    }

    body.is-home-v2 .home-v2__hello {
        margin-bottom: 16px;
    }

    body.is-home-v2 .home-v2__hello .agenda-hero__kicker {
        display: none;
    }

    body.is-home-v2 .home-v2__hello .agenda-hero__hello {
        margin: 0;
        font-size: clamp(1.45rem, 6vw, 1.75rem);
        letter-spacing: -0.03em;
        color: var(--color-text);
    }

    body.is-home-v2 .home-v2__hello .agenda-hero__tagline {
        margin: 4px 0 0;
        font-size: 0.92rem;
        color: var(--color-text-muted);
    }

    body.is-home-v2 .jrh-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        align-items: start;
        padding: 16px;
        border-radius: 20px;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        margin-bottom: 16px;
    }

    body.is-home-v2 .jrh-hero__badge {
        display: inline-flex;
        margin: 0 0 6px;
        color: var(--color-brand);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    html[data-theme="dark"] body.is-home-v2 .jrh-hero__badge {
        color: var(--purple-light);
    }

    body.is-home-v2 .jrh-hero h2 {
        margin: 0 0 12px;
        font-size: 1.15rem;
        line-height: 1.25;
    }

    body.is-home-v2 .jrh-hero__field {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px 44px;
        gap: 8px;
        align-items: center;
    }

    body.is-home-v2 .jrh-hero__input {
        min-height: 44px;
        border-radius: 14px;
        font-size: 0.95rem;
    }

    body.is-home-v2 .jrh-hero__mic,
    body.is-home-v2 .jrh-hero__ask {
        width: 44px;
        min-width: 44px;
        height: 44px;
        border-radius: 14px;
        padding: 0;
    }

    body.is-home-v2 .jrh-hero__ask {
        font-size: 0;
        background: var(--color-brand);
        color: #fff;
        border: 0;
    }

    body.is-home-v2 .jrh-hero__ask::after {
        content: "→";
        font-size: 1.1rem;
        font-weight: 700;
    }

    html[data-theme="dark"] body.is-home-v2 .jrh-hero__ask {
        background: var(--purple-primary);
    }

    body.is-home-v2 .jrh-hero__mascot {
        width: 72px;
        height: 72px;
        align-self: center;
    }

    body.is-home-v2 .jrh-hero__mascot img,
    body.is-home-v2 .jrh-hero .jrh-bot-hero {
        max-width: 72px;
        max-height: 72px;
        width: 72px;
        height: 72px;
        object-fit: contain;
        object-position: center;
    }

    body.is-home-v2 .jrh-hero__chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
        grid-column: 1 / -1;
    }

    body.is-home-v2 .jrh-hero__chip {
        min-height: 36px;
        padding: 6px 12px;
        border-radius: 999px;
        border: 1px solid var(--color-border);
        background: var(--color-bg);
        color: var(--color-text);
        font-size: 0.82rem;
        font-weight: 600;
    }

    body.is-home-v2 .home-shortcuts,
    body.is-home-v2 .home-v2__upcoming-mobile,
    body.is-home-v2 .jrh-today,
    body.is-home-v2 .home-v2__side {
        display: none;
    }

    .m-quick {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin: 0 0 20px;
    }

    .m-quick a {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        min-height: 88px;
        padding: 14px 16px;
        border-radius: 16px;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        color: var(--color-text);
        text-decoration: none;
        font-weight: 700;
        font-size: 0.95rem;
    }

    .m-quick__icon {
        width: 28px;
        height: 28px;
        color: var(--color-brand);
    }

    html[data-theme="dark"] .m-quick__icon {
        color: var(--purple-light);
    }

    body.is-home-v2 .agenda-block {
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: 20px;
        padding: 16px;
        margin-bottom: 16px;
    }

    body.is-home-v2 .agenda-block__total {
        display: none;
    }

    body.is-home-v2 .agenda-block__item {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 8px;
        min-height: 44px;
        padding: 10px 0;
        border-bottom: 1px solid var(--color-border);
    }

    body.is-home-v2 .home-card.pending-block,
    body.is-home-v2 .jrh-recs {
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: 20px;
        padding: 16px;
        margin-bottom: 16px;
    }

    /* ── Properties ─────────────────────────────────────── */
    body.is-properties-page .properties-page__header p,
    body.is-properties-page .properties-kpis,
    body.is-properties-page .properties-page__header .properties-btn,
    body.is-properties-page .properties-toolbar__filter,
    body.is-properties-page .properties-card__heading,
    body.is-properties-page .properties-toolbar button[type="submit"],
    body.is-properties-page .properties-geo,
    body.is-properties-page .properties-page__aside,
    body.is-properties-page .properties-pagination__size {
        display: none;
    }

    body.is-properties-page .properties-card {
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    body.is-properties-page .properties-page__header h1 {
        display: none;
    }

    body.is-properties-page .properties-toolbar {
        display: block;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    body.is-properties-page .properties-toolbar__search input {
        width: 100%;
        min-height: 44px;
        border-radius: 14px;
        padding: 0 14px 0 40px;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        font-size: 0.95rem;
    }

    body.is-properties-page .properties-toolbar__search {
        position: relative;
        margin-bottom: 12px;
    }

    body.is-properties-page .properties-toolbar__search::before {
        content: "";
        position: absolute;
        left: 14px;
        top: 50%;
        width: 16px;
        height: 16px;
        transform: translateY(-50%);
        border: 1.75px solid var(--color-text-muted);
        border-radius: 50%;
        box-shadow: 11px 11px 0 -6px var(--color-text-muted);
        pointer-events: none;
    }

    body.is-properties-page .properties-toolbar__more {
        display: block !important;
        margin: 0;
    }

    body.is-properties-page .properties-toolbar__more:not([open]) {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        pointer-events: none;
    }

    body.is-properties-page .properties-toolbar__more[open] {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        pointer-events: auto;
    }

    body.is-properties-page .properties-toolbar__more > summary {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    body.is-properties-page .properties-toolbar__more[open] > summary {
        display: none;
    }

    body.is-properties-page .properties-toolbar__more[open] .properties-toolbar__more-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        display: grid;
        gap: 12px;
        max-height: min(78dvh, 78vh);
        overflow: auto;
        padding: 12px 16px calc(var(--m-nav-h) + 16px);
        border-radius: 20px 20px 0 0;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        box-shadow: 0 -16px 40px color-mix(in srgb, var(--color-text) 18%, transparent);
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.is-properties-page .properties-toolbar__more[open] + button[type="submit"] {
        display: none;
    }

    body.is-properties-page .property-mobile-list {
        display: grid;
        gap: 16px;
        background: transparent;
        border: 0;
        overflow: visible;
    }

    body.is-properties-page .property-mobile-card,
    body.is-properties-page a.property-mobile-card {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        padding: 0 !important;
        border: 1px solid var(--color-border);
        border-radius: 20px;
        overflow: hidden;
        background: var(--color-surface);
        text-decoration: none;
        color: inherit;
        width: 100%;
    }

    body.is-properties-page .property-mobile-card__media,
    body.is-properties-page .property-mobile-card .property-cover,
    body.is-properties-page .property-mobile-card .property-media-placeholder,
    body.is-properties-page .property-mobile-card .property-cover.property-media-placeholder--card {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        border-radius: 0 !important;
        border: 0 !important;
        flex-shrink: 0;
    }

    body.is-properties-page .property-mobile-card__body {
        display: grid;
        gap: 6px;
        padding: 14px 14px 16px;
    }

    body.is-properties-page .property-mobile-card__price {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 800;
        letter-spacing: -0.03em;
        color: var(--color-text);
    }

    body.is-properties-page .property-mobile-card__title {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--color-text);
    }

    body.is-properties-page .property-mobile-card__meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        color: var(--color-text-muted);
        font-size: 0.82rem;
    }

    body.is-properties-page .property-mobile-card__badges {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        margin-top: 4px;
    }

    body.is-properties-page .property-mobile-card .m-chip {
        min-height: 28px;
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    body.is-properties-page .property-mobile-card .entity-card__badge {
        position: static;
        justify-self: start;
        border-radius: 999px;
        padding: 4px 8px;
        font-size: 0.72rem;
    }

    body.is-properties-page .properties-status-tabs {
        display: none;
    }

    /* ── Agenda ─────────────────────────────────────────── */
    body.is-agenda-page .agenda-hero,
    body.is-agenda-page .agenda-calendar-chip,
    body.is-agenda-page .agenda-ia,
    body.is-agenda-page .agenda-tools,
    body.is-agenda-page .agenda-upcoming,
    body.is-agenda-page .agenda-section--today .agenda-section__head {
        display: none;
    }

    body.is-agenda-page .agenda-home {
        padding-bottom: 88px;
    }

    .m-agenda-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0 0 12px;
    }

    .m-agenda-month {
        margin: 0;
        font-size: 1.35rem;
        font-weight: 800;
        letter-spacing: -0.03em;
    }

    .m-agenda-week {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 4px;
        margin: 0 0 16px;
    }

    .m-agenda-week a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 56px;
        padding: 6px 0;
        border-radius: 14px;
        text-decoration: none;
        color: var(--color-text-muted);
        font-size: 0.68rem;
        font-weight: 600;
    }

    .m-agenda-week a strong {
        font-size: 0.95rem;
        color: var(--color-text);
        font-weight: 800;
    }

    .m-agenda-week a.is-selected {
        background: var(--color-brand);
        color: #fff;
    }

    .m-agenda-week a.is-selected strong {
        color: #fff;
    }

    html[data-theme="dark"] .m-agenda-week a.is-selected {
        background: var(--purple-primary);
    }

    .m-agenda-today {
        display: inline-flex;
        min-height: var(--m-touch);
        align-items: center;
        margin: 0;
        padding: 6px 14px;
        border-radius: 999px;
        background: var(--color-brand-soft);
        color: var(--color-brand);
        text-decoration: none;
        font-weight: 700;
        font-size: 0.85rem;
    }

    html[data-theme="dark"] .m-agenda-today {
        background: var(--color-brand-soft);
        color: var(--purple-light);
    }

    body.is-agenda-page .agenda-card {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 8px;
        padding: 14px 12px;
        border-radius: 16px;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        margin-bottom: 10px;
    }

    body.is-agenda-page .agenda-card__quick {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
    }

    body.is-agenda-page .agenda-chip,
    body.is-agenda-page .agenda-chip--button {
        min-height: var(--m-touch);
        min-width: var(--m-touch);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        border-radius: 12px;
    }

    body.is-agenda-page .agenda-card__sync {
        display: none;
    }

    body.is-agenda-page .agenda-card__more summary {
        min-height: var(--m-touch);
        display: inline-flex;
        align-items: center;
        cursor: pointer;
    }

    body.is-agenda-page .agenda-fab {
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: calc(var(--m-nav-h) + 12px);
        z-index: 35;
        display: block;
    }

    body.is-agenda-page .agenda-fab__button,
    body.is-agenda-page .agenda-fab summary,
    body.is-agenda-page .agenda-fab > summary {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 52px;
        border-radius: 999px;
        background: var(--color-brand);
        color: #fff;
        border: 0;
        font-size: 1rem;
        font-weight: 700;
        list-style: none;
        cursor: pointer;
    }

    html[data-theme="dark"] body.is-agenda-page .agenda-fab__button,
    html[data-theme="dark"] body.is-agenda-page .agenda-fab > summary {
        background: var(--purple-primary);
    }

    body.is-agenda-page .agenda-fab__menu {
        left: 0;
        right: 0;
        bottom: 60px;
        width: 100%;
    }

    body.is-agenda-page .agenda-fab__button::-webkit-details-marker {
        display: none;
    }
}

@media (max-width: 360px) {
    .mobile-bottom-nav-label {
        font-size: 0.62rem;
    }

    body.is-home-v2 .jrh-hero {
        grid-template-columns: 1fr;
    }

    body.is-home-v2 .jrh-hero__mascot {
        display: none;
    }
}

@media (min-width: 769px) {
    .m-quick,
    .m-purpose-chips,
    .m-agenda-week,
    .m-agenda-today,
    .m-agenda-head,
    .m-agenda-tabs,
    .m-agenda-calendar,
    .m-agenda-route,
    .contacts-hero__add,
    .agenda-block__empty-mobile,
    .m-topbar-title,
    .m-topbar-avatar,
    .m-topbar-brand {
        display: none;
    }

    .jrh-chip-more,
    .contacts-filters-more {
        display: contents;
    }

    .jrh-chip-more > summary,
    .contacts-filters-more > summary {
        display: none;
    }

    .jrh-chip-more__panel,
    .contacts-filters-more__panel {
        display: contents;
    }
}

@media (max-width: 768px) {
    .jrh-bell-icon {
        width: 22px;
        height: 22px;
        display: block;
        color: var(--color-text);
    }

    .nav-notifications-link {
        position: relative;
        color: var(--color-text);
        font-size: 0;
        line-height: 0;
    }

    .nav-notifications-link .badge-pending {
        position: absolute;
        top: 6px;
        right: 4px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        font-size: 0.62rem;
        line-height: 16px;
        background: var(--color-brand);
        color: #fff;
    }

    html[data-theme="dark"] .nav-notifications-link .badge-pending {
        background: var(--purple-primary);
    }

    .jrh-mic-icon {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        color: currentColor;
    }

    .jrh-mic-waves {
        position: absolute;
        inset: -6px;
        border-radius: 999px;
        border: 2px solid currentColor;
        opacity: 0;
        pointer-events: none;
    }

    .jrh-hero__mic,
    .jrh-studio__mic,
    .agenda-ia__mic {
        color: var(--color-brand);
        background: var(--color-brand-soft);
        border: 0;
    }

    html[data-theme="dark"] .jrh-hero__mic,
    html[data-theme="dark"] .jrh-studio__mic,
    html[data-theme="dark"] .agenda-ia__mic {
        color: var(--purple-light);
        background: color-mix(in srgb, var(--purple-primary) 22%, transparent);
    }

    .jrh-hero__mic.is-listening,
    .jrh-studio__mic.is-listening,
    .agenda-ia__mic.is-listening {
        color: #fff;
        background: var(--color-brand);
    }

    html[data-theme="dark"] .jrh-hero__mic.is-listening,
    html[data-theme="dark"] .jrh-studio__mic.is-listening,
    html[data-theme="dark"] .agenda-ia__mic.is-listening {
        background: var(--purple-primary);
    }

    .jrh-hero__mic.is-listening .jrh-mic-waves,
    .jrh-studio__mic.is-listening .jrh-mic-waves,
    .agenda-ia__mic.is-listening .jrh-mic-waves {
        animation: jrh-mic-pulse 1.4s ease-out infinite;
        opacity: 0.45;
    }

    @media (prefers-reduced-motion: reduce) {
        .jrh-mic-waves {
            animation: none !important;
        }
    }

    @keyframes jrh-mic-pulse {
        0% { transform: scale(0.85); opacity: 0.5; }
        100% { transform: scale(1.35); opacity: 0; }
    }

    body.is-home-v2 .jrh-float,
    body.is-jrh-ask-page .jrh-float,
    body.is-marketing-chat-page .jrh-float,
    body.m-more-open .jrh-float,
    body.m-sheet-open .jrh-float {
        display: none !important;
    }

    .jrh-float {
        z-index: 25;
        width: 3.35rem;
        height: 3.9rem;
        min-width: 3.35rem;
        max-width: 3.35rem;
        padding: 4px;
        right: 16px;
        bottom: calc(var(--m-nav-h) + 16px);
        border-radius: 1.15rem;
        overflow: visible;
    }

    .jrh-float div {
        display: none;
    }

    body.has-app-rail .main-nav.header-zone-center,
    body.has-app-rail .main-nav.header-zone-center.is-open,
    body.m-nav-open .main-nav.header-zone-center,
    body.m-more-open .main-nav.header-zone-center {
        display: none !important;
    }

    html.m-more-open,
    body.m-more-open,
    html.m-sheet-open,
    body.m-sheet-open {
        overscroll-behavior: none;
    }

    body.m-scroll-locked {
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
    }

    .m-more {
        position: fixed;
        top: calc(56px + env(safe-area-inset-top, 0px));
        left: 0;
        right: 0;
        bottom: var(--m-nav-h);
        z-index: 28;
        display: none;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        background: var(--color-bg);
    }

    .m-more.is-open {
        display: flex;
    }

    .m-more__scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow: auto;
        display: flex;
        flex-direction: column;
        gap: var(--m-gap);
        padding: 8px 16px 24px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .m-more .m-hello {
        gap: 6px;
    }

    .m-rows {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 0;
    }

    .m-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 52px;
        width: 100%;
        padding: 12px 16px;
        border: 0;
        border-bottom: 1px solid var(--color-border);
        background: transparent;
        color: var(--color-text);
        font: inherit;
        font-size: 1rem;
        font-weight: 600;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
    }

    .m-row:last-child,
    .m-row--static {
        border-bottom: 0;
    }

    .m-row--static {
        cursor: default;
        font-weight: 500;
        color: var(--color-text-muted);
    }

    .m-row strong {
        color: var(--color-text-muted);
        font-size: 0.92rem;
        font-weight: 700;
    }

    .m-row:not(.m-row--static)::after {
        content: "›";
        color: var(--color-text-muted);
        font-size: 1.2rem;
        line-height: 1;
        margin-left: 8px;
    }

    .m-account {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 72px;
        padding: 14px 16px;
        text-decoration: none;
        color: var(--color-text);
    }

    .m-account[href]::after {
        content: "›";
        margin-left: auto;
        color: var(--color-text-muted);
        font-size: 1.3rem;
    }

    .m-account__avatar {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--color-brand-soft);
        color: var(--color-brand);
        font-weight: 800;
        font-size: 0.78rem;
    }

    html[data-theme="dark"] .m-account__avatar {
        color: var(--purple-light);
    }

    .m-account__text {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .m-account__text span {
        color: var(--color-text-muted);
        font-size: 0.88rem;
        overflow-wrap: anywhere;
    }

    .m-more__logout {
        display: inline-flex;
        align-items: center;
        min-height: 52px;
        padding: 0;
        margin-top: 8px;
        color: #f97066;
        text-decoration: none;
        font-size: 1.05rem;
        font-weight: 700;
        border: 0;
        background: transparent;
        position: relative;
        z-index: 2;
        pointer-events: auto;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .m-more__end {
        flex: 0 0 8px;
        height: 8px;
        pointer-events: none;
    }

    .mobile-drawer-section .header-nav-meta {
        display: none;
    }

    .mobile-drawer-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 48px;
        margin-bottom: 8px;
    }

    .mobile-drawer-title {
        margin: 0;
        font-size: 1.7rem;
        font-weight: 800;
        letter-spacing: -0.03em;
    }

    .m-drawer-close {
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: var(--color-text);
        font-size: 1.6rem;
        line-height: 1;
        cursor: pointer;
    }

    .mobile-drawer-prefs .header-jrh-ask {
        display: none;
    }

    .mobile-drawer-prefs {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 8px 0 16px;
        border-top: 1px solid var(--color-border);
    }

    .theme-toggle-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: var(--m-touch);
        width: 100%;
        border: 0;
        background: transparent;
        color: var(--color-text);
        font-size: 1rem;
    }

    .theme-switch {
        width: 44px;
        height: 26px;
        border-radius: 999px;
        background: var(--color-border);
        position: relative;
    }

    html[data-theme="dark"] .theme-switch {
        background: var(--purple-primary);
    }

    .theme-switch::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #fff;
    }

    html[data-theme="dark"] .theme-switch::after {
        left: 21px;
    }

    .language-switcher {
        display: inline-flex;
        border: 1px solid var(--color-border);
        border-radius: 999px;
        overflow: hidden;
        align-self: flex-start;
    }

    .mobile-drawer-user-card {
        padding: 12px 0;
        min-height: auto;
    }

    body.is-dashboard-page:not(.is-home-v2) .ds-home,
    body.is-dashboard-page:not(.is-home-v2) .home-panel.ds-home {
        display: flex !important;
        flex-direction: column;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 16px;
    }

    body.is-dashboard-page:not(.is-home-v2) .ds-home > *,
    body.is-dashboard-page:not(.is-home-v2) .home-panel.ds-home > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        grid-column: auto !important;
    }

    body.is-dashboard-page:not(.is-home-v2) .home-mobile-greeting.hide-desktop {
        display: flex !important;
        align-items: center;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 14px 16px;
    }

    body.is-dashboard-page:not(.is-home-v2) .home-mobile-greeting__avatar {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        font-size: 0.85rem;
    }

    body.is-dashboard-page:not(.is-home-v2) .home-mobile-greeting__body {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }

    body.is-dashboard-page:not(.is-home-v2) .home-mobile-greeting__body strong,
    body.is-dashboard-page:not(.is-home-v2) .home-mobile-greeting__body p {
        overflow-wrap: break-word;
        word-break: normal;
        white-space: normal;
    }

    body.is-dashboard-page:not(.is-home-v2) .home-mobile-kpis.hide-desktop {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.is-dashboard-page:not(.is-home-v2) .home-mobile-kpis__head {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-width: 0;
    }

    body.is-dashboard-page:not(.is-home-v2) .home-mobile-kpis__head h2 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 800;
        min-width: 0;
    }

    body.is-dashboard-page:not(.is-home-v2) .home-mobile-kpis__head form,
    body.is-dashboard-page:not(.is-home-v2) .home-mobile-kpis .home-panel__period-select {
        min-width: 0;
        max-width: 100%;
        width: auto;
        flex: 0 1 auto;
    }

    body.is-dashboard-page:not(.is-home-v2) .home-mobile-kpi {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    body.is-dashboard-page:not(.is-home-v2) .home-mobile-section.hide-desktop,
    body.is-dashboard-page:not(.is-home-v2) .pending-block-mobile.hide-desktop {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    body.is-dashboard-page:not(.is-home-v2) .home-mobile-quick.hide-desktop {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    body.is-dashboard-page:not(.is-home-v2) .home-mobile-section__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-width: 0;
    }

    body.is-dashboard-page:not(.is-home-v2) .home-mobile-op {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        width: 100%;
        min-width: 0;
    }

    body.is-dashboard-page:not(.is-home-v2) .mobile-fab,
    body.is-dashboard-page:not(.is-home-v2) .mobile-fab--center {
        display: none !important;
    }

    body.is-home-v2 .home-v2 {
        display: flex;
        flex-direction: column;
        gap: var(--m-gap);
        padding: 8px 0 16px;
    }

    body.is-home-v2 .home-v2__hello {
        margin: 0;
    }

    body.is-home-v2 .home-v2__hello .agenda-hero__hello {
        font-size: clamp(1.7rem, 7vw, 2.1rem);
        line-height: 1.15;
    }

    body.is-home-v2 .jrh-hero {
        margin: 0;
    }

    body.is-home-v2 .jrh-hero__chips {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }

    body.is-home-v2 .jrh-hero__chip,
    .jrh-chip-more__toggle {
        flex: 0 0 auto;
        white-space: nowrap;
        max-width: none;
    }

    .jrh-chip-more {
        flex: 0 0 auto;
    }

    .jrh-chip-more > summary {
        list-style: none;
        cursor: pointer;
    }

    .jrh-chip-more > summary::-webkit-details-marker {
        display: none;
    }

    .jrh-chip-more[open] .jrh-chip-more__panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 55;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 20px 16px calc(var(--m-nav-h) + 20px);
        border-radius: 20px 20px 0 0;
        background: var(--color-surface);
        box-shadow: 0 -16px 40px color-mix(in srgb, var(--color-text) 18%, transparent);
    }

    body.is-home-v2 .m-quick,
    body.is-home-v2 .jrh-recs,
    body.is-home-v2 .pending-block__groups,
    body.is-home-v2 .pending-block__item:nth-child(n+4),
    body.is-home-v2 .agenda-block .ds-empty {
        display: none;
    }

    .agenda-block__empty-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 48px;
    }

    .agenda-block__empty-mobile p {
        margin: 0;
        color: var(--color-text-muted);
    }

    .agenda-block__empty-mobile a {
        min-height: var(--m-touch);
        display: inline-flex;
        align-items: center;
        font-weight: 700;
        color: var(--color-brand);
        text-decoration: none;
    }

    html[data-theme="dark"] .agenda-block__empty-mobile a {
        color: var(--purple-light);
    }

    body.is-home-v2 .agenda-block,
    body.is-home-v2 .home-card.pending-block {
        margin: 0;
    }

    body.is-jrh-ask-page,
    body.is-jrh-ask-page .app-main-inner {
        background: var(--color-bg);
        color: var(--color-text);
    }

    body.is-jrh-ask-page .app-main-inner {
        padding-bottom: calc(var(--m-nav-h) + 12px);
    }

    body.is-jrh-ask-page .jrh-studio {
        display: flex;
        flex-direction: column;
        position: relative;
        min-height: 0;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        padding: 4px 0 8px;
    }

    body.is-jrh-ask-page .jrh-studio__hero,
    body.is-jrh-ask-page .jrh-studio__copy {
        display: contents;
    }

    body.is-jrh-ask-page .jrh-studio__badges,
    body.is-jrh-ask-page .jrh-studio__glow,
    body.is-jrh-ask-page .jrh-studio__bubble,
    body.is-jrh-ask-page .jrh-studio__layout aside,
    body.is-jrh-ask-page .jrh-studio__kicker,
    body.is-jrh-ask-page .jrh-studio__lead.hide-mobile,
    body.is-jrh-ask-page .jrh-hero__review {
        display: none;
    }

    body.is-jrh-ask-page .jrh-studio__mascot-wrap.hide-mobile {
        display: none !important;
    }

    body.is-jrh-ask-page .jrh-studio__intro {
        order: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
        width: 100%;
        padding-right: 0;
    }

    body.is-jrh-ask-page .jrh-studio__title {
        display: block;
        margin: 0;
        font-size: 1.7rem;
        line-height: 1.15;
        letter-spacing: -0.04em;
        color: var(--color-text);
    }

    body.is-jrh-ask-page .m-jrh-lead.hide-desktop {
        display: block !important;
        margin: 0;
        font-size: 0.95rem;
        color: var(--color-text-muted);
    }

    body.is-jrh-ask-page .jrh-studio__mascot-wrap {
        display: none !important;
    }

    body.is-jrh-ask-page .jrh-studio__empty {
        margin: 4px 0 0;
        padding: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    body.is-jrh-ask-page .jrh-studio__empty-bot {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 88px;
        height: 88px;
        margin: 8px 0 4px;
        border-radius: 0;
        overflow: visible;
        background: transparent;
    }

    html[data-theme="dark"] body.is-jrh-ask-page .jrh-studio__empty-bot {
        background: transparent;
    }

    body.is-jrh-ask-page .jrh-studio__empty-bot img,
    body.is-jrh-ask-page .jrh-studio__empty-bot .jrh-bot-hero,
    body.is-jrh-ask-page .jrh-studio__empty-bot .jrh-bot-avatar {
        width: 88px !important;
        height: 88px !important;
        max-width: 88px;
        max-height: 88px;
        object-fit: contain !important;
        object-position: center;
        transform: none;
        background: transparent !important;
        filter: drop-shadow(0 10px 16px color-mix(in srgb, var(--color-text) 16%, transparent));
        animation: none;
        border-radius: 0;
    }

    body.is-jrh-ask-page .jrh-studio__empty-title {
        font-size: 1.05rem;
        font-weight: 800;
        color: var(--color-text);
    }

    body.is-jrh-ask-page .jrh-studio__empty-hint {
        max-width: 34ch;
        font-size: 0.9rem;
        line-height: 1.4;
        color: var(--color-text-muted);
    }

    body.is-jrh-ask-page .jrh-studio__empty p {
        margin: 0;
    }

    body.is-jrh-ask-page .jrh-studio__layout {
        order: 2;
        display: block;
        flex: 0 0 auto;
        min-height: 0;
        width: 100%;
        max-width: 100%;
    }

    body.is-jrh-ask-page .jrh-studio__thread {
        min-height: 0;
        flex: 0 0 auto;
        padding: 4px 0 0;
        width: 100%;
        max-width: 100%;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    body.is-jrh-ask-page .jrh-studio__composer {
        order: 3;
        position: relative;
        bottom: auto;
        z-index: 8;
        margin: 4px 0 0;
        padding: 4px 0 0;
        background: transparent;
        backdrop-filter: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    body.m-keyboard-open.is-jrh-ask-page .jrh-studio__composer {
        position: sticky;
        bottom: var(--m-keyboard, 0px);
        background: color-mix(in srgb, var(--color-bg) 94%, transparent);
        backdrop-filter: blur(10px);
    }

    body.is-jrh-ask-page .jrh-studio__actions {
        order: -1;
    }

    body.is-jrh-ask-page .jrh-studio__form {
        width: 100%;
        min-width: 0;
    }

    body.is-jrh-ask-page .jrh-studio__field {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 48px 48px;
        gap: 8px;
        align-items: center;
        min-width: 0;
        width: 100%;
        padding: 4px 4px 4px 12px;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: 16px;
    }

    body.is-jrh-ask-page .jrh-studio__input {
        min-height: 48px;
        font-size: 16px;
        border-radius: 14px;
        min-width: 0;
    }

    body.is-jrh-ask-page .jrh-studio__mic,
    body.is-jrh-ask-page .jrh-studio__ask {
        width: 48px;
        min-width: 48px;
        max-width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 14px;
        justify-content: center;
    }

    body.is-jrh-ask-page .jrh-studio__ask-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    body.is-jrh-ask-page .jrh-studio__ask-icon {
        display: block;
    }

    body.is-jrh-ask-page .jrh-studio__actions {
        display: flex !important;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 0 8px;
        margin: 2px 0 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        background: transparent;
        grid-template-columns: none !important;
    }

    body.is-jrh-ask-page .jrh-studio__actions::-webkit-scrollbar {
        display: none;
    }

    body.is-jrh-ask-page .jrh-studio__chip,
    body.is-jrh-ask-page .jrh-chip-more,
    body.is-jrh-ask-page .jrh-chip-more__toggle {
        flex: 0 0 auto;
        min-width: 0;
        max-width: none;
        min-height: 40px;
        padding: 8px 14px;
        border-radius: 999px;
        border: 1px solid var(--color-border);
        background: var(--color-surface);
        color: var(--color-text);
        white-space: nowrap;
        overflow: visible;
        text-overflow: unset;
        font-size: 0.86rem;
        font-weight: 650;
        line-height: 1.2;
        box-shadow: none;
    }

    .m-agenda-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin: 0 0 16px;
        padding: 4px;
        border-radius: 16px;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
    }

    .m-agenda-tabs a {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        text-decoration: none;
        color: var(--color-text-muted);
        font-weight: 700;
        font-size: 0.9rem;
    }

    .m-agenda-tabs a.is-active {
        background: var(--color-brand);
        color: #fff;
    }

    html[data-theme="dark"] .m-agenda-tabs a.is-active {
        background: var(--purple-primary);
    }

    .is-hidden-view {
        display: none !important;
    }

    .m-agenda-calendar {
        display: flex;
        gap: 8px;
        margin: 0 0 16px;
    }

    .m-agenda-calendar input[type="date"] {
        flex: 1;
        min-height: 48px;
        border-radius: 14px;
        border: 1px solid var(--color-border);
        background: var(--color-surface);
        padding: 0 12px;
        font-size: 16px;
        color: var(--color-text);
    }

    .m-agenda-route {
        min-height: var(--m-touch);
        display: inline-flex;
        align-items: center;
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--color-brand);
        text-decoration: none;
        text-align: right;
    }

    html[data-theme="dark"] .m-agenda-route {
        color: var(--purple-light);
    }

    body.is-agenda-page .agenda-fab[open] .agenda-fab__menu {
        position: fixed;
        left: 0;
        right: 0;
        bottom: var(--m-nav-h);
        z-index: 36;
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 100%;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        border-radius: 20px 20px 0 0;
        background: var(--color-surface);
        box-shadow: 0 -16px 40px color-mix(in srgb, var(--color-text) 18%, transparent);
    }

    body.is-agenda-page .agenda-fab[open] .agenda-fab__menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 0 12px;
        border-radius: 12px;
        text-decoration: none;
        color: var(--color-text);
        font-weight: 600;
    }

    body.is-agenda-page .agenda-empty-today,
    body.is-agenda-page .agenda-empty {
        padding: 16px 0 80px;
        color: var(--color-text-muted);
    }

    body.is-contacts-page .contacts-hero h1,
    body.is-contacts-page .contacts-kicker {
        display: none;
    }

    body.is-contacts-page .contacts-hero {
        display: flex;
        justify-content: flex-end;
        margin: 0 0 12px;
        min-height: 0;
    }

    .contacts-hero__add {
        position: relative;
    }

    .contacts-hero__add-btn {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: var(--color-brand);
        color: #fff;
        font-size: 1.4rem;
        list-style: none;
        cursor: pointer;
    }

    html[data-theme="dark"] .contacts-hero__add-btn {
        background: var(--purple-primary);
    }

    .contacts-hero__add-btn::-webkit-details-marker {
        display: none;
    }

    .contacts-hero__add[open] .contacts-hero__add-menu {
        position: absolute;
        right: 0;
        top: 52px;
        z-index: 20;
        min-width: 200px;
        display: flex;
        flex-direction: column;
        padding: 8px;
        border-radius: 16px;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        box-shadow: 0 12px 28px color-mix(in srgb, var(--color-text) 12%, transparent);
    }

    .contacts-hero__add-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0 12px;
        color: var(--color-text);
        text-decoration: none;
        font-weight: 600;
    }

    body.is-contacts-page .contacts-search {
        display: block;
        margin-bottom: 12px;
    }

    body.is-contacts-page .contacts-search input {
        width: 100%;
        min-height: 48px;
        border-radius: 14px;
        font-size: 16px;
    }

    body.is-contacts-page .contacts-search button {
        display: none;
    }

    body.is-contacts-page .contacts-filters {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        margin-bottom: 16px;
        -webkit-overflow-scrolling: touch;
    }

    body.is-contacts-page .contacts-filter,
    .contacts-filters-more > summary {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 8px 14px;
        border-radius: 999px;
        border: 1px solid var(--color-border);
        background: var(--color-surface);
        white-space: nowrap;
        list-style: none;
        cursor: pointer;
    }

    body.is-contacts-page .contacts-card__extra {
        display: none;
    }

    body.is-contacts-page .contacts-card {
        padding: 14px 16px;
        border-radius: 18px;
    }

    body.is-contacts-page .contacts-card h2 {
        font-size: 1.05rem;
        margin: 0 0 4px;
    }

    body.is-acm-page .acm-v5-target {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    body.is-acm-page .acm-v5-target__media,
    body.is-acm-page .acm-v5-target__media img {
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        border-radius: 18px;
        max-height: none;
    }

    body.is-acm-page .acm-v5-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding-bottom: 24px;
    }

    body.is-acm-page .acm-v5-actions .btn-primary {
        grid-column: 1 / -1;
        min-height: var(--m-cta-h);
    }

    body.is-acm-page .acm-v5-actions .btn {
        min-height: 48px;
        width: 100%;
        justify-content: center;
    }

    body.is-acm-page .table-wrap,
    body.is-acm-page .acm-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .m-sheet-backdrop {
        position: fixed;
        inset: 0;
        z-index: 79;
        display: none;
        border: 0;
        padding: 0;
        margin: 0;
        background: color-mix(in srgb, var(--color-text) 42%, transparent);
    }

    body.m-sheet-open .m-sheet-backdrop {
        display: block;
    }

    .m-sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-width: 0;
        padding-bottom: 4px;
    }

    .m-sheet-head h2 {
        margin: 0;
        font-size: 1.15rem;
        font-weight: 800;
    }

    .m-sheet-close {
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: var(--color-text);
        font-size: 1.6rem;
        line-height: 1;
        cursor: pointer;
    }

    .m-sheet-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
        margin-top: 8px;
    }

    .m-sheet-actions__clear,
    .m-sheet-actions__apply {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        text-decoration: none;
        font-weight: 700;
        border: 0;
        cursor: pointer;
    }

    .m-sheet-actions__clear {
        background: transparent;
        color: var(--color-text);
        border: 1px solid var(--color-border);
    }

    .m-sheet-actions__apply {
        background: var(--color-brand);
        color: #fff;
    }

    html[data-theme="dark"] .m-sheet-actions__apply {
        background: var(--purple-primary);
    }

    .m-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        height: auto;
        z-index: 80;
        display: none;
        width: 100%;
        max-width: 100%;
        pointer-events: none;
    }

    .m-sheet.is-open {
        display: block;
        pointer-events: none;
    }

    .m-sheet__panel {
        position: relative;
        pointer-events: auto;
        padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        border-radius: 22px 22px 0 0;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        box-shadow: 0 -16px 40px color-mix(in srgb, var(--color-text) 18%, transparent);
        max-height: min(78dvh, 78vh);
        overflow: auto;
    }

    .m-sheet__panel::before {
        content: "";
        display: block;
        width: 40px;
        height: 4px;
        margin: 4px auto 12px;
        border-radius: 999px;
        background: var(--color-border);
    }

    .m-sheet__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 44px;
        margin-bottom: 8px;
    }

    .m-sheet__head h2 {
        margin: 0;
        font-size: 1.15rem;
        font-weight: 800;
    }

    .m-sheet__options {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .m-sheet__option {
        display: flex;
        align-items: center;
        min-height: 52px;
        padding: 0 4px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: var(--color-text);
        font: inherit;
        font-size: 1.02rem;
        font-weight: 600;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
        width: 100%;
    }

    .m-sheet__option::before {
        content: "";
        width: 20px;
        height: 20px;
        margin-right: 12px;
        border-radius: 999px;
        border: 2px solid var(--color-border);
        flex: 0 0 20px;
    }

    .m-sheet__option.is-active::before,
    .m-sheet__option.is-active {
        color: var(--color-brand);
    }

    .m-sheet__option.is-active::before {
        border-color: var(--color-brand);
        box-shadow: inset 0 0 0 5px var(--color-brand);
    }

    html[data-theme="dark"] .m-sheet__option.is-active {
        color: var(--purple-primary);
    }

    html[data-theme="dark"] .m-sheet__option.is-active::before {
        border-color: var(--purple-primary);
        box-shadow: inset 0 0 0 5px var(--purple-primary);
    }

    .m-sheet__apply {
        margin-top: 12px;
        width: 100%;
        min-height: 52px;
        border: 0;
        border-radius: 16px;
        background: var(--color-brand);
        color: #fff;
        font: inherit;
        font-weight: 800;
        cursor: pointer;
    }

    html[data-theme="dark"] .m-sheet__apply {
        background: var(--purple-primary);
    }

    .m-sheet__body [data-sheet-panel],
    .m-sheet__body .properties-toolbar__more-panel {
        position: static !important;
        inset: auto !important;
        display: grid;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 0 8px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        max-height: none;
        overflow: visible;
    }

    .m-sheet__body .m-sheet-head {
        display: none;
    }

    .m-sheet__body .m-sheet-actions {
        display: grid !important;
        margin-top: 8px;
    }

    .m-sheet__body label,
    .m-sheet__body a,
    .m-sheet__body .contacts-filter,
    .m-sheet__body .jrh-studio__chip {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .m-sheet__body input,
    .m-sheet__body select {
        width: 100%;
        min-height: 48px;
        font-size: 16px;
        border-radius: 14px;
        border: 1px solid var(--color-border);
        background: var(--color-surface-secondary);
        color: var(--color-text);
        padding: 0 12px;
    }

    .m-voice {
        position: fixed;
        inset: 0;
        z-index: 90;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        background: color-mix(in srgb, var(--color-bg) 88%, transparent);
        backdrop-filter: blur(12px);
    }

    .m-voice[hidden] {
        display: none !important;
    }

    .m-voice__panel {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
        max-width: 280px;
    }

    .m-voice__mic {
        width: 88px;
        height: 88px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        background: var(--color-brand);
        box-shadow: 0 0 0 12px color-mix(in srgb, var(--color-brand) 22%, transparent);
        animation: jrh-mic-pulse 1.6s ease-out infinite;
    }

    html[data-theme="dark"] .m-voice__mic {
        background: var(--purple-primary);
        box-shadow: 0 0 0 12px color-mix(in srgb, var(--purple-primary) 28%, transparent);
    }

    .m-voice__title {
        margin: 8px 0 0;
        font-size: 1.25rem;
        font-weight: 800;
    }

    .m-voice__hint {
        margin: 0;
        color: var(--color-text-muted);
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .m-voice__cancel {
        min-height: 48px;
        margin-top: 8px;
        border: 0;
        background: transparent;
        color: var(--color-text-muted);
        font: inherit;
        font-weight: 700;
        cursor: pointer;
    }

    body.m-keyboard-open .mobile-bottom-nav {
        transform: translateY(110%);
        pointer-events: none;
    }

    body.m-voice-open .jrh-float,
    body.m-keyboard-open .jrh-float {
        display: none !important;
    }

    body.is-jrh-ask-page .jrh-chat__row.is-user {
        justify-content: flex-end;
        text-align: right;
    }

    body.is-jrh-ask-page .jrh-chat__row.is-user .jrh-chat__avatar {
        display: none;
    }

    body.is-notifications-page .m-topbar-title {
        display: block;
    }

    body.is-notifications-page .m-topbar-brand,
    body.is-notifications-page .site-brand {
        display: none;
    }

    body.is-notifications-page .page-header,
    body.is-notifications-page .page-actions {
        display: none;
    }

    body.is-notifications-page .panel {
        padding: 8px 0 16px;
        border: 0;
        background: transparent;
        box-shadow: none;
        min-height: 0;
    }

    .m-notify-empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
        padding: 48px 16px;
        color: var(--color-text-muted);
    }

    .m-notify-empty__icon {
        width: 48px;
        height: 48px;
        color: var(--color-text-muted);
    }

    .m-notify-empty p {
        margin: 0;
    }
}

@media (min-width: 769px) {
    .m-more,
    .m-sheet,
    .m-sheet-backdrop,
    .m-voice {
        display: none !important;
    }
}

