/* Logged-in Daily Flow dashboard — content between the existing header and footer. */
.swiper-slide:has(.tan-flow-home) {
    background-color: #efe6d4 !important;
    background-image: url("tan_dashboard_background_1672x941_under90kb.jpg?v=8.9.442") !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
}
.swiper-slide:has(.tan-flow-home) .swiper-card-wrapper {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 14px 12px 28px;
    background: transparent !important;
    box-sizing: border-box;
    min-height: 100%;
}

.flash-card.daily-guide-card.tan-flow-home,
.daily-guide-card.tan-flow-home {
    background: transparent !important;
    color: #1c241c !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 12px 0 24px !important;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    overflow: visible !important;
    min-height: 100%;
}
.daily-guide-card.tan-flow-home::before {
    display: none !important;
    content: none !important;
}
.tan-flow-home.flash-card:hover,
.feed-container .tan-flow-home.flash-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.tan-flow {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-family: "DM Sans", "Segoe UI", sans-serif;
    color: #1c241c;
}
.tan-flow-sheet {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 8px 4px 12px;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}
.tan-flow-hello {
    background: rgba(255, 251, 245, 0.9);
    border: 1px solid rgba(184, 146, 74, 0.38);
    border-radius: 18px;
    padding: 16px 18px 15px;
    box-shadow: 0 12px 28px rgba(48, 34, 14, 0.07);
}
.tan-flow * { box-sizing: border-box; }
.tan-flow h1, .tan-flow h2, .tan-flow h3, .tan-flow p { margin: 0; }
.tan-flow svg { display: block; }

.tan-flow-top,
.tan-flow-stats,
.tan-flow-cards,
.tan-flow-lower,
.tan-flow-qa-grid {
    min-width: 0;
    max-width: 100%;
}

.tan-flow-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #a6843d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tan-flow-date svg { width: 15px; height: 15px; flex: 0 0 auto; }
.tan-flow-greet {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #17261c;
}
.tan-flow-lead {
    margin-top: 8px;
    color: #6f675c;
    font-size: 15px;
    line-height: 1.45;
}

.tan-flow-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}
.tan-flow-stat {
    background: rgba(255, 251, 245, 0.92);
    border: 1px solid rgba(184, 146, 74, 0.4);
    border-radius: 16px;
    padding: 12px 14px 11px;
    box-shadow: 0 12px 28px rgba(48, 34, 14, 0.07);
    min-width: 0;
}
.tan-flow-stat-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 10px;
}
.tan-flow-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8d7340;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tan-flow-kicker svg,
.tan-flow-quick h2 svg { width: 14px; height: 14px; }
.tan-flow-day {
    color: #8a8176;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
    text-align: right;
}
.tan-flow-bar {
    height: 8px;
    border-radius: 999px;
    background: #f0e6d4;
    overflow: hidden;
}
.tan-flow-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #e7d09a, #c6a15a);
}
.tan-flow-note {
    margin-top: 8px;
    color: #8a8176;
    font-size: 12px;
}
.tan-flow-streak {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tan-flow-flame {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff4e4;
    color: #e07a2f;
    flex: 0 0 auto;
}
.tan-flow-flame svg { width: 22px; height: 22px; }
.tan-flow-streak-value {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.55rem;
    line-height: 1.1;
    color: #17261c;
    font-weight: 700;
}
.tan-flow-streak .tan-flow-note { margin-top: 2px; }

.tan-flow-mission {
    margin-top: 16px;
    background: rgba(23, 51, 40, 0.94);
    color: #f7f3ea;
    border: 1px solid rgba(201, 168, 76, 0.32);
    border-radius: 22px;
    padding: 18px 14px 14px;
    box-shadow: 0 16px 36px rgba(16, 28, 20, 0.16);
}
.tan-flow-mission-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}
.tan-flow-mission-title {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
}
.tan-flow-target {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e7d7a4;
    background: rgba(231, 215, 164, 0.12);
    border: 1px solid rgba(231, 215, 164, 0.35);
}
.tan-flow-target svg { width: 24px; height: 24px; }
.tan-flow-mission-kicker {
    color: #e7d7a4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.tan-flow-mission h2 {
    margin-top: 2px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fffdf8;
}
.tan-flow-mission-title p {
    margin-top: 4px;
    color: rgba(247, 243, 234, 0.78);
    font-size: 13.5px;
    line-height: 1.45;
}
.tan-flow-mission blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    color: #e7d7a4;
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: 14px;
    line-height: 1.45;
    max-width: 240px;
}

.tan-flow-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tan-flow-card {
    position: relative;
    background: rgba(255, 252, 246, 0.96);
    color: #1c241c;
    border-radius: 16px;
    padding: 14px 14px 12px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(198, 161, 90, 0.34);
    box-shadow: 0 8px 18px rgba(20, 16, 8, 0.06);
}
.tan-flow-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}
.tan-flow-ico {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3ead8;
    color: #3d4a40;
}
.tan-flow-ico svg { width: 18px; height: 18px; }
.tan-flow-num {
    color: #c6a15a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.tan-flow-card h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: #17261c;
}
.tan-flow-card p {
    margin-top: 4px;
    color: #6f675c;
    font-size: 13.5px;
    line-height: 1.4;
    min-height: 2.8em;
}
.tan-flow-go {
    appearance: none;
    margin-top: 14px;
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: #1a1a1a;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.tan-flow-go.is-gold {
    background: #c6a15a;
    color: #2a2112;
}
.tan-flow-go:hover { filter: brightness(1.05); }

.tan-flow-lower {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}
.tan-flow-hw,
.tan-flow-quick {
    background: rgba(255, 251, 245, 0.92);
    border: 1px solid rgba(184, 146, 74, 0.4);
    border-radius: 18px;
    padding: 14px;
    min-width: 0;
    box-shadow: 0 12px 28px rgba(48, 34, 14, 0.07);
}
.tan-flow-hw-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 12px;
}
.tan-flow-hw-head h2,
.tan-flow-quick h2 {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #3c463f;
}
.tan-flow-quick h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.tan-flow-textlink {
    appearance: none;
    border: 0;
    background: transparent;
    color: #9a7b32;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}
.tan-flow-hw-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: #8a8176;
    font-size: 13px;
}
.tan-flow-hw-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tan-flow-hw-time svg { width: 14px; height: 14px; }
.tan-flow-hw-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #17261c;
    line-height: 1.3;
}
.tan-flow-hw-book,
.tan-flow-hw-chapters,
.tan-flow-empty {
    margin-top: 4px;
    color: #6f675c;
    font-size: 14px;
    line-height: 1.45;
}
.tan-flow-empty { margin-top: 0; }

.tan-flow-qa-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.tan-flow-qa {
    appearance: none;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    background: rgba(255, 252, 246, 0.88);
    border: 1px solid rgba(184, 146, 74, 0.34);
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
    font: inherit;
    color: inherit;
}
.tan-flow-qa-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f0e4;
    color: #3d4a40;
    flex: 0 0 auto;
}
.tan-flow-qa-ico svg { width: 16px; height: 16px; }
.tan-flow-qa span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.tan-flow-qa strong {
    font-size: 14px;
    color: #17261c;
}
.tan-flow-qa small {
    color: #8a8176;
    font-size: 12px;
    line-height: 1.3;
}
.tan-flow-chev {
    color: #b3aa9e;
    font-size: 18px;
    line-height: 1;
    flex: 0 0 auto;
}

@media (max-width: 760px) {
    .swiper-slide:has(.tan-flow-home) {
        background-position: 12% 80% !important;
    }
}

/* Same scene behind Tests, Journey, Mains, and Profile. GK Feed is left alone. */
body.test-tab-active,
body.journey-tab-active,
body.profile-tab-active,
body:has(#mains-v4-app),
html:has(body.test-tab-active),
html:has(body.journey-tab-active),
html:has(body.profile-tab-active),
html:has(#mains-v4-app) {
    background-color: #efe6d4 !important;
    background-image: url("tan_dashboard_background_1672x941_under90kb.jpg?v=8.9.444") !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: fixed !important;
}
body.test-tab-active .main-container,
body.test-tab-active #test-container,
body.test-tab-active .test-container,
body.test-tab-active .test-root,
body.test-tab-active #test-dashboard,
body.test-tab-active #test-date-list-wrap,
body.test-tab-active .test-flow-wrap,
body.test-tab-active .test-flow-wrap-v2,
body.journey-tab-active .main-container,
body.journey-tab-active #feed-container,
body.journey-tab-active .ias-journey-container,
body.journey-tab-active .ias-journey-container.journey-dashboard,
body.profile-tab-active .main-container,
body.profile-tab-active #feed-container,
body.profile-tab-active .profile-page,
body:has(#mains-v4-app) .main-container,
body:has(#mains-v4-app) #feed-container,
body:has(#mains-v4-app) #feed-container.mains-v4-tab,
body:has(#mains-v4-app) .mains-v4-app,
body:has(#mains-v4-app) .mains-v4-main,
body:has(#mains-v4-app) .mains-v4-browse {
    background: transparent !important;
    background-image: none !important;
}
@media (max-width: 760px) {
    body.test-tab-active,
    body.journey-tab-active,
    body.profile-tab-active,
    body:has(#mains-v4-app),
    html:has(body.test-tab-active),
    html:has(body.journey-tab-active),
    html:has(body.profile-tab-active),
    html:has(#mains-v4-app) {
        background-position: 12% 80% !important;
    }
}
@media (min-width: 520px) {
    .tan-flow-qa-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
    .tan-flow-sheet { padding: 26px 22px 20px; }
    .tan-flow-stats { flex-direction: row; }
    .tan-flow-stat:first-child { flex: 1.4; }
    .tan-flow-streak { flex: 0.9; }
}
@media (min-width: 1024px) {
    .swiper-slide:has(.tan-flow-home) .swiper-card-wrapper {
        padding: 22px 28px 36px;
    }
    .tan-flow-sheet {
        padding: 28px 28px 22px;
        border-radius: 30px;
    }
    .tan-flow-top {
        display: grid;
        grid-template-columns: minmax(280px, 1.15fr) minmax(320px, 0.95fr);
        gap: 22px;
        align-items: center;
    }
    .tan-flow-stats { margin-top: 0; }
    .tan-flow-mission { padding: 22px 18px 16px; }
    .tan-flow-mission-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 8px 4px;
    }
    .tan-flow-mission blockquote { text-align: right; }
    .tan-flow-cards {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
    .tan-flow-card:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 32px;
        right: -14px;
        width: 14px;
        border-top: 1.5px dashed rgba(198, 161, 90, 0.85);
        z-index: 2;
    }
    .tan-flow-card p { min-height: 3.9em; }
    .tan-flow-lower {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
        gap: 14px;
        align-items: stretch;
    }
}
