:root {
    color-scheme: light;
}

html:has(body.live-funnel-mobile-app-page) {
    min-height: 100%;
    margin: 0 !important;
    background: #f5f7fb;
}

body.live-funnel-mobile-app-page {
    margin: 0;
    background: #f5f7fb;
    overflow-x: hidden;
    min-height: 100%;
}

body.live-funnel-mobile-sheet-open {
    overflow: hidden;
}

body.live-funnel-mobile-app-page .wp-site-blocks,
body.live-funnel-mobile-app-page .entry-content,
body.live-funnel-mobile-app-page .wp-block-post-content,
body.live-funnel-mobile-app-page .is-layout-constrained,
body.live-funnel-mobile-app-page .is-layout-flow,
body.live-funnel-mobile-app-page main {
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body.live-funnel-mobile-app-page .wp-block-post-title,
body.live-funnel-mobile-app-page h1.wp-block-post-title {
    display: none !important;
}

.live-funnel-mobile-app {
    --lfm-bg: #eef3fb;
    --lfm-card: rgba(255, 255, 255, 0.78);
    --lfm-elevated: rgba(255, 255, 255, 0.92);
    --lfm-text: #0f172a;
    --lfm-muted: #667085;
    --lfm-line: rgba(15, 23, 42, 0.085);
    --lfm-primary: #1d4ed8;
    --lfm-primary-soft: rgba(37, 99, 235, 0.105);
    --lfm-shadow: 0 18px 48px rgba(30, 41, 59, 0.10);
    --lfm-shadow-strong: 0 28px 80px rgba(30, 41, 59, 0.18);
    --lfm-radius-card: 28px;
    --lfm-radius-control: 18px;
    min-height: 100svh;
    min-height: 100dvh;
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: calc(14px + env(safe-area-inset-top)) 14px calc(132px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    background:
        linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,255,255,0) 190px),
        linear-gradient(var(--lfm-bg), var(--lfm-bg)) top / 100% calc(58px + env(safe-area-inset-top)) no-repeat,
        radial-gradient(circle at 16% -8%, rgba(59, 130, 246, 0.18), transparent 32%),
        radial-gradient(circle at 92% 10%, rgba(14, 165, 233, 0.10), transparent 30%),
        var(--lfm-bg);
    color: var(--lfm-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

.live-funnel-mobile-app[data-lfm-standalone="true"] {
    padding-top: calc(22px + env(safe-area-inset-top));
}

.live-funnel-mobile-app[data-lfm-standalone="true"]::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 0;
    height: calc(58px + env(safe-area-inset-top));
    background: var(--lfm-bg);
    pointer-events: none;
}

.live-funnel-mobile-app > * {
    position: relative;
    z-index: 1;
}

.lfm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 auto 16px;
    max-width: 520px;
}

.lfm-header-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.lfm-header-brand img {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(30, 41, 59, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.lfm-kicker,
.lfm-card-label {
    margin: 0 0 4px;
    color: var(--lfm-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lfm-header h1,
.lfm-hero-card h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: 0;
}

.lfm-header h1 {
    overflow: hidden;
    max-width: min(62vw, 330px);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lfm-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--lfm-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--lfm-muted);
    font-size: 12px;
    font-weight: 700;
}

.lfm-main {
    max-width: 520px;
    margin: 0 auto;
}

.lfm-auth-main {
    display: grid;
    min-height: calc(100svh - 130px);
    align-items: center;
}

.lfm-card,
.lfm-metric {
    border: 1px solid var(--lfm-line);
    border-radius: var(--lfm-radius-card);
    background: var(--lfm-card);
    box-shadow: var(--lfm-shadow);
    backdrop-filter: blur(26px) saturate(1.25);
    -webkit-backdrop-filter: blur(26px) saturate(1.25);
}

.lfm-hero-card {
    padding: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .58)),
        var(--lfm-card);
}

.lfm-hero-card p {
    margin: 10px 0 0;
    color: var(--lfm-muted);
    font-size: 14px;
    line-height: 1.45;
}

.lfm-card-note {
    margin: 6px 0 0;
    color: var(--lfm-muted);
    font-size: 13px;
    line-height: 1.4;
}

.lfm-auth-card {
    padding: 26px 22px 22px;
    text-align: center;
}

.lfm-auth-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.lfm-auth-brand span {
    width: 28px;
    height: 28px;
    border: 2px solid var(--lfm-primary);
    border-top-color: transparent;
    border-radius: 999px;
    transform: rotate(-28deg);
}

.lfm-auth-card h2,
.lfm-list-card h3,
.lfm-lead-card h3,
.lfm-empty-card h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: 0;
}

.lfm-auth-card p,
.lfm-empty-card p {
    margin: 10px 0 0;
    color: var(--lfm-muted);
    font-size: 15px;
    line-height: 1.45;
}

.lfm-login-form,
.lfm-logout-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.lfm-login-form label {
    display: grid;
    gap: 7px;
    color: var(--lfm-muted);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.lfm-login-form input {
    min-height: 50px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--lfm-line);
    border-radius: 16px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--lfm-text);
    font: inherit;
    text-align: center;
}

.lfm-notice {
    border: 1px solid var(--lfm-line);
    border-radius: 16px;
    padding: 12px;
    background: var(--lfm-primary-soft);
}

.lfm-notice-error {
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.10);
}

.lfm-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.lfm-metric-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lfm-metric {
    min-height: 78px;
    padding: 12px 11px;
}

.lfm-metric span {
    display: block;
    color: var(--lfm-muted);
    font-size: 12px;
    line-height: 1.25;
}

.lfm-metric strong {
    display: block;
    margin-top: 10px;
    font-size: 22px;
    line-height: 1;
}

.lfm-link-card {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    padding: 18px;
}

.lfm-link-card span {
    color: var(--lfm-muted);
    font-size: 12px;
    font-weight: 700;
}

.lfm-link-card a {
    color: var(--lfm-text);
    font-size: 14px;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.lfm-install-card .lfm-button {
    margin-top: 2px;
}

.lfm-push-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
}

.lfm-push-actions .lfm-button {
    margin-top: 0;
}

.lfm-button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.lfm-install-help {
    display: grid;
    gap: 8px;
    border: 1px solid var(--lfm-line);
    border-radius: 18px;
    padding: 14px;
    background: var(--lfm-primary-soft);
}

.lfm-install-help[hidden] {
    display: none;
}

.lfm-install-help p {
    margin: 0;
    color: var(--lfm-text);
    font-size: 13px;
    line-height: 1.45;
}

.lfm-diagnostics-card {
    gap: 0;
}

.lfm-diagnostics-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 30px;
    color: var(--lfm-text);
    cursor: pointer;
    font-size: 15px;
    font-weight: 850;
    list-style: none;
}

.lfm-diagnostics-card summary::-webkit-details-marker {
    display: none;
}

.lfm-diagnostics-card summary::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--lfm-primary-soft);
    color: var(--lfm-primary);
}

.lfm-diagnostics-card[open] {
    gap: 12px;
}

.lfm-diagnostics-card[open] summary::after {
    content: "–";
}

.lfm-button {
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2f6ff2, var(--lfm-primary));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
    -webkit-tap-highlight-color: transparent;
}

.lfm-button:active,
.lfm-range-button:active,
.lfm-lead-card:active,
.lfm-appointment-card:active,
.lfm-tracking-slide:active {
    transform: scale(.985);
}

.lfm-button-secondary {
    width: 100%;
    background: rgba(255, 255, 255, 0.48);
    color: var(--lfm-muted);
    border: 1px solid var(--lfm-line);
}

.lfm-hero-top,
.lfm-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.lfm-range-button {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    flex: 0 0 auto;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    padding: 0 13px;
    background: rgba(255, 255, 255, 0.56);
    color: var(--lfm-primary);
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .54);
    transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.lfm-leads-hero {
    padding-bottom: 15px;
}

.lfm-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.lfm-active-filters span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border: 1px solid var(--lfm-line);
    border-radius: 999px;
    padding: 0 10px;
    background: var(--lfm-primary-soft);
    color: var(--lfm-primary);
    font-size: 12px;
    font-weight: 800;
}

.lfm-tracking-hero {
    display: grid;
    gap: 14px;
    padding: 17px;
}

.lfm-tracking-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lfm-tracking-range {
    display: inline-grid;
    grid-auto-flow: column;
    gap: 4px;
    border: 1px solid var(--lfm-line);
    border-radius: 999px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .58);
}

.lfm-tracking-range a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 9px;
    color: var(--lfm-muted);
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.lfm-tracking-range a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.90);
    color: var(--lfm-primary);
    box-shadow: 0 5px 14px rgba(30, 41, 59, 0.08);
}

.lfm-tracking-main-value {
    display: grid;
    gap: 2px;
}

.lfm-tracking-main-value strong {
    color: var(--lfm-text);
    font-size: clamp(46px, 16vw, 72px);
    line-height: 0.94;
    letter-spacing: 0;
}

.lfm-tracking-main-value span {
    color: var(--lfm-muted);
    font-size: 14px;
    font-weight: 800;
}

.lfm-tracking-trend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--lfm-line);
    border-radius: 18px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.38);
}

.lfm-tracking-trend span,
.lfm-tracking-trend small {
    color: var(--lfm-muted);
    font-size: 12px;
    font-weight: 800;
}

.lfm-tracking-trend.is-up span {
    color: #16a34a;
}

.lfm-tracking-trend.is-down span {
    color: #ef4444;
}

.lfm-tracking-filter-strip {
    display: flex;
    gap: 7px;
    margin: 0 -2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.lfm-tracking-filter-strip::-webkit-scrollbar {
    display: none;
}

.lfm-tracking-filter-strip a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    flex: 0 0 auto;
    border: 1px solid var(--lfm-line);
    border-radius: 999px;
    padding: 0 11px;
    background: rgba(255, 255, 255, 0.52);
    color: var(--lfm-muted);
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.lfm-tracking-filter-strip a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.88);
    color: var(--lfm-primary);
    box-shadow: 0 5px 14px rgba(30, 41, 59, 0.08);
}

.lfm-tracking-carousel {
    display: grid;
    grid-auto-columns: minmax(82%, 1fr);
    grid-auto-flow: column;
    gap: 10px;
    margin: 12px -14px 0;
    padding: 0 14px 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.lfm-tracking-carousel::-webkit-scrollbar {
    display: none;
}

.lfm-tracking-slide {
    display: grid;
    min-height: 238px;
    align-content: space-between;
    gap: 12px;
    padding: 16px;
    scroll-snap-align: center;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .56)),
        var(--lfm-card);
}

.lfm-slide-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.lfm-slide-head span {
    color: var(--lfm-muted);
    font-size: 12px;
    font-weight: 850;
}

.lfm-slide-head strong {
    max-width: 58%;
    overflow: hidden;
    color: var(--lfm-text);
    font-size: 14px;
    font-weight: 900;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lfm-line-chart {
    width: 100%;
    height: 138px;
    overflow: visible;
}

.lfm-line-chart polygon {
    fill: rgba(37, 99, 235, 0.10);
}

.lfm-line-chart polyline {
    fill: none;
    stroke: var(--lfm-primary);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.lfm-chart-empty {
    display: grid;
    min-height: 132px;
    place-items: center;
    color: var(--lfm-muted);
    font-size: 13px;
    font-weight: 800;
}

.lfm-mini-bars {
    display: grid;
    gap: 11px;
}

.lfm-mini-bars div,
.lfm-tracking-row {
    display: grid;
    grid-template-columns: minmax(72px, 1fr) minmax(74px, 1.1fr) auto;
    align-items: center;
    gap: 10px;
}

.lfm-mini-bars span,
.lfm-tracking-row span {
    overflow: hidden;
    color: var(--lfm-text);
    font-size: 13px;
    font-weight: 820;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lfm-mini-bars i,
.lfm-tracking-row i {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--lfm-primary) var(--lfm-bar), rgba(102, 112, 133, 0.18) var(--lfm-bar));
}

.lfm-mini-bars strong,
.lfm-tracking-row strong {
    color: var(--lfm-muted);
    font-size: 12px;
    font-weight: 850;
}

.lfm-day-bars {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 6px;
    min-height: 150px;
}

.lfm-day-bars div {
    display: grid;
    flex: 1 1 0;
    gap: 7px;
    align-items: end;
    min-width: 0;
    height: 150px;
}

.lfm-day-bars i {
    display: block;
    min-height: 10px;
    height: var(--lfm-bar);
    border-radius: 999px 999px 8px 8px;
    background: linear-gradient(180deg, var(--lfm-primary), rgba(37, 99, 235, 0.28));
}

.lfm-day-bars span {
    overflow: hidden;
    color: var(--lfm-muted);
    font-size: 10px;
    font-weight: 750;
    text-align: center;
    text-overflow: ellipsis;
}

.lfm-device-gauge {
    display: grid;
    width: 150px;
    height: 76px;
    place-items: end center;
    margin: 12px auto 4px;
    border-radius: 150px 150px 0 0;
    background: conic-gradient(from 270deg at 50% 100%, var(--lfm-primary) 0 var(--lfm-gauge), rgba(102, 112, 133, 0.18) var(--lfm-gauge) 50%, transparent 50% 100%);
}

.lfm-device-gauge span {
    display: grid;
    width: 92px;
    height: 48px;
    place-items: center;
    border-radius: 92px 92px 0 0;
    background: var(--lfm-card);
    color: var(--lfm-text);
    font-size: 22px;
    font-weight: 900;
}

.lfm-device-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
}

.lfm-device-pills span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    border: 1px solid var(--lfm-line);
    border-radius: 999px;
    padding: 0 9px;
    color: var(--lfm-muted);
    font-size: 11px;
    font-weight: 800;
}

.lfm-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 8px 0 2px;
}

.lfm-carousel-dots span {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(102, 112, 133, 0.30);
}

.lfm-carousel-dots span.is-active {
    width: 20px;
    background: var(--lfm-primary);
}

.lfm-tracking-detail-card h3 {
    font-size: 18px;
}

.lfm-tracking-row + .lfm-tracking-row {
    border-top: 1px solid var(--lfm-line);
    padding-top: 10px;
}

.lfm-sheet[hidden] {
    display: none;
}

.lfm-sheet {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.lfm-sheet-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.lfm-sheet-panel {
    position: absolute;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    gap: 8px;
    max-width: 520px;
    margin: 0 auto;
    border: 1px solid var(--lfm-line);
    border-radius: 30px;
    padding: 12px;
    background: var(--lfm-card);
    box-shadow: var(--lfm-shadow-strong);
    backdrop-filter: blur(30px) saturate(1.3);
    -webkit-backdrop-filter: blur(30px) saturate(1.3);
}

.lfm-sheet-handle {
    width: 38px;
    height: 4px;
    margin: 2px auto 4px;
    border-radius: 999px;
    background: var(--lfm-line);
}

.lfm-sheet-panel h3 {
    margin: 2px 8px 4px;
    color: var(--lfm-text);
    font-size: 17px;
}

.lfm-sheet-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    border-radius: 16px;
    padding: 0 14px;
    color: var(--lfm-text);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.lfm-sheet-panel a[aria-current="page"] {
    background: var(--lfm-primary-soft);
    color: var(--lfm-primary);
}

.lfm-sheet-panel a[aria-current="page"]::after {
    content: "✓";
    font-weight: 900;
}

.lfm-details-sheet .lfm-sheet-backdrop {
    background: var(--lfm-bg);
}

.lfm-details-sheet .lfm-sheet-panel {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    gap: 14px;
    max-width: none;
    width: 100%;
    min-height: 100dvh;
    box-sizing: border-box;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: calc(18px + env(safe-area-inset-top)) 14px calc(112px + env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.12), transparent 28%),
        var(--lfm-bg);
    box-shadow: none;
    overflow-y: auto;
    align-content: start;
}

.lfm-details-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.lfm-details-head h3 {
    margin: 0;
    color: var(--lfm-text);
    font-size: 24px;
    line-height: 1.08;
}

.lfm-details-head button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--lfm-line);
    border-radius: 999px;
    background: var(--lfm-elevated);
    color: var(--lfm-text);
    font-size: 24px;
    line-height: 1;
}

.lfm-details-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid var(--lfm-line);
    border-radius: 999px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.56);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.lfm-details-tabs button {
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--lfm-muted);
    font: inherit;
    font-size: 12px;
    font-weight: 850;
}

.lfm-details-tabs button.is-active {
    background: rgba(255,255,255,.90);
    color: var(--lfm-primary);
    box-shadow: 0 5px 14px rgba(30, 41, 59, 0.08);
}

.lfm-details-panel {
    display: grid;
    gap: 12px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.lfm-details-panel[hidden] {
    display: none;
}

.lfm-details-form {
    display: grid;
    gap: 12px;
}

.lfm-details-card {
    display: grid;
    gap: 8px;
    border: 1px solid var(--lfm-line);
    border-radius: 24px;
    padding: 14px;
    background: var(--lfm-card);
    box-shadow: 0 10px 28px rgba(30, 41, 59, 0.06);
}

.lfm-details-card h4 {
    margin: 0 0 3px;
    color: var(--lfm-text);
    font-size: 15px;
}

.lfm-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    gap: 12px;
    color: var(--lfm-text);
    font-size: 14px;
    font-weight: 780;
}

.lfm-check-row input {
    width: 20px;
    height: 20px;
    accent-color: var(--lfm-primary);
}

.lfm-details-field {
    display: grid;
    min-width: 0;
    gap: 7px;
    color: var(--lfm-muted);
    font-size: 12px;
    font-weight: 800;
}

.lfm-details-field select,
.lfm-details-field input,
.lfm-details-field textarea {
    min-height: 48px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--lfm-line);
    border-radius: 18px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.60);
    color: var(--lfm-text);
    font: inherit;
    font-size: 15px;
    font-weight: 760;
}

.lfm-details-field input[type="date"],
.lfm-details-field input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 9px;
    padding-left: 9px;
    font-size: 14px;
}

.lfm-details-field textarea {
    min-height: 88px;
    padding-top: 12px;
    resize: vertical;
}

.lfm-detail-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.lfm-detail-stat-grid article {
    min-height: 82px;
    border: 1px solid var(--lfm-line);
    border-radius: 20px;
    padding: 13px;
    background: var(--lfm-card);
}

.lfm-detail-stat-grid span {
    display: block;
    color: var(--lfm-muted);
    font-size: 12px;
    font-weight: 780;
}

.lfm-detail-stat-grid strong {
    display: block;
    overflow: hidden;
    margin-top: 10px;
    color: var(--lfm-text);
    font-size: 20px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lfm-list-card,
.lfm-empty-card,
.lfm-lead-card {
    margin-top: 10px;
    padding: 15px;
}

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

.lfm-appointments-hero {
    display: grid;
    gap: 14px;
}

.lfm-hero-actions,
.lfm-tracking-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    gap: 8px;
}

.lfm-tracking-tools {
    flex: 1 1 auto;
}

.lfm-hero-actions .lfm-range-button {
    margin-top: 0;
}

.lfm-icon-button {
    border: 1px solid rgba(255, 255, 255, 0.58);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.42)),
        rgba(255,255,255,.38);
    color: var(--lfm-text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.74), 0 8px 18px rgba(30,41,59,.07);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    cursor: pointer;
}

.lfm-icon-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lfm-icon-button:active {
    transform: translateY(1px);
}

.lfm-appointment-range {
    justify-self: stretch;
    overflow-x: auto;
}

.lfm-new-appointment-button {
    margin-top: 10px;
}

.lfm-appointment-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.lfm-appointment-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 13px;
    margin-top: 0;
    padding: 15px;
}

.lfm-appointment-date {
    display: grid;
    min-height: 76px;
    align-content: center;
    justify-items: center;
    border: 1px solid var(--lfm-line);
    border-radius: 18px;
    background: var(--lfm-primary-soft);
}

.lfm-appointment-date strong {
    color: var(--lfm-primary);
    font-size: 16px;
    line-height: 1;
}

.lfm-appointment-date span {
    margin-top: 6px;
    color: var(--lfm-muted);
    font-size: 12px;
    font-weight: 850;
}

.lfm-appointment-body {
    min-width: 0;
}

.lfm-appointment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.lfm-appointment-head h3 {
    margin: 0;
    color: var(--lfm-text);
    font-size: 17px;
    line-height: 1.15;
}

.lfm-appointment-head span:not(.lfm-appointment-status) {
    display: block;
    margin-top: 4px;
    color: var(--lfm-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.lfm-appointment-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    flex: 0 0 auto;
    border: 1px solid var(--lfm-line);
    border-radius: 999px;
    padding: 0 9px;
    background: rgba(255, 255, 255, 0.46);
    color: var(--lfm-muted);
    font-size: 11px;
    font-weight: 850;
}

.lfm-appointment-status.is-invited,
.lfm-appointment-status.is-confirmed {
    border-color: rgba(37, 99, 235, 0.20);
    background: var(--lfm-primary-soft);
    color: var(--lfm-primary);
}

.lfm-appointment-status.is-done {
    border-color: rgba(22, 163, 74, 0.20);
    background: rgba(22, 163, 74, 0.10);
    color: #15803d;
}

.lfm-appointment-status.is-missed {
    border-color: rgba(239, 68, 68, 0.20);
    background: rgba(239, 68, 68, 0.10);
    color: #dc2626;
}

.lfm-appointment-body p {
    margin: 10px 0 0;
    color: var(--lfm-muted);
    font-size: 13px;
    line-height: 1.4;
}

.lfm-appointment-note {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.lfm-appointment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.lfm-appointment-grid > .lfm-details-field {
    min-width: 0;
}

.lfm-appointment-form.is-submitting button[type="submit"] {
    pointer-events: none;
    opacity: 0.72;
}

.lfm-appointment-sheet .lfm-sheet-panel {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    gap: 14px;
    max-width: none;
    width: 100%;
    min-height: 100dvh;
    max-height: none;
    box-sizing: border-box;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: calc(18px + env(safe-area-inset-top)) 14px calc(28px + env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.12), transparent 28%),
        var(--lfm-bg);
    box-shadow: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    align-content: start;
}

.lfm-mobile-settings-sheet {
    z-index: 92;
    overscroll-behavior: contain;
}

.lfm-mobile-settings-sheet .lfm-sheet-backdrop {
    background: var(--lfm-bg);
}

.lfm-mobile-settings-sheet .lfm-sheet-panel {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    align-content: start;
    gap: 12px;
    max-width: none;
    width: 100%;
    min-height: 100dvh;
    max-height: none;
    box-sizing: border-box;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: calc(18px + env(safe-area-inset-top)) 14px calc(32px + env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.12), transparent 28%),
        var(--lfm-bg);
    box-shadow: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.lfm-mobile-settings-sheet .lfm-details-head,
.lfm-mobile-settings-sheet .lfm-mobile-settings-card {
    max-width: 520px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.lfm-mobile-settings-card {
    display: grid;
    gap: 10px;
}

.lfm-mobile-settings-card h4,
.lfm-toggle-row h4 {
    margin: 0;
    color: var(--lfm-text);
    font-size: 16px;
    line-height: 1.15;
}

.lfm-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    border-top: 1px solid var(--lfm-line);
    padding-top: 10px;
}

.lfm-settings-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.lfm-settings-row span {
    color: var(--lfm-muted);
    font-size: 13px;
    font-weight: 760;
}

.lfm-settings-row strong {
    min-width: 0;
    color: var(--lfm-text);
    font-size: 13px;
    font-weight: 850;
    text-align: right;
}

.lfm-reminder-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lfm-reminder-options span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid var(--lfm-line);
    border-radius: 999px;
    padding: 0 10px;
    background: var(--lfm-primary-soft);
    color: var(--lfm-primary);
    font-size: 12px;
    font-weight: 850;
}

.lfm-appointment-sheet {
    z-index: 90;
    overscroll-behavior: contain;
}

.lfm-appointment-sheet .lfm-sheet-backdrop {
    background: var(--lfm-bg);
}

.lfm-appointment-sheet .lfm-details-head,
.lfm-appointment-sheet .lfm-details-form {
    max-width: 520px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.lfm-appointment-form {
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
}

.live-funnel-mobile-app[data-lfm-sheet-active="true"] .lfm-bottom-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
}

.lfm-past-appointments {
    margin-top: 12px;
}

.lfm-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.lfm-status-grid div {
    min-height: 66px;
    border: 1px solid var(--lfm-line);
    border-radius: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.38);
}

.lfm-status-grid div:first-child {
    grid-column: 1 / -1;
}

.lfm-status-grid span {
    display: block;
    color: var(--lfm-muted);
    font-size: 12px;
    font-weight: 750;
}

.lfm-status-grid strong {
    display: block;
    margin-top: 8px;
    color: var(--lfm-text);
    font-size: 15px;
    font-weight: 850;
}

.lfm-toggle-row {
    min-height: 42px;
    color: var(--lfm-text);
    font-size: 15px;
    font-weight: 800;
}

.lfm-toggle-row.is-muted {
    color: var(--lfm-muted);
}

.lfm-toggle-row h3 {
    margin: 0;
}

.lfm-switch {
    position: relative;
    display: inline-flex;
    width: 50px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(102, 112, 133, 0.22);
    transition: background 180ms ease;
}

.lfm-switch span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
    transition: transform 180ms ease;
}

.lfm-switch.is-on {
    background: #34c759;
}

.lfm-switch.is-on span {
    transform: translateX(20px);
}

.lfm-switch.is-readonly {
    opacity: 0.55;
}

.lfm-signal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 30px;
    border-top: 1px solid var(--lfm-line);
    padding-top: 10px;
}

.lfm-signal-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.lfm-signal-row span,
.lfm-lead-head span,
.lfm-lead-meta span {
    color: var(--lfm-muted);
    font-size: 12px;
    font-weight: 700;
}

.lfm-signal-row strong {
    min-width: 0;
    color: var(--lfm-text);
    font-size: 14px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lfm-lead-list {
    display: grid;
    gap: 9px;
    margin-top: 10px;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.lfm-lead-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.lfm-lead-head h3 {
    margin: 0;
    overflow: hidden;
    color: var(--lfm-text);
    font-size: 16px;
    line-height: 1.16;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lfm-lead-title {
    min-width: 0;
}

.lfm-score {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 34px;
    flex: 0 0 auto;
    border: 1px solid rgba(37, 99, 235, 0.20);
    border-radius: 13px;
    background: var(--lfm-primary-soft);
    color: var(--lfm-primary);
    font-size: 15px;
    line-height: 1;
}

.lfm-score span {
    margin-bottom: 2px;
    color: var(--lfm-muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.lfm-lead-preview {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 0;
    color: var(--lfm-text);
    font-size: 13px;
    font-weight: 720;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.lfm-lead-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.lfm-lead-meta span {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    border: 1px solid var(--lfm-line);
    border-radius: 999px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.42);
    line-height: 1;
}

.lfm-lead-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.lfm-lead-actions a,
.lfm-lead-actions button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 34px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 999px;
    padding: 0 12px;
    background: var(--lfm-primary-soft);
    color: var(--lfm-primary);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.lfm-lead-actions button {
    appearance: none;
    cursor: pointer;
}

.lfm-lead-card {
    margin-top: 0;
    padding: 13px;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.lfm-leads-hero {
    gap: 9px;
    padding: 16px;
}

.lfm-leads-hero p {
    margin-top: -2px;
}

.lfm-lead-card:active {
    transform: scale(.992);
}

.lfm-lead-card:focus-visible {
    outline: 2px solid var(--lfm-primary);
    outline-offset: 2px;
}

.lfm-lead-profile-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--lfm-line);
    border-radius: 20px;
    padding: 13px;
    background: var(--lfm-primary-soft);
}

.lfm-lead-profile-summary strong {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 15px;
    background: var(--lfm-card);
    color: var(--lfm-primary);
    font-size: 17px;
    line-height: 1;
}

.lfm-lead-profile-summary span {
    min-width: 0;
    color: var(--lfm-text);
    font-size: 14px;
    font-weight: 850;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lfm-lead-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.lfm-lead-profile-actions a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    padding: 0 14px;
    background: var(--lfm-primary-soft);
    color: var(--lfm-primary);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.lfm-lead-profile-section {
    margin-top: 10px;
}

.lfm-lead-info-row {
    display: grid;
    grid-template-columns: minmax(82px, .42fr) minmax(0, 1fr);
    gap: 10px;
    min-height: 32px;
    align-items: start;
    border-top: 1px solid var(--lfm-line);
    padding-top: 9px;
}

.lfm-lead-info-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.lfm-lead-info-row span {
    color: var(--lfm-muted);
    font-size: 12px;
    font-weight: 800;
}

.lfm-lead-info-row strong {
    min-width: 0;
    color: var(--lfm-text);
    font-size: 13px;
    font-weight: 760;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.lfm-bottom-nav {
    position: fixed;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-width: 520px;
    margin: 0 auto;
    padding: 7px;
    border: 1px solid var(--lfm-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
}

.lfm-bottom-nav a {
    display: grid;
    gap: 5px;
    place-items: center;
    min-height: 54px;
    border-radius: 17px;
    color: var(--lfm-muted);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.lfm-bottom-nav a.is-locked {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.42;
    filter: grayscale(0.35);
}

.lfm-bottom-nav a[aria-current="page"] {
    background: var(--lfm-primary-soft);
    color: var(--lfm-primary);
}

.lfm-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.lfm-nav-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lfm-bottom-nav a[aria-current="page"] .lfm-nav-icon {
    transform: translateY(-1px);
}

.lfm-locked-card {
    min-height: 260px;
    justify-content: center;
}

/* Premium mobile app finish: visual-only refinement for Tracking, Leads, Termine and sheets. */
.lfm-appointment-card,
.lfm-lead-card,
.lfm-tracking-slide,
.lfm-list-card,
.lfm-empty-card,
.lfm-status-grid div {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .58)),
        var(--lfm-card);
    box-shadow: var(--lfm-shadow);
}

.lfm-appointment-date,
.lfm-score,
.lfm-lead-profile-summary {
    border-color: rgba(37, 99, 235, 0.15);
    background:
        linear-gradient(150deg, rgba(37, 99, 235, .14), rgba(255, 255, 255, .40)),
        var(--lfm-primary-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}

.lfm-appointment-status,
.lfm-active-filters span,
.lfm-device-pills span,
.lfm-lead-meta span,
.lfm-lead-actions a,
.lfm-lead-actions button,
.lfm-lead-profile-actions a {
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .52);
}

.lfm-lead-card:hover {
    border-color: rgba(37, 99, 235, 0.16);
    box-shadow: 0 20px 54px rgba(30, 41, 59, 0.12);
}

.lfm-appointment-card,
.lfm-lead-card,
.lfm-tracking-slide,
.lfm-range-button,
.lfm-bottom-nav a,
.lfm-lead-actions a,
.lfm-lead-actions button,
.lfm-lead-profile-actions a {
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

.lfm-bottom-nav {
    gap: 5px;
    padding: 6px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 22px 58px rgba(30, 41, 59, 0.19);
    backdrop-filter: blur(30px) saturate(1.35);
    -webkit-backdrop-filter: blur(30px) saturate(1.35);
}

.lfm-bottom-nav a {
    min-height: 56px;
    border-radius: 22px;
}

.lfm-bottom-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 20px rgba(30, 41, 59, 0.10);
    transform: translateY(-1px);
}

.lfm-nav-icon svg {
    stroke-width: 1.9;
}

.lfm-sheet-panel {
    border-radius: 30px;
    box-shadow: var(--lfm-shadow-strong);
}

.lfm-lead-profile-summary {
    border-radius: 24px;
}

@media (prefers-reduced-motion: reduce) {
    .live-funnel-mobile-app *,
    .live-funnel-mobile-app *::before,
    .live-funnel-mobile-app *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    html:has(body.live-funnel-mobile-app-page),
    body.live-funnel-mobile-app-page {
        background: #070b14;
    }

    .live-funnel-mobile-app {
        --lfm-bg: #070b14;
        --lfm-card: rgba(17, 24, 39, 0.86);
        --lfm-elevated: rgba(17, 24, 39, 0.94);
        --lfm-text: #f8fafc;
        --lfm-muted: #9ca3af;
        --lfm-line: rgba(255, 255, 255, 0.12);
        --lfm-primary: #60a5fa;
        --lfm-primary-soft: rgba(96, 165, 250, 0.15);
        --lfm-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
        --lfm-shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.42);
    }

    .lfm-status,
    .lfm-bottom-nav {
        background: rgba(17, 24, 39, 0.82);
    }

    .lfm-login-form input {
        background: rgba(17, 24, 39, 0.72);
    }

    .lfm-lead-meta span {
        background: rgba(17, 24, 39, 0.38);
    }

    .lfm-appointment-card,
    .lfm-lead-card,
    .lfm-tracking-slide,
    .lfm-list-card,
    .lfm-empty-card,
    .lfm-status-grid div {
        background:
            linear-gradient(145deg, rgba(30, 41, 59, .82), rgba(17, 24, 39, .74)),
            var(--lfm-card);
    }

    .lfm-appointment-status,
    .lfm-active-filters span,
    .lfm-device-pills span,
    .lfm-lead-meta span,
    .lfm-lead-actions a,
    .lfm-lead-actions button,
    .lfm-lead-profile-actions a,
    .lfm-details-field select,
    .lfm-details-field input,
    .lfm-details-field textarea {
        background: rgba(17, 24, 39, 0.54);
    }

    .lfm-bottom-nav a[aria-current="page"],
    .lfm-tracking-range a[aria-current="page"],
    .lfm-tracking-filter-strip a[aria-current="page"],
    .lfm-details-tabs button.is-active {
        background: rgba(30, 41, 59, 0.92);
    }

    .lfm-status-grid div {
        background: rgba(17, 24, 39, 0.38);
    }

    .lfm-details-tabs {
        background: rgba(17, 24, 39, 0.70);
    }

    .lfm-tracking-range,
    .lfm-tracking-trend,
    .lfm-tracking-filter-strip a {
        background: rgba(17, 24, 39, 0.42);
    }

    .lfm-switch span {
        background: #f8fafc;
    }
}

/* Liquid glass redesign v2: stronger native-app visual layer, no functional changes. */
.live-funnel-mobile-app {
    position: relative;
    isolation: isolate;
    overflow-x: clip;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .72) 0%, rgba(244, 248, 255, .42) 28%, rgba(238, 243, 251, 0) 58%),
        radial-gradient(ellipse 130% 54% at 48% -18%, rgba(96, 165, 250, .26), rgba(219, 234, 254, .12) 42%, rgba(238, 243, 251, 0) 73%),
        linear-gradient(145deg, #f8fbff 0%, #eef4fd 48%, #e9f0fa 100%) !important;
}

.live-funnel-mobile-app::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 0;
    height: calc(220px + env(safe-area-inset-top));
    background:
        linear-gradient(180deg, rgba(255,255,255,.56), rgba(255,255,255,.20) 45%, rgba(255,255,255,0)),
        radial-gradient(ellipse 110% 75% at 50% -20%, rgba(59,130,246,.22), rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.live-funnel-mobile-app::after {
    content: "";
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    height: 170px;
    background: linear-gradient(0deg, rgba(238, 243, 251, .82), rgba(238, 243, 251, 0));
    pointer-events: none;
}

.live-funnel-mobile-app[data-lfm-standalone="true"]::before {
    height: calc(236px + env(safe-area-inset-top));
    background:
        linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.18) 52%, rgba(255,255,255,0)),
        radial-gradient(ellipse 115% 78% at 50% -20%, rgba(59,130,246,.24), rgba(255,255,255,0) 72%);
}

.lfm-header {
    margin-bottom: 18px;
    padding: 2px 2px 0;
}

.lfm-header-brand {
    gap: 11px;
}

.lfm-header-brand img {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(37, 99, 235, .18), 0 6px 18px rgba(15, 23, 42, .10), inset 0 1px 0 rgba(255,255,255,.80);
}

.lfm-kicker,
.lfm-card-label {
    color: rgba(71, 85, 105, .76);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .115em;
}

.lfm-header h1 {
    font-size: 24px;
    font-weight: 780;
    letter-spacing: -.01em;
}

.lfm-status {
    min-height: 32px;
    border-color: rgba(255,255,255,.58);
    background: rgba(255,255,255,.52);
    color: rgba(51,65,85,.82);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.70), 0 8px 22px rgba(30,41,59,.08);
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

.lfm-card,
.lfm-metric {
    border-color: rgba(255,255,255,.54);
    border-radius: 32px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,255,255,.48)),
        rgba(255,255,255,.54);
    box-shadow: 0 24px 70px rgba(30,41,59,.115), 0 1px 0 rgba(255,255,255,.72) inset;
    backdrop-filter: blur(34px) saturate(1.35);
    -webkit-backdrop-filter: blur(34px) saturate(1.35);
}

.lfm-hero-card,
.lfm-tracking-hero,
.lfm-leads-hero,
.lfm-appointments-hero {
    border-color: rgba(255,255,255,.62);
    background:
        linear-gradient(150deg, rgba(255,255,255,.88), rgba(255,255,255,.52) 58%, rgba(219,234,254,.28)),
        rgba(255,255,255,.52);
    box-shadow: 0 28px 82px rgba(37,99,235,.13), 0 1px 0 rgba(255,255,255,.78) inset;
}

.lfm-hero-card h2,
.lfm-tracking-main-value strong {
    letter-spacing: -.025em;
}

.lfm-tracking-main-value strong {
    font-weight: 820;
    text-shadow: 0 10px 32px rgba(37,99,235,.13);
}

.lfm-button,
.lfm-range-button,
.lfm-tracking-range,
.lfm-tracking-filter-strip a,
.lfm-lead-actions a,
.lfm-lead-actions button,
.lfm-lead-profile-actions a,
.lfm-appointment-status,
.lfm-active-filters span,
.lfm-lead-meta span {
    border-color: rgba(255,255,255,.56);
    background:
        linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.42)),
        rgba(255,255,255,.38);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.74), 0 8px 18px rgba(30,41,59,.07);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.lfm-button {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    box-shadow: 0 16px 34px rgba(37,99,235,.24), inset 0 1px 0 rgba(255,255,255,.28);
}

.lfm-tracking-range a[aria-current="page"],
.lfm-tracking-filter-strip a[aria-current="page"],
.lfm-details-tabs button.is-active {
    background: rgba(255,255,255,.94);
    box-shadow: 0 10px 26px rgba(30,41,59,.10), inset 0 1px 0 rgba(255,255,255,.82);
}

.lfm-tracking-carousel {
    grid-auto-columns: minmax(88%, 1fr);
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
    scroll-padding: 18px;
    mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 34px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 34px), transparent 100%);
}

.lfm-tracking-slide,
.lfm-lead-card,
.lfm-appointment-card,
.lfm-list-card,
.lfm-empty-card {
    border-color: rgba(255,255,255,.58);
    background:
        linear-gradient(150deg, rgba(255,255,255,.80), rgba(255,255,255,.44)),
        rgba(255,255,255,.48);
    box-shadow: 0 22px 58px rgba(30,41,59,.105), inset 0 1px 0 rgba(255,255,255,.72);
}

.lfm-lead-card,
.lfm-appointment-card {
    border-radius: 30px;
}

.lfm-score,
.lfm-appointment-date,
.lfm-lead-profile-summary {
    border-color: rgba(255,255,255,.58);
    background:
        linear-gradient(155deg, rgba(59,130,246,.18), rgba(255,255,255,.46)),
        rgba(219,234,254,.32);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.74), 0 12px 30px rgba(37,99,235,.13);
}

.lfm-bottom-nav {
    bottom: calc(8px + env(safe-area-inset-bottom));
    border-color: rgba(255,255,255,.58);
    border-radius: 32px;
    padding: 7px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.52)),
        rgba(255,255,255,.50);
    box-shadow: 0 26px 72px rgba(30,41,59,.22), inset 0 1px 0 rgba(255,255,255,.82);
    backdrop-filter: blur(38px) saturate(1.45);
    -webkit-backdrop-filter: blur(38px) saturate(1.45);
}

.lfm-bottom-nav a {
    border-radius: 25px;
    font-weight: 780;
}

.lfm-bottom-nav a[aria-current="page"] {
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.72)),
        rgba(255,255,255,.75);
    box-shadow: 0 13px 30px rgba(37,99,235,.13), inset 0 1px 0 rgba(255,255,255,.92);
}

.lfm-nav-icon svg {
    stroke-width: 1.75;
}

.lfm-details-sheet .lfm-sheet-panel,
.lfm-appointment-sheet .lfm-sheet-panel,
.lfm-mobile-settings-sheet .lfm-sheet-panel {
    background:
        linear-gradient(180deg, rgba(255,255,255,.80), rgba(238,243,251,.78)),
        linear-gradient(145deg, #f8fbff, #edf4fd);
}

.lfm-sheet-panel,
.lfm-details-card,
.lfm-details-field select,
.lfm-details-field input,
.lfm-details-field textarea {
    border-color: rgba(255,255,255,.58);
    background:
        linear-gradient(180deg, rgba(255,255,255,.76), rgba(255,255,255,.46)),
        rgba(255,255,255,.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.lfm-details-head button {
    border-color: rgba(255,255,255,.60);
    background: rgba(255,255,255,.70);
    box-shadow: 0 10px 24px rgba(30,41,59,.10), inset 0 1px 0 rgba(255,255,255,.78);
}

@media (prefers-color-scheme: dark) {
    .live-funnel-mobile-app {
        background:
            linear-gradient(180deg, rgba(15, 23, 42, .92) 0%, rgba(7, 11, 20, .94) 46%, #070b14 100%),
            radial-gradient(ellipse 130% 54% at 50% -18%, rgba(96,165,250,.18), rgba(7,11,20,0) 74%) !important;
    }

    .live-funnel-mobile-app::before {
        background:
            linear-gradient(180deg, rgba(15,23,42,.82), rgba(15,23,42,.18) 58%, rgba(15,23,42,0)),
            radial-gradient(ellipse 115% 78% at 50% -20%, rgba(96,165,250,.16), rgba(7,11,20,0) 72%);
    }

    .live-funnel-mobile-app::after {
        background: linear-gradient(0deg, rgba(7,11,20,.88), rgba(7,11,20,0));
    }

    .lfm-card,
    .lfm-metric,
    .lfm-tracking-slide,
    .lfm-lead-card,
    .lfm-appointment-card,
    .lfm-list-card,
    .lfm-empty-card,
    .lfm-details-card {
        border-color: rgba(255,255,255,.13);
        background:
            linear-gradient(145deg, rgba(30,41,59,.82), rgba(15,23,42,.62)),
            rgba(15,23,42,.58);
    }

    .lfm-button,
    .lfm-range-button,
    .lfm-icon-button,
    .lfm-tracking-range,
    .lfm-tracking-filter-strip a,
    .lfm-lead-actions a,
    .lfm-lead-actions button,
    .lfm-lead-profile-actions a,
    .lfm-appointment-status,
    .lfm-active-filters span,
    .lfm-lead-meta span,
    .lfm-bottom-nav,
    .lfm-details-field select,
    .lfm-details-field input,
    .lfm-details-field textarea,
    .lfm-details-head button {
        border-color: rgba(255,255,255,.13);
        background:
            linear-gradient(180deg, rgba(30,41,59,.80), rgba(15,23,42,.58)),
            rgba(15,23,42,.58);
    }

    .lfm-bottom-nav a[aria-current="page"],
    .lfm-tracking-range a[aria-current="page"],
    .lfm-tracking-filter-strip a[aria-current="page"],
    .lfm-details-tabs button.is-active {
        background:
            linear-gradient(180deg, rgba(51,65,85,.92), rgba(30,41,59,.78)),
            rgba(30,41,59,.84);
    }

    .lfm-details-sheet .lfm-sheet-panel,
    .lfm-appointment-sheet .lfm-sheet-panel,
    .lfm-mobile-settings-sheet .lfm-sheet-panel {
        background:
            linear-gradient(180deg, rgba(15,23,42,.94), rgba(7,11,20,.96)),
            #070b14;
    }
}

@media (max-width: 360px) {
    .live-funnel-mobile-app {
        padding-right: 10px;
        padding-left: 10px;
    }

    .lfm-header h1,
    .lfm-hero-card h2 {
        font-size: 27px;
    }

    .lfm-metric-grid {
        grid-template-columns: 1fr;
    }

    .lfm-appointment-grid {
        grid-template-columns: 1fr;
    }

    .lfm-status-grid {
        grid-template-columns: 1fr;
    }

    .lfm-status-grid div:first-child {
        grid-column: auto;
    }
}

/* Native premium mobile pass v3: visual-only system polish for the mobile app. */
.live-funnel-mobile-app {
    --lfm-bg: #edf4fc;
    --lfm-card: rgba(255, 255, 255, 0.66);
    --lfm-elevated: rgba(255, 255, 255, 0.88);
    --lfm-text: #0b1220;
    --lfm-muted: rgba(72, 84, 103, 0.78);
    --lfm-line: rgba(18, 28, 45, 0.082);
    --lfm-line-glass: rgba(255, 255, 255, 0.62);
    --lfm-primary: #2563eb;
    --lfm-primary-strong: #174bd7;
    --lfm-primary-soft: rgba(37, 99, 235, 0.112);
    --lfm-green: #22c55e;
    --lfm-red: #ef4444;
    --lfm-radius-card: 32px;
    --lfm-radius-control: 20px;
    --lfm-shadow: 0 20px 54px rgba(26, 39, 66, 0.11), 0 1px 0 rgba(255, 255, 255, 0.74) inset;
    --lfm-shadow-strong: 0 32px 90px rgba(20, 31, 54, 0.22), 0 1px 0 rgba(255, 255, 255, 0.72) inset;
    --lfm-press-scale: .985;
    padding-bottom: calc(142px + env(safe-area-inset-bottom));
    letter-spacing: -0.01em;
    background:
        radial-gradient(circle at 16% -8%, rgba(59, 130, 246, 0.24), transparent 34%),
        radial-gradient(circle at 94% 4%, rgba(125, 211, 252, 0.18), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #edf4fc 54%, #e9f0fa 100%) !important;
}

.lfm-header {
    align-items: center;
    margin-bottom: 20px;
    padding-inline: 2px;
}

.lfm-header-brand img {
    width: 44px;
    height: 44px;
    border-radius: 17px;
    filter: saturate(1.05) contrast(1.02);
}

.lfm-header h1 {
    font-size: clamp(22px, 6vw, 27px);
    font-weight: 820;
    letter-spacing: -0.035em;
}

.lfm-kicker,
.lfm-card-label {
    margin-bottom: 5px;
    color: rgba(72, 84, 103, 0.68);
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.lfm-status {
    min-height: 34px;
    padding-inline: 12px;
    border: 1px solid var(--lfm-line-glass);
    background: rgba(255, 255, 255, 0.58);
    color: rgba(15, 23, 42, 0.74);
    font-size: 11.5px;
    box-shadow: 0 10px 26px rgba(30, 41, 59, 0.085), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.lfm-main {
    display: grid;
    gap: 12px;
}

.lfm-card,
.lfm-metric,
.lfm-details-card,
.lfm-detail-stat-grid article {
    border: 1px solid var(--lfm-line-glass);
    border-radius: var(--lfm-radius-card);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.46)),
        rgba(255, 255, 255, 0.52);
    box-shadow: var(--lfm-shadow);
    backdrop-filter: blur(34px) saturate(1.32);
    -webkit-backdrop-filter: blur(34px) saturate(1.32);
}

.lfm-hero-card,
.lfm-tracking-hero,
.lfm-leads-hero,
.lfm-appointments-hero {
    padding: 18px;
    border-radius: 34px;
    background:
        linear-gradient(148deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.50) 58%, rgba(191, 219, 254, 0.32)),
        rgba(255, 255, 255, 0.58);
    box-shadow: 0 28px 82px rgba(37, 99, 235, 0.12), 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.lfm-header h1,
.lfm-hero-card h2,
.lfm-list-card h3,
.lfm-lead-card h3,
.lfm-empty-card h3,
.lfm-details-head h3 {
    letter-spacing: -0.035em;
}

.lfm-hero-card h2 {
    font-size: clamp(23px, 7vw, 31px);
    font-weight: 830;
}

.lfm-hero-card p,
.lfm-card-note,
.lfm-lead-preview,
.lfm-appointment-body p {
    color: var(--lfm-muted);
    line-height: 1.48;
}

.lfm-button,
.lfm-range-button,
.lfm-icon-button,
.lfm-tracking-range,
.lfm-tracking-filter-strip a,
.lfm-lead-actions a,
.lfm-lead-actions button,
.lfm-lead-profile-actions a,
.lfm-appointment-status,
.lfm-active-filters span,
.lfm-device-pills span,
.lfm-lead-meta span,
.lfm-details-tabs,
.lfm-details-tabs button,
.lfm-details-field select,
.lfm-details-field input,
.lfm-details-field textarea {
    border-color: var(--lfm-line-glass);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 9px 21px rgba(30, 41, 59, 0.065);
}

.lfm-button {
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: linear-gradient(180deg, #3f83ff 0%, #2563eb 54%, #1d4ed8 100%);
    font-weight: 850;
    letter-spacing: -0.01em;
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.lfm-button-secondary {
    background: rgba(255, 255, 255, 0.58);
    color: var(--lfm-text);
}

.lfm-range-button,
.lfm-icon-button {
    min-height: 44px;
}

.lfm-icon-button {
    width: 44px;
    height: 44px;
    border-radius: 18px;
    color: var(--lfm-text);
}

.lfm-icon-button svg,
.lfm-nav-icon svg {
    stroke-width: 1.72;
}

.lfm-tracking-hero {
    gap: 16px;
}

.lfm-tracking-hero-top,
.lfm-hero-top {
    align-items: flex-start;
}

.lfm-tracking-tools {
    align-items: flex-start;
}

.lfm-tracking-range {
    gap: 3px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.50);
}

.lfm-tracking-range a {
    min-height: 31px;
    padding-inline: 10px;
    color: rgba(72, 84, 103, 0.78);
}

.lfm-tracking-range a[aria-current="page"],
.lfm-tracking-filter-strip a[aria-current="page"],
.lfm-details-tabs button.is-active {
    color: var(--lfm-primary-strong);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 11px 25px rgba(30, 41, 59, 0.105), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.lfm-tracking-main-value strong {
    font-size: clamp(50px, 17vw, 76px);
    font-weight: 840;
    letter-spacing: -0.055em;
}

.lfm-tracking-main-value span {
    font-size: 13px;
    letter-spacing: .02em;
}

.lfm-tracking-trend {
    border-color: rgba(255, 255, 255, 0.48);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.40);
}

.lfm-tracking-trend.is-up span {
    color: #128743;
}

.lfm-tracking-trend.is-down span {
    color: #dc2626;
}

.lfm-tracking-filter-strip {
    gap: 8px;
    padding-bottom: 3px;
}

.lfm-tracking-filter-strip a {
    min-height: 33px;
    padding-inline: 12px;
    background: rgba(255, 255, 255, 0.50);
}

.lfm-tracking-carousel {
    grid-auto-columns: minmax(90%, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.lfm-tracking-slide {
    min-height: 248px;
    padding: 18px;
    border-radius: 32px;
}

.lfm-slide-head span,
.lfm-slide-head strong {
    letter-spacing: -0.01em;
}

.lfm-line-chart {
    height: 145px;
    filter: drop-shadow(0 12px 18px rgba(37, 99, 235, 0.16));
}

.lfm-line-chart polygon {
    fill: rgba(37, 99, 235, 0.125);
}

.lfm-line-chart polyline {
    stroke-width: 2.9;
}

.lfm-mini-bars i,
.lfm-tracking-row i {
    height: 9px;
    background: linear-gradient(90deg, var(--lfm-primary) var(--lfm-bar), rgba(100, 116, 139, 0.16) var(--lfm-bar));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.36);
}

.lfm-carousel-dots {
    gap: 7px;
    margin-top: 10px;
}

.lfm-carousel-dots span {
    width: 6px;
    height: 6px;
    background: rgba(100, 116, 139, 0.26);
    transition: width 180ms ease, background 180ms ease;
}

.lfm-carousel-dots span.is-active {
    width: 24px;
    background: linear-gradient(90deg, #60a5fa, var(--lfm-primary));
}

.lfm-list-card {
    gap: 12px;
    padding: 17px;
}

.lfm-tracking-detail-card h3,
.lfm-list-card h3 {
    font-size: 18px;
    font-weight: 830;
}

.lfm-tracking-row,
.lfm-signal-row {
    min-height: 34px;
}

.lfm-lead-list,
.lfm-appointment-list {
    gap: 12px;
}

.lfm-lead-card {
    padding: 15px;
    border-radius: 31px;
}

.lfm-lead-head {
    align-items: center;
}

.lfm-lead-head h3 {
    font-size: 17px;
    font-weight: 830;
}

.lfm-score {
    min-width: 48px;
    height: 40px;
    border-radius: 16px;
    color: var(--lfm-primary-strong);
    font-weight: 920;
}

.lfm-score span {
    color: rgba(72, 84, 103, 0.70);
}

.lfm-lead-preview {
    margin-top: 10px;
    font-size: 13.5px;
    font-weight: 690;
}

.lfm-lead-meta span,
.lfm-active-filters span,
.lfm-device-pills span {
    min-height: 25px;
    padding-inline: 9px;
    background: rgba(255, 255, 255, 0.52);
    font-weight: 820;
}

.lfm-lead-actions {
    gap: 8px;
    margin-top: 12px;
}

.lfm-lead-actions a,
.lfm-lead-actions button,
.lfm-lead-profile-actions a {
    min-height: 38px;
    padding-inline: 13px;
    color: var(--lfm-primary-strong);
    background: rgba(255, 255, 255, 0.56);
    font-weight: 850;
}

.lfm-appointment-card {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border-radius: 31px;
}

.lfm-appointment-date {
    min-height: 82px;
    border-radius: 22px;
}

.lfm-appointment-date strong {
    color: var(--lfm-primary-strong);
    font-size: 17px;
    font-weight: 900;
}

.lfm-appointment-head h3 {
    font-size: 17px;
    font-weight: 830;
}

.lfm-appointment-status {
    min-height: 28px;
    padding-inline: 10px;
    font-weight: 880;
}

.lfm-status-grid div,
.lfm-metric {
    border-radius: 24px;
}

.lfm-metric {
    min-height: 82px;
    padding: 13px;
}

.lfm-metric strong {
    font-size: 24px;
    font-weight: 880;
    letter-spacing: -0.035em;
}

.lfm-sheet-backdrop {
    background: rgba(11, 18, 32, 0.22);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.lfm-sheet-panel {
    border-radius: 34px;
    padding: 14px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.54)),
        rgba(255, 255, 255, 0.58);
}

.lfm-details-sheet .lfm-sheet-panel,
.lfm-appointment-sheet .lfm-sheet-panel,
.lfm-mobile-settings-sheet .lfm-sheet-panel {
    background:
        radial-gradient(circle at 14% -2%, rgba(59,130,246,.14), transparent 29%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(237, 244, 252, 0.98));
}

.lfm-details-head button {
    width: 42px;
    height: 42px;
    font-size: 25px;
}

.lfm-details-tabs {
    padding: 5px;
    background: rgba(255, 255, 255, 0.52);
}

.lfm-details-tabs button {
    min-height: 40px;
    font-weight: 880;
}

.lfm-details-field select,
.lfm-details-field input,
.lfm-details-field textarea {
    min-height: 50px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.58);
}

.lfm-bottom-nav {
    right: 10px;
    bottom: calc(9px + env(safe-area-inset-bottom));
    left: 10px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.64);
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.54)),
        rgba(255,255,255,.58);
    box-shadow: 0 28px 76px rgba(30, 41, 59, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.lfm-bottom-nav a {
    min-height: 58px;
    border-radius: 27px;
    font-size: 11px;
    font-weight: 820;
}

.lfm-bottom-nav a[aria-current="page"] {
    color: var(--lfm-primary-strong);
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.76)),
        rgba(255,255,255,.74);
    box-shadow: 0 14px 34px rgba(37,99,235,.14), inset 0 1px 0 rgba(255,255,255,.96);
}

.lfm-nav-icon {
    width: 24px;
    height: 24px;
}

.lfm-nav-icon svg {
    width: 23px;
    height: 23px;
}

.lfm-button:active,
.lfm-range-button:active,
.lfm-icon-button:active,
.lfm-lead-actions a:active,
.lfm-lead-actions button:active,
.lfm-bottom-nav a:active,
.lfm-lead-card:active,
.lfm-appointment-card:active,
.lfm-tracking-slide:active {
    transform: scale(var(--lfm-press-scale));
}

.lfm-lead-card:hover,
.lfm-appointment-card:hover,
.lfm-tracking-slide:hover {
    border-color: rgba(255, 255, 255, 0.76);
    box-shadow: 0 28px 72px rgba(30, 41, 59, 0.13), inset 0 1px 0 rgba(255,255,255,.82);
}

@media (prefers-color-scheme: dark) {
    .live-funnel-mobile-app {
        --lfm-bg: #070b14;
        --lfm-card: rgba(18, 26, 42, 0.74);
        --lfm-elevated: rgba(23, 33, 52, 0.90);
        --lfm-text: #f8fafc;
        --lfm-muted: rgba(203, 213, 225, 0.70);
        --lfm-line: rgba(255, 255, 255, 0.10);
        --lfm-line-glass: rgba(255, 255, 255, 0.13);
        --lfm-primary: #7db8ff;
        --lfm-primary-strong: #9cc9ff;
        --lfm-primary-soft: rgba(125, 184, 255, 0.15);
        background:
            radial-gradient(circle at 18% -10%, rgba(59, 130, 246, 0.20), transparent 35%),
            radial-gradient(circle at 88% 2%, rgba(14, 165, 233, 0.13), transparent 33%),
            linear-gradient(180deg, #101827 0%, #070b14 56%, #060914 100%) !important;
    }

    .lfm-kicker,
    .lfm-card-label {
        color: rgba(203, 213, 225, 0.58);
    }

    .lfm-status,
    .lfm-bottom-nav,
    .lfm-card,
    .lfm-metric,
    .lfm-tracking-slide,
    .lfm-lead-card,
    .lfm-appointment-card,
    .lfm-list-card,
    .lfm-empty-card,
    .lfm-details-card,
    .lfm-detail-stat-grid article {
        border-color: var(--lfm-line-glass);
        background:
            linear-gradient(145deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.58)),
            rgba(15, 23, 42, 0.58);
        box-shadow: 0 26px 70px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.075);
    }

    .lfm-hero-card,
    .lfm-tracking-hero,
    .lfm-leads-hero,
    .lfm-appointments-hero {
        background:
            linear-gradient(148deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.58) 58%, rgba(37, 99, 235, 0.10)),
            rgba(15, 23, 42, 0.62);
    }

    .lfm-button,
    .lfm-range-button,
    .lfm-icon-button,
    .lfm-tracking-range,
    .lfm-tracking-filter-strip a,
    .lfm-lead-actions a,
    .lfm-lead-actions button,
    .lfm-lead-profile-actions a,
    .lfm-appointment-status,
    .lfm-active-filters span,
    .lfm-device-pills span,
    .lfm-lead-meta span,
    .lfm-details-tabs,
    .lfm-details-tabs button,
    .lfm-details-field select,
    .lfm-details-field input,
    .lfm-details-field textarea {
        border-color: var(--lfm-line-glass);
        background:
            linear-gradient(180deg, rgba(30,41,59,.72), rgba(15,23,42,.50)),
            rgba(15,23,42,.50);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 10px 24px rgba(0,0,0,.20);
    }

    .lfm-button {
        color: #06101f;
        background: linear-gradient(180deg, #9cc9ff 0%, #7db8ff 56%, #60a5fa 100%);
    }

    .lfm-tracking-range a[aria-current="page"],
    .lfm-tracking-filter-strip a[aria-current="page"],
    .lfm-details-tabs button.is-active,
    .lfm-bottom-nav a[aria-current="page"] {
        color: var(--lfm-primary-strong);
        background:
            linear-gradient(180deg, rgba(51,65,85,.92), rgba(30,41,59,.78)),
            rgba(30,41,59,.84);
    }

    .lfm-details-sheet .lfm-sheet-panel,
    .lfm-appointment-sheet .lfm-sheet-panel,
    .lfm-mobile-settings-sheet .lfm-sheet-panel {
        background:
            radial-gradient(circle at 14% -2%, rgba(96,165,250,.13), transparent 30%),
            linear-gradient(180deg, rgba(15,23,42,.97), rgba(7,11,20,.98));
    }
}

@media (max-width: 380px) {
    .live-funnel-mobile-app {
        padding-right: 11px;
        padding-left: 11px;
    }

    .lfm-tracking-tools,
    .lfm-hero-actions {
        gap: 6px;
    }

    .lfm-tracking-range a {
        min-height: 30px;
        padding-inline: 8px;
        font-size: 10.5px;
    }

    .lfm-appointment-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 11px;
        padding: 14px;
    }

    .lfm-lead-actions a,
    .lfm-lead-actions button {
        flex: 1 1 auto;
    }
}

/* Mobile app dark-mode UX pass v4: final visual layer, no data-flow changes. */
.live-funnel-mobile-app.is-authenticated {
    padding-top: calc(18px + env(safe-area-inset-top));
}

.live-funnel-mobile-app.is-login {
    padding-top: calc(22px + env(safe-area-inset-top));
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
}

.live-funnel-mobile-app.is-login::after {
    display: none;
}

.lfm-auth-main {
    min-height: calc(100svh - 74px - env(safe-area-inset-top));
}

.lfm-auth-card {
    position: relative;
    overflow: hidden;
    padding: 30px 22px 22px;
    text-align: left;
}

.lfm-auth-card::before {
    content: "";
    position: absolute;
    inset: -80px -70px auto auto;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.22), transparent 68%);
    pointer-events: none;
}

.lfm-auth-brand {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 0 18px;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(96, 165, 250, 0.20), rgba(255, 255, 255, 0.46)),
        rgba(255, 255, 255, 0.42);
}

.lfm-auth-brand svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: var(--lfm-primary);
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lfm-auth-brand span {
    display: none;
}

.lfm-auth-card h2 {
    font-size: clamp(26px, 8vw, 34px);
    font-weight: 850;
    letter-spacing: -0.045em;
}

.lfm-login-field {
    gap: 8px;
}

.lfm-password-wrap {
    position: relative;
    display: block;
}

.lfm-login-form .lfm-password-wrap input {
    padding-right: 54px;
    text-align: left;
}

.lfm-password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--lfm-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.48);
    color: var(--lfm-muted);
    transform: translateY(-50%);
    cursor: pointer;
}

.lfm-password-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lfm-password-toggle .lfm-eye-off {
    display: none;
}

.lfm-password-toggle[aria-pressed="true"] .lfm-eye {
    display: none;
}

.lfm-password-toggle[aria-pressed="true"] .lfm-eye-off {
    display: block;
}

.lfm-metric-grid-four {
    gap: 10px;
}

.lfm-metric-grid-four .lfm-metric {
    display: flex;
    min-height: 94px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    text-align: center;
}

.lfm-metric-grid-four .lfm-metric span {
    color: var(--lfm-muted);
    font-size: 11px;
    font-weight: 880;
    letter-spacing: 0.04em;
}

.lfm-metric-grid-four .lfm-metric strong {
    margin-top: 8px;
    color: var(--lfm-text);
    font-size: clamp(23px, 7vw, 31px);
    font-weight: 900;
    letter-spacing: -0.045em;
}

.lfm-bottom-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
}

.lfm-bottom-nav a {
    position: relative;
    min-height: 58px;
    gap: 4px;
    font-size: 10.5px;
    letter-spacing: -0.01em;
}

.lfm-bottom-nav a[aria-current="page"]::before {
    content: "";
    position: absolute;
    top: 7px;
    width: 20px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.65;
}

.lfm-nav-icon {
    width: 25px;
    height: 25px;
}

.lfm-nav-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.7;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }

    html:has(body.live-funnel-mobile-app-page),
    body.live-funnel-mobile-app-page {
        background: #050814 !important;
    }

    .live-funnel-mobile-app {
        --lfm-bg: #050814;
        --lfm-card: rgba(15, 23, 42, 0.78);
        --lfm-elevated: rgba(20, 30, 49, 0.92);
        --lfm-text: #f8fafc;
        --lfm-muted: rgba(203, 213, 225, 0.78);
        --lfm-line: rgba(255, 255, 255, 0.105);
        --lfm-line-glass: rgba(255, 255, 255, 0.13);
        --lfm-primary: #74b6ff;
        --lfm-primary-strong: #b9dcff;
        --lfm-primary-soft: rgba(116, 182, 255, 0.14);
        --lfm-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
        --lfm-shadow-strong: 0 36px 96px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        background:
            radial-gradient(ellipse 120% 52% at 50% -24%, rgba(44, 111, 214, 0.24), rgba(44, 111, 214, 0.05) 46%, rgba(5, 8, 20, 0) 76%),
            radial-gradient(circle at 90% 4%, rgba(14, 165, 233, 0.10), transparent 34%),
            linear-gradient(180deg, #0a1120 0%, #060a16 44%, #050814 100%) !important;
        color: var(--lfm-text);
    }

    .live-funnel-mobile-app::before,
    .live-funnel-mobile-app[data-lfm-standalone="true"]::before {
        height: calc(210px + env(safe-area-inset-top));
        background:
            radial-gradient(ellipse 110% 82% at 50% -30%, rgba(96, 165, 250, 0.16), rgba(96, 165, 250, 0.04) 48%, rgba(5, 8, 20, 0) 78%),
            linear-gradient(180deg, rgba(8, 15, 28, 0.94), rgba(8, 15, 28, 0.18) 68%, rgba(8, 15, 28, 0)) !important;
    }

    .live-funnel-mobile-app::after {
        background: linear-gradient(0deg, rgba(5, 8, 20, 0.94), rgba(5, 8, 20, 0)) !important;
    }

    .lfm-auth-card,
    .lfm-card,
    .lfm-metric,
    .lfm-tracking-slide,
    .lfm-lead-card,
    .lfm-appointment-card,
    .lfm-list-card,
    .lfm-empty-card,
    .lfm-details-card,
    .lfm-detail-stat-grid article {
        border-color: var(--lfm-line-glass);
        background:
            linear-gradient(150deg, rgba(28, 39, 61, 0.86), rgba(10, 17, 32, 0.70)),
            rgba(10, 17, 32, 0.70);
        box-shadow: var(--lfm-shadow);
    }

    .lfm-hero-card,
    .lfm-tracking-hero,
    .lfm-leads-hero,
    .lfm-appointments-hero {
        border-color: rgba(255, 255, 255, 0.12);
        background:
            linear-gradient(150deg, rgba(30, 41, 64, 0.90), rgba(12, 20, 36, 0.68) 58%, rgba(37, 99, 235, 0.09)),
            rgba(12, 20, 36, 0.72);
        box-shadow: 0 28px 82px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    }

    .lfm-auth-brand,
    .lfm-appointment-date,
    .lfm-score,
    .lfm-lead-profile-summary {
        border-color: rgba(116, 182, 255, 0.18);
        background:
            linear-gradient(145deg, rgba(116, 182, 255, 0.18), rgba(15, 23, 42, 0.60)),
            rgba(15, 23, 42, 0.62);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 32px rgba(0, 0, 0, 0.24);
    }

    .lfm-kicker,
    .lfm-card-label,
    .lfm-metric span,
    .lfm-slide-head span,
    .lfm-signal-row span,
    .lfm-lead-head span,
    .lfm-lead-meta span,
    .lfm-card-note,
    .lfm-hero-card p,
    .lfm-auth-card p,
    .lfm-empty-card p,
    .lfm-appointment-body p,
    .lfm-details-field {
        color: var(--lfm-muted);
    }

    .lfm-auth-card h2,
    .lfm-hero-card h2,
    .lfm-list-card h3,
    .lfm-lead-card h3,
    .lfm-empty-card h3,
    .lfm-details-head h3,
    .lfm-tracking-main-value strong,
    .lfm-metric strong,
    .lfm-slide-head strong,
    .lfm-signal-row strong,
    .lfm-lead-preview,
    .lfm-details-card h4,
    .lfm-check-row,
    .lfm-settings-row strong {
        color: var(--lfm-text);
    }

    .lfm-button {
        color: #f8fbff;
        background: linear-gradient(180deg, #3b82f6 0%, #2563eb 54%, #1d4ed8 100%);
        box-shadow: 0 18px 38px rgba(37, 99, 235, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    }

    .lfm-button-secondary,
    .lfm-range-button,
    .lfm-icon-button,
    .lfm-tracking-range,
    .lfm-tracking-filter-strip a,
    .lfm-lead-actions a,
    .lfm-lead-actions button,
    .lfm-lead-profile-actions a,
    .lfm-appointment-status,
    .lfm-active-filters span,
    .lfm-device-pills span,
    .lfm-lead-meta span,
    .lfm-details-tabs,
    .lfm-details-tabs button,
    .lfm-details-field select,
    .lfm-details-field input,
    .lfm-details-field textarea,
    .lfm-password-toggle {
        border-color: var(--lfm-line-glass);
        background:
            linear-gradient(180deg, rgba(31, 42, 64, 0.78), rgba(13, 21, 38, 0.58)),
            rgba(13, 21, 38, 0.58);
        color: var(--lfm-text);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.22);
    }

    .lfm-tracking-range a,
    .lfm-details-tabs button {
        color: rgba(203, 213, 225, 0.76);
    }

    .lfm-tracking-range a[aria-current="page"],
    .lfm-tracking-filter-strip a[aria-current="page"],
    .lfm-details-tabs button.is-active,
    .lfm-bottom-nav a[aria-current="page"] {
        color: var(--lfm-primary-strong);
        background:
            linear-gradient(180deg, rgba(48, 63, 91, 0.96), rgba(25, 35, 56, 0.88)),
            rgba(25, 35, 56, 0.88);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .lfm-bottom-nav {
        border-color: rgba(255, 255, 255, 0.13);
        background:
            linear-gradient(180deg, rgba(21, 31, 50, 0.90), rgba(9, 14, 27, 0.78)),
            rgba(9, 14, 27, 0.78);
        box-shadow: 0 24px 78px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    }

    .lfm-bottom-nav a {
        color: rgba(203, 213, 225, 0.74);
    }

    .lfm-line-chart polygon {
        fill: rgba(116, 182, 255, 0.13);
    }

    .lfm-line-chart polyline {
        stroke: var(--lfm-primary-strong);
    }

    .lfm-mini-bars i,
    .lfm-tracking-row i {
        background: linear-gradient(90deg, var(--lfm-primary-strong) var(--lfm-bar), rgba(148, 163, 184, 0.17) var(--lfm-bar));
    }

    .lfm-device-gauge span {
        background: rgba(15, 23, 42, 0.88);
    }

    .lfm-details-sheet .lfm-sheet-panel,
    .lfm-appointment-sheet .lfm-sheet-panel,
    .lfm-mobile-settings-sheet .lfm-sheet-panel {
        background:
            radial-gradient(circle at 18% -8%, rgba(96, 165, 250, 0.14), transparent 32%),
            linear-gradient(180deg, rgba(10, 17, 32, 0.98), rgba(5, 8, 20, 0.99));
    }
}

/* Mobile appointments settings pass: scoped fixes for Termine tab and settings sheet. */
.lfm-appointments-hero .lfm-hero-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.lfm-appointment-invite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    white-space: nowrap;
}

.lfm-appointment-invite-button span {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.14);
    color: var(--lfm-primary);
    font-size: 17px;
    font-weight: 850;
    line-height: 1;
}

.lfm-metric-grid-four .lfm-metric {
    min-height: 86px;
    align-content: center;
}

.lfm-appointment-push-metric strong {
    font-size: clamp(18px, 5.2vw, 24px);
    letter-spacing: 0;
}

.lfm-new-appointment-button {
    display: none !important;
}

.lfm-appointment-empty-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 24px 18px;
    text-align: center;
}

.lfm-empty-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--lfm-line);
    border-radius: 18px;
    background: var(--lfm-primary-soft);
    color: var(--lfm-primary);
}

.lfm-empty-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lfm-empty-actions,
.lfm-calendar-actions,
.lfm-mobile-settings-actions,
.lfm-push-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    width: 100%;
}

.lfm-empty-actions .lfm-button,
.lfm-calendar-actions .lfm-button,
.lfm-calendar-actions a.lfm-button,
.lfm-mobile-settings-actions .lfm-button,
.lfm-push-actions .lfm-button {
    flex: 1 1 150px;
    min-width: 0;
}

.lfm-mobile-settings-sheet,
.lfm-mobile-settings-sheet * {
    box-sizing: border-box;
}

.lfm-mobile-settings-sheet .lfm-sheet-panel {
    overflow-x: hidden;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

.lfm-mobile-settings-sheet .lfm-details-head,
.lfm-mobile-settings-sheet .lfm-mobile-settings-card,
.lfm-mobile-appointment-settings-form {
    width: min(100%, 520px);
    max-width: 520px;
    min-width: 0;
    margin-right: auto;
    margin-left: auto;
}

.lfm-mobile-appointment-settings-form {
    display: grid;
    gap: 12px;
}

.lfm-mobile-settings-card,
.lfm-mobile-settings-card summary,
.lfm-mobile-settings-card input,
.lfm-mobile-settings-card select,
.lfm-mobile-settings-card textarea {
    min-width: 0;
}

.lfm-mobile-settings-card summary {
    cursor: pointer;
    color: var(--lfm-text);
    font-size: 16px;
    font-weight: 850;
    list-style-position: inside;
}

.lfm-mobile-profile-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.lfm-mobile-profile-row img {
    width: 58px;
    height: 58px;
    border: 1px solid var(--lfm-line);
    border-radius: 18px;
    object-fit: cover;
    background: var(--lfm-elevated);
}

.lfm-mobile-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.lfm-mobile-week-list,
.lfm-mobile-blocked-list {
    display: grid;
    gap: 12px;
}

.lfm-mobile-week-row,
.lfm-mobile-blocked-row {
    display: grid;
    gap: 9px;
    min-width: 0;
    border-top: 1px solid var(--lfm-line);
    padding-top: 12px;
}

.lfm-mobile-week-row:first-child,
.lfm-mobile-blocked-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.lfm-mobile-time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.lfm-mobile-time-grid input,
.lfm-mobile-blocked-row input,
.lfm-calendar-link-field {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--lfm-line);
    border-radius: 14px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--lfm-text);
    font: inherit;
}

.lfm-calendar-link-field {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lfm-inline-form {
    display: grid;
    gap: 8px;
    width: 100%;
}

@media (max-width: 390px) {
    .lfm-appointments-hero .lfm-hero-top {
        align-items: flex-start;
        gap: 12px;
    }

    .lfm-mobile-settings-grid,
    .lfm-mobile-time-grid {
        grid-template-columns: 1fr;
    }

    .lfm-empty-actions .lfm-button,
    .lfm-calendar-actions .lfm-button,
    .lfm-calendar-actions a.lfm-button,
    .lfm-mobile-settings-actions .lfm-button,
    .lfm-push-actions .lfm-button {
        flex-basis: 100%;
    }
}

@media (prefers-color-scheme: dark) {
    .lfm-appointment-invite-button span,
    .lfm-empty-icon {
        background: rgba(116, 182, 255, 0.14);
        color: var(--lfm-primary-strong);
    }

    .lfm-mobile-time-grid input,
    .lfm-mobile-blocked-row input,
    .lfm-calendar-link-field {
        border-color: var(--lfm-line-glass);
        background:
            linear-gradient(180deg, rgba(31, 42, 64, 0.78), rgba(13, 21, 38, 0.58)),
            rgba(13, 21, 38, 0.58);
        color: var(--lfm-text);
    }
}

/* Mobile appointments cleanup pass v2: compact Termine UI, progressive settings, calendar subscription. */
.lfm-appointments-hero .lfm-hero-actions {
    align-items: center;
    gap: 8px;
}

.lfm-appointments-hero .lfm-icon-button,
.lfm-appointment-invite-button {
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 15px;
    padding: 0 12px;
}

.lfm-appointments-hero .lfm-icon-button svg {
    width: 19px;
    height: 19px;
}

.lfm-appointment-invite-button {
    font-size: 13px;
    font-weight: 850;
}

.lfm-appointment-card-v2 {
    display: block;
    padding: 16px;
}

.lfm-appointment-card-main {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.lfm-appointment-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.lfm-appointment-person {
    min-width: 0;
}

.lfm-appointment-person h3 {
    margin: 0;
    color: var(--lfm-text);
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.lfm-appointment-person span {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    color: var(--lfm-muted);
    font-size: 13px;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lfm-appointment-time-row {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    border: 1px solid var(--lfm-line);
    border-radius: 16px;
    padding: 10px 12px;
    background: rgba(37, 99, 235, 0.08);
}

.lfm-appointment-time-row span {
    color: var(--lfm-muted);
    font-size: 13px;
    font-weight: 800;
}

.lfm-appointment-time-row strong {
    color: var(--lfm-text);
    font-size: 15px;
    font-weight: 900;
}

.lfm-appointment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.lfm-appointment-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid var(--lfm-line);
    border-radius: 999px;
    padding: 0 10px;
    color: var(--lfm-muted);
    background: rgba(255, 255, 255, 0.40);
    font-size: 12px;
    font-weight: 800;
}

.lfm-appointment-actions-row {
    margin-top: 2px;
}

.lfm-push-compact-card {
    gap: 10px;
    padding: 14px;
}

.lfm-push-compact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lfm-push-compact-row h4 {
    margin: 0 0 4px;
}

.lfm-push-compact-row .lfm-card-note {
    margin: 0;
}

.lfm-push-compact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.lfm-push-compact-actions .lfm-button {
    min-width: 0;
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
}

.lfm-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.lfm-mobile-profile-row .lfm-button {
    width: 100%;
    min-height: 38px;
}

.lfm-mini-action,
.lfm-blocked-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border: 1px solid var(--lfm-line);
    border-radius: 999px;
    padding: 0 11px;
    background: var(--lfm-primary-soft);
    color: var(--lfm-primary);
    font: inherit;
    font-size: 12px;
    font-weight: 850;
}

.lfm-mobile-week-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lfm-mobile-time-list {
    display: grid;
    gap: 8px;
}

.lfm-mobile-time-slot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 32px;
    align-items: center;
    gap: 7px;
}

.lfm-mobile-time-slot.is-hidden,
.lfm-mobile-blocked-row.is-hidden {
    display: none;
}

.lfm-mobile-time-slot span {
    color: var(--lfm-muted);
    font-size: 12px;
    font-weight: 800;
}

.lfm-mobile-time-slot button,
.lfm-blocked-actions button[data-lfm-delete-blocked] {
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-color: rgba(239, 68, 68, 0.18);
    padding: 0;
    color: #dc2626;
    background: rgba(239, 68, 68, 0.08);
}

.lfm-mobile-blocked-list {
    gap: 10px;
}

.lfm-mobile-blocked-row {
    border: 1px solid var(--lfm-line);
    border-radius: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.34);
}

.lfm-blocked-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.lfm-blocked-summary strong,
.lfm-blocked-summary span {
    display: block;
}

.lfm-blocked-summary strong {
    color: var(--lfm-text);
    font-size: 14px;
    font-weight: 900;
}

.lfm-blocked-summary span {
    margin-top: 4px;
    color: var(--lfm-muted);
    font-size: 12px;
    font-weight: 720;
    line-height: 1.35;
}

.lfm-blocked-actions {
    display: flex;
    flex-shrink: 0;
    gap: 6px;
}

.lfm-blocked-editor {
    display: grid;
    gap: 9px;
}

.lfm-blocked-editor[hidden],
.lfm-blocked-summary[hidden] {
    display: none;
}

.lfm-blocked-add-button {
    width: 100%;
    margin-top: 10px;
}

.lfm-calendar-card {
    gap: 10px;
}

.lfm-calendar-actions,
.lfm-calendar-card .lfm-inline-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.lfm-calendar-card .lfm-inline-form {
    grid-template-columns: 1fr;
}

.lfm-calendar-actions .lfm-button,
.lfm-calendar-actions a.lfm-button,
.lfm-calendar-card .lfm-inline-form .lfm-button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
}

@media (max-width: 390px) {
    .lfm-appointment-card-head,
    .lfm-blocked-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .lfm-push-compact-actions,
    .lfm-calendar-actions {
        grid-template-columns: 1fr;
    }

    .lfm-blocked-actions {
        width: 100%;
    }

    .lfm-blocked-actions button {
        flex: 1 1 auto;
        width: auto;
    }
}

@media (prefers-color-scheme: dark) {
    .lfm-appointment-time-row,
    .lfm-appointment-tags span,
    .lfm-mobile-blocked-row {
        border-color: var(--lfm-line-glass);
        background: rgba(15, 23, 42, 0.46);
    }

    .lfm-mini-action,
    .lfm-blocked-actions button {
        border-color: rgba(116, 182, 255, 0.16);
        background: rgba(116, 182, 255, 0.12);
        color: var(--lfm-primary-strong);
    }

    .lfm-mobile-time-slot button,
    .lfm-blocked-actions button[data-lfm-delete-blocked] {
        border-color: rgba(248, 113, 113, 0.18);
        background: rgba(248, 113, 113, 0.10);
        color: #fca5a5;
    }
}

/* Mobile appointments overview pass: compact/default cards, detail toggle and lazy reveal. */
.lfm-appointment-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 10px;
}

.lfm-appointment-list-toolbar h3 {
    margin: 0;
    color: var(--lfm-text);
    font-size: 16px;
    font-weight: 900;
}

.lfm-segmented-control {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--lfm-line);
    border-radius: 999px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.42);
}

.lfm-segmented-control button {
    appearance: none;
    min-height: 30px;
    border: 0;
    border-radius: 999px;
    padding: 0 10px;
    background: transparent;
    color: var(--lfm-muted);
    font: inherit;
    font-size: 12px;
    font-weight: 850;
}

.lfm-segmented-control button[aria-pressed="true"] {
    background: var(--lfm-primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(42, 120, 255, 0.22);
}

.lfm-appointment-card-v3 {
    padding: 14px;
}

.lfm-appointment-card-v3.is-hidden {
    display: none;
}

.lfm-appointment-card-v3 .lfm-appointment-card-main {
    gap: 10px;
}

.lfm-appointment-card-v3 .lfm-appointment-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 10px;
}

.lfm-appointment-card-v3 .lfm-appointment-person {
    min-width: 0;
    width: 100%;
}

.lfm-appointment-card-v3 .lfm-appointment-person h3 {
    max-width: 100%;
    margin: 0 0 4px;
    word-break: normal;
    overflow-wrap: break-word;
    color: var(--lfm-text);
    font-size: 16px;
    line-height: 1.2;
}

.lfm-appointment-card-v3 .lfm-appointment-person span {
    display: block;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: break-word;
    color: var(--lfm-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.lfm-appointment-card-v3 .lfm-appointment-status {
    flex: 0 0 auto;
    max-width: 128px;
    justify-self: end;
    white-space: nowrap;
}

.lfm-appointment-card-v3 .lfm-appointment-tags {
    gap: 6px;
}

.lfm-appointment-card-v3 .lfm-appointment-tags span {
    min-height: 25px;
    padding: 0 9px;
    font-size: 11px;
}

.lfm-appointment-detail-content {
    display: grid;
    gap: 8px;
}

.live-funnel-mobile-app:not([data-lfm-appointment-view-mode]) .lfm-appointment-detail-content,
[data-lfm-appointment-view-mode="compact"] .lfm-appointment-detail-content {
    display: none;
}

.lfm-appointment-contact-line {
    display: grid;
    gap: 4px;
    color: var(--lfm-muted);
    font-size: 12px;
    font-weight: 760;
}

.lfm-appointment-contact-line span,
.lfm-appointment-note {
    overflow-wrap: anywhere;
}

.lfm-appointment-more {
    width: 100%;
    min-height: 40px;
}

.lfm-appointment-more[hidden] {
    display: none !important;
}

@media (max-width: 390px) {
    .lfm-appointment-list-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .lfm-segmented-control {
        width: 100%;
    }

    .lfm-appointment-card-v3 .lfm-appointment-card-head {
        grid-template-columns: 1fr;
    }

    .lfm-appointment-card-v3 .lfm-appointment-status {
        justify-self: start;
        max-width: 100%;
    }
}

@media (prefers-color-scheme: dark) {
    .lfm-segmented-control {
        border-color: var(--lfm-line-glass);
        background: rgba(15, 23, 42, 0.48);
    }
}

/* Mobile appointments card layout fix: keep v3 cards compact without changing data sources. */
.live-funnel-mobile-app .lfm-appointment-list {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

.live-funnel-mobile-app .lfm-appointment-card.lfm-appointment-card-v3 {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 0;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 14px;
}

.live-funnel-mobile-app .lfm-appointment-card-v3 .lfm-appointment-card-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.live-funnel-mobile-app .lfm-appointment-card-v3 .lfm-appointment-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.live-funnel-mobile-app .lfm-appointment-card-v3 .lfm-appointment-person {
    flex: 1 1 auto;
    min-width: 0;
}

.live-funnel-mobile-app .lfm-appointment-card-v3 .lfm-appointment-person h3 {
    max-width: 100%;
    margin: 0 0 4px;
    color: var(--lfm-text);
    font-size: 16px;
    font-weight: 920;
    line-height: 1.18;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

.live-funnel-mobile-app .lfm-appointment-card-v3 .lfm-appointment-person span {
    display: block;
    max-width: 100%;
    color: var(--lfm-muted);
    font-size: 12px;
    font-weight: 820;
    line-height: 1.35;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

.live-funnel-mobile-app .lfm-appointment-card-v3 .lfm-appointment-status {
    flex: 0 0 auto;
    max-width: 46%;
    min-width: auto;
    justify-self: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-funnel-mobile-app .lfm-appointment-card-v3 .lfm-appointment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.live-funnel-mobile-app .lfm-appointment-card-v3 .lfm-appointment-tags span {
    max-width: 100%;
    min-height: 25px;
    padding: 0 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
}

.live-funnel-mobile-app .lfm-appointment-card-v3 .lfm-appointment-detail-content {
    min-width: 0;
}

.live-funnel-mobile-app .lfm-appointment-card-v3 .lfm-appointment-contact-line span,
.live-funnel-mobile-app .lfm-appointment-card-v3 .lfm-appointment-note {
    word-break: normal;
    overflow-wrap: break-word;
}

.live-funnel-mobile-app .lfm-appointment-card-v3 .lfm-appointment-note {
    display: -webkit-box;
    margin: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.live-funnel-mobile-app[data-lfm-appointment-view-mode="detail"] .lfm-appointment-card-v3 .lfm-appointment-note {
    -webkit-line-clamp: unset;
}

.live-funnel-mobile-app .lfm-appointment-card-v3 .lfm-appointment-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.live-funnel-mobile-app .lfm-appointment-card-v3 .lfm-appointment-actions-row a {
    flex: 1 1 92px;
    min-width: 0;
}

@media (max-width: 390px) {
    .live-funnel-mobile-app .lfm-appointment-card-v3 .lfm-appointment-card-head {
        gap: 9px;
    }

    .live-funnel-mobile-app .lfm-appointment-card-v3 .lfm-appointment-status {
        max-width: 42%;
        padding-inline: 8px;
        font-size: 10px;
    }
}

/* Mobile appointments polish v2: spacing, status badges and stable range active state. */
.live-funnel-mobile-app .lfm-appointments-hero {
    gap: 12px;
}

.live-funnel-mobile-app .lfm-appointments-hero .lfm-hero-top h2 {
    margin-bottom: 0;
}

.live-funnel-mobile-app .lfm-appointment-range {
    display: flex;
    gap: 6px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    border-radius: 999px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.42);
    scrollbar-width: none;
}

.live-funnel-mobile-app .lfm-appointment-range::-webkit-scrollbar {
    display: none;
}

.live-funnel-mobile-app .lfm-appointment-range a {
    flex: 1 0 auto;
    min-width: max-content;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
}

.live-funnel-mobile-app .lfm-appointment-range a[aria-current="page"] {
    background: var(--lfm-primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(42, 120, 255, 0.24);
}

.live-funnel-mobile-app .lfm-appointment-list {
    margin-right: calc(-1 * clamp(4px, 1.6vw, 8px));
    margin-left: calc(-1 * clamp(4px, 1.6vw, 8px));
    padding-right: clamp(12px, 4vw, 18px);
    padding-left: clamp(12px, 4vw, 18px);
}

.live-funnel-mobile-app .lfm-appointment-card.lfm-appointment-card-v3 {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.live-funnel-mobile-app .lfm-appointment-status.is-confirmed {
    border-color: rgba(255, 255, 255, 0.72);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.84)),
        rgba(255, 255, 255, 0.88);
    color: #0f172a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(15, 23, 42, 0.08);
}

.live-funnel-mobile-app .lfm-appointment-status.is-invited {
    border-color: rgba(37, 99, 235, 0.24);
    background: var(--lfm-primary-soft);
    color: var(--lfm-primary);
}

@media (prefers-color-scheme: dark) {
    .live-funnel-mobile-app .lfm-appointment-range {
        border: 1px solid var(--lfm-line-glass);
        background: rgba(15, 23, 42, 0.54);
    }

    .live-funnel-mobile-app .lfm-appointment-range a[aria-current="page"] {
        background: linear-gradient(135deg, var(--lfm-primary), #74b6ff);
        color: #03101f;
        box-shadow: 0 12px 22px rgba(116, 182, 255, 0.18);
    }

    .live-funnel-mobile-app .lfm-appointment-card.lfm-appointment-card-v3 {
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    }

    .live-funnel-mobile-app .lfm-appointment-status.is-confirmed {
        border-color: rgba(255, 255, 255, 0.42);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(226, 232, 240, 0.86)),
            rgba(255, 255, 255, 0.90);
        color: #0f172a;
    }
}

/* Mobile appointments edit pass: no clipped cards, compact edit affordance, stable actions. */
.live-funnel-mobile-app,
.live-funnel-mobile-app * {
    box-sizing: border-box;
}

.live-funnel-mobile-app .lfm-appointment-list {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    overflow-x: hidden;
    padding-right: clamp(12px, 4vw, 18px);
    padding-left: clamp(12px, 4vw, 18px);
}

.live-funnel-mobile-app .lfm-appointment-card.lfm-appointment-card-v3 {
    max-width: 100%;
}

.live-funnel-mobile-app .lfm-appointment-card-tools {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 7px;
    max-width: 52%;
    min-width: 0;
}

.live-funnel-mobile-app .lfm-appointment-card-v3 .lfm-appointment-status {
    max-width: calc(100% - 38px);
}

.live-funnel-mobile-app .lfm-appointment-edit-button {
    appearance: none;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 1px solid var(--lfm-line);
    border-radius: 12px;
    padding: 0;
    background: rgba(255, 255, 255, 0.52);
    color: var(--lfm-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56), 0 8px 16px rgba(15, 23, 42, 0.06);
}

.live-funnel-mobile-app .lfm-appointment-edit-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.live-funnel-mobile-app .lfm-appointment-edit-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}

.live-funnel-mobile-app .lfm-button-danger {
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    box-shadow: none;
}

.live-funnel-mobile-app .lfm-appointment-range a[aria-current="page"] {
    background: var(--lfm-primary) !important;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(42, 120, 255, 0.24) !important;
}

@media (max-width: 390px) {
    .live-funnel-mobile-app .lfm-appointment-card-tools {
        max-width: 48%;
        gap: 6px;
    }

    .live-funnel-mobile-app .lfm-appointment-edit-button {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        border-radius: 11px;
    }
}

@media (prefers-color-scheme: dark) {
    .live-funnel-mobile-app .lfm-appointment-edit-button {
        border-color: var(--lfm-line-glass);
        background: rgba(15, 23, 42, 0.54);
        color: var(--lfm-text);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 20px rgba(0, 0, 0, 0.18);
    }

    .live-funnel-mobile-app .lfm-button-danger {
        border-color: rgba(248, 113, 113, 0.28);
        background: rgba(248, 113, 113, 0.12);
        color: #fecaca;
    }

    .live-funnel-mobile-app .lfm-appointment-range a[aria-current="page"] {
        background: linear-gradient(135deg, var(--lfm-primary), #74b6ff) !important;
        color: #03101f !important;
    }
}

/* Production UI audit: keep mobile cards, sheets and action links insulated from theme defaults. */
.live-funnel-mobile-app a,
.live-funnel-mobile-app button {
    -webkit-tap-highlight-color: transparent;
}

.live-funnel-mobile-app .lfm-lead-actions a,
.live-funnel-mobile-app .lfm-empty-actions .lfm-button,
.live-funnel-mobile-app .lfm-appointment-edit-actions .lfm-button,
.live-funnel-mobile-app .lfm-details-form > .lfm-button {
    min-height: 46px;
    text-decoration: none;
}

.live-funnel-mobile-app .lfm-appointment-tags {
    min-width: 0;
}

.live-funnel-mobile-app .lfm-appointment-tags span,
.live-funnel-mobile-app .lfm-signal-row span,
.live-funnel-mobile-app .lfm-tracking-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-funnel-mobile-app .lfm-details-form input,
.live-funnel-mobile-app .lfm-details-form select,
.live-funnel-mobile-app .lfm-details-form textarea {
    max-width: 100%;
}

.live-funnel-mobile-app .lfm-details-form textarea::placeholder,
.live-funnel-mobile-app .lfm-details-form input::placeholder {
    color: color-mix(in srgb, var(--lfm-muted) 76%, transparent);
}

/* Production UI quality pass: sheets, nav and appointment settings stay app-like on small screens. */
body.live-funnel-mobile-sheet-open {
    overflow: hidden;
    overscroll-behavior: contain;
}

.live-funnel-mobile-app .lfm-sheet {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    align-items: end;
    padding: calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
}

.live-funnel-mobile-app .lfm-sheet[hidden] {
    display: none !important;
}

.live-funnel-mobile-app .lfm-sheet-backdrop {
    position: absolute;
    inset: 0;
}

.live-funnel-mobile-app .lfm-sheet-panel {
    position: relative;
    width: min(100%, 620px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin: 0 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.live-funnel-mobile-app[data-lfm-sheet-active="true"] .lfm-bottom-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
}

.live-funnel-mobile-app .lfm-bottom-nav {
    min-height: calc(68px + env(safe-area-inset-bottom));
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.live-funnel-mobile-app .lfm-bottom-nav a span:not(.lfm-nav-icon) {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-funnel-mobile-app .lfm-mobile-time-slot,
.live-funnel-mobile-app .lfm-blocked-editor .lfm-mobile-settings-grid {
    width: 100%;
    min-width: 0;
}

.live-funnel-mobile-app .lfm-mobile-time-slot input,
.live-funnel-mobile-app .lfm-blocked-editor input {
    min-width: 0;
}

.live-funnel-mobile-app .lfm-mini-action {
    text-decoration: none;
}

.live-funnel-mobile-app .lfm-empty-card {
    text-align: left;
}

.live-funnel-mobile-app .lfm-appointment-invite-button {
    flex: 0 1 auto;
    max-width: 100%;
    letter-spacing: 0;
}

@media (max-width: 390px) {
    .live-funnel-mobile-app .lfm-sheet {
        padding-right: 10px;
        padding-left: 10px;
    }

    .live-funnel-mobile-app .lfm-mobile-time-slot {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px;
    }

    .live-funnel-mobile-app .lfm-mobile-time-slot span {
        display: none;
    }

    .live-funnel-mobile-app .lfm-appointment-invite-button {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 12px;
    }
}

/* Premium mobile tabbar: glass shell, clean active state and safe-area spacing. */
.live-funnel-mobile-app .lfm-bottom-nav {
    left: max(14px, env(safe-area-inset-left));
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
    max-width: 430px;
    min-height: calc(74px + env(safe-area-inset-bottom));
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 31px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.48)),
        rgba(248, 250, 252, 0.46);
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.16),
        0 2px 10px rgba(37, 99, 235, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(30px) saturate(1.65);
    -webkit-backdrop-filter: blur(30px) saturate(1.65);
}

.live-funnel-mobile-app .lfm-bottom-nav a {
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 58px;
    gap: 3px;
    padding: 7px 6px 6px;
    border: 1px solid transparent;
    border-radius: 24px;
    background: transparent;
    color: rgba(10, 47, 104, 0.78);
    font-size: 10.5px;
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1.1;
    box-shadow: none;
    transform: translateZ(0);
    transition:
        color 180ms ease,
        transform 180ms ease,
        border-color 180ms ease,
        filter 180ms ease;
}

.live-funnel-mobile-app .lfm-bottom-nav a::before {
    content: "";
    position: absolute;
    inset: 5px 6px;
    z-index: -1;
    width: auto;
    height: auto;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 0%, rgba(96, 165, 250, 0.24), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(219, 234, 254, 0.56));
    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 190ms ease, transform 190ms ease, box-shadow 190ms ease;
}

.live-funnel-mobile-app .lfm-bottom-nav a::after {
    content: "";
    position: absolute;
    inset: 4px 5px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 23px;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"] {
    background: transparent;
    color: #0b3a7e;
}

.live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"]::before,
.live-funnel-mobile-app .lfm-bottom-nav a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"]::after {
    opacity: 1;
    transform: scale(1);
}

.live-funnel-mobile-app .lfm-bottom-nav a:active {
    color: #082f6d;
    transform: translateY(-1px) scale(0.985);
}

.live-funnel-mobile-app .lfm-bottom-nav a:active::before {
    opacity: 1;
    transform: scale(1.02);
    box-shadow:
        0 0 0 6px rgba(59, 130, 246, 0.10),
        0 12px 28px rgba(37, 99, 235, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.live-funnel-mobile-app .lfm-bottom-nav a:active::after {
    opacity: 1;
    transform: scale(1.03);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.10);
}

.live-funnel-mobile-app .lfm-nav-icon {
    position: relative;
    z-index: 1;
    width: 26px;
    height: 26px;
    margin: 0;
    color: inherit;
    transform: none;
    filter: none;
    transition: transform 180ms ease, filter 180ms ease;
}

.live-funnel-mobile-app .lfm-nav-icon svg {
    width: 23px;
    height: 23px;
    stroke-width: 1.78;
}

.live-funnel-mobile-app .lfm-bottom-nav a span:not(.lfm-nav-icon) {
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"] .lfm-nav-icon {
    transform: none;
    filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.20));
}

@media (prefers-color-scheme: dark) {
    .live-funnel-mobile-app .lfm-bottom-nav {
        border-color: rgba(147, 197, 253, 0.14);
        background:
            linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(2, 6, 23, 0.58)),
            rgba(15, 23, 42, 0.44);
        box-shadow:
            0 22px 54px rgba(0, 0, 0, 0.36),
            0 2px 12px rgba(96, 165, 250, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .live-funnel-mobile-app .lfm-bottom-nav a {
        color: rgba(191, 219, 254, 0.82);
    }

    .live-funnel-mobile-app .lfm-bottom-nav a::before {
        background:
            radial-gradient(circle at 50% 0%, rgba(125, 211, 252, 0.22), transparent 64%),
            linear-gradient(180deg, rgba(30, 64, 175, 0.30), rgba(15, 23, 42, 0.38));
        box-shadow:
            0 12px 28px rgba(59, 130, 246, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .live-funnel-mobile-app .lfm-bottom-nav a::after {
        border-color: rgba(147, 197, 253, 0.16);
    }

    .live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"] {
        color: #dbeafe;
    }

    .live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"] .lfm-nav-icon {
        filter: drop-shadow(0 5px 14px rgba(96, 165, 250, 0.28));
    }

    .live-funnel-mobile-app .lfm-bottom-nav a:active::before {
        box-shadow:
            0 0 0 6px rgba(96, 165, 250, 0.10),
            0 12px 28px rgba(59, 130, 246, 0.20),
            inset 0 1px 0 rgba(255, 255, 255, 0.10);
    }
}

@media (max-width: 390px) {
    .live-funnel-mobile-app .lfm-bottom-nav {
        left: max(10px, env(safe-area-inset-left));
        right: max(10px, env(safe-area-inset-right));
        gap: 5px;
        padding-right: 7px;
        padding-left: 7px;
        border-radius: 28px;
    }

    .live-funnel-mobile-app .lfm-bottom-nav a {
        min-height: 56px;
        padding-right: 4px;
        padding-left: 4px;
        border-radius: 21px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-funnel-mobile-app .lfm-bottom-nav,
    .live-funnel-mobile-app .lfm-bottom-nav a,
    .live-funnel-mobile-app .lfm-bottom-nav a::before,
    .live-funnel-mobile-app .lfm-bottom-nav a::after,
    .live-funnel-mobile-app .lfm-nav-icon {
        transition: none;
    }
}

/* Premium mobile tabbar v2: stronger liquid-glass presence and tab-change skeleton. */
.live-funnel-mobile-app .lfm-bottom-nav {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 120;
    max-width: 452px;
    min-height: calc(88px + env(safe-area-inset-bottom));
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.50), rgba(255, 255, 255, 0.20)),
        linear-gradient(135deg, rgba(219, 234, 254, 0.22), rgba(255, 255, 255, 0.12));
    box-shadow:
        0 24px 66px rgba(15, 23, 42, 0.18),
        0 8px 22px rgba(37, 99, 235, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        inset 0 -1px 0 rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(40px) saturate(1.9);
    -webkit-backdrop-filter: blur(40px) saturate(1.9);
}

.live-funnel-mobile-app .lfm-bottom-nav a {
    min-height: 68px;
    gap: 5px;
    padding: 9px 6px 8px;
    border-radius: 27px;
    color: rgba(8, 38, 85, 0.76);
    font-size: 11px;
    font-weight: 780;
    line-height: 1;
    transition:
        color 170ms ease,
        transform 170ms cubic-bezier(.2, .8, .2, 1),
        filter 170ms ease;
}

.live-funnel-mobile-app .lfm-bottom-nav a::before {
    inset: 4px;
    border-radius: 25px;
    background:
        radial-gradient(circle at 50% 2%, rgba(255, 255, 255, 0.92), transparent 52%),
        radial-gradient(circle at 50% 100%, rgba(96, 165, 250, 0.22), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.50), rgba(219, 234, 254, 0.24));
    box-shadow:
        0 16px 34px rgba(37, 99, 235, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        inset 0 -1px 0 rgba(30, 64, 175, 0.08);
    opacity: 0;
    transform: scale(0.82) translateY(4px);
    transition: opacity 180ms ease, transform 210ms cubic-bezier(.2, .9, .2, 1), box-shadow 180ms ease;
}

.live-funnel-mobile-app .lfm-bottom-nav a::after {
    inset: 3px;
    border-color: rgba(37, 99, 235, 0.13);
    border-radius: 26px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"],
.live-funnel-mobile-app .lfm-bottom-nav a.is-pressing {
    color: #06316f;
}

.live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"]::before,
.live-funnel-mobile-app .lfm-bottom-nav a.is-pressing::before,
.live-funnel-mobile-app .lfm-bottom-nav a:hover::before {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"]::after,
.live-funnel-mobile-app .lfm-bottom-nav a.is-pressing::after {
    opacity: 1;
    transform: scale(1);
}

.live-funnel-mobile-app .lfm-bottom-nav a:active,
.live-funnel-mobile-app .lfm-bottom-nav a.is-pressing {
    transform: translateY(-2px) scale(0.992);
}

.live-funnel-mobile-app .lfm-bottom-nav a:active::before,
.live-funnel-mobile-app .lfm-bottom-nav a.is-pressing::before {
    box-shadow:
        0 0 0 8px rgba(59, 130, 246, 0.11),
        0 18px 38px rgba(37, 99, 235, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.live-funnel-mobile-app .lfm-nav-icon {
    width: 29px;
    height: 29px;
}

.live-funnel-mobile-app .lfm-nav-icon svg {
    width: 25px;
    height: 25px;
    stroke-width: 1.74;
}

.live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"] .lfm-nav-icon,
.live-funnel-mobile-app .lfm-bottom-nav a.is-pressing .lfm-nav-icon {
    filter: drop-shadow(0 7px 16px rgba(37, 99, 235, 0.24));
}

.live-funnel-mobile-app[data-lfm-tab-loading="true"] .lfm-main {
    filter: blur(7px);
    opacity: 0.46;
    transform: scale(0.992) translateY(2px);
    transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.live-funnel-mobile-app .lfm-tab-loading-layer {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    align-items: start;
    justify-items: center;
    padding: calc(76px + env(safe-area-inset-top)) 14px calc(126px + env(safe-area-inset-bottom));
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    background:
        radial-gradient(circle at 50% 18%, rgba(147, 197, 253, 0.18), transparent 40%),
        rgba(241, 245, 249, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 180ms ease, visibility 180ms ease;
}

.live-funnel-mobile-app .lfm-tab-loading-layer.is-visible {
    visibility: visible;
    opacity: 1;
}

.live-funnel-mobile-app .lfm-tab-loading-panel {
    display: grid;
    width: min(100%, 520px);
    gap: 13px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.26)),
        rgba(255, 255, 255, 0.18);
    box-shadow:
        0 24px 64px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(24px) saturate(1.45);
    -webkit-backdrop-filter: blur(24px) saturate(1.45);
}

.live-funnel-mobile-app .lfm-tab-loading-panel span,
.live-funnel-mobile-app .lfm-tab-loading-panel i {
    display: block;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(148, 163, 184, 0.18), rgba(255, 255, 255, 0.68), rgba(148, 163, 184, 0.18));
    background-size: 220% 100%;
    animation: lfm-mobile-skeleton-flow 920ms ease-in-out infinite;
}

.live-funnel-mobile-app .lfm-skeleton-pill {
    width: 82px;
    height: 12px;
}

.live-funnel-mobile-app .lfm-skeleton-title {
    width: min(72%, 290px);
    height: 24px;
    border-radius: 14px;
}

.live-funnel-mobile-app .lfm-skeleton-text {
    width: 92%;
    height: 13px;
}

.live-funnel-mobile-app .lfm-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 2px;
}

.live-funnel-mobile-app .lfm-skeleton-grid i {
    height: 62px;
    border-radius: 18px;
}

.live-funnel-mobile-app .lfm-skeleton-chart {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 118px;
    padding-top: 14px;
}

.live-funnel-mobile-app .lfm-skeleton-chart i {
    flex: 1;
    border-radius: 16px 16px 10px 10px;
}

.live-funnel-mobile-app .lfm-skeleton-chart i:nth-child(1) {
    height: 38%;
}

.live-funnel-mobile-app .lfm-skeleton-chart i:nth-child(2) {
    height: 72%;
}

.live-funnel-mobile-app .lfm-skeleton-chart i:nth-child(3) {
    height: 54%;
}

.live-funnel-mobile-app .lfm-skeleton-chart i:nth-child(4) {
    height: 86%;
}

.live-funnel-mobile-app .lfm-skeleton-list {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.live-funnel-mobile-app .lfm-skeleton-list i {
    height: 68px;
    border-radius: 20px;
}

.live-funnel-mobile-app .lfm-skeleton-chips {
    display: flex;
    gap: 8px;
    overflow: hidden;
}

.live-funnel-mobile-app .lfm-skeleton-chips i {
    flex: 0 0 82px;
    height: 36px;
    border-radius: 999px;
}

@keyframes lfm-mobile-skeleton-flow {
    0% {
        background-position: 110% 0;
    }

    100% {
        background-position: -110% 0;
    }
}

@media (prefers-color-scheme: dark) {
    .live-funnel-mobile-app .lfm-bottom-nav {
        border-color: rgba(147, 197, 253, 0.13);
        background:
            linear-gradient(180deg, rgba(30, 41, 59, 0.45), rgba(2, 6, 23, 0.24)),
            linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(15, 23, 42, 0.22));
        box-shadow:
            0 24px 70px rgba(0, 0, 0, 0.42),
            0 8px 24px rgba(96, 165, 250, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            inset 0 -1px 0 rgba(147, 197, 253, 0.06);
    }

    .live-funnel-mobile-app .lfm-bottom-nav a {
        color: rgba(191, 219, 254, 0.78);
    }

    .live-funnel-mobile-app .lfm-bottom-nav a::before {
        background:
            radial-gradient(circle at 50% 0%, rgba(147, 197, 253, 0.22), transparent 56%),
            linear-gradient(180deg, rgba(37, 99, 235, 0.24), rgba(15, 23, 42, 0.34));
        box-shadow:
            0 18px 38px rgba(59, 130, 246, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.10),
            inset 0 -1px 0 rgba(147, 197, 253, 0.08);
    }

    .live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"],
    .live-funnel-mobile-app .lfm-bottom-nav a.is-pressing {
        color: #e0f2fe;
    }

    .live-funnel-mobile-app .lfm-tab-loading-layer {
        background:
            radial-gradient(circle at 50% 18%, rgba(96, 165, 250, 0.16), transparent 42%),
            rgba(2, 6, 23, 0.18);
    }

    .live-funnel-mobile-app .lfm-tab-loading-panel {
        border-color: rgba(147, 197, 253, 0.14);
        background:
            linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.34)),
            rgba(2, 6, 23, 0.22);
        box-shadow:
            0 24px 70px rgba(0, 0, 0, 0.34),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .live-funnel-mobile-app .lfm-tab-loading-panel span,
    .live-funnel-mobile-app .lfm-tab-loading-panel i {
        background:
            linear-gradient(90deg, rgba(51, 65, 85, 0.46), rgba(147, 197, 253, 0.20), rgba(51, 65, 85, 0.46));
        background-size: 220% 100%;
    }
}

@media (max-width: 390px) {
    .live-funnel-mobile-app .lfm-bottom-nav {
        min-height: calc(84px + env(safe-area-inset-bottom));
        border-radius: 31px;
    }

    .live-funnel-mobile-app .lfm-bottom-nav a {
        min-height: 64px;
        border-radius: 24px;
        font-size: 10.5px;
    }

    .live-funnel-mobile-app .lfm-nav-icon {
        width: 28px;
        height: 28px;
    }

    .live-funnel-mobile-app .lfm-nav-icon svg {
        width: 24px;
        height: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-funnel-mobile-app .lfm-tab-loading-panel span,
    .live-funnel-mobile-app .lfm-tab-loading-panel i {
        animation: none;
    }
}

/* Mobile tabbar v3: flatter icon-only liquid glass and calmer loading state. */
.live-funnel-mobile-app .lfm-bottom-nav {
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(8px + env(safe-area-inset-bottom));
    max-width: 398px;
    min-height: calc(66px + env(safe-area-inset-bottom));
    padding: 8px 9px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 29px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.12)),
        rgba(239, 246, 255, 0.10);
    box-shadow:
        0 18px 44px rgba(15, 23, 42, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.58),
        inset 0 -1px 0 rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(34px) saturate(1.75);
    -webkit-backdrop-filter: blur(34px) saturate(1.75);
}

.live-funnel-mobile-app .lfm-bottom-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: transparent;
    color: rgba(7, 45, 103, 0.72);
    box-shadow: none;
    transform: translateZ(0);
}

.live-funnel-mobile-app .lfm-bottom-nav a::before {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 38%, rgba(96, 165, 250, 0.22), rgba(96, 165, 250, 0.08) 42%, transparent 72%);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
}

.live-funnel-mobile-app .lfm-bottom-nav a::after {
    top: auto;
    right: auto;
    bottom: 5px;
    left: 50%;
    width: 16px;
    height: 3px;
    border: 0;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.24);
    opacity: 0;
    transform: translateX(-50%) scaleX(0.6);
}

.live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"],
.live-funnel-mobile-app .lfm-bottom-nav a.is-pressing {
    color: #063a82;
}

.live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"]::before,
.live-funnel-mobile-app .lfm-bottom-nav a.is-pressing::before,
.live-funnel-mobile-app .lfm-bottom-nav a:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"]::after,
.live-funnel-mobile-app .lfm-bottom-nav a.is-pressing::after {
    opacity: 0.72;
    transform: translateX(-50%) scaleX(1);
}

.live-funnel-mobile-app .lfm-bottom-nav a:active,
.live-funnel-mobile-app .lfm-bottom-nav a.is-pressing {
    transform: translateY(-1px) scale(0.98);
}

.live-funnel-mobile-app .lfm-bottom-nav a:active::before,
.live-funnel-mobile-app .lfm-bottom-nav a.is-pressing::before {
    box-shadow:
        0 0 0 7px rgba(59, 130, 246, 0.08),
        0 11px 26px rgba(37, 99, 235, 0.16);
}

.live-funnel-mobile-app .lfm-nav-icon {
    width: 34px;
    height: 34px;
}

.live-funnel-mobile-app .lfm-nav-icon svg {
    width: 29px;
    height: 29px;
    stroke-width: 1.68;
}

.live-funnel-mobile-app .lfm-nav-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"] .lfm-nav-icon,
.live-funnel-mobile-app .lfm-bottom-nav a.is-pressing .lfm-nav-icon {
    filter: drop-shadow(0 0 14px rgba(37, 99, 235, 0.28));
}

.live-funnel-mobile-app[data-lfm-tab-loading="true"] .lfm-main {
    filter: blur(5px);
    opacity: 0.54;
    transform: scale(0.996);
}

.live-funnel-mobile-app .lfm-tab-loading-layer {
    z-index: 90;
    align-items: start;
    padding: calc(94px + env(safe-area-inset-top)) 22px calc(104px + env(safe-area-inset-bottom));
    background: rgba(241, 245, 249, 0.08);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.live-funnel-mobile-app .lfm-tab-loading-panel {
    width: min(100%, 420px);
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.live-funnel-mobile-app .lfm-tab-loading-panel span,
.live-funnel-mobile-app .lfm-tab-loading-panel i {
    background:
        linear-gradient(90deg, rgba(148, 163, 184, 0.12), rgba(255, 255, 255, 0.42), rgba(148, 163, 184, 0.12));
    background-size: 220% 100%;
}

.live-funnel-mobile-app .lfm-skeleton-card {
    display: block;
    width: 100%;
    border-radius: 24px;
}

.live-funnel-mobile-app .lfm-skeleton-card-primary {
    height: 118px;
}

.live-funnel-mobile-app .lfm-skeleton-card-secondary {
    width: 74%;
    height: 54px;
}

.live-funnel-mobile-app .lfm-skeleton-line {
    width: 42%;
    height: 12px;
}

.live-funnel-mobile-app .lfm-skeleton-pill,
.live-funnel-mobile-app .lfm-skeleton-title,
.live-funnel-mobile-app .lfm-skeleton-text,
.live-funnel-mobile-app .lfm-skeleton-grid,
.live-funnel-mobile-app .lfm-skeleton-chart,
.live-funnel-mobile-app .lfm-skeleton-list,
.live-funnel-mobile-app .lfm-skeleton-chips {
    display: none !important;
}

@media (prefers-color-scheme: dark) {
    .live-funnel-mobile-app .lfm-bottom-nav {
        border-color: rgba(147, 197, 253, 0.12);
        background:
            linear-gradient(180deg, rgba(15, 23, 42, 0.30), rgba(2, 6, 23, 0.16)),
            rgba(15, 23, 42, 0.10);
        box-shadow:
            0 18px 44px rgba(0, 0, 0, 0.36),
            inset 0 1px 0 rgba(255, 255, 255, 0.07),
            inset 0 -1px 0 rgba(147, 197, 253, 0.05);
    }

    .live-funnel-mobile-app .lfm-bottom-nav a {
        color: rgba(191, 219, 254, 0.74);
    }

    .live-funnel-mobile-app .lfm-bottom-nav a::before {
        background:
            radial-gradient(circle at 50% 38%, rgba(147, 197, 253, 0.18), rgba(59, 130, 246, 0.08) 46%, transparent 74%);
        box-shadow: 0 0 24px rgba(96, 165, 250, 0.18);
    }

    .live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"],
    .live-funnel-mobile-app .lfm-bottom-nav a.is-pressing {
        color: #dbeafe;
    }

    .live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"] .lfm-nav-icon,
    .live-funnel-mobile-app .lfm-bottom-nav a.is-pressing .lfm-nav-icon {
        filter: drop-shadow(0 0 15px rgba(96, 165, 250, 0.30));
    }

    .live-funnel-mobile-app .lfm-tab-loading-layer {
        background: rgba(2, 6, 23, 0.10);
    }

    .live-funnel-mobile-app .lfm-tab-loading-panel span,
    .live-funnel-mobile-app .lfm-tab-loading-panel i {
        background:
            linear-gradient(90deg, rgba(51, 65, 85, 0.34), rgba(147, 197, 253, 0.16), rgba(51, 65, 85, 0.34));
        background-size: 220% 100%;
    }
}

@media (max-width: 390px) {
    .live-funnel-mobile-app .lfm-bottom-nav {
        left: max(14px, env(safe-area-inset-left));
        right: max(14px, env(safe-area-inset-right));
        min-height: calc(64px + env(safe-area-inset-bottom));
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
        border-radius: 28px;
    }

    .live-funnel-mobile-app .lfm-bottom-nav a {
        min-height: 48px;
        border-radius: 21px;
    }

    .live-funnel-mobile-app .lfm-nav-icon {
        width: 33px;
        height: 33px;
    }

    .live-funnel-mobile-app .lfm-nav-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* Mobile tabbar v4: fully icon-only liquid glass with aura-only active state. */
.live-funnel-mobile-app .lfm-bottom-nav {
    left: max(18px, env(safe-area-inset-left));
    right: max(18px, env(safe-area-inset-right));
    bottom: calc(10px + env(safe-area-inset-bottom));
    max-width: 374px;
    min-height: calc(60px + env(safe-area-inset-bottom));
    padding: 6px 7px calc(6px + env(safe-area-inset-bottom));
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.055)),
        rgba(219, 234, 254, 0.075);
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.44),
        inset 0 -1px 0 rgba(15, 23, 42, 0.035);
    backdrop-filter: blur(42px) saturate(1.9);
    -webkit-backdrop-filter: blur(42px) saturate(1.9);
}

.live-funnel-mobile-app .lfm-bottom-nav a {
    min-height: 46px;
    border-radius: 999px;
    color: rgba(7, 45, 103, 0.70);
    transition:
        color 160ms ease,
        transform 170ms cubic-bezier(.2, .85, .2, 1),
        filter 160ms ease;
}

.live-funnel-mobile-app .lfm-bottom-nav a::before {
    width: 44px;
    height: 44px;
    background:
        radial-gradient(circle at 50% 48%, rgba(59, 130, 246, 0.20), rgba(59, 130, 246, 0.075) 42%, transparent 72%);
    box-shadow: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.58);
    filter: blur(1px);
}

.live-funnel-mobile-app .lfm-bottom-nav a::after {
    bottom: 4px;
    width: 12px;
    height: 2px;
    border-radius: 999px;
    opacity: 0;
    box-shadow: 0 0 12px currentColor;
}

.live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"],
.live-funnel-mobile-app .lfm-bottom-nav a.is-pressing {
    color: #053675;
}

.live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"]::before,
.live-funnel-mobile-app .lfm-bottom-nav a.is-pressing::before,
.live-funnel-mobile-app .lfm-bottom-nav a:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"]::after,
.live-funnel-mobile-app .lfm-bottom-nav a.is-pressing::after {
    opacity: 0.58;
    transform: translateX(-50%) scaleX(1);
}

.live-funnel-mobile-app .lfm-bottom-nav a:active,
.live-funnel-mobile-app .lfm-bottom-nav a.is-pressing {
    transform: translateY(-1px) scale(0.965);
}

.live-funnel-mobile-app .lfm-bottom-nav a:active::before,
.live-funnel-mobile-app .lfm-bottom-nav a.is-pressing::before {
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.055);
}

.live-funnel-mobile-app .lfm-nav-icon {
    width: 36px;
    height: 36px;
}

.live-funnel-mobile-app .lfm-nav-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.62;
}

.live-funnel-mobile-app .lfm-nav-icon path,
.live-funnel-mobile-app .lfm-nav-icon rect,
.live-funnel-mobile-app .lfm-nav-icon circle {
    vector-effect: non-scaling-stroke;
}

.live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"] .lfm-nav-icon,
.live-funnel-mobile-app .lfm-bottom-nav a.is-pressing .lfm-nav-icon {
    filter:
        drop-shadow(0 0 8px rgba(37, 99, 235, 0.24))
        drop-shadow(0 5px 12px rgba(37, 99, 235, 0.14));
}

.live-funnel-mobile-app .lfm-tab-loading-panel span,
.live-funnel-mobile-app .lfm-tab-loading-panel i {
    background:
        linear-gradient(90deg, rgba(100, 116, 139, 0.22), rgba(148, 163, 184, 0.34), rgba(100, 116, 139, 0.22));
    background-size: 220% 100%;
}

.live-funnel-mobile-app .lfm-skeleton-card-primary {
    height: 112px;
}

.live-funnel-mobile-app .lfm-skeleton-card-secondary {
    height: 50px;
}

.live-funnel-mobile-app .lfm-skeleton-line {
    height: 10px;
}

@media (prefers-color-scheme: dark) {
    .live-funnel-mobile-app .lfm-bottom-nav {
        border-color: rgba(147, 197, 253, 0.10);
        background:
            linear-gradient(180deg, rgba(30, 41, 59, 0.22), rgba(2, 6, 23, 0.095)),
            rgba(15, 23, 42, 0.075);
        box-shadow:
            0 18px 42px rgba(0, 0, 0, 0.34),
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            inset 0 -1px 0 rgba(147, 197, 253, 0.04);
    }

    .live-funnel-mobile-app .lfm-bottom-nav a {
        color: rgba(191, 219, 254, 0.72);
    }

    .live-funnel-mobile-app .lfm-bottom-nav a::before {
        background:
            radial-gradient(circle at 50% 48%, rgba(147, 197, 253, 0.20), rgba(96, 165, 250, 0.07) 44%, transparent 74%);
    }

    .live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"],
    .live-funnel-mobile-app .lfm-bottom-nav a.is-pressing {
        color: #e0f2fe;
    }

    .live-funnel-mobile-app .lfm-bottom-nav a[aria-current="page"] .lfm-nav-icon,
    .live-funnel-mobile-app .lfm-bottom-nav a.is-pressing .lfm-nav-icon {
        filter:
            drop-shadow(0 0 10px rgba(125, 211, 252, 0.34))
            drop-shadow(0 6px 14px rgba(59, 130, 246, 0.18));
    }

    .live-funnel-mobile-app .lfm-tab-loading-panel span,
    .live-funnel-mobile-app .lfm-tab-loading-panel i {
        background:
            linear-gradient(90deg, rgba(71, 85, 105, 0.52), rgba(148, 163, 184, 0.30), rgba(71, 85, 105, 0.52));
        background-size: 220% 100%;
    }
}

@media (max-width: 390px) {
    .live-funnel-mobile-app .lfm-bottom-nav {
        left: max(16px, env(safe-area-inset-left));
        right: max(16px, env(safe-area-inset-right));
        min-height: calc(58px + env(safe-area-inset-bottom));
        padding: 6px 7px calc(6px + env(safe-area-inset-bottom));
        border-radius: 999px;
    }

    .live-funnel-mobile-app .lfm-bottom-nav a {
        min-height: 44px;
    }

    .live-funnel-mobile-app .lfm-nav-icon {
        width: 35px;
        height: 35px;
    }

    .live-funnel-mobile-app .lfm-nav-icon svg {
        width: 29px;
        height: 29px;
    }
}

/* Mobile tabbar v5: isolated compact liquid-glass shell; safe area stays outside. */
.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    left: max(18px, env(safe-area-inset-left));
    right: max(18px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    max-width: 360px;
    height: 54px;
    min-height: 0;
    margin: 0 auto;
    padding: 5px 6px;
    gap: 6px;
    box-sizing: border-box;
    border: 1px solid rgba(125, 171, 230, 0.20);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(245, 250, 255, 0.30), rgba(225, 239, 255, 0.10)),
        rgba(221, 237, 255, 0.16);
    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        inset 0 -1px 0 rgba(30, 64, 175, 0.035);
    backdrop-filter: blur(38px) saturate(1.85);
    -webkit-backdrop-filter: blur(38px) saturate(1.85);
}

.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(8, 48, 108, 0.70);
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    transform: translateZ(0);
    -webkit-tap-highlight-color: transparent;
    transition:
        color 150ms ease,
        transform 150ms cubic-bezier(.2, .82, .2, 1),
        filter 150ms ease;
}

.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: radial-gradient(circle at 50% 50%, rgba(45, 118, 232, 0.18), rgba(45, 118, 232, 0.055) 48%, transparent 72%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.62);
    filter: blur(1px);
    transition: opacity 160ms ease, transform 170ms cubic-bezier(.2, .82, .2, 1);
}

.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 10px;
    height: 2px;
    border: 0;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.28);
    opacity: 0;
    transform: translateX(-50%) scaleX(0.55);
    transition: opacity 150ms ease, transform 150ms ease;
}

.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item[aria-current="page"],
.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item.is-pressing {
    color: #0a4da4;
}

.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item[aria-current="page"]::before,
.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item.is-pressing::before,
.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item[aria-current="page"]::after,
.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item.is-pressing::after {
    opacity: 0.52;
    transform: translateX(-50%) scaleX(1);
}

.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item:active,
.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item.is-pressing {
    transform: translateY(-1px) scale(0.97);
}

.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    margin: 0;
    color: inherit;
    transform: none;
}

.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__icon svg {
    display: block;
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.62;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__icon path,
.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__icon rect,
.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__icon circle {
    vector-effect: non-scaling-stroke;
}

.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item[aria-current="page"] .lfm-glass-tabbar-v5__icon,
.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item.is-pressing .lfm-glass-tabbar-v5__icon {
    filter:
        drop-shadow(0 0 8px rgba(37, 99, 235, 0.24))
        drop-shadow(0 4px 10px rgba(37, 99, 235, 0.12));
}

.live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-nav-label {
    display: none !important;
}

@media (prefers-color-scheme: dark) {
    .live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 {
        border-color: rgba(147, 197, 253, 0.10);
        background:
            linear-gradient(180deg, rgba(30, 41, 59, 0.20), rgba(2, 6, 23, 0.07)),
            rgba(15, 23, 42, 0.08);
        box-shadow:
            0 12px 30px rgba(0, 0, 0, 0.30),
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            inset 0 -1px 0 rgba(147, 197, 253, 0.035);
    }

    .live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item {
        color: rgba(191, 219, 254, 0.74);
    }

    .live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item::before {
        background: radial-gradient(circle at 50% 50%, rgba(125, 211, 252, 0.18), rgba(96, 165, 250, 0.06) 48%, transparent 72%);
    }

    .live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item[aria-current="page"],
    .live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item.is-pressing {
        color: #dbeafe;
    }

    .live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item[aria-current="page"] .lfm-glass-tabbar-v5__icon,
    .live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item.is-pressing .lfm-glass-tabbar-v5__icon {
        filter:
            drop-shadow(0 0 9px rgba(125, 211, 252, 0.30))
            drop-shadow(0 4px 10px rgba(59, 130, 246, 0.14));
    }
}

@media (max-width: 390px) {
    .live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 {
        left: max(16px, env(safe-area-inset-left));
        right: max(16px, env(safe-area-inset-right));
        height: 52px;
        min-height: 0;
        padding: 5px 6px;
    }

    .live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__item {
        height: 42px;
        min-height: 0;
    }

    .live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__icon {
        width: 33px;
        height: 33px;
    }

    .live-funnel-mobile-app .lfm-bottom-nav.lfm-glass-tabbar-v5 .lfm-glass-tabbar-v5__icon svg {
        width: 27px;
        height: 27px;
    }
}

/* Shared mobile tab heroes: Tracking, Leads and Termine only. */
.live-funnel-mobile-app .lfm-mobile-hero {
    display: grid;
    gap: 13px;
    padding: 17px;
}

.live-funnel-mobile-app .lfm-mobile-hero-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.live-funnel-mobile-app .lfm-mobile-hero-head h2 {
    margin: 0;
    color: var(--lfm-text);
    font-size: 22px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0;
}

.live-funnel-mobile-app .lfm-mobile-hero-tools {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    gap: 8px;
}

.live-funnel-mobile-app .lfm-mobile-period-bar {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 999px;
    padding: 4px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
        rgba(255, 255, 255, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.70),
        0 8px 18px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(18px) saturate(1.20);
    -webkit-backdrop-filter: blur(18px) saturate(1.20);
}

.live-funnel-mobile-app .lfm-mobile-period-bar a,
.live-funnel-mobile-app .lfm-mobile-period-bar button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 29px;
    border: 0;
    border-radius: 999px;
    padding: 0 9px;
    background: transparent;
    color: var(--lfm-muted);
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.live-funnel-mobile-app .lfm-mobile-period-filter {
    position: relative;
    width: 36px;
    margin-left: 5px;
    padding: 0;
}

.live-funnel-mobile-app .lfm-mobile-period-filter::before {
    content: "";
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: -5px;
    width: 1px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, rgba(96, 123, 163, 0.24) 24%, rgba(37, 99, 235, 0.18) 50%, rgba(96, 123, 163, 0.24) 76%, transparent);
    pointer-events: none;
}

.live-funnel-mobile-app .lfm-mobile-period-filter svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.05;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.live-funnel-mobile-app .lfm-mobile-period-filter[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 7px;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.live-funnel-mobile-app .lfm-mobile-period-bar a[aria-current="page"] {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
        rgba(255, 255, 255, 0.86);
    color: var(--lfm-primary);
    box-shadow: 0 7px 16px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.live-funnel-mobile-app .lfm-mobile-period-bar button {
    color: var(--lfm-text);
}

.live-funnel-mobile-app .lfm-mobile-period-bar button[aria-pressed="true"] {
    background: rgba(37, 99, 235, 0.11);
    color: var(--lfm-primary);
}

.live-funnel-mobile-app .lfm-mobile-hero-body {
    display: grid;
    gap: 10px;
}

.live-funnel-mobile-app .lfm-mobile-hero-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.live-funnel-mobile-app .lfm-mobile-hero-actions .lfm-range-button {
    margin-top: 0;
    flex: 1 1 auto;
}

.live-funnel-mobile-app .lfm-mobile-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.live-funnel-mobile-app .lfm-mobile-hero-metrics article {
    display: grid;
    gap: 4px;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.36);
}

.live-funnel-mobile-app .lfm-mobile-hero-metrics span {
    color: var(--lfm-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-funnel-mobile-app .lfm-mobile-hero-metrics strong {
    color: var(--lfm-text);
    font-size: 19px;
    line-height: 1;
    font-weight: 900;
}

.live-funnel-mobile-app .lfm-mobile-lead-summary {
    display: grid;
    gap: 4px;
}

.live-funnel-mobile-app .lfm-mobile-lead-summary strong {
    color: var(--lfm-text);
    font-size: 28px;
    line-height: 1.05;
    font-weight: 900;
}

.live-funnel-mobile-app .lfm-mobile-lead-summary span {
    color: var(--lfm-muted);
    font-size: 13px;
    font-weight: 800;
}

.live-funnel-mobile-app .lfm-mobile-filter-sheet .lfm-sheet-panel {
    gap: 12px;
}

.live-funnel-mobile-app .lfm-mobile-filter-card {
    display: grid;
    gap: 10px;
}

.live-funnel-mobile-app .lfm-mobile-filter-card h4 {
    margin: 0;
    color: var(--lfm-text);
    font-size: 14px;
    font-weight: 900;
}

.live-funnel-mobile-app .lfm-filter-link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.live-funnel-mobile-app .lfm-filter-link-grid a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.52);
    color: var(--lfm-muted);
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.live-funnel-mobile-app .lfm-filter-link-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    padding: 0 11px;
    background: rgba(255, 255, 255, 0.34);
    color: var(--lfm-muted);
    font-size: 12px;
    font-weight: 820;
}

.live-funnel-mobile-app .lfm-filter-link-grid a[aria-current="page"] {
    background: var(--lfm-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

@media (prefers-color-scheme: dark) {
    .live-funnel-mobile-app .lfm-mobile-period-bar {
        border-color: rgba(147, 197, 253, 0.12);
        background:
            linear-gradient(180deg, rgba(30, 41, 59, 0.56), rgba(15, 23, 42, 0.34)),
            rgba(15, 23, 42, 0.18);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 10px 20px rgba(0, 0, 0, 0.18);
    }

    .live-funnel-mobile-app .lfm-mobile-period-bar a[aria-current="page"] {
        background: rgba(59, 130, 246, 0.22);
        color: #dbeafe;
        box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.12), 0 8px 18px rgba(37, 99, 235, 0.16);
    }

    .live-funnel-mobile-app .lfm-mobile-period-bar button {
        color: #dbeafe;
    }

    .live-funnel-mobile-app .lfm-mobile-period-filter::before {
        background: linear-gradient(180deg, transparent, rgba(147, 197, 253, 0.08) 20%, rgba(147, 197, 253, 0.22) 50%, rgba(147, 197, 253, 0.08) 80%, transparent);
    }

    .live-funnel-mobile-app .lfm-mobile-period-bar button[aria-pressed="true"] {
        background: rgba(96, 165, 250, 0.16);
        color: #dbeafe;
    }

    .live-funnel-mobile-app .lfm-mobile-filter-sheet .lfm-sheet-backdrop,
    .live-funnel-mobile-app .lfm-mobile-settings-sheet .lfm-sheet-backdrop {
        background:
            radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.14), transparent 34%),
            rgba(2, 6, 23, 0.82);
    }

    .live-funnel-mobile-app .lfm-mobile-filter-sheet .lfm-sheet-panel,
    .live-funnel-mobile-app .lfm-mobile-settings-sheet .lfm-sheet-panel {
        border-color: rgba(147, 197, 253, 0.10);
        background:
            radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.16), transparent 32%),
            linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
        color: #e5edff;
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    }

    .live-funnel-mobile-app .lfm-mobile-filter-sheet .lfm-details-head,
    .live-funnel-mobile-app .lfm-mobile-settings-sheet .lfm-details-head,
    .live-funnel-mobile-app .lfm-mobile-filter-card,
    .live-funnel-mobile-app .lfm-mobile-settings-card {
        border-color: rgba(147, 197, 253, 0.10);
        background: rgba(15, 23, 42, 0.58);
        color: #e5edff;
    }

    .live-funnel-mobile-app .lfm-mobile-filter-sheet h3,
    .live-funnel-mobile-app .lfm-mobile-settings-sheet h3,
    .live-funnel-mobile-app .lfm-mobile-filter-sheet h4,
    .live-funnel-mobile-app .lfm-mobile-settings-sheet h4 {
        color: #f8fbff;
    }

    .live-funnel-mobile-app .lfm-filter-link-grid span {
        border-color: rgba(147, 197, 253, 0.10);
        background: rgba(15, 23, 42, 0.34);
        color: #b9c8df;
    }

    .live-funnel-mobile-app .lfm-mobile-hero-metrics article,
    .live-funnel-mobile-app .lfm-filter-link-grid a {
        border-color: rgba(147, 197, 253, 0.10);
        background: rgba(15, 23, 42, 0.28);
    }

    .live-funnel-mobile-app .lfm-filter-link-grid a {
        color: #dbeafe;
    }
}

@media (max-width: 390px) {
    .live-funnel-mobile-app .lfm-mobile-hero-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .live-funnel-mobile-app .lfm-mobile-period-bar {
        justify-self: stretch;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .live-funnel-mobile-app .lfm-mobile-period-bar a,
    .live-funnel-mobile-app .lfm-mobile-period-bar button {
        padding: 0 5px;
    }

    .live-funnel-mobile-app .lfm-mobile-period-filter {
        margin-left: 4px;
        padding: 0;
    }

    .live-funnel-mobile-app .lfm-mobile-period-filter::before {
        left: -4px;
    }
}

/* Mobile Tracking KPI card: visual-only refinement below the existing header row. */
.live-funnel-mobile-app .lfm-tracking-kpi-body {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.82fr);
    gap: 10px;
}

.live-funnel-mobile-app .lfm-tracking-kpi-card,
.live-funnel-mobile-app .lfm-tracking-trend-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 16% 8%, rgba(37, 99, 235, 0.08), transparent 64%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.52));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.66),
        0 14px 32px rgba(15, 23, 42, 0.065);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.live-funnel-mobile-app .lfm-tracking-kpi-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.34), transparent 54%, rgba(37, 99, 235, 0.045));
    pointer-events: none;
}

.live-funnel-mobile-app .lfm-tracking-kpi-card {
    min-height: 138px;
    place-content: center;
    gap: 6px;
    padding: 12px 4px;
    text-align: center;
    overflow: visible;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.live-funnel-mobile-app .lfm-tracking-kpi-card::after {
    display: none;
}

.live-funnel-mobile-app .lfm-tracking-kpi-card strong {
    position: relative;
    z-index: 1;
    color: var(--lfm-text);
    font-size: clamp(44px, 15vw, 70px);
    line-height: 0.92;
    font-weight: 950;
}

.live-funnel-mobile-app .lfm-tracking-kpi-card span {
    position: relative;
    z-index: 1;
    color: var(--lfm-muted);
    font-size: 13px;
    font-weight: 900;
}

.live-funnel-mobile-app .lfm-tracking-trend-card {
    display: grid;
    align-content: center;
    gap: 10px;
    min-height: 138px;
    padding: 16px;
}

.live-funnel-mobile-app .lfm-tracking-trend-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.live-funnel-mobile-app .lfm-tracking-trend-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    color: #64748b;
}

.live-funnel-mobile-app .lfm-tracking-trend-card.is-stable .lfm-tracking-trend-icon,
.live-funnel-mobile-app .lfm-tracking-trend-card.is-stable .lfm-tracking-trend-head strong {
    color: #64748b;
}

.live-funnel-mobile-app .lfm-tracking-trend-card.is-up .lfm-tracking-trend-icon,
.live-funnel-mobile-app .lfm-tracking-trend-card.is-up .lfm-tracking-trend-head strong {
    color: #16a34a;
}

.live-funnel-mobile-app .lfm-tracking-trend-card.is-down .lfm-tracking-trend-icon,
.live-funnel-mobile-app .lfm-tracking-trend-card.is-down .lfm-tracking-trend-head strong {
    color: #ef4444;
}

.live-funnel-mobile-app .lfm-tracking-trend-card.is-down .lfm-tracking-trend-icon svg {
    transform: none;
}

.live-funnel-mobile-app .lfm-tracking-trend-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.live-funnel-mobile-app .lfm-tracking-trend-head strong {
    display: block;
    color: #64748b;
    font-size: 20px;
    line-height: 1;
    font-weight: 950;
    white-space: nowrap;
}

.live-funnel-mobile-app .lfm-tracking-trend-head small {
    display: block;
    margin-top: 3px;
    color: var(--lfm-muted);
    font-size: 11px;
    font-weight: 850;
}

.live-funnel-mobile-app .lfm-tracking-trend-stats {
    display: grid;
    align-self: center;
    margin: 0;
}

.live-funnel-mobile-app .lfm-tracking-trend-stats div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 15px;
    padding: 9px 11px;
    background: rgba(255, 255, 255, 0.34);
}

.live-funnel-mobile-app .lfm-tracking-trend-stats dt,
.live-funnel-mobile-app .lfm-tracking-trend-stats dd {
    margin: 0;
}

.live-funnel-mobile-app .lfm-tracking-trend-stats dt {
    color: var(--lfm-muted);
    font-size: 10px;
    font-weight: 850;
}

.live-funnel-mobile-app .lfm-tracking-trend-stats dd {
    color: var(--lfm-text);
    font-size: 15px;
    font-weight: 950;
    white-space: nowrap;
}

.live-funnel-mobile-app .lfm-mobile-hero--tracking.is-period-loading .lfm-tracking-kpi-card strong,
.live-funnel-mobile-app .lfm-mobile-hero--tracking.is-period-loading .lfm-tracking-kpi-card span,
.live-funnel-mobile-app .lfm-mobile-hero--tracking.is-period-loading .lfm-tracking-trend-head,
.live-funnel-mobile-app .lfm-mobile-hero--tracking.is-period-loading .lfm-tracking-trend-stats {
    opacity: 0;
}

.live-funnel-mobile-app .lfm-mobile-hero--tracking.is-period-loading .lfm-tracking-kpi-card::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    z-index: 2;
    width: min(136px, 74%);
    height: 54px;
    border-radius: 19px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent),
        linear-gradient(rgba(148, 163, 184, 0.18), rgba(148, 163, 184, 0.18));
    background-size: 220% 100%, 100% 100%;
    animation: lfm-tracking-kpi-skeleton 0.9s ease-in-out infinite;
}

.live-funnel-mobile-app .lfm-mobile-hero--tracking.is-period-loading .lfm-tracking-kpi-card::after {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    top: calc(45% + 42px);
    z-index: 2;
    width: 72px;
    height: 13px;
    border-radius: 999px;
    transform: translateX(-50%);
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.30), transparent),
        linear-gradient(rgba(148, 163, 184, 0.15), rgba(148, 163, 184, 0.15));
    background-size: 220% 100%, 100% 100%;
    animation: lfm-tracking-kpi-skeleton 0.9s ease-in-out infinite;
}

.live-funnel-mobile-app .lfm-mobile-hero--tracking.is-period-loading .lfm-tracking-trend-card::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 24px;
    z-index: 2;
    height: 45px;
    border-radius: 18px;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent) 0 0 / 220% 100% no-repeat,
        linear-gradient(rgba(148, 163, 184, 0.17), rgba(148, 163, 184, 0.17)) 0 1px / 32px 32px no-repeat,
        linear-gradient(rgba(148, 163, 184, 0.18), rgba(148, 163, 184, 0.18)) 44px 3px / 64px 20px no-repeat,
        linear-gradient(rgba(148, 163, 184, 0.13), rgba(148, 163, 184, 0.13)) 44px 30px / 86px 10px no-repeat;
    animation: lfm-tracking-kpi-skeleton 0.9s ease-in-out infinite;
}

.live-funnel-mobile-app .lfm-mobile-hero--tracking.is-period-loading .lfm-tracking-trend-card::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    height: 38px;
    border-radius: 15px;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent) 0 0 / 220% 100% no-repeat,
        linear-gradient(rgba(148, 163, 184, 0.13), rgba(148, 163, 184, 0.13)) 11px 13px / 52px 11px no-repeat,
        linear-gradient(rgba(148, 163, 184, 0.18), rgba(148, 163, 184, 0.18)) calc(100% - 58px) 11px / 47px 15px no-repeat,
        linear-gradient(rgba(148, 163, 184, 0.075), rgba(148, 163, 184, 0.075)) 0 0 / 100% 100% no-repeat;
    animation: lfm-tracking-kpi-skeleton 0.9s ease-in-out infinite;
}

.live-funnel-mobile-app .lfm-mobile-hero--tracking .lfm-tracking-filter-strip a.is-period-loading {
    color: transparent;
    border-color: rgba(96, 165, 250, 0.20);
    background: rgba(37, 99, 235, 0.10);
}

.live-funnel-mobile-app .lfm-mobile-hero--tracking .lfm-tracking-filter-strip a.is-period-loading::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

@keyframes lfm-tracking-kpi-skeleton {
    0% {
        opacity: 0.72;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.06);
    }
    100% {
        opacity: 0.72;
        filter: brightness(1);
    }
}

.live-funnel-mobile-app .lfm-mobile-hero--tracking .lfm-tracking-filter-strip {
    position: relative;
    margin: 0 -17px -3px 0;
    padding: 0 17px 3px 0;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent);
}

.live-funnel-mobile-app .lfm-mobile-hero--tracking .lfm-tracking-filter-strip a {
    min-height: 32px;
    border-color: rgba(96, 165, 250, 0.13);
    background: rgba(255, 255, 255, 0.42);
    font-size: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.live-funnel-mobile-app .lfm-mobile-hero--tracking .lfm-tracking-filter-strip a[aria-current="page"] {
    background: rgba(37, 99, 235, 0.12);
    color: var(--lfm-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54), 0 8px 18px rgba(37, 99, 235, 0.10);
}

@media (prefers-color-scheme: dark) {
    .live-funnel-mobile-app .lfm-tracking-kpi-card,
    .live-funnel-mobile-app .lfm-tracking-trend-card {
        border-color: rgba(147, 197, 253, 0.12);
        background:
            radial-gradient(ellipse at 16% 8%, rgba(59, 130, 246, 0.09), transparent 66%),
            linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.66));
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.055),
            0 14px 34px rgba(0, 0, 0, 0.18);
    }

    .live-funnel-mobile-app .lfm-tracking-kpi-card::after {
        background: linear-gradient(142deg, rgba(255, 255, 255, 0.075), transparent 58%, rgba(59, 130, 246, 0.035));
    }

    .live-funnel-mobile-app .lfm-tracking-kpi-card {
        border-color: transparent;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .live-funnel-mobile-app .lfm-tracking-trend-stats div,
    .live-funnel-mobile-app .lfm-mobile-hero--tracking .lfm-tracking-filter-strip a {
        border-color: rgba(147, 197, 253, 0.10);
        background: rgba(15, 23, 42, 0.34);
    }

    .live-funnel-mobile-app .lfm-mobile-hero--tracking .lfm-tracking-filter-strip a[aria-current="page"] {
        background: rgba(96, 165, 250, 0.16);
        color: #dbeafe;
    }

    .live-funnel-mobile-app .lfm-mobile-hero--tracking.is-period-loading .lfm-tracking-kpi-card::before,
    .live-funnel-mobile-app .lfm-mobile-hero--tracking.is-period-loading .lfm-tracking-kpi-card::after {
        background:
            linear-gradient(90deg, transparent, rgba(191, 219, 254, 0.13), transparent),
            linear-gradient(rgba(148, 163, 184, 0.13), rgba(148, 163, 184, 0.13));
    }

    .live-funnel-mobile-app .lfm-mobile-hero--tracking.is-period-loading .lfm-tracking-trend-card::before {
        background:
            linear-gradient(90deg, transparent, rgba(191, 219, 254, 0.12), transparent) 0 0 / 220% 100% no-repeat,
            linear-gradient(rgba(148, 163, 184, 0.13), rgba(148, 163, 184, 0.13)) 0 1px / 32px 32px no-repeat,
            linear-gradient(rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.14)) 44px 3px / 64px 20px no-repeat,
            linear-gradient(rgba(148, 163, 184, 0.10), rgba(148, 163, 184, 0.10)) 44px 30px / 86px 10px no-repeat;
    }

    .live-funnel-mobile-app .lfm-mobile-hero--tracking.is-period-loading .lfm-tracking-trend-card::after {
        background:
            linear-gradient(90deg, transparent, rgba(191, 219, 254, 0.10), transparent) 0 0 / 220% 100% no-repeat,
            linear-gradient(rgba(148, 163, 184, 0.10), rgba(148, 163, 184, 0.10)) 11px 13px / 52px 11px no-repeat,
            linear-gradient(rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.14)) calc(100% - 58px) 11px / 47px 15px no-repeat,
            linear-gradient(rgba(148, 163, 184, 0.055), rgba(148, 163, 184, 0.055)) 0 0 / 100% 100% no-repeat;
    }
}

@media (max-width: 390px) {
    .live-funnel-mobile-app .lfm-tracking-kpi-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .live-funnel-mobile-app .lfm-tracking-kpi-card,
    .live-funnel-mobile-app .lfm-tracking-trend-card {
        min-height: 118px;
    }

    .live-funnel-mobile-app .lfm-tracking-trend-card {
        align-content: center;
    }
}

/* Tracking widget interaction pass: richer carousel cards without touching the KPI header. */
.live-funnel-mobile-app .lfm-chart-shell {
    position: relative;
    display: grid;
    min-height: 132px;
    align-items: end;
    padding: 4px 4px 0;
}

.live-funnel-mobile-app .lfm-line-chart {
    height: 104px;
}

.live-funnel-mobile-app .lfm-line-chart-area {
    fill: rgba(37, 99, 235, 0.12);
}

.live-funnel-mobile-app .lfm-line-chart-line {
    fill: none;
    stroke: var(--lfm-primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.live-funnel-mobile-app .lfm-chart-points {
    position: absolute;
    inset: 4px 4px 24px;
    pointer-events: none;
}

.live-funnel-mobile-app .lfm-chart-points button {
    position: absolute;
    left: var(--lfm-x);
    top: var(--lfm-y);
    width: 22px;
    height: 22px;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 999px;
    background: transparent;
    pointer-events: auto;
    cursor: pointer;
}

.live-funnel-mobile-app .lfm-chart-points button::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: inherit;
    background: #93c5fd;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    opacity: 0;
    transition: opacity 160ms ease, box-shadow 160ms ease, inset 160ms ease;
}

.live-funnel-mobile-app .lfm-chart-points button.is-active::before,
.live-funnel-mobile-app .lfm-chart-points button:focus-visible::before {
    inset: 5px;
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.16), 0 0 18px rgba(59, 130, 246, 0.32);
}

.live-funnel-mobile-app .lfm-chart-points span {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 7px);
    min-width: 76px;
    transform: translateX(-50%) translateY(4px);
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 999px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--lfm-text);
    font-size: 10px;
    font-weight: 860;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    transition: opacity 160ms ease, transform 160ms ease;
}

.live-funnel-mobile-app .lfm-chart-points button.is-active span,
.live-funnel-mobile-app .lfm-chart-points button:focus-visible span {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.live-funnel-mobile-app .lfm-chart-focus {
    min-height: 20px;
    color: var(--lfm-muted);
    font-size: 11px;
    font-weight: 850;
    text-align: center;
}

.live-funnel-mobile-app .lfm-mini-bars button,
.live-funnel-mobile-app .lfm-day-bars button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.live-funnel-mobile-app .lfm-mini-bars button {
    display: grid;
    grid-template-columns: minmax(70px, 1fr) minmax(82px, 1.3fr) minmax(28px, auto);
    align-items: center;
    gap: 10px;
    min-height: 31px;
    border: 1px solid rgba(96, 165, 250, 0.10);
    border-radius: 15px;
    padding: 5px 7px;
    background: rgba(255, 255, 255, 0.20);
    text-align: left;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.live-funnel-mobile-app .lfm-mini-bars button.is-active,
.live-funnel-mobile-app .lfm-mini-bars button:focus-visible {
    border-color: rgba(96, 165, 250, 0.24);
    background: rgba(37, 99, 235, 0.10);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.live-funnel-mobile-app .lfm-mini-bars button:active,
.live-funnel-mobile-app .lfm-day-bars button:active {
    transform: scale(0.98);
}

.live-funnel-mobile-app .lfm-mini-bars button span,
.live-funnel-mobile-app .lfm-mini-bars button strong {
    overflow: hidden;
    color: var(--lfm-text);
    font-size: 12px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-funnel-mobile-app .lfm-mini-bars button strong {
    color: var(--lfm-muted);
    text-align: right;
}

.live-funnel-mobile-app .lfm-mini-bars button i {
    height: 11px;
    border-radius: 999px;
    background: linear-gradient(90deg, #60a5fa var(--lfm-bar), rgba(100, 116, 139, 0.16) var(--lfm-bar));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 7px 14px rgba(37, 99, 235, 0.08);
}

.live-funnel-mobile-app .lfm-day-bars {
    align-items: stretch;
    min-height: 116px;
}

.live-funnel-mobile-app .lfm-day-bars button {
    display: grid;
    grid-template-rows: 1fr auto auto;
    flex: 1 1 0;
    gap: 5px;
    align-items: end;
    min-width: 0;
    height: 116px;
    border: 1px solid transparent;
    border-radius: 17px;
    padding: 7px 4px 6px;
    background: transparent;
    color: var(--lfm-muted);
    text-align: center;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.live-funnel-mobile-app .lfm-day-bars button.is-active,
.live-funnel-mobile-app .lfm-day-bars button:focus-visible {
    border-color: rgba(96, 165, 250, 0.20);
    background: rgba(37, 99, 235, 0.085);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.065);
}

.live-funnel-mobile-app .lfm-day-bars button i {
    display: block;
    width: 100%;
    min-height: 10px;
    height: var(--lfm-bar);
    align-self: end;
    border-radius: 999px 999px 8px 8px;
    background: linear-gradient(180deg, #93c5fd, var(--lfm-primary));
    box-shadow: 0 9px 16px rgba(37, 99, 235, 0.13);
}

.live-funnel-mobile-app .lfm-day-bars button strong {
    color: var(--lfm-text);
    font-size: 11px;
    font-weight: 920;
    line-height: 1;
}

.live-funnel-mobile-app .lfm-day-bars button span {
    overflow: hidden;
    color: var(--lfm-muted);
    font-size: 9px;
    font-weight: 780;
    text-overflow: ellipsis;
}

.live-funnel-mobile-app .lfm-device-donut-wrap {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-height: 116px;
}

.live-funnel-mobile-app .lfm-device-donut {
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, var(--lfm-card) 0 49%, transparent 50%),
        conic-gradient(#60a5fa 0 var(--lfm-mobile), #2563eb var(--lfm-mobile) calc(var(--lfm-mobile) + var(--lfm-desktop)), rgba(100, 116, 139, 0.18) calc(var(--lfm-mobile) + var(--lfm-desktop)) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.48),
        0 14px 28px rgba(37, 99, 235, 0.14);
}

.live-funnel-mobile-app .lfm-device-donut span {
    color: var(--lfm-text);
    font-size: 20px;
    font-weight: 950;
}

.live-funnel-mobile-app .lfm-device-legend {
    display: grid;
    gap: 8px;
}

.live-funnel-mobile-app .lfm-device-legend span {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    border: 1px solid rgba(96, 165, 250, 0.10);
    border-radius: 15px;
    padding: 5px 7px;
    background: rgba(255, 255, 255, 0.20);
    color: var(--lfm-muted);
    font-size: 11px;
    font-weight: 850;
}

.live-funnel-mobile-app .lfm-device-legend span i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.10);
}

.live-funnel-mobile-app .lfm-device-legend span:nth-child(2) i {
    background: #2563eb;
}

.live-funnel-mobile-app .lfm-device-legend strong {
    color: var(--lfm-text);
    font-size: 12px;
    font-weight: 930;
}

@media (prefers-color-scheme: dark) {
    .live-funnel-mobile-app .lfm-chart-points span {
        border-color: rgba(147, 197, 253, 0.14);
        background: rgba(15, 23, 42, 0.88);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    }

    .live-funnel-mobile-app .lfm-mini-bars button,
    .live-funnel-mobile-app .lfm-device-legend span {
        border-color: rgba(147, 197, 253, 0.10);
        background: rgba(15, 23, 42, 0.28);
    }

    .live-funnel-mobile-app .lfm-mini-bars button.is-active,
    .live-funnel-mobile-app .lfm-mini-bars button:focus-visible,
    .live-funnel-mobile-app .lfm-day-bars button.is-active,
    .live-funnel-mobile-app .lfm-day-bars button:focus-visible {
        border-color: rgba(147, 197, 253, 0.22);
        background: rgba(96, 165, 250, 0.12);
        box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.07);
    }

    .live-funnel-mobile-app .lfm-device-donut {
        background:
            radial-gradient(circle at center, rgba(15, 23, 42, 0.90) 0 49%, transparent 50%),
            conic-gradient(#93c5fd 0 var(--lfm-mobile), #3b82f6 var(--lfm-mobile) calc(var(--lfm-mobile) + var(--lfm-desktop)), rgba(148, 163, 184, 0.16) calc(var(--lfm-mobile) + var(--lfm-desktop)) 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.055),
            0 16px 34px rgba(0, 0, 0, 0.20);
    }
}

/* Mobile tracking widgets: compact, clearer carousel cards below the KPI header. */
.live-funnel-mobile-app .lfm-tracking-carousel {
    grid-auto-columns: minmax(86%, 1fr);
    gap: 10px;
    margin-top: 10px;
    scroll-snap-type: x mandatory;
}

.live-funnel-mobile-app .lfm-tracking-slide {
    min-height: 196px;
    align-content: start;
    gap: 10px;
    border-radius: 28px;
    padding: 14px;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.54)),
        var(--lfm-card);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 12px 28px rgba(15, 23, 42, 0.07);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.live-funnel-mobile-app .lfm-tracking-slide:active {
    transform: scale(0.985);
}

.live-funnel-mobile-app .lfm-slide-head {
    align-items: start;
    gap: 10px;
}

.live-funnel-mobile-app .lfm-slide-head span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.live-funnel-mobile-app .lfm-slide-head em {
    color: var(--lfm-text);
    font-size: 13px;
    font-style: normal;
    font-weight: 920;
    letter-spacing: -0.01em;
}

.live-funnel-mobile-app .lfm-slide-head small {
    color: var(--lfm-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.live-funnel-mobile-app .lfm-slide-head strong {
    max-width: 52%;
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(255, 255, 255, 0.46);
    color: var(--lfm-text);
    font-size: 13px;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.live-funnel-mobile-app .lfm-line-chart {
    height: 108px;
    margin-top: 2px;
    filter: drop-shadow(0 8px 14px rgba(37, 99, 235, 0.12));
}

.live-funnel-mobile-app .lfm-chart-empty {
    min-height: 108px;
    border: 1px dashed rgba(100, 116, 139, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.22);
}

.live-funnel-mobile-app .lfm-mini-bars {
    gap: 8px;
    margin-top: 2px;
}

.live-funnel-mobile-app .lfm-mini-bars div {
    grid-template-columns: minmax(70px, 1fr) minmax(78px, 1.25fr) minmax(28px, auto);
    min-height: 28px;
    border-radius: 14px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.22);
}

.live-funnel-mobile-app .lfm-mini-bars span,
.live-funnel-mobile-app .lfm-mini-bars strong {
    font-size: 12px;
}

.live-funnel-mobile-app .lfm-mini-bars i {
    height: 7px;
}

.live-funnel-mobile-app .lfm-day-bars {
    min-height: 112px;
    gap: 5px;
    padding-top: 2px;
}

.live-funnel-mobile-app .lfm-day-bars div {
    height: 112px;
    gap: 6px;
}

.live-funnel-mobile-app .lfm-day-bars i {
    min-height: 8px;
    border-radius: 999px 999px 7px 7px;
}

.live-funnel-mobile-app .lfm-device-gauge {
    width: 126px;
    height: 64px;
    margin: 2px auto 2px;
}

.live-funnel-mobile-app .lfm-device-gauge span {
    width: 78px;
    height: 40px;
    font-size: 19px;
}

.live-funnel-mobile-app .lfm-device-pills {
    gap: 6px;
    justify-content: center;
}

.live-funnel-mobile-app .lfm-device-pills span {
    min-height: 24px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.20);
    font-size: 10px;
}

.live-funnel-mobile-app .lfm-carousel-dots {
    gap: 6px;
    margin: 8px 0 1px;
}

.live-funnel-mobile-app .lfm-carousel-dots span {
    width: 6px;
    height: 6px;
    background: rgba(100, 116, 139, 0.24);
    transition: width 170ms ease, background 170ms ease, transform 170ms ease;
}

.live-funnel-mobile-app .lfm-carousel-dots span.is-active {
    width: 24px;
    transform: translateY(-1px);
    background: linear-gradient(90deg, #60a5fa, var(--lfm-primary));
}

@media (hover: hover) {
    .live-funnel-mobile-app .lfm-tracking-slide:hover {
        border-color: rgba(96, 165, 250, 0.22);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.66),
            0 14px 32px rgba(37, 99, 235, 0.09);
        transform: translateY(-1px);
    }
}

@media (prefers-color-scheme: dark) {
    .live-funnel-mobile-app .lfm-tracking-slide {
        border-color: rgba(147, 197, 253, 0.11);
        background:
            radial-gradient(ellipse at 18% 0%, rgba(59, 130, 246, 0.08), transparent 58%),
            linear-gradient(150deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.62));
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.055),
            0 13px 30px rgba(0, 0, 0, 0.18);
    }

    .live-funnel-mobile-app .lfm-slide-head strong,
    .live-funnel-mobile-app .lfm-mini-bars div,
    .live-funnel-mobile-app .lfm-device-pills span {
        border-color: rgba(147, 197, 253, 0.10);
        background: rgba(15, 23, 42, 0.30);
    }

    .live-funnel-mobile-app .lfm-chart-empty {
        border-color: rgba(147, 197, 253, 0.12);
        background: rgba(15, 23, 42, 0.24);
    }
}

/* Tracking widget polish: bounded chart tooltips and segmented SVG donut. */
.live-funnel-mobile-app .lfm-slide-head .lfm-slide-metric {
    display: grid;
    gap: 2px;
    min-width: 78px;
    max-width: 46%;
    padding: 6px 10px;
    text-align: right;
}

.live-funnel-mobile-app .lfm-slide-head .lfm-slide-metric small {
    overflow: hidden;
    color: var(--lfm-muted);
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-funnel-mobile-app .lfm-slide-head .lfm-slide-metric b {
    color: var(--lfm-text);
    font-size: 15px;
    font-weight: 950;
    line-height: 1;
}

.live-funnel-mobile-app .lfm-chart-shell {
    min-height: 126px;
    padding: 6px 8px 0;
    overflow: visible;
}

.live-funnel-mobile-app .lfm-line-chart {
    height: 98px;
    overflow: visible;
}

.live-funnel-mobile-app .lfm-line-chart-area {
    fill: rgba(37, 99, 235, 0.10);
}

.live-funnel-mobile-app .lfm-line-chart-line {
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.live-funnel-mobile-app .lfm-chart-points {
    inset: 12px 12px 32px;
}

.live-funnel-mobile-app .lfm-chart-points button {
    width: 24px;
    height: 24px;
}

.live-funnel-mobile-app .lfm-chart-points span {
    min-width: 78px;
    max-width: 112px;
    padding: 6px 9px;
    text-align: center;
    z-index: 5;
}

.live-funnel-mobile-app .lfm-chart-points button.is-edge-start span {
    left: 0;
    transform: translateX(0) translateY(4px);
}

.live-funnel-mobile-app .lfm-chart-points button.is-edge-start.is-active span,
.live-funnel-mobile-app .lfm-chart-points button.is-edge-start:focus-visible span {
    transform: translateX(0) translateY(0);
}

.live-funnel-mobile-app .lfm-chart-points button.is-edge-end span {
    right: 0;
    left: auto;
    transform: translateX(0) translateY(4px);
}

.live-funnel-mobile-app .lfm-chart-points button.is-edge-end.is-active span,
.live-funnel-mobile-app .lfm-chart-points button.is-edge-end:focus-visible span {
    transform: translateX(0) translateY(0);
}

.live-funnel-mobile-app .lfm-chart-period {
    min-height: 20px;
    margin-top: 8px;
    color: var(--lfm-muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0;
    text-align: center;
}

.live-funnel-mobile-app .lfm-device-donut {
    position: relative;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.live-funnel-mobile-app .lfm-device-donut svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: rotate(-90deg);
}

.live-funnel-mobile-app .lfm-device-donut circle {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    transform-origin: 50% 50%;
}

.live-funnel-mobile-app .lfm-device-donut-track {
    stroke: rgba(100, 116, 139, 0.13);
}

.live-funnel-mobile-app .lfm-device-donut-mobile {
    stroke: #60a5fa;
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.26));
}

.live-funnel-mobile-app .lfm-device-donut-desktop {
    stroke: #2563eb;
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.22));
}

.live-funnel-mobile-app .lfm-device-donut span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

@media (prefers-color-scheme: dark) {
    .live-funnel-mobile-app .lfm-line-chart-area {
        fill: rgba(96, 165, 250, 0.105);
    }

    .live-funnel-mobile-app .lfm-device-donut {
        background: transparent;
        box-shadow: none;
    }

    .live-funnel-mobile-app .lfm-device-donut-track {
        stroke: rgba(148, 163, 184, 0.15);
    }

    .live-funnel-mobile-app .lfm-device-donut span {
        border-color: rgba(147, 197, 253, 0.13);
        background: rgba(15, 23, 42, 0.72);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
}

/* Final override: month tracking interactions stay swipeable in readable 7-day pages. */
.live-funnel-mobile-app .lfm-day-bars.lfm-day-bars--month {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    justify-content: start;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    min-height: 116px;
    padding: 2px 0 6px;
}

.live-funnel-mobile-app .lfm-day-bars.lfm-day-bars--month::-webkit-scrollbar {
    display: none;
}

.live-funnel-mobile-app .lfm-day-bars.lfm-day-bars--month .lfm-day-bars-page {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    min-width: 0;
    width: 100%;
    height: 116px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.live-funnel-mobile-app .lfm-day-bars.lfm-day-bars--month button {
    flex: none;
    width: 100%;
    min-width: 0;
    padding-inline: 3px;
}

.live-funnel-mobile-app .lfm-day-bars.lfm-day-bars--month button strong {
    font-size: 10px;
}

.live-funnel-mobile-app .lfm-day-bars.lfm-day-bars--month button span {
    overflow: visible;
    font-size: 8.5px;
    line-height: 1.05;
    text-overflow: clip;
    white-space: nowrap;
}

@media (max-width: 374px) {
    .live-funnel-mobile-app .lfm-day-bars.lfm-day-bars--month .lfm-day-bars-page {
        gap: 5px;
    }

    .live-funnel-mobile-app .lfm-day-bars.lfm-day-bars--month button {
        border-radius: 15px;
        padding-inline: 2px;
    }

    .live-funnel-mobile-app .lfm-day-bars.lfm-day-bars--month button span {
        font-size: 8px;
    }
}

/* Device widget polish: balanced donut gaps and compact premium legend. */
.live-funnel-mobile-app .lfm-device-donut-wrap {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 12px;
    min-height: 112px;
}

.live-funnel-mobile-app .lfm-device-donut {
    width: 98px;
    height: 98px;
}

.live-funnel-mobile-app .lfm-device-donut svg {
    filter: drop-shadow(0 12px 24px rgba(37, 99, 235, 0.12));
}

.live-funnel-mobile-app .lfm-device-donut circle {
    stroke-width: 11.5;
    stroke-linecap: round;
}

.live-funnel-mobile-app .lfm-device-donut-track {
    stroke: rgba(96, 165, 250, 0.13);
}

.live-funnel-mobile-app .lfm-device-donut-mobile {
    stroke: #60a5fa;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.24));
}

.live-funnel-mobile-app .lfm-device-donut-desktop {
    stroke: #2563eb;
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.22));
}

.live-funnel-mobile-app .lfm-device-donut span {
    width: 56px;
    height: 56px;
    border-color: rgba(96, 165, 250, 0.14);
    background: rgba(255, 255, 255, 0.62);
    font-size: 18px;
    letter-spacing: -0.03em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 10px 22px rgba(15, 23, 42, 0.06);
}

.live-funnel-mobile-app .lfm-device-legend {
    gap: 6px;
    align-content: center;
}

.live-funnel-mobile-app .lfm-device-legend span {
    grid-template-columns: 9px minmax(0, 1fr) auto;
    gap: 7px;
    min-height: 28px;
    border-color: rgba(96, 165, 250, 0.12);
    border-radius: 999px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.26);
    color: var(--lfm-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.live-funnel-mobile-app .lfm-device-legend span b {
    overflow: hidden;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-funnel-mobile-app .lfm-device-legend span i {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
}

.live-funnel-mobile-app .lfm-device-legend span:nth-child(2) i {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.live-funnel-mobile-app .lfm-device-legend strong {
    font-size: 12px;
    letter-spacing: -0.02em;
}

@media (prefers-color-scheme: dark) {
    .live-funnel-mobile-app .lfm-device-donut svg {
        filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.20));
    }

    .live-funnel-mobile-app .lfm-device-donut-track {
        stroke: rgba(147, 197, 253, 0.14);
    }

    .live-funnel-mobile-app .lfm-device-donut span {
        border-color: rgba(147, 197, 253, 0.14);
        background: rgba(15, 23, 42, 0.76);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.07),
            0 12px 24px rgba(0, 0, 0, 0.20);
    }

    .live-funnel-mobile-app .lfm-device-legend span {
        border-color: rgba(147, 197, 253, 0.12);
        background: rgba(15, 23, 42, 0.34);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
}

/* Tracking vertical rhythm: calmer first-screen composition without changing widget logic. */
.live-funnel-mobile-app .lfm-main[data-lfm-tab="tracking"] {
    gap: 0;
}

.live-funnel-mobile-app .lfm-main[data-lfm-tab="tracking"] .lfm-mobile-hero--tracking {
    margin-bottom: 18px;
}

.live-funnel-mobile-app .lfm-main[data-lfm-tab="tracking"] .lfm-tracking-carousel {
    margin-top: 0;
    margin-bottom: 0;
}

.live-funnel-mobile-app .lfm-main[data-lfm-tab="tracking"] .lfm-carousel-dots {
    margin: 12px 0 18px;
}

.live-funnel-mobile-app .lfm-main[data-lfm-tab="tracking"] .lfm-tracking-detail-card {
    margin-top: 0;
}

.live-funnel-mobile-app .lfm-main[data-lfm-tab="tracking"] .lfm-tracking-detail-card + .lfm-tracking-detail-card {
    margin-top: 12px;
}

@media (max-width: 374px) {
    .live-funnel-mobile-app .lfm-main[data-lfm-tab="tracking"] .lfm-mobile-hero--tracking {
        margin-bottom: 16px;
    }

    .live-funnel-mobile-app .lfm-main[data-lfm-tab="tracking"] .lfm-carousel-dots {
        margin: 11px 0 16px;
    }
}

/* Tracking widget compare: one persisted mode for previous-period or global average. */
.live-funnel-mobile-app .lfm-carousel-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 12px 0 18px;
}

.live-funnel-mobile-app .lfm-carousel-controls .lfm-carousel-dots {
    margin: 0;
}

.live-funnel-mobile-app .lfm-carousel-controls-spacer {
    justify-self: end;
    width: min(100%, 142px);
}

.live-funnel-mobile-app .lfm-compare-toggle {
    appearance: none;
    -webkit-appearance: none;
    justify-self: start;
    max-width: 154px;
    min-height: 30px;
    border: 1px solid rgba(96, 165, 250, 0.14);
    border-radius: 999px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.40);
    color: var(--lfm-muted);
    font: inherit;
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.live-funnel-mobile-app .lfm-compare-toggle:active {
    transform: scale(0.97);
}

.live-funnel-mobile-app .lfm-compare-toggle[aria-pressed="true"] {
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(37, 99, 235, 0.12);
    color: var(--lfm-primary);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.52),
        0 0 0 4px rgba(37, 99, 235, 0.06);
}

.live-funnel-mobile-app .lfm-compare-toggle--average {
    justify-self: end;
}

.live-funnel-mobile-app .lfm-compare-layer,
.live-funnel-mobile-app .lfm-average-layer {
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.live-funnel-mobile-app.is-tracking-compare-previous .lfm-compare-layer,
.live-funnel-mobile-app .is-tracking-compare-previous .lfm-compare-layer {
    opacity: 1;
}

.live-funnel-mobile-app.is-tracking-compare-average .lfm-average-layer,
.live-funnel-mobile-app .is-tracking-compare-average .lfm-average-layer {
    opacity: 1;
}

.live-funnel-mobile-app .lfm-line-chart-previous {
    fill: none;
    stroke: rgba(100, 116, 139, 0.55);
    stroke-width: 2;
    stroke-dasharray: 4 5;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.live-funnel-mobile-app .lfm-line-chart-average {
    fill: none;
    stroke: rgba(37, 99, 235, 0.44);
    stroke-width: 2;
    stroke-dasharray: 1 6;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.live-funnel-mobile-app .lfm-chart-points span small.lfm-compare-layer,
.live-funnel-mobile-app .lfm-chart-points span small.lfm-average-layer {
    display: block;
    margin-top: 3px;
    color: var(--lfm-muted);
    font-size: 9px;
    font-weight: 820;
}

.live-funnel-mobile-app .lfm-mini-bars .lfm-bar-stack {
    position: relative;
    display: block;
    height: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.live-funnel-mobile-app .lfm-mini-bars .lfm-bar-stack i {
    position: absolute;
    inset: 0;
    height: 100%;
    border-radius: inherit;
    box-shadow: none;
}

.live-funnel-mobile-app .lfm-mini-bars .lfm-mini-bar-previous {
    background: linear-gradient(90deg, rgba(100, 116, 139, 0.35) var(--lfm-prev-bar), transparent var(--lfm-prev-bar));
}

.live-funnel-mobile-app .lfm-mini-bars .lfm-mini-bar-average {
    top: 4px;
    bottom: 4px;
    height: auto;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.32) var(--lfm-avg-bar), transparent var(--lfm-avg-bar));
}

.live-funnel-mobile-app .lfm-mini-bars .lfm-mini-bar-current {
    background: linear-gradient(90deg, #60a5fa var(--lfm-bar), transparent var(--lfm-bar));
}

.live-funnel-mobile-app .lfm-day-bar-stack {
    display: grid;
    width: 100%;
    height: 100%;
    align-items: end;
}

.live-funnel-mobile-app .lfm-day-bar-stack i {
    grid-area: 1 / 1;
    align-self: end;
    justify-self: center;
    width: 100%;
}

.live-funnel-mobile-app .lfm-day-bars button .lfm-day-bar-previous {
    height: var(--lfm-prev-bar);
    border: 1px solid rgba(100, 116, 139, 0.16);
    background: rgba(100, 116, 139, 0.20);
    box-shadow: none;
}

.live-funnel-mobile-app .lfm-day-bars button .lfm-day-bar-average {
    height: var(--lfm-avg-bar);
    width: 52%;
    border: 1px solid rgba(37, 99, 235, 0.14);
    background: rgba(37, 99, 235, 0.16);
    box-shadow: none;
}

.live-funnel-mobile-app .lfm-day-bars button .lfm-day-bar-current {
    height: var(--lfm-bar);
    background: linear-gradient(180deg, #93c5fd, var(--lfm-primary));
}

.live-funnel-mobile-app.is-tracking-compare-previous .lfm-day-bars button .lfm-day-bar-current,
.live-funnel-mobile-app .is-tracking-compare-previous .lfm-day-bars button .lfm-day-bar-current,
.live-funnel-mobile-app.is-tracking-compare-average .lfm-day-bars button .lfm-day-bar-current,
.live-funnel-mobile-app .is-tracking-compare-average .lfm-day-bars button .lfm-day-bar-current {
    width: 72%;
}

.live-funnel-mobile-app .lfm-device-legend span b small.lfm-compare-layer,
.live-funnel-mobile-app .lfm-device-legend span b small.lfm-average-layer {
    display: none;
    margin-top: 3px;
    color: var(--lfm-muted);
    font-size: 8.5px;
    font-weight: 820;
    line-height: 1;
}

.live-funnel-mobile-app.is-tracking-compare-previous .lfm-device-legend span b small.lfm-compare-layer,
.live-funnel-mobile-app .is-tracking-compare-previous .lfm-device-legend span b small.lfm-compare-layer {
    display: block;
    opacity: 1;
}

.live-funnel-mobile-app.is-tracking-compare-average .lfm-device-legend span b small.lfm-average-layer,
.live-funnel-mobile-app .is-tracking-compare-average .lfm-device-legend span b small.lfm-average-layer {
    display: block;
    opacity: 1;
}

@media (prefers-color-scheme: dark) {
    .live-funnel-mobile-app .lfm-compare-toggle {
        border-color: rgba(147, 197, 253, 0.12);
        background: rgba(15, 23, 42, 0.32);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
    }

    .live-funnel-mobile-app .lfm-compare-toggle[aria-pressed="true"] {
        border-color: rgba(147, 197, 253, 0.26);
        background: rgba(37, 99, 235, 0.18);
        color: #93c5fd;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 0 0 4px rgba(59, 130, 246, 0.07);
    }

    .live-funnel-mobile-app .lfm-line-chart-previous {
        stroke: rgba(148, 163, 184, 0.58);
    }

    .live-funnel-mobile-app .lfm-line-chart-average {
        stroke: rgba(147, 197, 253, 0.50);
    }

    .live-funnel-mobile-app .lfm-mini-bars .lfm-bar-stack {
        background: rgba(15, 23, 42, 0.48);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .live-funnel-mobile-app .lfm-day-bars button .lfm-day-bar-previous {
        border-color: rgba(148, 163, 184, 0.14);
        background: rgba(148, 163, 184, 0.18);
    }

    .live-funnel-mobile-app .lfm-day-bars button .lfm-day-bar-average {
        border-color: rgba(147, 197, 253, 0.14);
        background: rgba(96, 165, 250, 0.18);
    }
}
