/* Home screen — single-path focus: identity → today → main CTA → coach → stats */

body.app-dashboard-home #homePage,
body.app-dashboard-home #videosPage {
    background-color: #000000;
    background-image:
        radial-gradient(ellipse 85% 55% at 50% -5%, rgba(61, 214, 140, 0.09) 0%, transparent 52%),
        radial-gradient(ellipse 70% 45% at 80% 60%, rgba(34, 211, 238, 0.04) 0%, transparent 45%),
        radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 28px;
    background-position: 0 0, 0 0, 0 0;
}

/* Progress (session history) — align with signed-in home layout */
body.app-dashboard-home .videos-page-inner {
    width: 100%;
    max-width: min(44rem, 96vw);
    margin: 0 auto;
    padding: 0.5rem clamp(0.75rem, 3vw, 1.5rem) 3rem;
    animation: fadeInUp 0.2s ease-out;
}

body.app-dashboard-home .videos-page-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

body.app-dashboard-home .videos-page-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

body.app-dashboard-home .videos-page-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.5rem, 5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #f8fafc;
    text-shadow: 0 0 42px rgba(61, 214, 140, 0.2);
}

body.app-dashboard-home .videos-page-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.45;
}

body.app-dashboard-home #videosPage .videos-list {
    margin-top: 0.25rem;
}

body.app-dashboard-home .home-guest-block {
    text-align: center;
    max-width: 28rem;
    margin: 0 auto;
    padding: 1rem 0 2rem;
}

body.app-dashboard-home .home-signed-in {
    width: 100%;
    max-width: min(44rem, 96vw);
    margin: 0 auto;
    padding: 0.5rem clamp(0.75rem, 3vw, 1.5rem) 3rem;
}

body.app-dashboard-home .home-section-gap {
    margin-top: 2rem;
}

body.app-dashboard-home .home-section-gap-lg {
    margin-top: 2.5rem;
}

/* Section 1 — identity */
body.app-dashboard-home .home-breadcrumb {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #475569;
    text-align: center;
}

body.app-dashboard-home .home-identity {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    font-size: 0.9rem;
    color: var(--text-secondary, #94a3b8);
}

body.app-dashboard-home .home-identity-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    text-align: left;
}

body.app-dashboard-home .home-avatar {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0c1812;
    background: linear-gradient(145deg, #4af0a8 0%, #2eb574 55%, #1e8f5c 100%);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.45);
}

body.app-dashboard-home .home-identity-text {
    min-width: 0;
    flex: 1;
    max-width: 16rem;
}

body.app-dashboard-home .home-greeting {
    margin: 0 0 0.15rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.01em;
}

body.app-dashboard-home .home-identity-name {
    font-weight: 700;
    font-size: 1.28rem;
    letter-spacing: -0.02em;
    color: #f8fafc;
    line-height: 1.2;
}

body.app-dashboard-home .home-identity-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1.1rem;
    font-size: 0.85rem;
}

body.app-dashboard-home .home-streak-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.app-dashboard-home .home-streak-wrap--active {
    border-color: rgba(251, 146, 60, 0.45);
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.12) 0%, rgba(234, 88, 12, 0.08) 100%);
    box-shadow: 0 0 20px rgba(251, 146, 60, 0.18);
}

body.app-dashboard-home .home-streak-wrap--active .home-streak-flame {
    display: inline-block;
    animation: home-streak-pulse 2.2s ease-in-out infinite;
}

@keyframes home-streak-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.12);
    }
}

body.app-dashboard-home .home-streak-wrap strong {
    color: var(--accent-primary, #3dd68c);
    font-weight: 600;
}

body.app-dashboard-home .home-streak-wrap--active strong {
    color: #fdba74;
}

body.app-dashboard-home .home-identity-meta-xp strong {
    color: var(--accent-primary, #3dd68c);
    font-weight: 600;
}

body.app-dashboard-home .home-best-streak {
    font-size: 0.78rem;
    color: #64748b;
}

/* Glance strip — 4 tiles */
body.app-dashboard-home .home-glance-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.25rem;
}

@media (max-width: 520px) {
    body.app-dashboard-home .home-glance-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.app-dashboard-home .home-quick-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        gap: 0.45rem;
    }

    body.app-dashboard-home .home-quick-link {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

body.app-dashboard-home .home-glance-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.65rem 0.35rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body.app-dashboard-home .home-glance-tile:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.14);
}

body.app-dashboard-home .home-glance-tile--streak {
    border-color: rgba(251, 146, 60, 0.22);
    background: linear-gradient(165deg, rgba(251, 146, 60, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
}

body.app-dashboard-home .home-glance-tile--best {
    border-color: rgba(34, 211, 238, 0.2);
    background: linear-gradient(165deg, rgba(34, 211, 238, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

body.app-dashboard-home .home-glance-tile--xp {
    border-color: rgba(61, 214, 140, 0.28);
    background: linear-gradient(165deg, rgba(61, 214, 140, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
}

body.app-dashboard-home .home-glance-tile--focus {
    border-color: rgba(167, 139, 250, 0.22);
    background: linear-gradient(165deg, rgba(167, 139, 250, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
}

body.app-dashboard-home .home-glance-value {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #f1f5f9;
    line-height: 1.1;
}

body.app-dashboard-home .home-glance-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}

/* Insights card — heatmap, exam, weekly, buddy, badges, tips */
body.app-dashboard-home .home-insights-card {
    border: 1px solid rgba(34, 211, 238, 0.12);
    background:
        linear-gradient(155deg, rgba(34, 211, 238, 0.06) 0%, transparent 45%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

body.app-dashboard-home .home-insights-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

body.app-dashboard-home .home-insights-head__icon {
    font-size: 0.9rem;
    color: #22d3ee;
    text-shadow: 0 0 14px rgba(34, 211, 238, 0.35);
}

body.app-dashboard-home .home-card-title--insights {
    margin: 0;
}

body.app-dashboard-home .home-insight-label {
    margin: 0 0 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

body.app-dashboard-home .home-insight-block {
    margin-bottom: 1rem;
}

body.app-dashboard-home .home-heatmap-week {
    display: flex;
    gap: 0.35rem;
    align-items: stretch;
    height: 76px;
}

body.app-dashboard-home .home-heatmap-cell {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

body.app-dashboard-home .home-heatmap-cell__fill {
    width: 100%;
    min-height: 4px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, rgba(94, 234, 212, 0.95) 0%, rgba(46, 181, 116, 0.85) 100%);
    align-self: stretch;
}

body.app-dashboard-home .home-heatmap-cell__dow {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #64748b;
    padding: 0.2rem 0 0.35rem;
    text-transform: uppercase;
}

body.app-dashboard-home .home-insight-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
}

body.app-dashboard-home .home-insight-label-inline {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    min-width: 5.5rem;
}

body.app-dashboard-home .home-insight-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

body.app-dashboard-home .home-insight-pill--exam {
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.14) 0%, rgba(255, 255, 255, 0.03) 100%);
    color: #fef3c7;
}

body.app-dashboard-home .home-insight-weekly-bar {
    flex: 1;
    min-width: 5rem;
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

body.app-dashboard-home .home-insight-weekly-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22d3ee, #3dd68c);
    transition: width 0.4s ease;
}

body.app-dashboard-home .home-insight-weekly-meta {
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
}

body.app-dashboard-home .home-insight-buddy {
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.22);
}

body.app-dashboard-home .home-last-session-btn {
    flex: 1;
    min-width: 0;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

body.app-dashboard-home .home-last-session-btn:hover {
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.08);
}

body.app-dashboard-home .home-draft-tests-btn {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.08);
    color: #fef3c7;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

body.app-dashboard-home .home-draft-tests-btn:hover {
    background: rgba(251, 191, 36, 0.14);
}

body.app-dashboard-home .home-badges-block {
    margin-bottom: 0.75rem;
}

body.app-dashboard-home .home-badges-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

body.app-dashboard-home .home-badge-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.app-dashboard-home .home-dashboard-tip {
    margin: 0 0 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #94a3b8;
    font-style: italic;
    border-left: 3px solid rgba(61, 214, 140, 0.45);
    background: rgba(0, 0, 0, 0.2);
}

body.app-dashboard-home .home-feature-spotlight {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 2rem 0.6rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(61, 214, 140, 0.25);
    background: linear-gradient(135deg, rgba(61, 214, 140, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
}

body.app-dashboard-home .home-feature-spotlight__tag {
    flex-shrink: 0;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #052e1a;
    background: #3dd68c;
}

body.app-dashboard-home .home-feature-spotlight__text {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #cbd5e1;
}

body.app-dashboard-home .home-feature-spotlight__dismiss {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

body.app-dashboard-home .home-feature-spotlight__dismiss:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

/* Overview card — scannable, low prose */
body.app-dashboard-home .home-more-card {
    text-align: left;
}

body.app-dashboard-home .home-more-goals-pill {
    display: inline-block;
    margin: 0 0 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}

body.app-dashboard-home .home-more-level-badge {
    display: none;
    align-items: center;
    margin: 0 0 0.4rem;
    padding: 0.2rem 0.55rem;
    width: fit-content;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    color: #a8b8c8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.app-dashboard-home .home-plan-actions {
    display: none;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.35rem 0 0.55rem;
}

body.app-dashboard-home .home-plan-action-btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(61, 214, 140, 0.35);
    background: rgba(61, 214, 140, 0.08);
    color: #86efac;
    cursor: pointer;
    text-align: left;
    line-height: 1.25;
}

body.app-dashboard-home .home-plan-action-btn:hover {
    background: rgba(61, 214, 140, 0.14);
    border-color: rgba(61, 214, 140, 0.5);
}

body.app-dashboard-home .home-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.app-dashboard-home .home-quick-link {
    padding: 0.45rem 0.75rem;
    font-size: 0.76rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

body.app-dashboard-home .home-quick-link:hover {
    color: #f8fafc;
    border-color: rgba(61, 214, 140, 0.35);
    box-shadow: 0 0 20px rgba(61, 214, 140, 0.12);
    transform: translateY(-1px);
}

body.app-dashboard-home .home-ai-coach-line--secondary {
    margin-top: 0.5rem;
    font-size: 0.84rem;
    color: #94a3b8;
    display: none;
}

body.app-dashboard-home .home-exam-line {
    margin: 0 0 0.25rem;
    font-size: 0.82rem;
    text-align: center;
    color: #a5b4c8;
}

body.app-dashboard-home .home-next-action {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #94a3b8;
    text-align: left;
}

@media (prefers-reduced-motion: reduce) {
    body.app-dashboard-home .home-streak-wrap--active .home-streak-flame {
        animation: none;
    }

    body.app-dashboard-home .home-glance-tile:hover,
    body.app-dashboard-home .home-quick-link:hover,
    body.app-dashboard-home .home-resume-deck-btn:hover,
    body.app-dashboard-home .home-activity-hit:hover,
    body.app-dashboard-home .home-next-step-chip:hover {
        transform: none;
    }
}

/* Cards */
body.app-dashboard-home .home-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.15rem 1.2rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 12px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 0, 0, 0.35);
}

body.app-dashboard-home .home-card-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.85rem;
    text-align: left;
}

/* TODAY */
body.app-dashboard-home .home-today-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

body.app-dashboard-home .home-today-card-title {
    margin-bottom: 0;
}

body.app-dashboard-home .home-today-lab-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: -0.1rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #86efac;
    background: linear-gradient(145deg, rgba(46, 181, 116, 0.18) 0%, rgba(46, 181, 116, 0.06) 100%);
    border: 1px solid rgba(61, 214, 140, 0.4);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

body.app-dashboard-home .home-today-lab-btn:hover {
    background: linear-gradient(145deg, rgba(46, 181, 116, 0.28) 0%, rgba(46, 181, 116, 0.1) 100%);
    border-color: rgba(110, 231, 183, 0.55);
    box-shadow: 0 0 0 1px rgba(61, 214, 140, 0.15);
}

body.app-dashboard-home .home-today-lab-btn:active {
    transform: scale(0.98);
}

body.app-dashboard-home .home-today-lab-btn__arrow {
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 1;
    transform: translateX(0);
    transition: transform 0.2s ease;
}

body.app-dashboard-home .home-today-lab-btn:hover .home-today-lab-btn__arrow {
    transform: translateX(3px);
}

body.app-dashboard-home .home-today-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
}

body.app-dashboard-home .home-today-progress-bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

body.app-dashboard-home .home-today-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--accent-gradient, linear-gradient(135deg, #2eb574 0%, #3dd68c 100%));
    width: 0%;
    transition: width 0.35s ease;
}

body.app-dashboard-home .home-today-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.85rem;
    padding: 1rem 0.75rem;
    text-align: center;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

body.app-dashboard-home .home-empty-visual {
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.85;
}

body.app-dashboard-home .home-empty-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #cbd5e1;
}

body.app-dashboard-home .home-empty-sub {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.4;
}

body.app-dashboard-home .home-today-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

body.app-dashboard-home .home-today-input {
    flex: 1 1 10rem;
    min-width: 0;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e8eef4;
    font-size: 0.88rem;
}

body.app-dashboard-home .home-today-input::placeholder {
    color: #64748b;
}

body.app-dashboard-home .home-today-add {
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: var(--accent-gradient, linear-gradient(135deg, #2eb574 0%, #3dd68c 100%));
    color: #041208;
}

body.app-dashboard-home .home-today-add:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

body.app-dashboard-home .home-today-loading {
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 0.35rem;
}

body.app-dashboard-home .home-today-loading.hidden {
    display: none;
}

body.app-dashboard-home .home-today-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

body.app-dashboard-home .home-today-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    color: #e8eef4;
    transition:
        opacity 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

body.app-dashboard-home .home-today-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

body.app-dashboard-home .home-today-item input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--accent-primary, #3dd68c);
}

body.app-dashboard-home .home-today-item-text {
    flex: 1 1 0;
    min-width: 0;
    color: #e8eef4;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: normal;
}

body.app-dashboard-home .home-signed-in .home-today-item .home-today-item-text {
    color: #e8eef4;
}

body.app-dashboard-home .home-today-item:has(input:checked) .home-today-item-text {
    opacity: 0.55;
    text-decoration: line-through;
    color: #94a3b8;
}

body.app-dashboard-home .home-today-item--pop {
    animation: home-today-pop 0.45s ease;
}

@keyframes home-today-pop {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.app-dashboard-home .home-today-item--pop {
        animation: none;
    }

    body.app-dashboard-home .home-today-lab-btn:hover .home-today-lab-btn__arrow {
        transform: none;
    }
}

body.app-dashboard-home .home-today-item-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

body.app-dashboard-home .home-today-mini {
    padding: 0.15rem 0.4rem;
    font-size: 0.68rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: var(--text-tertiary, #64748b);
    cursor: pointer;
}

body.app-dashboard-home .home-today-mini.danger {
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

/* Main CTA */
body.app-dashboard-home .home-main-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

body.app-dashboard-home .home-session-summary {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    color: #64748b;
    text-align: center;
}

body.app-dashboard-home .home-resume-row {
    width: 100%;
    max-width: 20rem;
    margin-bottom: 0.25rem;
}

body.app-dashboard-home .home-resume-btn {
    width: 100%;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid rgba(61, 214, 140, 0.45);
    background: rgba(61, 214, 140, 0.1);
    color: #86efac;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

body.app-dashboard-home .home-resume-btn:hover {
    background: rgba(61, 214, 140, 0.16);
    border-color: rgba(61, 214, 140, 0.6);
}

body.app-dashboard-home .home-preset-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

body.app-dashboard-home .home-preset-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #475569;
    margin-right: 0.15rem;
}

body.app-dashboard-home .home-preset-chip {
    padding: 0.3rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    cursor: pointer;
}

body.app-dashboard-home .home-preset-chip:hover {
    border-color: rgba(61, 214, 140, 0.4);
    color: #e8eef4;
}

body.app-dashboard-home .home-main-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 20rem;
    padding: 1.15rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    cursor: pointer;
    color: #041208;
    background: linear-gradient(165deg, #3ee79a 0%, #2eb574 48%, #269a63 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 0 32px rgba(61, 214, 140, 0.42),
        0 8px 28px rgba(0, 0, 0, 0.4);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
    animation: home-cta-ambient 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    body.app-dashboard-home .home-main-cta {
        animation: none;
    }
}

@keyframes home-cta-ambient {
    0%,
    100% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.35),
            0 0 28px rgba(61, 214, 140, 0.38),
            0 8px 28px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.35),
            0 0 44px rgba(61, 214, 140, 0.52),
            0 10px 32px rgba(0, 0, 0, 0.42);
    }
}

body.app-dashboard-home .home-main-cta:hover {
    filter: brightness(1.06);
    transform: scale(1.02) translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 48px rgba(61, 214, 140, 0.55),
        0 12px 36px rgba(0, 0, 0, 0.45);
    animation: none;
}

body.app-dashboard-home .home-main-cta:active {
    transform: scale(0.98) translateY(0);
}

body.app-dashboard-home .home-focus-mode {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #94a3b8;
    color-scheme: dark;
}

body.app-dashboard-home .home-focus-mode label {
    color: #94a3b8;
}

body.app-dashboard-home .home-focus-mode select {
    padding: 0.4rem 0.65rem;
    min-width: 10.5rem;
    border-radius: 8px;
    border: 1px solid rgba(61, 214, 140, 0.35);
    background: #0f1412;
    color: #e8eef4;
    font-size: 0.85rem;
    cursor: pointer;
    color-scheme: dark;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
    padding-right: 1.75rem;
}

body.app-dashboard-home .home-focus-mode select:hover,
body.app-dashboard-home .home-focus-mode select:focus {
    border-color: rgba(61, 214, 140, 0.55);
    outline: none;
    box-shadow: 0 0 0 2px rgba(61, 214, 140, 0.15);
}

body.app-dashboard-home .home-focus-mode select option {
    background: #0a0f0d;
    color: #e8eef4;
}

/* AI coach — one line */
body.app-dashboard-home .home-ai-coach-card {
    padding: 1rem 1rem 1rem 1.1rem;
    border-left: 3px solid rgba(61, 214, 140, 0.65);
    background: linear-gradient(90deg, rgba(61, 214, 140, 0.07) 0%, rgba(255, 255, 255, 0.03) 38%);
}

body.app-dashboard-home .home-ai-coach-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.4rem;
}

body.app-dashboard-home .home-ai-coach-line {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #cbd5e1;
}

body.app-dashboard-home .home-ai-coach-line:empty {
    display: none;
}

body.app-dashboard-home .home-buddy-line {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: center;
    color: #7c8a9c;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

/* Footer stats */
body.app-dashboard-home .home-stats-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    color: #525e6e;
    text-align: center;
    line-height: 1.65;
    margin-top: 0.25rem;
}

body.app-dashboard-home .home-footer-week {
    font-size: 0.72rem;
    color: #5c6b7e;
    max-width: 24rem;
    line-height: 1.5;
}

body.app-dashboard-home .home-pomodoro-prefs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1rem;
    font-size: 0.72rem;
    color: #64748b;
}

body.app-dashboard-home .home-pref-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

body.app-dashboard-home .home-pref-label input {
    accent-color: var(--accent-primary, #3dd68c);
}

body.app-dashboard-home .home-stats-footer strong {
    color: #7c8a9c;
    font-weight: 500;
}

/* Staggered entrance — transform only (no hidden pre-ready state) */
/* Cross-feature hooks (Across the app) */
body.app-dashboard-home .home-hooks-card {
    margin-top: 0.25rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(61, 214, 140, 0.18);
    background:
        linear-gradient(145deg, rgba(61, 214, 140, 0.07) 0%, transparent 42%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 16px 48px rgba(0, 0, 0, 0.5),
        0 0 48px rgba(61, 214, 140, 0.06);
}

body.app-dashboard-home .home-hooks-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(61, 214, 140, 0.9), rgba(34, 211, 238, 0.55), rgba(167, 139, 250, 0.65));
    opacity: 0.85;
    pointer-events: none;
}

body.app-dashboard-home .home-hooks-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

body.app-dashboard-home .home-hooks-head__icon {
    font-size: 0.85rem;
    color: #3dd68c;
    text-shadow: 0 0 18px rgba(61, 214, 140, 0.45);
    line-height: 1;
}

body.app-dashboard-home .home-card-title--hooks {
    margin: 0;
    flex: 1;
}

body.app-dashboard-home .home-resume-deck-row {
    margin-bottom: 1rem;
}

body.app-dashboard-home .home-resume-deck-btn {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(61, 214, 140, 0.42);
    background: linear-gradient(125deg, rgba(61, 214, 140, 0.22) 0%, rgba(30, 143, 92, 0.12) 55%, rgba(0, 0, 0, 0.15) 100%);
    color: #ecfdf5;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 28px rgba(61, 214, 140, 0.12);
}

body.app-dashboard-home .home-resume-deck-btn__glow {
    position: absolute;
    inset: -40% -20%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

body.app-dashboard-home .home-resume-deck-btn__icon {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.65rem;
    color: #052e1a;
    background: linear-gradient(145deg, #7af0b8 0%, #3dd68c 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

body.app-dashboard-home .home-resume-deck-btn__text {
    position: relative;
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

body.app-dashboard-home .home-resume-deck-btn:hover {
    border-color: rgba(122, 240, 184, 0.55);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4), 0 0 36px rgba(61, 214, 140, 0.2);
    transform: translateY(-1px);
}

body.app-dashboard-home .home-activity-feed {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

body.app-dashboard-home .home-activity-hit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.28);
    color: #e2e8f0;
    font-size: 0.82rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

body.app-dashboard-home .home-activity-hit::before {
    content: "◆";
    flex-shrink: 0;
    font-size: 0.55rem;
    color: #64748b;
    opacity: 0.85;
}

body.app-dashboard-home .home-activity-hit[data-activity-type="pomodoro_complete"]::before,
body.app-dashboard-home .home-activity-hit[data-activity-type="marathon"]::before {
    content: "⏱";
    font-size: 0.85rem;
}

body.app-dashboard-home .home-activity-hit[data-activity-type="flashcards_session"]::before,
body.app-dashboard-home .home-activity-hit[data-activity-type="deck_mastered"]::before {
    content: "🃏";
    font-size: 0.8rem;
}

body.app-dashboard-home .home-activity-hit[data-activity-type="practice_test"]::before {
    content: "📝";
    font-size: 0.8rem;
}

body.app-dashboard-home .home-activity-hit:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

body.app-dashboard-home .home-activity-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.app-dashboard-home .home-activity-time {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #64748b;
}

body.app-dashboard-home .home-activity-empty-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0 0 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

body.app-dashboard-home .home-activity-empty__icon {
    font-size: 1.15rem;
    line-height: 1.2;
    opacity: 0.9;
}

body.app-dashboard-home .home-activity-empty {
    margin: 0;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.45;
}

body.app-dashboard-home .home-next-steps-label {
    margin: 0 0 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #64748b;
}

body.app-dashboard-home .home-next-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

body.app-dashboard-home .home-next-step-chip {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

body.app-dashboard-home .home-next-step-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

body.app-dashboard-home .home-next-step-chip[data-nav-page="pomodoro"] {
    border-color: rgba(34, 211, 238, 0.35);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15) 0%, rgba(255, 255, 255, 0.04) 100%);
    color: #cffafe;
}

body.app-dashboard-home .home-next-step-chip[data-nav-page="studySessions"] {
    border-color: rgba(96, 165, 250, 0.38);
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
    color: #dbeafe;
}

body.app-dashboard-home .home-next-step-chip[data-nav-page="videos"] {
    border-color: rgba(167, 139, 250, 0.38);
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
    color: #ede9fe;
}

body.app-dashboard-home .home-next-step-chip[data-nav-page="practiceTests"] {
    border-color: rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    color: #fef3c7;
}

body.app-dashboard-home .home-next-step-chip[data-nav-page="studyGuidesLibrary"] {
    border-color: rgba(52, 211, 153, 0.38);
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    color: #d1fae5;
}

body.app-dashboard-home .home-next-step-chip[data-nav-page="createFlashcardDeck"] {
    border-color: rgba(61, 214, 140, 0.45);
    background: linear-gradient(135deg, rgba(61, 214, 140, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%);
    color: #ecfdf5;
}

body.app-dashboard-home .home-next-step-chip[data-nav-page="games"] {
    border-color: rgba(244, 114, 182, 0.38);
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    color: #fce7f3;
}

body.app-dashboard-home .home-next-step-chip[data-nav-page="explorePublic"] {
    border-color: rgba(148, 163, 184, 0.45);
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    color: #f1f5f9;
}

body.app-dashboard-home .home-next-step-chip[data-nav-page="translationsLibrary"] {
    border-color: rgba(56, 189, 248, 0.38);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    color: #e0f2fe;
}

@media (prefers-reduced-motion: no-preference) {
    body.app-dashboard-home .home-signed-in--ready .home-animate {
        animation: home-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    body.app-dashboard-home .home-signed-in--ready .home-animate--1 {
        animation-delay: 0.02s;
    }
    body.app-dashboard-home .home-signed-in--ready .home-animate--2 {
        animation-delay: 0.08s;
    }
    body.app-dashboard-home .home-signed-in--ready .home-animate--2a {
        animation-delay: 0.1s;
    }
    body.app-dashboard-home .home-signed-in--ready .home-animate--2a5 {
        animation-delay: 0.115s;
    }
    body.app-dashboard-home .home-signed-in--ready .home-animate--2b5 {
        animation-delay: 0.125s;
    }
    body.app-dashboard-home .home-signed-in--ready .home-animate--2b {
        animation-delay: 0.13s;
    }
    body.app-dashboard-home .home-signed-in--ready .home-animate--2c {
        animation-delay: 0.15s;
    }
    body.app-dashboard-home .home-signed-in--ready .home-animate--3 {
        animation-delay: 0.18s;
    }
    body.app-dashboard-home .home-signed-in--ready .home-animate--4 {
        animation-delay: 0.24s;
    }
    body.app-dashboard-home .home-signed-in--ready .home-animate--5 {
        animation-delay: 0.3s;
    }
    body.app-dashboard-home .home-signed-in--ready .home-animate--6 {
        animation-delay: 0.36s;
    }
}

@keyframes home-enter {
    from {
        transform: translateY(12px);
        opacity: 0.88;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.app-dashboard-home .home-animate {
        animation: none !important;
    }
}
