/* v1.13.2 local Persian font for Safari */
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn.woff2") format("woff2-variations"),
         url("../fonts/Vazirmatn.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html,
body,
button,
input,
select,
textarea {
    font-family: "Vazirmatn", "Yekan Bakh", "IRANYekan", "B Yekan", "IRANSansX", Tahoma, Arial, sans-serif !important;
    font-synthesis-weight: none;
}
:root {
    --bg: #f5f5f7;
    --surface: rgba(255, 255, 255, 0.68);
    --surface-strong: rgba(255, 255, 255, 0.86);
    --ink: #111114;
    --muted: #6e6e73;
    --soft: #f2f2f7;
    --line: rgba(20, 20, 24, 0.1);
    --primary: #0a84ff;
    --green: #30d158;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.10);
    --blur: blur(26px) saturate(180%);
}

/* v1.6.4: mobile launch polish + softer nude system palette */
:root {
    --bg: #f7f4ef;
    --surface: rgba(255, 255, 255, .76);
    --surface-strong: rgba(255, 255, 255, .92);
    --ink: #1f1d1b;
    --muted: #746f68;
    --muted-2: #928a80;
    --hairline: rgba(47, 42, 37, .10);
    --primary: #6757e8;
    --primary-dark: #342c8f;
    --mint: #6fc6b0;
    --peach: #e8ad78;
    --rose: #e99ab6;
    --shadow: 0 18px 52px rgba(66, 52, 38, .10);
}

body {
    background:
        radial-gradient(circle at 14% 8%, rgba(103, 87, 232, .10), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(111, 198, 176, .12), transparent 26%),
        radial-gradient(circle at 50% 96%, rgba(232, 173, 120, .14), transparent 34%),
        var(--bg);
}

.tp-app-bg {
    background:
        radial-gradient(circle at 18% 10%, rgba(103, 87, 232, .12), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(232, 173, 120, .13), transparent 28%),
        radial-gradient(circle at 54% 88%, rgba(111, 198, 176, .12), transparent 32%),
        var(--bg);
}

.tp-mobile-top,
.tp-home-hero,
.tp-daily-card,
.tp-feature-card,
.tp-value-cards article,
.tp-start-path article,
.tp-pricing-grid article,
.tp-seo-content,
.tp-market-hero,
.tp-goal-advisor,
.tp-category-digest button,
.tp-orb-card,
.tp-product,
.tp-panel,
.tp-report,
.tp-history,
.tp-empty {
    border-color: rgba(255, 255, 255, .84);
    background-color: rgba(255, 255, 255, .76);
    box-shadow: var(--shadow);
}

.tp-home-hero {
    background:
        linear-gradient(135deg, rgba(255,255,255,.84), rgba(255,255,255,.58)),
        radial-gradient(circle at 82% 18%, rgba(103, 87, 232, .12), transparent 32%),
        radial-gradient(circle at 18% 78%, rgba(111, 198, 176, .10), transparent 34%);
}

.tp-btn--primary,
.tp-bottom-nav button.is-active,
.tp-category-rail button.is-active,
.tp-goal-tabs button.is-active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    box-shadow: 0 14px 32px rgba(103, 87, 232, .22);
}

.tp-btn--glass,
.tp-btn--ghost,
.tp-search,
.tp-category-rail button,
.tp-related button {
    border-color: rgba(47, 42, 37, .09);
    background: rgba(255, 255, 255, .72);
}

.tp-home-copy h1,
.tp-market-hero h3,
.tp-product__body :is(h1, h2),
.tp-panel h2 {
    color: var(--ink);
    text-wrap: balance;
}

.tp-home-copy p,
.tp-market-hero p,
.tp-product__body p,
.tp-panel p,
.tp-orb-copy p {
    color: var(--muted);
}

.tp-galaxy {
    background:
        radial-gradient(circle at 14% 20%, rgba(103, 87, 232, .14), transparent 24%),
        radial-gradient(circle at 84% 28%, rgba(111, 198, 176, .12), transparent 26%),
        radial-gradient(circle at 52% 88%, rgba(232, 173, 120, .13), transparent 30%),
        #171514;
}

.tp-orb-card {
    color: var(--ink);
    background: rgba(255, 255, 255, .84);
}

.tp-orb-copy h3,
.tp-orb-copy .tp-meta strong {
    color: var(--ink);
}

.tp-orb-copy span,
.tp-orb-copy p,
.tp-orb-copy small {
    color: var(--muted);
}

.tp-orb-copy .tp-meta {
    border-top-color: var(--hairline);
}

.tp-orb-card:nth-child(4n+1) .tp-orb {
    background: rgba(103, 87, 232, .12);
    color: var(--primary);
}

.tp-orb-card:nth-child(4n+2) .tp-orb {
    background: rgba(232, 173, 120, .18);
    color: #a65f1f;
}

.tp-orb-card:nth-child(4n+3) .tp-orb {
    background: rgba(111, 198, 176, .18);
    color: #1a7d6e;
}

.tp-orb-card:nth-child(4n+4) .tp-orb {
    background: rgba(233, 154, 182, .16);
    color: #a83f68;
}

.tp-product__body,
.tp-orb-copy,
.tp-home-copy,
.tp-market-hero > div {
    min-width: 0;
}

.tp-value-cards,
.tp-start-path {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tp-value-cards article,
.tp-start-path article {
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 24px;
    padding: 16px;
}

.tp-value-cards i,
.tp-start-path i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 16px;
    background: rgba(103, 87, 232, .10);
    color: var(--primary);
}

.tp-value-cards strong,
.tp-start-path strong {
    display: block;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.7;
}

.tp-value-cards p,
.tp-start-path p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.tp-seo-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .72fr);
    gap: 18px;
    align-items: start;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 28px;
    padding: clamp(18px, 4vw, 28px);
}

.tp-seo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tp-seo-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    padding: 7px 12px;
}

@media (max-width: 980px) {
    .tp-value-cards,
    .tp-start-path,
    .tp-seo-content {
        grid-template-columns: 1fr;
    }

    .tp-market-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tp-product__orb {
        min-height: auto;
        order: -1;
    }

    .tp-product-scorecard {
        max-width: 280px;
    }
}

@media (max-width: 760px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .tp-app-shell {
        width: 100%;
        padding: 10px 10px calc(106px + env(safe-area-inset-bottom));
    }

    .tp-app-screen {
        min-height: auto;
    }

    .tp-mobile-top {
        position: static;
        margin: 0 0 10px;
        padding: 9px 10px;
        border-radius: 22px;
    }

    .tp-mobile-top strong {
        max-width: 245px;
        font-size: 15px;
        line-height: 1.55;
    }

    .tp-avatar {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .tp-home-hero {
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: 0;
        border-radius: 28px;
        padding: 17px;
    }

    .tp-home-copy h1 {
        margin-bottom: 10px;
        font-size: clamp(31px, 10vw, 43px);
        line-height: 1.13;
    }

    .tp-home-copy p {
        margin-bottom: 14px;
        font-size: 14px;
        line-height: 1.9;
    }

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

    .tp-actions .tp-btn,
    .tp-actions a.tp-btn {
        width: 100%;
        min-height: 48px;
        padding-inline: 12px;
    }

    .tp-trust-strip {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        margin-top: 10px;
    }

    .tp-home-orbit {
        min-height: 0;
    }

    .tp-hero-device {
        min-height: 236px;
        gap: 10px;
        border-radius: 24px;
        padding: 12px;
    }

    .tp-hero-device__top strong {
        font-size: 17px;
    }

    .tp-hero-device__orb {
        width: 116px;
        height: 116px;
        font-size: 34px;
    }

    .tp-hero-device__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .tp-hero-device__grid span {
        min-height: 42px;
        font-size: 11px;
        padding: 7px;
    }

    .tp-app-section {
        margin-top: 14px;
    }

    .tp-row-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 9px;
    }

    .tp-row-head h2 {
        font-size: 22px;
        line-height: 1.45;
    }

    .tp-daily-card {
        position: relative;
        grid-template-columns: 1fr;
        gap: 10px;
        overflow: hidden;
        border-radius: 24px;
        padding: 15px;
    }

    .tp-daily-card h2 {
        max-width: calc(100% - 76px);
        font-size: 22px;
        line-height: 1.45;
    }

    .tp-daily-card p {
        max-width: calc(100% - 46px);
        font-size: 13px;
    }

    .tp-daily-lottie {
        left: 8px;
        top: 8px;
        width: 64px;
        height: 64px;
        opacity: .36;
    }

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

    .tp-shortcuts button {
        min-height: 78px;
        border-radius: 22px;
        font-size: 12px;
        padding: 10px 8px;
    }

    .tp-app-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .tp-app-stats article {
        min-width: 0;
        border-radius: 20px;
        padding: 10px 8px;
    }

    .tp-app-stats strong {
        font-size: 20px;
    }

    .tp-app-stats span {
        font-size: 10.5px;
        line-height: 1.5;
    }

    .tp-value-cards,
    .tp-start-path,
    .tp-pricing-grid,
    .tp-badge-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .tp-value-cards article,
    .tp-start-path article,
    .tp-pricing-grid article {
        min-height: auto;
        border-radius: 22px;
        padding: 14px;
    }

    .tp-seo-content {
        border-radius: 24px;
        padding: 15px;
    }

    .tp-seo-content h2 {
        font-size: 22px;
        line-height: 1.55;
    }

    .tp-seo-content p {
        font-size: 13px;
    }

    .tp-seo-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tp-seo-actions a {
        justify-content: center;
        width: 100%;
        min-height: 42px;
        text-align: center;
    }

    .tp-section__head.tp-app-head {
        border-radius: 24px;
        padding: 12px;
    }

    .tp-section__head.tp-app-head h2 {
        font-size: 25px;
    }

    .tp-search {
        min-height: 46px;
        border-radius: 18px;
        font-size: 14px;
    }

    .tp-marketplace {
        gap: 12px;
    }

    .tp-market-hero {
        border-radius: 24px;
        padding: 15px;
    }

    .tp-market-hero h3 {
        font-size: 27px;
        line-height: 1.35;
    }

    .tp-market-hero p {
        font-size: 13px;
        line-height: 1.9;
    }

    .tp-market-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-top: 10px;
    }

    .tp-market-stats span {
        min-width: 0;
        border-radius: 18px;
        padding: 9px 6px;
        text-align: center;
        font-size: 10.5px;
        line-height: 1.55;
    }

    .tp-market-stats strong {
        font-size: 17px;
    }

    .tp-goal-advisor {
        border-radius: 24px;
        padding: 14px;
    }

    .tp-goal-advisor__head h3 {
        font-size: 23px;
        line-height: 1.45;
    }

    .tp-goal-tabs {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .tp-goal-tabs::-webkit-scrollbar {
        display: none;
    }

    .tp-goal-tabs button {
        flex: 0 0 auto;
        min-height: 40px;
        white-space: nowrap;
        border-radius: 999px;
        padding: 8px 12px;
    }

    .tp-goal-tests,
    .tp-category-digest,
    .tp-galaxy {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .tp-category-digest {
        display: flex;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: none;
    }

    .tp-category-digest::-webkit-scrollbar {
        display: none;
    }

    .tp-category-digest button {
        flex: 0 0 78%;
        min-height: 98px;
        border-radius: 22px;
    }

    .tp-category-rail {
        margin-inline: -10px;
        padding: 0 10px 8px;
        scroll-snap-type: x proximity;
    }

    .tp-category-rail button {
        scroll-snap-align: start;
    }

    .tp-galaxy {
        border-radius: 24px;
        padding: 10px;
        background: transparent;
        box-shadow: none;
    }

    .tp-galaxy::before {
        display: none;
    }

    .tp-orb-card {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 10px;
        min-height: auto;
        border-radius: 22px;
        padding: 12px;
    }

    .tp-orb {
        width: 58px;
        height: 58px;
        font-size: 22px;
        box-shadow: none;
    }

    .tp-orb-copy h3 {
        margin: 4px 0;
        font-size: 15.5px;
        line-height: 1.55;
    }

    .tp-orb-copy p {
        min-height: 0;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 12px;
        line-height: 1.75;
    }

    .tp-orb-copy .tp-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        margin-bottom: 0;
        padding-top: 8px;
    }

    .tp-show-more {
        align-items: stretch;
        flex-direction: column;
        border-radius: 22px;
        padding: 10px;
    }

    .tp-show-more .tp-btn {
        width: 100%;
    }

    .tp-product {
        grid-template-columns: 1fr;
        gap: 12px;
        border-radius: 26px;
        padding: 15px;
    }

    .tp-product__orb {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 0;
        gap: 10px;
    }

    .tp-orb--large {
        width: 96px;
        height: 96px;
        flex: 0 0 96px;
        font-size: 34px;
    }

    .tp-price-badge,
    .tp-product-scorecard {
        font-size: 12px;
    }

    .tp-product-scorecard {
        flex: 1 1 auto;
        min-width: 0;
        border-radius: 18px;
        padding: 10px;
    }

    .tp-product__body :is(h1, h2) {
        font-size: clamp(26px, 9vw, 36px);
        line-height: 1.22;
    }

    .tp-product-grid,
    .tp-report-preview,
    .tp-fit-tags,
    .tp-product-assurance {
        gap: 7px;
    }

    .tp-product-grid span,
    .tp-report-preview span,
    .tp-report-preview strong,
    .tp-fit-tags span,
    .tp-product-assurance span {
        width: 100%;
        justify-content: flex-start;
        border-radius: 16px;
    }

    .tp-paywall-preview,
    .tp-product-value {
        grid-template-columns: 1fr;
        border-radius: 20px;
        padding: 12px;
    }

    .tp-locked-grid {
        grid-template-columns: 1fr;
    }

    .tp-panel {
        border-radius: 24px;
        padding: 17px;
    }

    .tp-panel h2 {
        font-size: 22px;
        line-height: 1.65;
    }

    .tp-option {
        min-height: 58px;
        border-radius: 18px;
        font-size: 13px;
        line-height: 1.8;
        padding: 10px 12px;
    }

    .tp-quiz-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tp-result,
    .tp-columns {
        grid-template-columns: 1fr;
    }

    .tp-share-card,
    .tp-report {
        border-radius: 24px;
        padding: 16px;
    }

    .tp-bottom-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 3px;
        width: calc(100% - 14px);
        border-radius: 22px;
        padding: 5px;
    }

    .tp-bottom-nav button {
        min-width: 0;
        min-height: 50px;
        border-radius: 17px;
        font-size: 10px;
        line-height: 1.2;
        padding: 5px 2px;
    }

    .tp-bottom-nav button span {
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    .tp-app-shell {
        padding-inline: 8px;
    }

    .tp-home-copy h1 {
        font-size: 29px;
    }

    .tp-market-stats,
    .tp-app-stats {
        grid-template-columns: 1fr;
    }

    .tp-category-digest button {
        flex-basis: 86%;
    }

    .tp-product__orb {
        align-items: stretch;
        flex-direction: column;
    }

    .tp-orb--large {
        margin-inline: auto;
    }
}

/* commerce-hide-bottom-nav-20260701: hide app bottom navigation on cart and checkout. */
body.woocommerce-cart .tp-bottom-nav,
body.woocommerce-cart .tp-bottom-nav--links,
body.woocommerce-checkout .tp-bottom-nav,
body.woocommerce-checkout .tp-bottom-nav--links,
#tipeman-app.tp-commerce-shell .tp-bottom-nav,
#tipeman-app.tp-commerce-shell .tp-bottom-nav--links {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

#tipeman-app.tp-commerce-shell,
#tipeman-app.tp-commerce-shell.tp-app,
#tipeman-app.tp-commerce-shell.tp-app-shell {
    padding-bottom: max(22px, env(safe-area-inset-bottom, 0px)) !important;
}

/* Compact test answering surface */
body.tp-focus-mode .tp-quiz {
    max-width: min(1040px, calc(100vw - 32px));
}

body.tp-focus-mode .tp-panel {
    padding: clamp(18px, 3vw, 30px);
}

body.tp-focus-mode .tp-panel h2 {
    max-width: 920px;
    margin-inline: auto;
    text-align: center;
}

body.tp-focus-mode .tp-panel p {
    margin-bottom: 18px;
    text-align: center;
}

body.tp-focus-mode .tp-options {
    display: grid;
    grid-template-columns: repeat(6, minmax(92px, 1fr));
    gap: 12px;
    align-items: stretch;
    max-width: 860px;
    margin-inline: auto;
}

body.tp-focus-mode .tp-option {
    grid-column: span 2;
    min-height: 78px;
    width: 100%;
    padding: 14px 10px;
    border-radius: 22px;
    text-align: center;
    display: grid;
    place-items: center;
    font-size: 14px;
    line-height: 1.55;
}

body.tp-focus-mode .tp-option:hover {
    transform: translateY(-2px);
}

body.tp-focus-mode .tp-option span {
    display: block;
    max-width: 100%;
}

body.tp-focus-mode .tp-option:nth-child(4) {
    grid-column: 2 / span 2;
}

body.tp-focus-mode .tp-option:nth-child(5) {
    grid-column: 4 / span 2;
}

body.tp-focus-mode .tp-quiz-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2px;
}

body.tp-focus-mode .tp-quiz-actions .tp-btn {
    min-width: 130px;
    min-height: 46px;
}

@media (max-width: 860px) {
    body.tp-focus-mode .tp-quiz {
        max-width: min(620px, calc(100vw - 22px));
    }

    body.tp-focus-mode .tp-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body.tp-focus-mode .tp-option {
        grid-column: auto;
        min-height: 62px;
        border-radius: 18px;
        font-size: 13px;
        padding: 10px;
    }

    body.tp-focus-mode .tp-option:nth-child(4),
    body.tp-focus-mode .tp-option:nth-child(5) {
        grid-column: auto;
    }

    body.tp-focus-mode .tp-option:nth-child(3) {
        grid-column: 1 / -1;
    }

    body.tp-focus-mode .tp-quiz-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.tp-focus-mode .tp-quiz-actions .tp-btn {
        width: 100%;
        min-width: 0;
    }
}

/* Launch flow: full-screen test and login modal */
body.tp-modal-open,
body.tp-focus-mode {
    overflow: hidden;
}

body.tp-focus-mode #tipeman-app [data-screen="quiz"],
body.tp-focus-mode #tipeman-app [data-screen="result"] {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: block;
    width: 100vw;
    height: 100dvh;
    overflow-y: auto;
    padding: clamp(18px, 3vw, 32px);
    background:
        radial-gradient(circle at 20% 0%, rgba(139, 124, 255, .20), transparent 34%),
        radial-gradient(circle at 84% 12%, rgba(111, 198, 176, .18), transparent 30%),
        rgba(246, 244, 239, .96);
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
}

body.tp-focus-mode #tipeman-app [data-screen="quiz"].tp-hidden,
body.tp-focus-mode #tipeman-app [data-screen="result"].tp-hidden {
    display: none;
}

body.tp-focus-mode .tp-app-screen[data-screen="quiz"] .tp-app-topbar,
body.tp-focus-mode .tp-app-screen[data-screen="result"] .tp-app-topbar,
body.tp-focus-mode .tp-app-screen[data-screen="quiz"] > .tp-link {
    max-width: 900px;
    margin-inline: auto;
}

body.tp-focus-mode .tp-quiz {
    max-width: 900px;
    min-height: calc(100dvh - 180px);
    display: grid;
    align-content: center;
}

body.tp-focus-mode .tp-progress {
    height: 10px;
    margin-bottom: 18px;
    background: rgba(255,255,255,.76);
}

body.tp-focus-mode .tp-panel {
    border: 1px solid rgba(255,255,255,.76);
    background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.62));
    box-shadow: 0 26px 90px rgba(29, 29, 31, .12);
    border-radius: 30px;
}

body.tp-focus-mode .tp-result {
    max-width: 1120px;
    margin: 0 auto;
}

.tp-test-login-modal {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: grid;
    place-items: center;
    padding: 18px;
}

.tp-test-login-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 24, 42, .22);
    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
}

.tp-test-login-modal__panel {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.76);
    border-radius: 34px;
    padding: clamp(20px, 5vw, 34px);
    background:
        linear-gradient(150deg, rgba(255,255,255,.92), rgba(255,255,255,.68)),
        radial-gradient(circle at 20% 0%, rgba(93, 73, 223, .12), transparent 36%);
    box-shadow: 0 34px 120px rgba(15, 23, 42, .20);
    color: var(--ink);
    text-align: center;
}

.tp-test-login-modal__close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.74);
    color: var(--ink);
    cursor: pointer;
}

.tp-test-login-modal__brand {
    display: inline-grid;
    justify-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: var(--muted);
    font-weight: 900;
}

.tp-test-login-modal__brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 18px;
}

.tp-test-login-modal h2 {
    margin: 0 0 10px;
    font-size: clamp(26px, 6vw, 38px);
    line-height: 1.35;
}

.tp-test-login-modal p {
    margin: 0 auto 18px;
    max-width: 38em;
    color: var(--muted);
    line-height: 1.9;
}

.tp-login-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 5px;
    margin: 18px 0;
    border-radius: 18px;
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(255,255,255,.72);
}

.tp-login-tabs button {
    border: 0;
    min-height: 42px;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-weight: 900;
    cursor: pointer;
}

.tp-login-tabs button.is-active {
    background: #111827;
    color: #fff;
}

.tp-login-pane {
    display: none;
    gap: 10px;
    text-align: right;
}

.tp-login-pane.is-active {
    display: grid;
}

.tp-login-pane label {
    font-weight: 900;
    color: var(--ink);
}

.tp-login-pane input {
    width: 100%;
    min-height: 56px;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 18px;
    padding: 0 16px;
    background: rgba(255,255,255,.82);
    color: var(--ink);
    font: inherit;
    direction: ltr;
    text-align: center;
}

.tp-modal-code-row {
    display: grid;
    gap: 10px;
}

.tp-login-modal-link {
    display: inline-flex;
    justify-content: center;
    margin-top: 14px;
    color: var(--primary);
    font-weight: 900;
}

.tp-login-modal-msg {
    min-height: 28px;
    margin-top: 12px;
    color: #b42318;
    font-weight: 800;
    line-height: 1.8;
}

.tp-login-modal-msg a {
    color: var(--primary);
}

@media (max-width: 640px) {
    body.tp-focus-mode #tipeman-app [data-screen="quiz"],
    body.tp-focus-mode #tipeman-app [data-screen="result"] {
        padding: 12px;
    }

    body.tp-focus-mode .tp-quiz {
        min-height: calc(100dvh - 140px);
    }

    body.tp-focus-mode .tp-panel {
        border-radius: 24px;
        padding: 18px;
        text-align: center;
    }

    body.tp-focus-mode .tp-option {
        text-align: center;
    }

    .tp-test-login-modal {
        padding: 10px;
    }

    .tp-test-login-modal__panel {
        border-radius: 28px;
    }
}

.tp-home-choice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.tp-home-choice-item {
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
    backdrop-filter: var(--blur);
    color: var(--ink);
    text-decoration: none;
    min-height: 122px;
    display: grid;
    gap: 6px;
    align-content: center;
    align-items: center;
    justify-items: start;
    padding: 14px;
    text-align: right;
    line-height: 1.5;
}

.tp-home-choice-item strong {
    display: block;
    font-size: 16px;
    line-height: 1.3;
}

.tp-home-choice-item span {
    color: var(--muted);
    font-size: 12px;
}

.tp-home-choice-item:focus-visible,
.tp-home-choice-item:hover {
    background: rgba(255, 255, 255, 0.74);
}

.tp-home-choice-item i {
    color: var(--primary);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(103, 87, 232, 0.10);
}

.tp-home-reference-section {
    width: 100%;
    margin: 18px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.8fr);
    align-items: center;
    gap: clamp(16px, 3vw, 34px);
    padding: clamp(18px, 3vw, 30px);
}

.tp-home-reference-section h2 {
    margin: 8px 0 10px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.45;
}

.tp-home-reference-section p {
    margin: 0;
    color: var(--muted);
    line-height: 2;
}

.tp-home-choice-item,
.tp-home-pick-item,
.tp-badge-item,
.tp-home-choice-item:visited,
.tp-home-pick-item:visited,
.tp-badge-item:visited {
    color: inherit;
}

.tp-home-picks {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.tp-home-pick-item {
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: var(--ink);
}

.tp-home-pick-item i {
    color: var(--primary);
}

.tp-home-pick-item:hover,
.tp-home-pick-item:focus-visible,
.tp-badge-item:hover,
.tp-badge-item:focus-visible {
    background: rgba(255, 255, 255, 0.74);
}

.tp-badge-grid .tp-badge-item,
.tp-badge-grid > button {
    border: 1px solid var(--hairline);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    display: grid;
    gap: 6px;
    min-height: 138px;
    padding: 16px;
    text-decoration: none;
}

.tp-badge-grid .tp-badge-item i,
.tp-badge-grid > button i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(110,75,255,.12), rgba(98,182,255,.16));
    color: var(--primary);
}

@media (max-width: 860px) {
    .tp-home-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-home-picks {
        grid-template-columns: 1fr;
    }

    .tp-home-reference-section {
        grid-template-columns: 1fr;
        margin-top: 14px;
        padding: 16px;
        border-radius: 22px;
        gap: 14px;
        text-align: center;
    }
}

/* v1.6.8 final: glass app header/footer with brand */
.tp-mobile-top {
    min-height: 74px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto 42px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .92) !important;
    border-radius: 30px !important;
    background:
        linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,255,255,.56)),
        rgba(255,255,255,.74) !important;
    box-shadow:
        0 18px 46px rgba(66, 52, 38, .12),
        inset 0 1px rgba(255,255,255,.9) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
}

.tp-app-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.54)),
        rgba(255,255,255,.66);
    color: var(--primary-dark);
    box-shadow: inset 0 1px rgba(255,255,255,.86);
    font-size: 14px;
    font-weight: 950;
    padding: 6px 12px;
    white-space: nowrap;
}

.tp-avatar {
    background:
        linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
    box-shadow: 0 12px 28px rgba(103, 87, 232, .24);
}

.tp-bottom-nav {
    overflow: visible;
    border: 1px solid rgba(255,255,255,.92) !important;
    background:
        linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,255,255,.64)),
        rgba(255,255,255,.78) !important;
    box-shadow:
        0 22px 70px rgba(66, 52, 38, .17),
        inset 0 1px rgba(255,255,255,.92) !important;
    backdrop-filter: blur(30px) saturate(190%) !important;
}

.tp-footer-brand {
    position: absolute;
    top: -16px;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.66)),
        rgba(255,255,255,.82);
    color: var(--primary-dark);
    box-shadow: 0 10px 26px rgba(66,52,38,.12);
    font-size: 12px;
    font-weight: 950;
    padding: 4px 14px;
    pointer-events: none;
}

@media (max-width: 760px) {
    .tp-mobile-top {
        grid-template-columns: minmax(0, 1fr) auto 38px;
        gap: 8px;
    }

    .tp-mobile-top strong {
        max-width: none;
    }

    .tp-app-name {
        min-height: 34px;
        font-size: 12px;
        padding-inline: 10px;
    }

    .tp-bottom-nav {
        padding-top: 11px !important;
    }

    .tp-footer-brand {
        top: -13px;
        min-height: 27px;
        font-size: 11px;
        padding-inline: 12px;
    }
}

@media (max-width: 380px) {
    .tp-mobile-top {
        grid-template-columns: minmax(0, 1fr) 38px;
    }

    .tp-app-name {
        display: none;
    }
}

/* v1.6.9: richer reports, charts and user panel */
.tp-score-ring {
    position: relative;
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    margin: 18px 0;
}

.tp-score-ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.tp-score-ring circle {
    fill: none;
    stroke-width: 10;
}

.tp-score-ring__track {
    stroke: rgba(103, 87, 232, .12);
}

.tp-score-ring__value {
    stroke: url("#tp-ring-gradient");
    stroke: var(--primary);
    stroke-linecap: round;
    stroke-dasharray: calc(var(--score) * 3.0159) 301.59;
    filter: drop-shadow(0 8px 18px rgba(103,87,232,.22));
}

.tp-score-ring > div {
    position: relative;
    z-index: 1;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.82);
    box-shadow: inset 0 1px rgba(255,255,255,.9);
    text-align: center;
}

.tp-score-ring strong {
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
}

.tp-score-ring small {
    max-width: 72px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    line-height: 1.45;
}

.tp-insight-grid,
.tp-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.tp-insight-grid article,
.tp-dashboard-stats article,
.tp-next-panel,
.tp-dashboard-hero,
.tp-chart-panel {
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.84), rgba(255,255,255,.62)),
        rgba(255,255,255,.76);
    box-shadow: 0 18px 46px rgba(66,52,38,.10);
    backdrop-filter: blur(24px) saturate(170%);
}

.tp-insight-grid article,
.tp-dashboard-stats article {
    min-height: 142px;
    padding: 16px;
}

.tp-insight-grid i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 15px;
    background: rgba(103,87,232,.10);
    color: var(--primary);
}

.tp-insight-grid span,
.tp-dashboard-stats span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.tp-insight-grid strong,
.tp-dashboard-stats strong {
    display: block;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.55;
}

.tp-insight-grid p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.tp-chart-panel {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(220px, 1fr);
    gap: 18px;
    align-items: center;
    margin: 18px 0;
    padding: 18px;
}

.tp-chart-panel h4,
.tp-next-panel h3,
.tp-dashboard-hero h2 {
    margin: 0 0 8px;
    color: var(--ink);
}

.tp-chart-panel p,
.tp-next-panel p,
.tp-dashboard-hero p {
    margin: 0;
    color: var(--muted);
}

.tp-radar {
    width: min(100%, 330px);
    justify-self: center;
    overflow: visible;
}

.tp-radar circle {
    fill: none;
    stroke: rgba(103,87,232,.12);
    stroke-width: 1.2;
}

.tp-radar line {
    stroke: rgba(47,42,37,.10);
    stroke-width: 1;
}

.tp-radar polygon {
    fill: rgba(103,87,232,.18);
    stroke: var(--primary);
    stroke-width: 2.5;
    filter: drop-shadow(0 10px 24px rgba(103,87,232,.18));
}

.tp-radar text {
    fill: var(--muted);
    font-size: 8px;
    font-weight: 850;
    text-anchor: middle;
    dominant-baseline: middle;
}

.tp-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 16px;
    align-items: center;
    padding: 20px;
}

.tp-dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tp-dashboard-stats article {
    min-height: auto;
}

.tp-next-panel {
    display: grid;
    gap: 12px;
    margin: 14px 0;
    padding: 18px;
}

.tp-next-panel > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tp-next-panel span {
    border: 1px solid rgba(47,42,37,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    padding: 7px 11px;
}

.tp-history {
    border-radius: 24px;
}

@media (max-width: 760px) {
    .tp-insight-grid,
    .tp-dashboard-stats,
    .tp-chart-panel,
    .tp-dashboard-hero {
        grid-template-columns: 1fr;
    }

    .tp-insight-grid {
        gap: 9px;
    }

    .tp-insight-grid article {
        min-height: auto;
    }

    .tp-chart-panel,
    .tp-dashboard-hero,
    .tp-next-panel {
        border-radius: 22px;
        padding: 14px;
    }

    .tp-score-ring {
        margin-inline: auto;
    }

    .tp-radar {
        max-width: 280px;
    }
}

/* v1.7.0: Smart Path cards stacked on mobile/tablet, one row on desktop */
.tp-goal-tests {
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 1100px) {
    .tp-goal-tests {
        grid-template-columns: 1fr !important;
    }

    .tp-goal-card {
        width: 100% !important;
        min-height: 132px;
    }
}

@media (min-width: 1101px) {
    .tp-goal-card {
        min-height: 166px;
    }
}

/* v1.7.2: clear section headings for the tests screen */
.tp-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0 10px;
    padding: 0 4px;
}

.tp-section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 950;
    line-height: 1.35;
}

.tp-section-heading p {
    max-width: 680px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.8;
}

.tp-section-heading .tp-kicker {
    margin-bottom: 5px;
}

@media (max-width: 760px) {
    .tp-section-heading {
        margin: 14px 0 8px;
        padding-inline: 2px;
    }

    .tp-section-heading h2 {
        font-size: 21px;
    }

    .tp-section-heading p {
        font-size: 12px;
        line-height: 1.7;
    }
}

/* v1.7.3: stronger mobile glass header */
.tp-mobile-top {
    position: sticky !important;
    top: 10px !important;
    z-index: 45 !important;
    overflow: hidden;
}

.tp-mobile-top::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 88% 10%, rgba(103,87,232,.18), transparent 32%),
        radial-gradient(circle at 10% 92%, rgba(111,198,176,.14), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.50));
}

.tp-mobile-top::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: inherit;
    background:
        linear-gradient(115deg, rgba(255,255,255,.34), rgba(255,255,255,0) 38%),
        rgba(255,255,255,.42);
    pointer-events: none;
}

.tp-mobile-top span {
    color: rgba(103,87,232,.82) !important;
}

.tp-mobile-top strong {
    color: var(--ink);
    text-wrap: balance;
}

.tp-app-name {
    background:
        linear-gradient(135deg, rgba(103,87,232,.12), rgba(255,255,255,.62)),
        rgba(255,255,255,.78) !important;
    color: var(--primary-dark) !important;
    box-shadow:
        0 10px 22px rgba(103,87,232,.10),
        inset 0 1px rgba(255,255,255,.95) !important;
}

@media (max-width: 760px) {
    .tp-mobile-top {
        min-height: 68px;
        border-radius: 26px !important;
        padding: 9px 10px !important;
        box-shadow:
            0 18px 42px rgba(66,52,38,.14),
            0 1px 0 rgba(255,255,255,.7) inset !important;
        backdrop-filter: blur(34px) saturate(210%) !important;
    }

    .tp-mobile-top strong {
        font-size: 14px;
        line-height: 1.5;
    }

    .tp-mobile-top span {
        font-size: 11px;
    }

    .tp-app-name {
        min-height: 32px;
        border-radius: 999px;
        font-size: 11.5px;
    }

    .tp-avatar {
        width: 38px;
        height: 38px;
        box-shadow:
            0 14px 28px rgba(103,87,232,.28),
            inset 0 1px rgba(255,255,255,.28);
    }
}

/* v1.7.4: Apple-style readable glass system */
:root {
    --glass-bg: rgba(255, 255, 255, .72);
    --glass-bg-strong: rgba(255, 255, 255, .84);
    --glass-border: rgba(255, 255, 255, .72);
    --glass-inner: rgba(255, 255, 255, .58);
    --glass-shadow:
        0 22px 60px rgba(42, 35, 28, .10),
        0 6px 18px rgba(42, 35, 28, .055),
        inset 0 1px rgba(255, 255, 255, .78);
    --glass-blur: blur(34px) saturate(185%);
}

.tp-mobile-top,
.tp-bottom-nav,
.tp-home-hero,
.tp-daily-card,
.tp-feature-card,
.tp-value-cards article,
.tp-start-path article,
.tp-pricing-grid article,
.tp-seo-content,
.tp-goal-advisor,
.tp-category-digest button,
.tp-orb-card,
.tp-product,
.tp-panel,
.tp-report,
.tp-share-card,
.tp-history,
.tp-empty,
.tp-dashboard-hero,
.tp-dashboard-stats article,
.tp-next-panel,
.tp-chart-panel,
.tp-insight-grid article {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border) !important;
    background:
        linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,255,255,.58)),
        var(--glass-bg) !important;
    box-shadow: var(--glass-shadow) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
}

.tp-mobile-top::after,
.tp-bottom-nav::after,
.tp-home-hero::after,
.tp-daily-card::after,
.tp-feature-card::after,
.tp-goal-advisor::after,
.tp-orb-card::after,
.tp-product::after,
.tp-panel::after,
.tp-report::after,
.tp-dashboard-hero::after,
.tp-chart-panel::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 0;
    border-radius: inherit;
    background:
        linear-gradient(130deg, rgba(255,255,255,.52), rgba(255,255,255,0) 36%),
        radial-gradient(circle at 88% 8%, rgba(255,255,255,.44), transparent 26%);
    pointer-events: none;
}

.tp-mobile-top > *,
.tp-bottom-nav > *,
.tp-home-hero > *,
.tp-daily-card > *,
.tp-feature-card > *,
.tp-goal-advisor > *,
.tp-orb-card > *,
.tp-product > *,
.tp-panel > *,
.tp-report > *,
.tp-dashboard-hero > *,
.tp-chart-panel > * {
    position: relative;
    z-index: 1;
}

.tp-bottom-nav {
    background:
        linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.66)),
        rgba(255,255,255,.78) !important;
}

.tp-mobile-top {
    background:
        linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.60)),
        rgba(255,255,255,.76) !important;
}

.tp-orb-card,
.tp-category-digest button,
.tp-dashboard-stats article,
.tp-insight-grid article {
    background:
        linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.68)),
        var(--glass-bg-strong) !important;
}

.tp-btn--glass,
.tp-btn--ghost,
.tp-search,
.tp-category-rail button,
.tp-related button,
.tp-report-preview span,
.tp-product-grid span,
.tp-fit-tags span,
.tp-product-assurance span,
.tp-next-panel span {
    border: 1px solid rgba(255,255,255,.70) !important;
    background:
        linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,255,255,.56)),
        rgba(255,255,255,.68) !important;
    box-shadow:
        0 8px 22px rgba(42,35,28,.055),
        inset 0 1px rgba(255,255,255,.76) !important;
    backdrop-filter: blur(24px) saturate(170%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(170%) !important;
}

.tp-app-bg {
    background:
        radial-gradient(circle at 18% 10%, rgba(103,87,232,.10), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(232,173,120,.11), transparent 28%),
        radial-gradient(circle at 54% 88%, rgba(111,198,176,.10), transparent 32%),
        linear-gradient(180deg, #f8f5f0, #f1eee9);
}

@media (max-width: 760px) {
    :root {
        --glass-blur: blur(30px) saturate(180%);
    }

    .tp-mobile-top,
    .tp-bottom-nav {
        box-shadow:
            0 18px 46px rgba(42,35,28,.13),
            0 5px 14px rgba(42,35,28,.055),
            inset 0 1px rgba(255,255,255,.82) !important;
    }
}

/* v1.7.5: subtle animated gradient app background */
.tp-app-bg {
    overflow: hidden;
    background:
        linear-gradient(125deg, #f8f5f0 0%, #f4f0fb 28%, #eef7f4 58%, #fff4e8 100%) !important;
}

.tp-app-bg::before,
.tp-app-bg::after {
    content: "";
    position: absolute;
    inset: -18%;
    background:
        radial-gradient(circle at 18% 22%, rgba(103,87,232,.18), transparent 32%),
        radial-gradient(circle at 80% 18%, rgba(111,198,176,.16), transparent 30%),
        radial-gradient(circle at 58% 82%, rgba(232,173,120,.18), transparent 34%),
        radial-gradient(circle at 28% 74%, rgba(233,154,182,.12), transparent 28%);
    filter: blur(18px);
    opacity: .9;
    transform: translate3d(0,0,0);
    animation: tp-bg-drift 18s ease-in-out infinite alternate;
}

.tp-app-bg::after {
    inset: -24%;
    opacity: .48;
    filter: blur(34px);
    animation-duration: 26s;
    animation-direction: alternate-reverse;
}

@keyframes tp-bg-drift {
    0% {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }
    50% {
        transform: translate3d(2%, 1.5%, 0) scale(1.045);
    }
    100% {
        transform: translate3d(-1%, 2%, 0) scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-app-bg::before,
    .tp-app-bg::after {
        animation: none !important;
    }
}

/* v1.7.6: tighter, consistent vertical rhythm */
.tp-app-shell {
    padding-top: 14px;
}

.tp-mobile-top {
    margin-bottom: 10px !important;
}

.tp-home-hero {
    min-height: auto !important;
    padding-block: clamp(26px, 5vw, 42px) !important;
}

.tp-app-section {
    margin-top: 18px !important;
}

.tp-daily-section {
    margin-top: 14px !important;
}

.tp-row-head {
    margin-bottom: 10px !important;
}

.tp-shortcut-section,
.tp-value-section,
.tp-start-section,
.tp-pricing-section {
    margin-top: 20px !important;
}

.tp-home-stats {
    margin-top: 18px !important;
}

.tp-recommend-section {
    margin-top: 16px !important;
}

@media (max-width: 760px) {
    .tp-app-shell {
        padding-top: 8px !important;
    }

    .tp-mobile-top {
        margin-bottom: 8px !important;
    }

    .tp-home-hero {
        padding: 22px 17px !important;
    }

    .tp-app-section,
    .tp-daily-section,
    .tp-recommend-section,
    .tp-shortcut-section,
    .tp-value-section,
    .tp-start-section,
    .tp-pricing-section {
        margin-top: 12px !important;
    }

    .tp-home-stats {
        margin-top: 12px !important;
    }

    .tp-row-head {
        margin-bottom: 7px !important;
    }
}

/* v1.7.7: make the home hero full-width inside the mobile app shell */
@media (max-width: 760px) {
    .tp-app-shell {
        padding-inline: 8px !important;
    }

    .tp-home-hero {
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: 0 !important;
        padding-inline: 16px !important;
    }

    .tp-home-copy,
    .tp-home-copy h1,
    .tp-home-copy p {
        width: 100%;
        max-width: 100%;
    }
}

/* v1.7.8: true edge-to-edge mobile sections */
@media (max-width: 760px) {
    .tp-app-shell {
        width: 100vw !important;
        max-width: 100vw !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-inline: 0 !important;
    }

    .tp-mobile-top,
    .tp-home-hero,
    .tp-daily-card,
    .tp-feature-card,
    .tp-seo-content,
    .tp-pricing-grid,
    .tp-value-cards,
    .tp-start-path,
    .tp-home-stats,
    .tp-shortcuts,
    .tp-profile-grid,
    .tp-dashboard,
    .tp-path-shell {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .tp-mobile-top,
    .tp-home-hero,
    .tp-daily-card {
        border-left-width: 0 !important;
        border-right-width: 0 !important;
        border-radius: 0 0 30px 30px !important;
    }

    .tp-mobile-top {
        top: 0 !important;
        border-top-width: 0 !important;
        margin-bottom: 8px !important;
    }

    .tp-home-hero {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .tp-app-section,
    .tp-home-stats {
        padding-left: 4px;
        padding-right: 4px;
    }

    .tp-row-head {
        padding-left: 10px;
        padding-right: 10px;
    }

    .tp-bottom-nav {
        width: calc(100% - 16px) !important;
    }
}

/* v1.7.9: center and justify hero content inside full-width card */
@media (max-width: 760px) {
    .tp-home-hero {
        display: grid !important;
        place-items: center !important;
        text-align: center !important;
    }

    .tp-home-copy {
        width: min(100%, 620px) !important;
        max-width: 620px !important;
        margin-inline: auto !important;
        display: grid;
        justify-items: center;
    }

    .tp-home-copy h1,
    .tp-home-copy p {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .tp-home-copy .tp-actions {
        width: min(100%, 560px) !important;
        justify-content: center !important;
    }

    .tp-trust-strip {
        width: min(100%, 560px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* v1.6.6 last-mile overrides: keep mobile tests centered and nav 5-wide */
@media (max-width: 980px) {
    .tp-app-shell {
        width: min(100%, 760px);
        padding-inline: 14px;
    }

    .tp-grid[data-tests],
    .tp-grid[data-tests] > .tp-marketplace,
    .tp-marketplace,
    .tp-market-hero,
    .tp-goal-advisor,
    .tp-category-digest,
    .tp-category-rail,
    .tp-galaxy,
    .tp-show-more {
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: auto !important;
        grid-column: auto !important;
        transform: none !important;
    }

    .tp-grid[data-tests],
    .tp-marketplace {
        display: block !important;
    }

    .tp-market-hero {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .tp-category-digest {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 9px !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .tp-category-digest button {
        width: 100% !important;
        min-width: 0 !important;
        flex: initial !important;
        transform: none !important;
    }

    .tp-category-rail {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        overflow: visible !important;
        padding: 0 !important;
        scroll-snap-type: none !important;
    }

    .tp-category-rail button {
        width: 100% !important;
        min-width: 0 !important;
        flex: initial !important;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.45;
    }

    .tp-galaxy {
        display: grid !important;
        grid-template-columns: 1fr !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .tp-galaxy::before {
        display: none !important;
    }

    .tp-bottom-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        width: min(720px, calc(100% - 24px)) !important;
        max-width: 720px !important;
        min-height: 76px;
        gap: 4px;
        border-radius: 28px;
        padding: 6px;
    }

    .tp-bottom-nav button {
        min-width: 0;
        min-height: 62px;
        border-radius: 22px;
        font-size: 10.5px;
        line-height: 1.2;
        padding: 6px 2px;
        white-space: nowrap;
    }
}

@media (max-width: 420px) {
    .tp-app-shell {
        padding-inline: 10px;
    }

    .tp-goal-tabs {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .tp-goal-tabs button {
        width: 100% !important;
        min-width: 0 !important;
        flex: initial !important;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.45;
    }

    .tp-category-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .tp-bottom-nav {
        width: calc(100% - 14px) !important;
        min-height: 70px;
        border-radius: 24px;
        padding: 5px;
    }

    .tp-bottom-nav button {
        min-height: 58px;
        border-radius: 19px;
        font-size: 9px;
    }
}

/* v1.6.7: make the test library hero readable and opaque */
.tp-market-hero {
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94)),
        #fff !important;
    border-color: rgba(47, 42, 37, .10) !important;
    box-shadow: 0 18px 48px rgba(66, 52, 38, .10) !important;
}

.tp-market-stats span {
    background: #fff !important;
    border-color: rgba(47, 42, 37, .10) !important;
}

/* v1.6.4 mobile QA fixes */
@media (max-width: 760px) {
    .tp-grid[data-tests] {
        display: block;
        width: 100%;
    }

    .tp-grid[data-tests] > .tp-marketplace,
    .tp-marketplace,
    .tp-market-hero,
    .tp-goal-advisor,
    .tp-galaxy,
    .tp-show-more {
        grid-column: auto;
        width: 100%;
        max-width: 100%;
        margin-inline: 0;
    }

    .tp-market-hero > div,
    .tp-goal-advisor__head,
    .tp-market-stats,
    .tp-galaxy {
        width: 100%;
        max-width: 100%;
    }

    .tp-hero-device__orb {
        justify-self: center;
        margin-inline: auto;
        overflow: hidden;
    }

    .tp-mini-lottie {
        inset: -8%;
        width: 116%;
        height: 116%;
    }
}

/* v1.6.6 final mobile/tablet QA */
.tp-app-loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(103, 87, 232, .16), transparent 28%),
        rgba(247, 244, 239, .82);
    backdrop-filter: blur(24px) saturate(170%);
    opacity: 1;
    transition: opacity .16s ease, visibility .16s ease;
}

.tp-app-loader.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.tp-seo-h1-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    pointer-events: none !important;
}

.tp-seo-h1-hidden a {
    pointer-events: none !important;
}

.tp-loader-card {
    min-width: 144px;
    min-height: 118px;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.88);
    border-radius: 32px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 24px 70px rgba(66,52,38,.16);
}

.tp-loader-card span {
    width: 38px;
    height: 38px;
    border: 4px solid rgba(103, 87, 232, .16);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: tp-spin .8s linear infinite;
}

.tp-loader-card strong {
    color: var(--ink);
    font-size: 18px;
    font-weight: 950;
}

.tp-home-orbit,
.tp-hero-device,
.tp-hero-device__orb,
.tp-daily-lottie {
    display: none !important;
}

.tp-home-hero {
    grid-template-columns: minmax(0, 1fr) !important;
}

@media (max-width: 980px) {
    .tp-app-shell {
        width: min(100%, 760px);
        padding-inline: 14px;
    }

    .tp-grid[data-tests] {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .tp-grid[data-tests] > .tp-marketplace,
    .tp-marketplace,
    .tp-market-hero,
    .tp-goal-advisor,
    .tp-galaxy,
    .tp-show-more {
        grid-column: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: auto !important;
    }

    .tp-marketplace {
        display: block !important;
    }

    .tp-market-hero {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .tp-category-digest {
        display: grid !important;
        grid-template-columns: 1fr !important;
        overflow: visible !important;
    }

    .tp-category-digest button {
        width: 100%;
        min-width: 0;
    }

    .tp-category-rail {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
        margin-inline: 0;
        padding: 0;
    }

    .tp-category-rail button {
        width: 100%;
        min-width: 0;
        justify-content: center;
        white-space: normal;
        line-height: 1.45;
        text-align: center;
    }

    .tp-market-hero > div,
    .tp-goal-advisor__head,
    .tp-market-stats,
    .tp-galaxy {
        width: 100%;
        max-width: 100%;
    }

    .tp-market-hero,
    .tp-goal-advisor,
    .tp-category-digest button,
    .tp-orb-card {
        transform: none;
    }

    .tp-market-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tp-galaxy {
        grid-template-columns: 1fr;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .tp-galaxy::before {
        display: none;
    }

    .tp-orb-card {
        width: 100%;
        border-radius: 24px;
    }

    .tp-bottom-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        width: min(720px, calc(100% - 24px));
        max-width: 720px;
        min-height: 76px;
        gap: 4px;
        border-radius: 28px;
        padding: 6px;
    }

    .tp-bottom-nav button {
        min-width: 0;
        min-height: 62px;
        border-radius: 22px;
        font-size: 10.5px;
        line-height: 1.2;
        padding: 6px 2px;
        white-space: nowrap;
    }

    .tp-bottom-nav button span {
        display: block;
        font-size: 17px;
        line-height: 1;
        margin-bottom: 4px;
    }

    .tp-bottom-nav button.is-active {
        box-shadow: 0 15px 34px rgba(103,87,232,.24);
    }
}

@media (max-width: 420px) {
    .tp-app-shell {
        padding-inline: 10px;
    }

    .tp-bottom-nav {
        width: calc(100% - 14px);
        min-height: 70px;
        border-radius: 24px;
        padding: 5px;
    }

    .tp-bottom-nav button {
        min-height: 58px;
        border-radius: 19px;
        font-size: 9px;
    }

    .tp-bottom-nav button span {
        font-size: 15px;
    }

    .tp-category-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

html,
body,
.tp-app-shell {
    max-width: 100%;
    overflow-x: hidden;
}

.tp-marketplace,
.tp-market-hero,
.tp-goal-advisor,
.tp-category-rail,
.tp-galaxy,
.tp-show-more {
    max-width: 100%;
}

/* App shell */
.tp-header,
.tp-footer {
    display: none;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

.tp-app-shell {
    position: relative;
    width: min(100%, 1220px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 18px clamp(14px, 3vw, 28px) 110px;
}

.tp-app-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 18% 12%, rgba(10, 132, 255, 0.20), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(191, 90, 242, 0.14), transparent 32%),
        radial-gradient(circle at 56% 86%, rgba(48, 209, 88, 0.12), transparent 34%),
        #f5f5f7;
}

.tp-app-screen {
    min-height: calc(100vh - 128px);
    animation: tp-rise 0.42s cubic-bezier(.2, .8, .2, 1);
}

.tp-mobile-top {
    position: sticky;
    top: 12px;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(100%, 760px);
    margin: 0 auto 18px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.70);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    backdrop-filter: var(--blur);
    padding: 10px 12px;
}

.tp-mobile-top span,
.tp-profile-card span,
.tp-feature-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.tp-mobile-top strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
    font-weight: 950;
}

.tp-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #111114;
    color: #fff;
    cursor: pointer;
    font-weight: 950;
}

.tp-home-hero,
.tp-profile-card {
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: var(--shadow);
    backdrop-filter: var(--blur);
}

.tp-home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
    gap: 18px;
    align-items: center;
    min-height: 460px;
    overflow: hidden;
    padding: clamp(24px, 5vw, 48px);
}

.tp-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 80% 24%, rgba(10,132,255,.18), transparent 32%),
        radial-gradient(circle at 20% 80%, rgba(191,90,242,.12), transparent 36%);
}

.tp-home-copy h1 {
    max-width: 760px;
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 76px);
    font-weight: 950;
    line-height: 1.07;
}

.tp-home-copy p {
    max-width: 620px;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 20px);
    margin: 0 0 22px;
}

.tp-home-orbit {
    min-height: 320px;
    display: grid;
    place-items: center;
}

.tp-hero-device {
    position: relative;
    width: min(360px, 100%);
    min-height: 420px;
    display: grid;
    align-content: space-between;
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 8px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.52)),
        linear-gradient(30deg, rgba(10, 132, 255, 0.16), rgba(48, 209, 88, 0.10));
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
    backdrop-filter: var(--blur);
    padding: 18px;
}

.tp-hero-device__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tp-hero-device__top span,
.tp-hero-device__grid span {
    color: rgba(17, 24, 39, 0.62);
    font-size: 12px;
    font-weight: 950;
}

.tp-hero-device__top strong {
    color: var(--ink);
    font-size: 22px;
}

.tp-hero-device__orb {
    width: 190px;
    height: 190px;
    display: grid;
    place-items: center;
    justify-self: center;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background:
        linear-gradient(135deg, rgba(17, 17, 20, 0.96), rgba(45, 55, 72, 0.92)),
        #111114;
    color: #fff;
    box-shadow: 0 22px 56px rgba(17, 17, 20, 0.20);
    font-size: 58px;
    animation: tp-float 5.5s ease-in-out infinite;
}

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

.tp-hero-device__grid span {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    padding: 10px;
}

.tp-hero-device__grid i {
    color: var(--primary);
    font-size: 16px;
}

.tp-app-stats,
.tp-shortcuts,
.tp-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.tp-app-stats article,
.tp-shortcuts button,
.tp-feature-card,
.tp-profile-card {
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
    backdrop-filter: var(--blur);
}

.tp-app-stats article {
    padding: 16px;
}

.tp-app-stats strong {
    display: block;
    font-size: 28px;
    line-height: 1.1;
}

.tp-app-stats span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.tp-app-section {
    margin-top: 24px;
}

.tp-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.tp-row-head h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 32px);
}

.tp-row-head button {
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.62);
    color: var(--primary);
    cursor: pointer;
    font-weight: 950;
    padding: 8px 12px;
}

.tp-feature-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 18px;
}

.tp-feature-card h3 {
    margin: 4px 0;
    font-size: 24px;
}

.tp-feature-card p {
    color: var(--muted);
    margin: 0;
}

.tp-shortcuts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tp-shortcuts button {
    min-height: 96px;
    display: grid;
    place-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,.78);
    color: var(--ink);
    cursor: pointer;
    font-weight: 950;
    padding: 14px;
}

.tp-shortcuts span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111114;
    color: #fff;
}

.tp-app-head {
    position: sticky;
    top: 84px;
    z-index: 8;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 8px;
    background: rgba(245,245,247,.72);
    backdrop-filter: var(--blur);
    padding: 14px;
}

.tp-app-head {
    position: static;
    top: auto;
}

.tp-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, minmax(64px, 1fr));
    gap: 4px;
    width: min(560px, calc(100% - 24px));
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 8px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 20px 70px rgba(0,0,0,.16);
    backdrop-filter: var(--blur);
    padding: 6px;
    transform: translateX(-50%);
}

.tp-bottom-nav button {
    min-height: 54px;
    display: grid;
    place-items: center;
    gap: 2px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(17,17,20,.58);
    cursor: pointer;
    font-size: 11px;
    font-weight: 950;
}

.tp-bottom-nav button span {
    font-size: 18px;
    line-height: 1;
}

.tp-bottom-nav button.is-active {
    background: #111114;
    color: #fff;
}

.tp-actions a.tp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.tp-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tp-profile-card {
    padding: 22px;
}

.tp-profile-card h2 {
    margin: 6px 0 8px;
}

.tp-profile-card p {
    color: var(--muted);
}

.tp-app-screen .tp-product,
.tp-app-screen .tp-result,
.tp-app-screen .tp-quiz,
.tp-dashboard {
    width: min(100%, 980px);
    margin-inline: auto;
}

@media (max-width: 980px) {
    .tp-home-hero,
    .tp-feature-card,
    .tp-profile-grid {
        grid-template-columns: 1fr;
    }

    .tp-app-stats,
    .tp-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tp-app-shell {
        padding-inline: 12px;
        padding-top: 10px;
    }

    .tp-mobile-top {
        top: 8px;
    }

    .tp-home-hero {
        min-height: auto;
        padding: 22px;
    }

    .tp-home-orbit {
        min-height: 220px;
    }

    .tp-hero-device {
        min-height: 300px;
    }

    .tp-hero-device__orb {
        width: 136px;
        height: 136px;
        font-size: 42px;
    }

    .tp-app-stats,
    .tp-shortcuts {
        grid-template-columns: 1fr 1fr;
    }

    .tp-feature-card {
        padding: 16px;
    }

    .tp-feature-card .tp-btn {
        width: 100%;
    }

    .tp-bottom-nav {
        grid-template-columns: repeat(4, 1fr);
    }

    .tp-bottom-nav button {
        min-height: 50px;
        padding: 4px 2px;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(145deg, rgba(10, 132, 255, 0.10), transparent 32%),
        linear-gradient(235deg, rgba(48, 209, 88, 0.10), transparent 34%),
        var(--bg);
    color: var(--ink);
    font-family: "Yekan Bakh", "IRANYekan", "B Yekan", "Vazirmatn", "IRANSansX", Tahoma, Arial, sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

button,
input {
    font: inherit;
}

.tp-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px clamp(16px, 5vw, 72px);
    background: rgba(245, 245, 247, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: var(--blur);
}

.tp-logo {
    color: var(--ink);
    font-weight: 950;
    font-size: 22px;
    text-decoration: none;
}

.tp-nav {
    display: flex;
    gap: 18px;
}

.tp-nav a {
    color: rgba(17, 17, 20, 0.64);
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.tp-hero {
    position: relative;
    min-height: calc(100vh - 64px);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    overflow: hidden;
    padding: clamp(30px, 6vw, 84px);
}

.tp-ambient {
    position: absolute;
    inset: 22px;
    z-index: -1;
    border-radius: 8px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.26)),
        linear-gradient(145deg, rgba(10, 132, 255, 0.16), transparent 52%),
        linear-gradient(225deg, rgba(255, 45, 85, 0.12), transparent 54%);
    filter: saturate(120%);
}

.tp-kicker {
    display: inline-flex;
    color: rgba(10, 132, 255, 0.92);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.tp-hero h1 {
    max-width: 860px;
    margin: 0 0 20px;
    font-size: clamp(42px, 7vw, 88px);
    font-weight: 950;
    line-height: 1.06;
    letter-spacing: 0;
}

.tp-hero p,
.tp-card p,
.tp-report p,
.tp-trust p,
.tp-footer p,
.tp-panel p {
    color: var(--muted);
}

.tp-hero p {
    max-width: 720px;
    margin: 0 0 28px;
    font-size: clamp(17px, 2vw, 21px);
}

.tp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tp-btn,
.tp-link {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 950;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.tp-btn:hover {
    transform: translateY(-2px);
}

.tp-btn--primary {
    background: #0a84ff;
    color: #fff;
    box-shadow: 0 18px 45px rgba(10, 132, 255, 0.28);
}

.tp-btn--glass,
.tp-btn--ghost {
    background: rgba(255, 255, 255, 0.62);
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.82);
    backdrop-filter: var(--blur);
}

.tp-link {
    background: transparent;
    color: var(--primary);
    padding-inline: 0;
}

.tp-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.tp-proof span,
.tp-science-note,
.tp-ethics {
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.54);
    color: rgba(17, 17, 20, 0.66);
    backdrop-filter: var(--blur);
}

.tp-proof span {
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
}

.tp-hero__visual {
    position: relative;
    min-height: 500px;
    display: grid;
    place-items: center;
}

.tp-hero__card,
.tp-card,
.tp-panel,
.tp-share-card,
.tp-report,
.tp-history,
.tp-empty {
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: var(--blur);
}

.tp-hero__card {
    position: absolute;
    right: 4%;
    bottom: 8%;
    width: min(360px, 88%);
    padding: 22px;
    animation: tp-float 5.5s ease-in-out infinite;
}

.tp-hero__card span,
.tp-card span,
.tp-panel span,
.tp-share-card span {
    color: rgba(17, 17, 20, 0.58);
    font-size: 13px;
    font-weight: 900;
}

.tp-hero__card strong {
    display: block;
    margin: 8px 0;
    font-size: 34px;
    line-height: 1.25;
}

.tp-section {
    padding: clamp(34px, 5vw, 78px);
}

.tp-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.tp-section h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 950;
    letter-spacing: 0;
}

.tp-search {
    min-height: 48px;
    width: min(340px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 8px;
    padding: 8px 15px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.64);
    outline: 0;
    backdrop-filter: var(--blur);
}

.tp-search:focus {
    border-color: rgba(10, 132, 255, 0.52);
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.10);
}

.tp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tp-marketplace {
    grid-column: 1 / -1;
    display: grid;
    gap: 18px;
}

.tp-market-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    background:
        radial-gradient(circle at 88% 18%, rgba(10, 132, 255, 0.14), transparent 28%),
        radial-gradient(circle at 12% 70%, rgba(191, 90, 242, 0.12), transparent 32%),
        rgba(255, 255, 255, 0.54);
    box-shadow: var(--shadow);
    backdrop-filter: var(--blur);
    padding: clamp(20px, 4vw, 34px);
}

.tp-market-hero h3 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.18;
}

.tp-market-hero p {
    color: var(--muted);
    margin: 0;
}

.tp-market-stats,
.tp-mini-cards {
    display: grid;
    gap: 10px;
}

.tp-market-stats span,
.tp-mini-cards article {
    display: grid;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    padding: 14px;
    backdrop-filter: var(--blur);
}

.tp-market-stats strong,
.tp-mini-cards strong {
    font-size: 22px;
    color: var(--ink);
}

.tp-mini-cards span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.tp-category-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 8px;
}

.tp-category-rail button,
.tp-related button {
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: rgba(17, 17, 20, 0.72);
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 900;
    padding: 9px 13px;
    backdrop-filter: var(--blur);
}

.tp-category-rail button.is-active {
    background: #111114;
    color: #fff;
}

.tp-galaxy {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    background:
        radial-gradient(circle at 16% 22%, rgba(10, 132, 255, 0.14), transparent 24%),
        radial-gradient(circle at 82% 30%, rgba(191, 90, 242, 0.14), transparent 26%),
        radial-gradient(circle at 52% 88%, rgba(48, 209, 88, 0.10), transparent 30%),
        rgba(17, 17, 20, 0.92);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.16), var(--shadow);
}

.tp-galaxy::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.62) 1px, transparent 1.5px),
        radial-gradient(circle, rgba(255,255,255,.32) 1px, transparent 1.5px);
    background-position: 0 0, 28px 44px;
    background-size: 86px 86px, 120px 120px;
    opacity: 0.45;
}

.tp-orb-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    min-height: 210px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    padding: 14px;
    backdrop-filter: blur(22px) saturate(180%);
    transition: transform .24s ease, border-color .24s ease, background .24s ease;
}

.tp-orb-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 52%, white);
    background: rgba(255, 255, 255, 0.14);
}

.tp-orb-card.is-purchased {
    box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 26%, transparent);
}

.tp-orb-card.is-completed {
    border-color: rgba(255, 214, 10, 0.58);
}

.tp-orb-button {
    position: relative;
    display: grid;
    place-items: center;
    align-self: start;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.tp-orb {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background:
        radial-gradient(circle at 30% 24%, rgba(255,255,255,.95), transparent 18%),
        radial-gradient(circle at 58% 68%, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent));
    box-shadow:
        0 0 24px color-mix(in srgb, var(--accent) 42%, transparent),
        inset 0 -16px 28px rgba(0,0,0,.22);
    font-size: 30px;
    animation: tp-float 5.5s ease-in-out infinite;
}

.tp-orb--large {
    width: 180px;
    height: 180px;
    font-size: 64px;
}

.tp-lock {
    position: absolute;
    right: -2px;
    bottom: -2px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 999px;
    background: rgba(17, 17, 20, 0.72);
    color: #fff;
    font-size: 10px;
    font-weight: 950;
    padding: 3px 7px;
    backdrop-filter: var(--blur);
}

.tp-orb-copy span,
.tp-orb-copy p,
.tp-orb-copy small {
    color: rgba(255, 255, 255, 0.68);
}

.tp-orb-copy h3 {
    min-height: auto;
    margin: 8px 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.5;
}

.tp-orb-copy p {
    min-height: 76px;
    margin: 0 0 10px;
    font-size: 13px;
}

.tp-orb-copy .tp-meta {
    border-color: rgba(255, 255, 255, 0.14);
}

.tp-orb-copy .tp-meta strong {
    color: #fff;
}

.tp-product {
    display: grid;
    grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34%),
        rgba(255,255,255,.62);
    box-shadow: var(--shadow);
    backdrop-filter: var(--blur);
    padding: clamp(20px, 4vw, 34px);
}

.tp-product__orb {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 16px;
    min-height: 320px;
}

.tp-price-badge {
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    background: rgba(255,255,255,.7);
    color: var(--ink);
    font-weight: 950;
    padding: 8px 14px;
}

.tp-product__body :is(h1, h2) {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.12;
}

.tp-product__body p {
    color: var(--muted);
}

.tp-product-grid,
.tp-report-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.tp-product-grid span,
.tp-report-preview span,
.tp-report-preview strong {
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    background: rgba(255,255,255,.58);
    color: rgba(17,17,20,.72);
    font-size: 12px;
    font-weight: 900;
    padding: 6px 10px;
}

.tp-related {
    margin-top: 16px;
}

.tp-related h4 {
    margin-bottom: 8px;
}

.tp-related button {
    margin: 0 0 8px 6px;
}

.tp-btn:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}

.tp-report-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.tp-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
    border-top: 3px solid color-mix(in srgb, var(--accent, var(--primary)) 78%, white);
}

.tp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 78px rgba(0, 0, 0, 0.12);
}

.tp-card__top,
.tp-share-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tp-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent, var(--primary)) 15%, white);
    color: var(--accent, var(--primary));
    font-size: 25px;
}

.tp-card h3 {
    min-height: 66px;
    margin: 16px 0 8px;
    font-size: 23px;
    line-height: 1.45;
}

.tp-card p {
    min-height: 84px;
    margin: 0 0 14px;
}

.tp-science-note {
    min-height: 62px;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.7;
}

.tp-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.72);
    padding-top: 12px;
    margin: auto 0 14px;
}

.tp-meta small,
.tp-meta strong {
    color: rgba(17, 17, 20, 0.62);
    font-size: 12px;
}

.tp-quiz {
    max-width: 800px;
    margin: 0 auto;
}

.tp-progress {
    height: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.60);
    border: 1px solid rgba(255, 255, 255, 0.80);
    border-radius: 999px;
    margin-bottom: 16px;
    backdrop-filter: var(--blur);
}

.tp-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0a84ff, #30d158);
    transition: width 0.35s cubic-bezier(.2, .8, .2, 1);
}

.tp-panel {
    padding: clamp(24px, 5vw, 48px);
    animation: tp-rise 0.45s cubic-bezier(.2, .8, .2, 1);
}

.tp-panel [data-step] {
    display: none;
}

.tp-panel h2 {
    margin: 10px 0 10px;
    font-size: clamp(25px, 4vw, 38px);
    font-weight: 950;
    line-height: 1.42;
}

.tp-panel p {
    margin: 0 0 24px;
}

.tp-options {
    display: grid;
    gap: 10px;
}

.tp-option {
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.70);
    color: var(--ink);
    cursor: pointer;
    text-align: right;
    padding: 13px 16px;
    backdrop-filter: var(--blur);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tp-option:hover {
    transform: translateX(-3px);
    border-color: rgba(10, 132, 255, 0.48);
    background: rgba(255, 255, 255, 0.92);
}

.tp-result {
    display: grid;
    grid-template-columns: minmax(280px, 0.88fr) minmax(320px, 1.12fr);
    gap: 18px;
    align-items: start;
}

.tp-share-card {
    position: sticky;
    top: 88px;
    padding: 24px;
    overflow: hidden;
    border-top: 4px solid color-mix(in srgb, var(--accent, var(--primary)) 76%, white);
}

.tp-share-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(155deg, color-mix(in srgb, var(--accent, var(--primary)) 17%, transparent), transparent 62%),
        rgba(255, 255, 255, 0.72);
}

.tp-share-card h2 {
    margin: 18px 0 10px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.12;
}

.tp-score {
    display: inline-grid;
    place-items: center;
    min-width: 118px;
    min-height: 118px;
    border-radius: 50%;
    margin: 16px 0;
    background: color-mix(in srgb, var(--accent, var(--primary)) 88%, #111);
    color: #fff;
    box-shadow: 0 18px 42px color-mix(in srgb, var(--accent, var(--primary)) 26%, transparent);
}

.tp-score strong {
    font-size: 28px;
    line-height: 1;
}

.tp-score small {
    max-width: 90px;
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
    opacity: 0.82;
}

.tp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tp-tags span {
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.70);
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 850;
}

.tp-report {
    padding: 24px;
}

.tp-report h3 {
    margin: 0 0 10px;
    font-size: 31px;
    font-weight: 950;
}

.tp-dimensions {
    display: grid;
    gap: 12px;
    margin: 22px 0;
}

.tp-dimension {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.52);
    padding: 13px;
}

.tp-dimension__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.tp-dimension__head strong,
.tp-dimension__head span {
    font-size: 13px;
    font-weight: 950;
}

.tp-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(17, 17, 20, 0.08);
}

.tp-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0a84ff, #30d158);
    transition: width 900ms cubic-bezier(.2, .8, .2, 1);
}

.tp-dimension small,
.tp-ethics {
    display: block;
    color: rgba(17, 17, 20, 0.58);
    font-size: 12px;
    line-height: 1.7;
}

.tp-dimension small {
    margin-top: 8px;
}

.tp-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.tp-columns > div,
.tp-report > ul {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.48);
    padding: 12px 16px;
}

.tp-report h4 {
    margin: 18px 0 8px;
}

.tp-report ul {
    margin-top: 0;
}

.tp-result-links {
    display: grid;
    gap: 18px;
    margin-top: 24px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgba(10, 54, 39, .10);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(242,247,243,.72));
    box-shadow: 0 18px 42px rgba(9, 39, 28, .08);
}

.tp-result-links h4 {
    margin: 6px 0 8px;
}

.tp-result-links p {
    margin: 0;
    color: var(--muted);
}

.tp-result-links__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tp-result-link-card {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 18px 18px 48px;
    border: 1px solid rgba(10, 54, 39, .10);
    border-radius: 18px;
    background: rgba(255,255,255,.82);
    color: var(--ink);
    text-decoration: none;
}

.tp-result-link-card strong {
    line-height: 1.8;
}

.tp-result-link-card span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.tp-result-link-card i {
    position: absolute;
    left: 18px;
    bottom: 16px;
    color: var(--green);
}

.tp-ai-report {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgba(82, 67, 196, .16);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(247,244,255,.78));
    box-shadow: 0 18px 42px rgba(44, 28, 108, .08);
}

.tp-ai-report h4,
.tp-ai-report h5 {
    margin: 0;
}

.tp-ai-report p {
    margin: 0;
}

.tp-ai-report__lead {
    color: var(--ink);
    font-weight: 800;
}

.tp-ai-report__grid,
.tp-ai-report__styles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tp-ai-report__grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-ai-report__grid > div,
.tp-ai-report__styles > div,
.tp-ai-report__plan article {
    border: 1px solid rgba(82, 67, 196, .10);
    border-radius: 8px;
    background: rgba(255,255,255,.68);
    padding: 14px;
}

.tp-ai-report__grid ul {
    display: grid;
    gap: 8px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.tp-ai-report__grid li {
    position: relative;
    padding: 0;
    line-height: 1.9;
}

.tp-ai-report__styles > div {
    display: grid;
    gap: 6px;
}

.tp-ai-report__styles strong,
.tp-ai-report__plan strong {
    color: var(--ink);
}

.tp-ai-report__styles span,
.tp-ai-report__plan p,
.tp-ai-report__plan em,
.tp-ai-report__note {
    color: var(--muted);
    line-height: 1.9;
}

.tp-ai-report__plan {
    display: grid;
    gap: 12px;
}

.tp-ai-report__plan article {
    display: grid;
    gap: 8px;
}

.tp-ai-report__plan article > span {
    color: #5a45d6;
    font-size: 12px;
    font-weight: 900;
}

.tp-ai-report__plan em {
    display: block;
    font-style: normal;
}

.tp-ai-report__note {
    border-radius: 8px;
    background: rgba(82, 67, 196, .07);
    padding: 12px;
    font-size: 12px;
}

.tp-ai-report--failed {
    border-color: rgba(180, 44, 44, .16);
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,246,246,.78));
}

.tp-ai-report--waiting {
    position: relative;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) minmax(148px, auto);
    align-items: center;
}

.tp-ai-report__pending {
    display: grid;
    gap: 10px;
}

.tp-ai-report__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.tp-ai-report__steps span,
.tp-ai-report__ready {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    border: 1px solid rgba(82, 67, 196, .12);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: #4f3ac8;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 900;
}

.tp-ai-report__timer {
    display: grid;
    place-items: center;
    gap: 4px;
    min-width: 148px;
    min-height: 148px;
    border: 1px solid rgba(255,255,255,.84);
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 20%, rgba(91,92,226,.16), transparent 58%),
        rgba(255,255,255,.74);
    box-shadow: inset 0 1px rgba(255,255,255,.92), 0 18px 32px rgba(44, 28, 108, .10);
    text-align: center;
}

.tp-ai-report__timer span,
.tp-ai-report__timer small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.tp-ai-report__timer strong {
    direction: ltr;
    color: var(--ink);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 950;
    letter-spacing: 0;
}

.tp-ai-report__progress {
    position: absolute;
    right: 24px;
    left: 24px;
    bottom: 14px;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(82, 67, 196, .10);
}

.tp-ai-report__progress span {
    position: absolute;
    inset-block: 0;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2A9D8F, #5B5CE2);
    animation: tp-ai-report-progress 1.35s ease-in-out infinite;
}

.tp-ai-report__ready {
    gap: 8px;
    border-color: rgba(42, 157, 143, .18);
    color: #14796e;
    background: rgba(235, 253, 248, .76);
}

.tp-app-toast {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: calc(96px + env(safe-area-inset-bottom));
    z-index: 9999;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: min(360px, calc(100vw - 28px));
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 22px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 22px 58px rgba(12, 20, 40, .18);
    color: var(--ink);
    direction: rtl;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity .22s ease, transform .22s ease;
}

.tp-app-toast.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.tp-app-toast i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, #2A9D8F, #5B5CE2);
}

.tp-app-toast strong,
.tp-app-toast span {
    display: block;
}

.tp-app-toast [data-toast-action] {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #102448, #5b4bdc);
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.tp-app-toast strong {
    font-weight: 950;
}

.tp-app-toast span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

@keyframes tp-ai-report-progress {
    0% {
        transform: translateX(125%);
    }
    55% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-125%);
    }
}

@media (max-width: 720px) {
    .tp-ai-report--waiting {
        grid-template-columns: 1fr;
    }

    .tp-ai-report__timer {
        width: 100%;
        min-height: 132px;
        border-radius: 24px;
    }

    .tp-ai-report__steps {
        justify-content: center;
    }

    .tp-app-toast {
        right: 14px;
        bottom: calc(86px + env(safe-area-inset-bottom));
        width: calc(100vw - 28px);
    }
}

.tp-ethics {
    border-radius: 8px;
    padding: 12px;
    margin: 18px 0;
}

.tp-dashboard {
    display: grid;
    gap: 12px;
}

.tp-history,
.tp-empty {
    padding: 18px;
}

.tp-history {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.tp-history-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.tp-history strong,
.tp-history span {
    display: block;
}

.tp-history span {
    color: var(--muted);
}

.tp-trust,
.tp-footer {
    background: #111114;
    color: #fff;
}

.tp-trust p,
.tp-footer p {
    color: rgba(255, 255, 255, 0.72);
    max-width: 900px;
}

.tp-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 22px clamp(16px, 5vw, 72px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tp-hidden {
    display: none !important;
}

.tp-reveal {
    animation: tp-rise 0.55s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: var(--delay, 0ms);
}

@keyframes tp-rise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes tp-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media print {
    .tp-header,
    .tp-hero,
    #tests,
    .tp-trust,
    .tp-footer,
    .tp-actions,
    .tp-link {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .tp-section {
        padding: 0;
    }

    .tp-result {
        display: block;
    }

    .tp-share-card,
    .tp-report {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

@media (max-width: 980px) {
    .tp-hero,
    .tp-grid,
    .tp-result,
    .tp-market-hero,
    .tp-product {
        grid-template-columns: 1fr;
    }

    .tp-galaxy {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-result-links__grid {
        grid-template-columns: 1fr;
    }

    .tp-ai-report__grid,
    .tp-ai-report__styles {
        grid-template-columns: 1fr;
    }

    .tp-ai-report__grid--three {
        grid-template-columns: 1fr;
    }

    .tp-hero__visual {
        min-height: 420px;
    }

    .tp-share-card {
        position: relative;
        top: auto;
    }

    .tp-section__head {
        display: block;
    }

    .tp-search {
        width: 100%;
        margin-top: 12px;
    }
}

@media (max-width: 640px) {
    .tp-nav {
        display: none;
    }

    .tp-hero,
    .tp-section {
        padding: 24px 16px;
    }

    .tp-ambient {
        inset: 8px;
    }

    .tp-actions,
    .tp-btn {
        width: 100%;
    }

    .tp-columns {
        grid-template-columns: 1fr;
    }

    .tp-history {
        align-items: stretch;
        flex-direction: column;
    }

    .tp-history-actions {
        justify-content: stretch;
    }

    .tp-history-actions .tp-btn {
        flex: 1 1 120px;
    }

    .tp-galaxy {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .tp-orb-card {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .tp-report-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .tp-hero__card {
        right: 0;
        left: 0;
        bottom: 0;
        margin: 0 auto;
    }
}

/* Modern app-only polish */
.tp-header,
.tp-footer {
    display: none !important;
}

body {
    background: linear-gradient(135deg, #f7f8fb 0%, #edf3ff 46%, #f8fbf7 100%);
}

.tp-app-bg {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.18)),
        linear-gradient(160deg, rgba(10, 132, 255, 0.10), transparent 42%),
        linear-gradient(25deg, rgba(48, 209, 88, 0.08), transparent 46%),
        #f7f8fb;
}

.tp-app-shell {
    width: min(100%, 1180px);
    padding-top: 16px;
}

.tp-mobile-top {
    width: min(100%, 820px);
    border-color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 46px rgba(15, 23, 42, 0.08);
}

.tp-mobile-top span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tp-avatar {
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(17, 17, 20, 0.18);
}

.tp-avatar i,
.tp-btn i,
.tp-bottom-nav i,
.tp-orb i,
.tp-icon i,
.tp-category-rail i {
    pointer-events: none;
    line-height: 1;
}

.tp-home-hero {
    border-color: rgba(255, 255, 255, 0.92);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.56)),
        linear-gradient(150deg, rgba(10, 132, 255, 0.12), transparent 46%);
}

.tp-home-hero::before {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), rgba(10, 132, 255, 0.10), rgba(255, 255, 255, 0.04));
}

.tp-home-copy h1 {
    font-size: 56px;
    letter-spacing: 0;
}

.tp-home-copy p,
.tp-market-hero p,
.tp-product__body p {
    color: rgba(17, 24, 39, 0.66);
}

.tp-kicker {
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.tp-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.10);
}

.tp-btn,
.tp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
}

.tp-btn--primary {
    background: linear-gradient(135deg, #111114, #2d3748);
    box-shadow: 0 18px 42px rgba(17, 17, 20, 0.20);
}

.tp-btn--primary:hover {
    box-shadow: 0 22px 52px rgba(17, 17, 20, 0.26);
}

.tp-btn--glass,
.tp-btn--ghost {
    background: rgba(255, 255, 255, 0.74);
}

.tp-app-stats article,
.tp-shortcuts button,
.tp-feature-card,
.tp-profile-card,
.tp-market-hero,
.tp-product,
.tp-panel,
.tp-share-card,
.tp-report,
.tp-history,
.tp-empty,
.tp-commerce-card {
    border-color: rgba(255, 255, 255, 0.92);
    background-color: rgba(255, 255, 255, 0.72);
}

.tp-shortcuts button {
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.tp-shortcuts button:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.10);
}

.tp-shortcuts span,
.tp-avatar,
.tp-bottom-nav button.is-active,
.tp-bottom-nav a.is-active {
    background: linear-gradient(135deg, #111114, #2d3748);
}

.tp-app-head {
    top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(255, 255, 255, 0.78);
}

.tp-search {
    border-color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.78);
}

.tp-bottom-nav {
    width: min(460px, calc(100% - 24px));
    border-color: rgba(255, 255, 255, 0.94);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 20px 58px rgba(15, 23, 42, 0.18);
}

.tp-bottom-nav button,
.tp-bottom-nav a {
    min-height: 54px;
    display: grid;
    place-items: center;
    gap: 2px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(17,17,20,.58);
    cursor: pointer;
    font-size: 11px;
    font-weight: 950;
    text-decoration: none;
}

.tp-bottom-nav button span,
.tp-bottom-nav a span {
    display: grid;
    place-items: center;
    font-size: 18px;
    line-height: 1;
}

.tp-bottom-nav button.is-active,
.tp-bottom-nav a.is-active {
    color: #fff;
}

.tp-category-rail button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.tp-galaxy {
    border-color: rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(135deg, rgba(17, 17, 20, 0.96), rgba(29, 35, 47, 0.94)),
        #111114;
}

.tp-orb-card {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.11);
    box-shadow: inset 0 1px rgba(255,255,255,.12);
}

.tp-orb-card:hover {
    box-shadow: 0 18px 44px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.14);
}

.tp-orb {
    font-size: 27px;
}

.tp-orb--large {
    font-size: 58px;
}

.tp-lock {
    min-width: 28px;
    min-height: 24px;
    display: inline-grid;
    place-items: center;
}

.tp-product__body :is(h1, h2),
.tp-market-hero h3 {
    font-size: 40px;
}

.tp-commerce-shell {
    width: min(100%, 960px);
}

.tp-commerce-card {
    width: min(100%, 900px);
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: var(--blur);
    padding: clamp(16px, 4vw, 30px);
}

.tp-commerce-card .woocommerce {
    color: var(--ink);
}

.tp-commerce-card .woocommerce a.button,
.tp-commerce-card .woocommerce button.button,
.tp-commerce-card .woocommerce input.button,
.tp-commerce-card .woocommerce #respond input#submit,
.tp-commerce-card .woocommerce .checkout-button {
    border-radius: 8px;
    background: #111114;
    color: #fff;
    font-weight: 950;
    padding: 12px 18px;
}

.tp-commerce-card .woocommerce table.shop_table,
.tp-commerce-card .woocommerce-checkout-review-order,
.tp-commerce-card .woocommerce form.checkout_coupon,
.tp-commerce-card .woocommerce form.login,
.tp-commerce-card .woocommerce form.register {
    border-color: rgba(17, 17, 20, 0.10);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.tp-commerce-card .woocommerce input.input-text,
.tp-commerce-card .woocommerce textarea,
.tp-commerce-card .woocommerce select {
    min-height: 44px;
    border: 1px solid rgba(17, 17, 20, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    padding: 8px 12px;
}

@media (max-width: 900px) {
    .tp-home-copy h1 {
        font-size: 44px;
    }

    .tp-product__body :is(h1, h2),
    .tp-market-hero h3 {
        font-size: 34px;
    }
}

@media (max-width: 640px) {
    .tp-home-copy h1 {
        font-size: 34px;
        line-height: 1.18;
    }

    .tp-home-copy p {
        font-size: 16px;
    }

    .tp-app-head {
        display: block;
    }

    .tp-bottom-nav {
        width: calc(100% - 18px);
    }

    .tp-bottom-nav button,
    .tp-bottom-nav a {
        min-height: 50px;
        font-size: 10.5px;
    }
}

/* Apple-grade app rebuild pass */
:root {
    --bg: #f5f5f7;
    --page: #fbfbfd;
    --panel: rgba(255, 255, 255, 0.78);
    --panel-solid: #ffffff;
    --ink: #1d1d1f;
    --muted: #6e6e73;
    --muted-2: #86868b;
    --hairline: rgba(0, 0, 0, 0.08);
    --hairline-strong: rgba(0, 0, 0, 0.14);
    --primary: #0071e3;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.06);
    --blur: blur(22px) saturate(180%);
}

html,
body {
    background: var(--bg);
}

body {
    color: var(--ink);
    line-height: 1.75;
}

.tp-app-bg {
    background:
        linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 48%, #eef2f7 100%);
}

.tp-app-shell {
    width: min(100%, 1120px);
    padding: 14px clamp(14px, 4vw, 30px) 104px;
}

.tp-app-screen {
    min-height: calc(100vh - 96px);
}

.tp-mobile-top {
    top: 10px;
    width: 100%;
    min-height: 62px;
    margin-bottom: 18px;
    border-color: rgba(255, 255, 255, 0.86);
    border-bottom-color: var(--hairline);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.055);
    padding: 9px 10px 9px 14px;
}

.tp-mobile-top span,
.tp-profile-card span,
.tp-feature-card span,
.tp-hero-device__top span,
.tp-hero-device__grid span {
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 800;
}

.tp-mobile-top strong {
    color: var(--ink);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.25;
}

.tp-avatar {
    width: 42px;
    height: 42px;
    background: #1d1d1f;
    box-shadow: none;
    font-size: 15px;
}

.tp-home-hero {
    min-height: min(620px, calc(100vh - 116px));
    grid-template-columns: minmax(0, 1.02fr) minmax(280px, .78fr);
    gap: clamp(22px, 5vw, 54px);
    align-items: center;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: clamp(26px, 6vw, 70px) 4px clamp(20px, 4vw, 38px);
}

.tp-home-hero::before {
    display: none;
}

.tp-kicker {
    color: var(--primary);
    font-size: 12px;
    font-weight: 850;
    margin-bottom: 10px;
}

.tp-kicker::before {
    width: 6px;
    height: 6px;
    box-shadow: none;
}

.tp-home-copy h1 {
    max-width: 720px;
    margin-bottom: 18px;
    font-size: clamp(42px, 6.4vw, 78px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: 0;
}

.tp-home-copy p {
    max-width: 620px;
    color: var(--muted);
    font-size: clamp(17px, 2.15vw, 22px);
    line-height: 1.85;
}

.tp-actions {
    align-items: center;
    gap: 10px;
}

.tp-btn,
.tp-link {
    min-height: 46px;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 850;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.tp-btn:hover {
    transform: translateY(-1px);
}

.tp-btn--primary {
    background: #1d1d1f;
    color: #fff;
    box-shadow: 0 12px 28px rgba(29, 29, 31, .18);
}

.tp-btn--primary:hover {
    background: #000;
    box-shadow: 0 16px 34px rgba(29, 29, 31, .22);
}

.tp-btn--glass,
.tp-btn--ghost,
.tp-link {
    border: 1px solid var(--hairline);
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    box-shadow: none;
}

.tp-link {
    min-height: 38px;
    width: auto;
    margin-bottom: 12px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: var(--primary);
}

.tp-home-orbit {
    min-height: 430px;
}

.tp-hero-device {
    width: min(360px, 100%);
    min-height: 460px;
    border-color: var(--hairline);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.82)),
        #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .10);
    padding: 18px;
}

.tp-hero-device__orb {
    width: 168px;
    height: 168px;
    border-radius: 8px;
    border-color: var(--hairline);
    background: #1d1d1f;
    box-shadow: 0 18px 42px rgba(29, 29, 31, 0.16);
    animation: none;
}

.tp-hero-device__grid {
    gap: 9px;
}

.tp-hero-device__grid span {
    min-height: 56px;
    border-color: var(--hairline);
    background: #f5f5f7;
    color: var(--ink);
}

.tp-hero-device__grid i {
    color: var(--primary);
}

.tp-app-stats {
    margin-top: 0;
}

.tp-app-stats article,
.tp-shortcuts button,
.tp-feature-card,
.tp-profile-card,
.tp-panel,
.tp-share-card,
.tp-report,
.tp-history,
.tp-empty,
.tp-commerce-card {
    border-color: var(--hairline);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
    backdrop-filter: var(--blur);
}

.tp-app-stats article {
    min-height: 94px;
    padding: 18px;
}

.tp-app-stats strong {
    color: var(--ink);
    font-size: 30px;
    font-weight: 900;
}

.tp-app-stats span {
    color: var(--muted);
    font-weight: 800;
}

.tp-app-section {
    margin-top: 30px;
}

.tp-row-head {
    margin-bottom: 12px;
}

.tp-row-head h2 {
    font-size: clamp(23px, 3vw, 34px);
    font-weight: 920;
}

.tp-row-head button {
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    color: var(--primary);
}

.tp-feature-card {
    grid-template-columns: 68px minmax(0, 1fr) auto;
    min-height: 136px;
    padding: 18px;
}

.tp-feature-card h3 {
    font-size: clamp(20px, 2.6vw, 28px);
    line-height: 1.35;
}

.tp-feature-card p {
    color: var(--muted);
}

.tp-shortcuts {
    gap: 10px;
}

.tp-shortcuts button {
    min-height: 118px;
    place-items: center;
    align-content: center;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
}

.tp-shortcuts span {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #f0f6ff;
    color: var(--primary);
}

.tp-shortcuts button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.tp-app-head {
    top: 10px;
    border-color: var(--hairline);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.tp-section__head h2 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 950;
}

.tp-search {
    min-height: 46px;
    border-color: var(--hairline);
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.tp-marketplace {
    gap: 18px;
}

.tp-market-hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: 6px 0 2px;
}

.tp-market-hero h3 {
    font-size: clamp(30px, 4.4vw, 52px);
    font-weight: 950;
}

.tp-market-hero p {
    max-width: 720px;
    line-height: 1.9;
}

.tp-market-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tp-market-stats span {
    min-height: 82px;
    border-color: var(--hairline);
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--shadow-soft);
    padding: 12px;
}

.tp-market-stats strong {
    font-size: 24px;
    font-weight: 950;
}

.tp-category-rail {
    gap: 8px;
    padding: 2px 0 10px;
    scrollbar-width: none;
}

.tp-category-rail::-webkit-scrollbar {
    display: none;
}

.tp-category-rail button,
.tp-related button {
    min-height: 38px;
    border-color: var(--hairline);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    color: var(--ink);
    font-weight: 820;
    box-shadow: none;
}

.tp-category-rail button.is-active {
    background: #1d1d1f;
    color: #fff;
}

.tp-galaxy {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.tp-galaxy::before {
    display: none;
}

.tp-orb-card {
    grid-template-columns: 62px minmax(0, 1fr);
    min-height: 238px;
    border-color: var(--hairline);
    background: rgba(255, 255, 255, .84);
    color: var(--ink);
    box-shadow: var(--shadow-soft);
    padding: 16px;
    backdrop-filter: var(--blur);
}

.tp-orb-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 46%, var(--hairline));
    background: #fff;
    box-shadow: var(--shadow);
}

.tp-orb-card.is-purchased,
.tp-orb-card.is-completed {
    box-shadow: var(--shadow);
}

.tp-orb-button {
    width: 56px;
    height: 56px;
}

.tp-orb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 12%, white);
    color: color-mix(in srgb, var(--accent) 86%, #1d1d1f);
    box-shadow: none;
    font-size: 22px;
    animation: none;
}

.tp-lock {
    right: -5px;
    bottom: -5px;
    min-width: 24px;
    min-height: 24px;
    border-color: rgba(255, 255, 255, .95);
    background: #1d1d1f;
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

.tp-orb-copy span,
.tp-orb-copy p,
.tp-orb-copy small {
    color: var(--muted);
}

.tp-orb-copy h3 {
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.45;
}

.tp-orb-copy p {
    min-height: 76px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tp-meta {
    border-top-color: var(--hairline);
}

.tp-meta small,
.tp-meta strong,
.tp-orb-copy .tp-meta strong {
    color: var(--ink);
}

.tp-product {
    width: min(100%, 980px);
    grid-template-columns: minmax(190px, .52fr) minmax(0, 1.48fr);
    border-color: var(--hairline);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
    padding: clamp(18px, 4vw, 34px);
}

.tp-product__orb {
    min-height: 0;
    align-content: start;
    padding-top: 8px;
}

.tp-orb--large {
    width: 118px;
    height: 118px;
    border-radius: 8px;
    font-size: 42px;
}

.tp-price-badge {
    border-color: var(--hairline);
    border-radius: 8px;
    background: #f5f5f7;
}

.tp-product__body :is(h1, h2) {
    font-size: clamp(32px, 4.8vw, 54px);
    font-weight: 950;
}

.tp-product-grid span,
.tp-report-preview span,
.tp-report-preview strong,
.tp-tags span {
    border-color: var(--hairline);
    border-radius: 8px;
    background: #f5f5f7;
    color: var(--ink);
}

.tp-ethics {
    border-color: var(--hairline);
    background: #f5f5f7;
}

.tp-panel,
.tp-report,
.tp-share-card,
.tp-history,
.tp-empty {
    background: rgba(255, 255, 255, .84);
}

.tp-quiz {
    max-width: 760px;
}

.tp-progress {
    height: 7px;
    border: 0;
    background: rgba(29, 29, 31, .08);
}

.tp-progress span,
.tp-bar i {
    background: var(--primary);
}

.tp-panel {
    padding: clamp(22px, 4vw, 42px);
}

.tp-panel h2 {
    font-size: clamp(25px, 4vw, 40px);
    line-height: 1.45;
}

.tp-option {
    min-height: 58px;
    border-color: var(--hairline);
    background: #fff;
}

.tp-option:hover {
    transform: translateX(-2px);
    border-color: rgba(0, 113, 227, .35);
    background: #f9fbff;
}

.tp-result {
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
}

.tp-share-card {
    border-top: 0;
}

.tp-share-card::before {
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.7));
}

.tp-icon {
    border-radius: 8px;
}

.tp-score {
    border-radius: 8px;
    background: #1d1d1f;
    box-shadow: none;
}

.tp-dimension,
.tp-columns > div,
.tp-report > ul {
    border-color: var(--hairline);
    background: #f5f5f7;
}

.tp-report-tools {
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--shadow-soft);
    padding: 10px;
}

.tp-bottom-nav {
    width: min(430px, calc(100% - 22px));
    border-color: rgba(255,255,255,.9);
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 16px 42px rgba(0,0,0,.16);
}

.tp-bottom-nav button,
.tp-bottom-nav a {
    color: var(--muted);
    font-weight: 820;
}

.tp-bottom-nav button.is-active,
.tp-bottom-nav a.is-active {
    background: #1d1d1f;
    color: #fff;
}

.tp-focus-mode .tp-bottom-nav {
    display: none;
}

.tp-commerce-card {
    border-color: var(--hairline);
    background: rgba(255,255,255,.86);
}

.tp-trust-strip,
.tp-product-assurance,
.tp-start-path,
.tp-seo-actions {
    display: grid;
    gap: 10px;
}

.tp-trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.tp-trust-strip span,
.tp-product-assurance span,
.tp-start-path article,
.tp-seo-content,
.tp-seo-actions a {
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow-soft);
    backdrop-filter: var(--blur);
}

.tp-trust-strip span,
.tp-product-assurance span {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 820;
    padding: 8px 10px;
    text-align: center;
}

.tp-trust-strip i,
.tp-product-assurance i,
.tp-start-path i {
    color: var(--primary);
}

.tp-start-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-start-path article {
    min-height: 176px;
    padding: 18px;
}

.tp-start-path i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f0f6ff;
    font-size: 18px;
    margin-bottom: 14px;
}

.tp-start-path strong {
    display: block;
    color: var(--ink);
    font-size: 17px;
    font-weight: 920;
    margin-bottom: 6px;
}

.tp-start-path p,
.tp-seo-content p {
    color: var(--muted);
    margin: 0;
}

.tp-seo-content__hint {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.tp-seo-content__hint .tp-btn {
    margin-top: 10px;
}

.tp-word-count {
    margin: 0;
}

.tp-word-count__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 820;
    color: #285d43;
    background: rgba(84, 186, 120, 0.14);
    border: 1px solid rgba(41, 108, 72, 0.2);
}

.tp-word-count__badge.is-warning {
    color: #7c3d22;
    background: rgba(247, 157, 86, 0.18);
    border-color: rgba(167, 86, 16, 0.3);
}

.tp-product-links {
    margin-top: 10px;
}

.tp-product-links .tp-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tp-product-links .tp-btn {
    text-wrap: nowrap;
    white-space: nowrap;
}

.tp-seo-content {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
    gap: 18px;
    align-items: center;
    padding: clamp(18px, 4vw, 28px);
}

.tp-seo-content h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 3.6vw, 40px);
    line-height: 1.25;
}

.tp-seo-actions a {
    min-height: 44px;
    display: flex;
    align-items: center;
    color: var(--ink);
    cursor: pointer;
    font-weight: 850;
    padding: 9px 12px;
    text-align: right;
    text-decoration: none;
}

.tp-product-assurance {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 14px 0 16px;
}

.tp-product-assurance span {
    justify-content: flex-start;
    background: #f5f5f7;
}

.tp-quiz-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.tp-quiz-actions .tp-btn {
    width: 100%;
}

@media (min-width: 1180px) {
    .tp-app-shell {
        padding-inline: 0;
    }
}

@media (min-width: 900px) {
    .tp-bottom-nav {
        left: 22px;
        top: 50%;
        bottom: auto;
        width: 78px;
        grid-template-columns: 1fr;
        transform: translateY(-50%);
    }

    .tp-bottom-nav button,
    .tp-bottom-nav a {
        min-height: 76px;
        padding: 8px 4px;
    }
}

@media (max-width: 980px) {
    .tp-home-hero,
    .tp-market-hero,
    .tp-product,
    .tp-result {
        grid-template-columns: 1fr;
    }

    .tp-home-hero {
        min-height: auto;
    }

    .tp-market-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tp-galaxy {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-share-card {
        position: relative;
        top: auto;
    }
}

@media (max-width: 640px) {
    .tp-app-shell {
        padding: 10px 10px 96px;
    }

    .tp-mobile-top {
        min-height: 58px;
        margin-bottom: 12px;
    }

    .tp-home-hero {
        gap: 12px;
        min-height: calc(100vh - 90px);
        align-content: start;
        align-items: start;
        padding: 16px 2px 10px;
    }

    .tp-home-copy h1 {
        font-size: clamp(34px, 10vw, 46px);
        line-height: 1.16;
    }

    .tp-home-copy p {
        font-size: 16px;
        line-height: 1.9;
        margin-bottom: 14px;
    }

    .tp-trust-strip {
        grid-template-columns: 1fr;
        margin-top: 12px;
    }

    .tp-trust-strip span {
        min-height: 38px;
    }

    .tp-home-orbit {
        min-height: auto;
    }

    .tp-hero-device {
        width: 100%;
        min-height: auto;
        grid-template-columns: 82px minmax(0, 1fr);
        align-items: center;
        align-content: center;
        padding: 14px;
    }

    .tp-hero-device__top {
        display: grid;
        justify-content: stretch;
    }

    .tp-hero-device__orb {
        grid-row: 1 / span 2;
        width: 74px;
        height: 74px;
        font-size: 28px;
    }

    .tp-hero-device__grid {
        display: none;
    }

    .tp-app-stats {
        grid-template-columns: 1fr 1fr;
        margin-top: 24px;
    }

    .tp-app-stats article:first-child {
        grid-column: 1 / -1;
    }

    .tp-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-start-path,
    .tp-seo-content,
    .tp-product-assurance {
        grid-template-columns: 1fr;
    }

    .tp-start-path article {
        min-height: auto;
    }

    .tp-seo-content {
        padding: 16px;
    }

    .tp-feature-card {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .tp-feature-card .tp-btn {
        grid-column: 1 / -1;
    }

    .tp-app-head {
        display: block;
        padding: 12px;
    }

    .tp-section__head h2,
    .tp-market-hero h3 {
        font-size: 30px;
    }

    .tp-market-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tp-market-stats span {
        min-height: 70px;
        padding: 10px 6px;
        text-align: center;
    }

    .tp-market-stats strong {
        font-size: 20px;
    }

    .tp-galaxy {
        grid-template-columns: 1fr;
    }

    .tp-orb-card {
        min-height: 204px;
    }

    .tp-product {
        gap: 14px;
    }

    .tp-product__orb {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0;
    }

    .tp-orb--large {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }

    .tp-actions,
    .tp-actions .tp-btn {
        width: 100%;
    }

    .tp-quiz-actions {
        grid-template-columns: 1fr;
    }

    .tp-columns {
        grid-template-columns: 1fr;
    }

    .tp-bottom-nav {
        bottom: max(10px, env(safe-area-inset-bottom));
        width: calc(100% - 18px);
        padding: 5px;
    }
}

.tp-hero-device__orb,
.tp-orb--lottie {
    position: relative;
    overflow: hidden;
}

.tp-mini-lottie,
.tp-orb-lottie,
.tp-daily-lottie,
.tp-path-lottie,
.tp-market-lottie {
    position: absolute;
    inset: -14%;
    width: 128%;
    height: 128%;
    pointer-events: none;
}

.tp-mini-lottie {
    opacity: .82;
}

.tp-orb-lottie {
    opacity: .76;
}

.tp-daily-lottie,
.tp-path-lottie,
.tp-market-lottie {
    opacity: .9;
}

.tp-hero-device__orb > i,
.tp-orb-icon {
    position: relative;
    z-index: 2;
}

.tp-hero-device__orb > i {
    text-shadow: 0 6px 24px rgba(0, 0, 0, .28);
}

.tp-orb--lottie {
    background:
        radial-gradient(circle at 28% 20%, rgba(255,255,255,.72), transparent 18%),
        linear-gradient(145deg, #1d1d1f, #34343a);
}

.tp-lottie-fallback svg {
    width: 100%;
    height: 100%;
    display: block;
}

.tp-lottie-ring-a,
.tp-lottie-ring-b {
    transform-origin: 120px 120px;
}

.tp-lottie-ring-a {
    animation: tp-spin 5.2s linear infinite;
}

.tp-lottie-ring-b {
    animation: tp-spin-reverse 4.1s linear infinite;
}

.tp-lottie-core {
    animation: tp-pulse 2.2s ease-in-out infinite;
    transform-origin: 120px 120px;
}

.tp-lottie-dot {
    animation: tp-orbit-dot 4.8s ease-in-out infinite;
}

@keyframes tp-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes tp-spin-reverse {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes tp-pulse {
    0%, 100% {
        transform: scale(.9);
        opacity: .82;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes tp-orbit-dot {
    0%, 100% {
        transform: translate(0, 0);
        opacity: .52;
    }

    50% {
        transform: translate(92px, 92px);
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .tp-home-hero {
        position: relative;
        min-height: auto;
        gap: 10px;
        padding: 14px;
    }

    .tp-home-copy {
        padding-left: 86px;
    }

    .tp-home-copy h1 {
        font-size: clamp(30px, 8.8vw, 38px);
        line-height: 1.14;
        margin-bottom: 10px;
    }

    .tp-home-copy p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 10px;
    }

    .tp-home-copy .tp-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .tp-home-copy .tp-actions .tp-btn {
        min-height: 42px;
        width: auto;
        padding: 8px 9px;
        font-size: 12px;
        white-space: nowrap;
    }

    .tp-trust-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-top: 9px;
    }

    .tp-trust-strip span {
        min-height: 34px;
        gap: 5px;
        padding: 6px 5px;
        font-size: 10px;
        line-height: 1.45;
    }

    .tp-trust-strip i {
        font-size: 12px;
    }

    .tp-home-orbit {
        position: absolute;
        left: 12px;
        top: 14px;
        width: 74px;
        min-height: 0;
        display: block;
    }

    .tp-hero-device {
        width: 74px;
        height: 74px;
        min-height: 74px;
        display: grid;
        grid-template-columns: 1fr;
        place-items: center;
        gap: 0;
        border-radius: 50%;
        padding: 5px;
    }

    .tp-hero-device__top {
        display: none;
    }

    .tp-hero-device__orb {
        grid-row: auto;
        width: 62px;
        height: 62px;
        font-size: 24px;
    }

    .tp-app-section {
        margin-top: 14px;
    }

    .tp-feature-card {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .tp-feature-card .tp-orb {
        width: 48px;
        height: 48px;
        font-size: 21px;
    }

    .tp-feature-card .tp-btn {
        min-height: 40px;
        padding-block: 8px;
    }

    .tp-feature-card h3 {
        font-size: 19px;
        line-height: 1.35;
    }

    .tp-feature-card p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 13px;
        line-height: 1.65;
    }

    .tp-shortcuts {
        gap: 8px;
    }

    .tp-shortcuts button {
        min-height: 74px;
        padding: 10px 7px;
        font-size: 12px;
    }

    .tp-shortcuts span {
        width: 32px;
        height: 32px;
    }

    .tp-home-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 14px;
    }

    .tp-home-stats article,
    .tp-home-stats article:first-child {
        grid-column: auto;
        padding: 10px 6px;
        text-align: center;
    }

    .tp-home-stats strong {
        font-size: 19px;
    }

    .tp-home-stats span {
        font-size: 10px;
        line-height: 1.5;
    }

    .tp-start-path {
        gap: 8px;
    }

    .tp-start-path article {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 8px 10px;
        padding: 12px;
    }

    .tp-start-path i {
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }

    .tp-start-path p {
        font-size: 12px;
        line-height: 1.65;
    }

    .tp-seo-content {
        margin-top: 14px;
    }
}

@media (min-width: 900px) {
    .tp-app-shell {
        padding-left: 112px;
    }
}

/* Boardroom conversion pass */
.tp-value-cards,
.tp-goal-tests,
.tp-category-digest,
.tp-product-value,
.tp-fit-tags {
    display: grid;
    gap: 10px;
}

.tp-value-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-value-cards article,
.tp-goal-advisor,
.tp-goal-card,
.tp-category-digest button,
.tp-product-scorecard,
.tp-product-value div,
.tp-fit-tags {
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--shadow-soft);
    backdrop-filter: var(--blur);
}

.tp-value-cards article {
    min-height: 174px;
    padding: 18px;
}

.tp-value-cards i,
.tp-goal-icon,
.tp-product-value i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f0f6ff;
    color: var(--primary);
    font-size: 18px;
}

.tp-value-cards strong {
    display: block;
    margin: 12px 0 6px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 920;
}

.tp-value-cards p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.tp-goal-advisor {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(260px, 1.28fr);
    gap: 16px;
    padding: clamp(16px, 3vw, 24px);
}

.tp-goal-advisor__head h3 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3.4vw, 38px);
    line-height: 1.24;
    font-weight: 950;
}

.tp-goal-advisor__head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
}

.tp-goal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-content: start;
}

.tp-goal-tabs button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: #f5f5f7;
    color: var(--ink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
    padding: 8px 10px;
}

.tp-goal-tabs button.is-active {
    background: #1d1d1f;
    color: #fff;
}

.tp-goal-tests {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-goal-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 34px;
    gap: 10px;
    align-items: center;
    min-height: 116px;
    padding: 14px;
}

.tp-goal-rank {
    position: absolute;
    top: 8px;
    left: 10px;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 900;
}

.tp-goal-icon {
    background: color-mix(in srgb, var(--accent) 13%, white);
    color: color-mix(in srgb, var(--accent) 84%, #1d1d1f);
}

.tp-goal-card small,
.tp-goal-card p {
    display: block;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.tp-goal-card strong {
    display: block;
    margin: 2px 0 3px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 920;
    line-height: 1.45;
}

.tp-goal-card p {
    margin: 0;
}

.tp-mini-open {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: #1d1d1f;
    color: #fff;
    cursor: pointer;
}

.tp-category-digest {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tp-category-digest button {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px 10px;
    min-height: 98px;
    border-color: var(--hairline);
    color: var(--ink);
    cursor: pointer;
    padding: 12px;
    text-align: right;
}

.tp-category-digest button.is-active {
    border-color: color-mix(in srgb, var(--accent) 42%, var(--hairline));
    background: color-mix(in srgb, var(--accent) 9%, white);
}

.tp-category-digest span {
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 13%, white);
    color: color-mix(in srgb, var(--accent) 82%, #1d1d1f);
}

.tp-category-digest strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 920;
    line-height: 1.45;
}

.tp-category-digest small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.tp-product-scorecard {
    width: min(100%, 170px);
    display: grid;
    gap: 2px;
    background: #f5f5f7;
    box-shadow: none;
    padding: 12px;
    text-align: center;
}

.tp-product-scorecard span,
.tp-product-scorecard small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.tp-product-scorecard strong {
    color: var(--ink);
    font-size: 18px;
    font-weight: 950;
}

.tp-product-value {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 16px 0;
}

.tp-product-value div {
    display: grid;
    gap: 6px;
    box-shadow: none;
    background: #f5f5f7;
    padding: 12px;
}

.tp-standard-box,
.tp-ai-plan {
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: #f5f5f7;
    padding: 13px;
    margin: 14px 0;
}

.tp-standard-box strong,
.tp-ai-plan h4 {
    color: var(--ink);
    font-weight: 920;
}

.tp-standard-box strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
}

.tp-standard-box p,
.tp-standard-box small,
.tp-ai-plan p {
    color: var(--muted);
    line-height: 1.75;
}

.tp-standard-box p,
.tp-ai-plan p {
    margin: 0 0 8px;
}

.tp-standard-box small {
    display: block;
    font-size: 12px;
}

.tp-ai-plan {
    background: rgba(245, 245, 247, .74);
}

.tp-ai-plan > ul {
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: #fff;
    padding: 12px 28px 12px 12px;
}

.tp-product-value i {
    width: 34px;
    height: 34px;
    font-size: 15px;
}

.tp-product-value strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 920;
}

.tp-product-value span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.tp-fit-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 12px 0;
    box-shadow: none;
    background: #f5f5f7;
    padding: 10px;
}

.tp-fit-tags strong,
.tp-fit-tags span {
    font-size: 12px;
    font-weight: 850;
}

.tp-fit-tags strong {
    color: var(--ink);
}

.tp-fit-tags span {
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    padding: 4px 9px;
}

@media (max-width: 980px) {
    .tp-value-cards,
    .tp-goal-tests,
    .tp-category-digest,
    .tp-product-value {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-goal-advisor {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tp-value-cards,
    .tp-goal-tests,
    .tp-category-digest,
    .tp-product-value {
        grid-template-columns: 1fr;
    }

    .tp-value-cards article {
        min-height: auto;
        padding: 14px;
    }

    .tp-goal-advisor {
        gap: 12px;
        padding: 14px;
    }

    .tp-goal-advisor__head h3 {
        font-size: 24px;
    }

    .tp-goal-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .tp-goal-tabs::-webkit-scrollbar {
        display: none;
    }

    .tp-goal-tabs button {
        flex: 0 0 auto;
    }

    .tp-goal-card {
        min-height: 104px;
    }

    .tp-category-digest button {
        min-height: 82px;
    }

    .tp-product-scorecard {
        width: 140px;
        padding: 10px;
    }
}

/* Launch minimal pass */
.tp-mobile-top {
    position: static;
    top: auto;
}

.tp-app-screen {
    animation-duration: .28s;
}

.tp-home-hero {
    min-height: auto;
}

.tp-home-copy h1 {
    max-width: 680px;
}

.tp-category-digest {
    display: none;
}

.tp-marketplace {
    gap: 14px;
}

.tp-market-hero {
    align-items: end;
}

.tp-market-stats span {
    align-content: center;
    text-align: center;
}

.tp-goal-advisor {
    grid-template-columns: minmax(0, .64fr) minmax(0, 1.36fr);
    box-shadow: none;
}

.tp-goal-tests {
    grid-column: 2;
}

.tp-goal-card {
    min-height: 104px;
}

.tp-orb-card {
    min-height: 214px;
}

.tp-product-value div,
.tp-fit-tags,
.tp-standard-box,
.tp-ai-plan,
.tp-ethics,
.tp-product-assurance span,
.tp-woo-return {
    box-shadow: none;
}

.tp-woo-return {
    display: grid;
    gap: 8px;
    margin: 18px 0;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: #f5f5f7;
    padding: 16px;
}

.tp-woo-return strong {
    color: var(--ink);
    font-size: 18px;
    font-weight: 920;
}

.tp-woo-return p {
    margin: 0;
    color: var(--muted);
}

.tp-report-preview {
    margin: 12px 0;
}

.tp-bottom-nav {
    border-radius: 12px;
}

@media (max-width: 980px) {
    .tp-goal-advisor {
        grid-template-columns: 1fr;
    }

    .tp-goal-tests {
        grid-column: 1;
    }
}

@media (max-width: 640px) {
    .tp-app-shell {
        padding-top: 8px;
    }

    .tp-mobile-top {
        min-height: 54px;
        margin-bottom: 8px;
        padding: 8px 9px;
    }

    .tp-mobile-top strong {
        font-size: 17px;
    }

    .tp-home-hero {
        padding: 12px;
    }

    .tp-home-copy h1 {
        font-size: clamp(29px, 8.4vw, 36px);
    }

    .tp-trust-strip {
        display: none;
    }

    .tp-recommend-section,
    .tp-shortcut-section,
    .tp-value-section,
    .tp-start-section,
    .tp-seo-content {
        margin-top: 12px;
    }

    .tp-value-cards article:nth-child(n+3),
    .tp-start-path article:nth-child(n+3) {
        display: none;
    }

    .tp-market-hero {
        gap: 10px;
    }

    .tp-market-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .tp-market-stats span {
        min-height: 58px;
        font-size: 11px;
    }

    .tp-market-stats strong {
        font-size: 18px;
    }

    .tp-goal-advisor {
        padding: 12px;
    }

    .tp-goal-advisor__head p {
        display: none;
    }

    .tp-goal-tests {
        display: none;
    }

    .tp-category-rail {
        background: rgba(245, 245, 247, .92);
        backdrop-filter: var(--blur);
        padding: 8px 0;
    }

    .tp-orb-card {
        min-height: 178px;
        padding: 13px;
    }

    .tp-orb-copy p {
        min-height: auto;
        -webkit-line-clamp: 2;
    }
}

/* Prompt config execution: Apple-like, Drops-inspired, colorful RTL app */
:root {
    --bg: #F7F3FF;
    --page: #FFFDF8;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-solid: #FFFFFF;
    --ink: #21133F;
    --muted: #8B7AAE;
    --muted-2: #A091BF;
    --hairline: rgba(110, 75, 255, 0.12);
    --hairline-strong: rgba(110, 75, 255, 0.22);
    --primary: #6E4BFF;
    --primary-dark: #21133F;
    --peach: #FFB86B;
    --mint: #55D6BE;
    --blue: #62B6FF;
    --pink: #FF7EB6;
    --shadow-soft: 0 14px 34px rgba(65, 42, 132, 0.08);
    --shadow: 0 24px 70px rgba(65, 42, 132, 0.13);
    --blur: blur(24px) saturate(175%);
}

body {
    background:
        radial-gradient(circle at 18% 12%, rgba(110, 75, 255, .16), transparent 28%),
        radial-gradient(circle at 86% 10%, rgba(255, 126, 182, .15), transparent 28%),
        radial-gradient(circle at 18% 84%, rgba(85, 214, 190, .16), transparent 30%),
        linear-gradient(180deg, #F7F3FF 0%, #FFFDF8 52%, #F6FBFF 100%);
    color: var(--ink);
}

.tp-app-bg {
    background:
        radial-gradient(circle at 52% 8%, rgba(255, 184, 107, .17), transparent 24%),
        radial-gradient(circle at 88% 44%, rgba(98, 182, 255, .14), transparent 28%),
        linear-gradient(180deg, rgba(247, 243, 255, .84), rgba(255, 253, 248, .84));
}

.tp-app-shell {
    width: min(100%, 1060px);
}

.tp-mobile-top,
.tp-home-hero,
.tp-daily-card,
.tp-pricing-grid article,
.tp-path-hero,
.tp-badge-grid article,
.tp-market-stats span,
.tp-goal-advisor,
.tp-orb-card,
.tp-product,
.tp-panel,
.tp-report,
.tp-share-card,
.tp-history,
.tp-empty,
.tp-paywall-preview,
.tp-show-more {
    border: 1px solid var(--hairline);
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow-soft);
    backdrop-filter: var(--blur);
}

.tp-home-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(24px, 5vw, 54px);
}

.tp-home-hero::after,
.tp-daily-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.82), rgba(255,255,255,0) 62%);
    filter: blur(2px);
    animation: tp-soft-orbit 8s ease-in-out infinite;
    pointer-events: none;
}

.tp-home-hero::after {
    left: 8%;
    top: 10%;
}

.tp-home-copy h1 {
    color: var(--ink);
}

.tp-home-copy p,
.tp-market-hero p,
.tp-product__body p,
.tp-path-hero p,
.tp-daily-card p,
.tp-pricing-grid p,
.tp-paywall-preview p {
    color: var(--muted);
}

.tp-kicker {
    color: var(--primary);
}

.tp-btn {
    border-radius: 999px;
}

.tp-btn--primary {
    background: linear-gradient(135deg, var(--primary), #9B7CFF);
    color: #fff;
    box-shadow: 0 16px 36px rgba(110, 75, 255, .28);
}

.tp-btn--primary:hover {
    background: linear-gradient(135deg, #5B3CF2, var(--primary));
    box-shadow: 0 20px 44px rgba(110, 75, 255, .34);
}

.tp-btn--glass,
.tp-btn--ghost,
.tp-row-head button,
.tp-category-rail button,
.tp-related button {
    border-color: var(--hairline);
    background: rgba(255, 255, 255, .74);
    color: var(--primary-dark);
}

.tp-avatar,
.tp-bottom-nav button.is-active,
.tp-mini-open {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.tp-daily-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px auto;
    gap: 16px;
    align-items: center;
    overflow: hidden;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(110, 75, 255, .11), rgba(255,255,255,.78)),
        linear-gradient(45deg, rgba(255, 184, 107, .18), rgba(85, 214, 190, .10));
    padding: clamp(18px, 4vw, 26px);
}

.tp-daily-card > div,
.tp-daily-card > .tp-btn {
    position: relative;
    z-index: 2;
}

.tp-daily-lottie {
    position: relative;
    inset: auto;
    z-index: 1;
    width: 92px;
    height: 92px;
}

.tp-daily-card::after {
    left: 18%;
    bottom: -92px;
}

.tp-daily-card h2 {
    margin: 0 0 6px;
    font-size: clamp(24px, 4vw, 42px);
    line-height: 1.2;
}

.tp-pricing-grid,
.tp-path-shell,
.tp-badge-grid {
    display: grid;
    gap: 12px;
}

.tp-pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-pricing-grid article {
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 190px;
    border-radius: 24px;
    padding: 18px;
}

.tp-pricing-grid article.is-featured {
    color: #fff;
    background:
        radial-gradient(circle at 20% 18%, rgba(255,255,255,.28), transparent 30%),
        linear-gradient(135deg, var(--primary), var(--pink));
}

.tp-pricing-grid article.is-featured p,
.tp-pricing-grid article.is-featured span {
    color: rgba(255,255,255,.82);
}

.tp-pricing-grid span,
.tp-badge-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 820;
}

.tp-pricing-grid strong {
    color: inherit;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 950;
}

.tp-path-shell {
    width: min(100%, 980px);
    margin-inline: auto;
}

.tp-path-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at 10% 12%, rgba(255, 184, 107, .24), transparent 32%),
        radial-gradient(circle at 86% 22%, rgba(85, 214, 190, .18), transparent 30%),
        rgba(255,255,255,.78);
    padding: clamp(22px, 5vw, 40px);
}

.tp-path-hero > * {
    position: relative;
    z-index: 2;
}

.tp-path-lottie {
    inset: auto 18px 18px auto;
    width: 150px;
    height: 150px;
    opacity: .48;
}

.tp-path-hero h2 {
    max-width: 720px;
    margin: 0 0 10px;
    font-size: clamp(32px, 6vw, 58px);
    line-height: 1.12;
}

.tp-badge-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-badge-grid article {
    display: grid;
    gap: 6px;
    min-height: 138px;
    border-radius: 22px;
    padding: 16px;
}

.tp-badge-grid i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(110,75,255,.12), rgba(98,182,255,.16));
    color: var(--primary);
}

.tp-badge-grid strong {
    font-size: 18px;
}

.tp-bottom-nav {
    grid-template-columns: repeat(5, minmax(58px, 1fr));
    border-radius: 24px;
}

.tp-bottom-nav button {
    border-radius: 18px;
}

@media (min-width: 900px) {
    .tp-bottom-nav {
        width: 84px;
    }
}

.tp-market-hero {
    position: relative;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) 128px minmax(220px, 320px);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.76), rgba(255,253,248,.72)),
        radial-gradient(circle at 84% 12%, rgba(255, 126, 182, .12), transparent 32%);
    padding: clamp(16px, 4vw, 26px);
}

.tp-market-hero > * {
    position: relative;
    z-index: 2;
}

.tp-market-lottie {
    position: relative;
    inset: auto;
    justify-self: center;
    width: 112px;
    height: 112px;
}

.tp-market-stats span,
.tp-goal-advisor,
.tp-orb-card,
.tp-product,
.tp-panel,
.tp-report,
.tp-share-card {
    border-radius: 24px;
}

.tp-galaxy {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-orb-card {
    min-height: 196px;
    transform-origin: center;
}

.tp-orb-card:nth-child(4n+1) .tp-orb {
    background: rgba(110,75,255,.12);
    color: var(--primary);
}

.tp-orb-card:nth-child(4n+2) .tp-orb {
    background: rgba(255,184,107,.18);
    color: #B96611;
}

.tp-orb-card:nth-child(4n+3) .tp-orb {
    background: rgba(85,214,190,.18);
    color: #158A78;
}

.tp-orb-card:nth-child(4n+4) .tp-orb {
    background: rgba(255,126,182,.16);
    color: #C23C78;
}

.tp-show-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 22px;
    padding: 12px;
}

.tp-show-more span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.tp-paywall-preview {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(260px, 1.1fr);
    gap: 14px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(110,75,255,.09), rgba(255,255,255,.80)),
        radial-gradient(circle at 88% 14%, rgba(255,184,107,.20), transparent 32%);
    padding: 16px;
    margin: 14px 0;
}

.tp-paywall-preview h3 {
    margin: 0 0 6px;
    font-size: clamp(20px, 3vw, 28px);
}

.tp-loading-strip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 360px);
    min-height: 46px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    padding: 8px 14px;
}

.tp-loading-strip i {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(110, 75, 255, .18);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: tp-spin .8s linear infinite;
}

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

.tp-locked-grid span {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--hairline);
    border-radius: 16px;
    background: rgba(255,255,255,.62);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 850;
    padding: 8px 10px;
    filter: saturate(.86);
}

.tp-milestone {
    min-height: 40px;
    display: grid;
    place-items: center;
    margin: 0 0 12px;
    border: 1px solid rgba(110,75,255,.13);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    animation: tp-milestone-pop .34s ease-out both;
}

.tp-option {
    min-height: 72px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,253,248,.78));
    box-shadow: 0 10px 24px rgba(65,42,132,.06);
}

.tp-option:active,
.tp-bottom-nav button:active,
.tp-shortcuts button:active,
.tp-orb-card:active {
    transform: scale(.98);
}

.tp-progress {
    height: 10px;
    background: rgba(110,75,255,.11);
}

.tp-progress span,
.tp-bar i {
    background: linear-gradient(90deg, var(--primary), var(--mint), var(--peach));
}

.tp-share-card,
.tp-score {
    border-radius: 24px;
}

.tp-score {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

@keyframes tp-soft-orbit {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: .55;
    }
    50% {
        transform: translate3d(36px, 24px, 0) scale(1.08);
        opacity: .84;
    }
}

@keyframes tp-milestone-pop {
    from {
        opacity: 0;
        transform: translateY(6px) scale(.98);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@media (max-width: 980px) {
    .tp-pricing-grid,
    .tp-badge-grid,
    .tp-galaxy {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-paywall-preview {
        grid-template-columns: 1fr;
    }

    .tp-market-hero {
        grid-template-columns: 1fr;
    }

    .tp-market-lottie {
        display: none;
    }
}

@media (max-width: 640px) {
    .tp-app-shell {
        padding-bottom: 104px;
    }

    .tp-home-hero {
        border-radius: 24px;
    }

    .tp-daily-section {
        margin-top: 10px;
    }

    .tp-daily-card,
    .tp-show-more {
        grid-template-columns: 1fr;
    }

    .tp-daily-lottie {
        position: absolute;
        left: 10px;
        top: 10px;
        width: 72px;
        height: 72px;
        opacity: .42;
    }

    .tp-path-lottie {
        width: 110px;
        height: 110px;
        opacity: .32;
    }

    .tp-recommend-section {
        display: none;
    }

    .tp-pricing-grid,
    .tp-badge-grid,
    .tp-galaxy,
    .tp-locked-grid {
        grid-template-columns: 1fr;
    }

    .tp-pricing-grid article {
        min-height: auto;
    }

    .tp-bottom-nav {
        grid-template-columns: repeat(5, 1fr);
        width: calc(100% - 14px);
        padding: 4px;
    }

    .tp-bottom-nav button {
        min-height: 54px;
        border-radius: 18px;
        font-size: 9.5px;
    }

    .tp-bottom-nav button span {
        font-size: 16px;
    }

    .tp-market-hero {
        border-radius: 24px;
    }

    .tp-goal-advisor {
        display: block;
    }

    .tp-orb-card {
        min-height: 156px;
        border-radius: 22px;
    }

    .tp-option {
        min-height: 66px;
    }
}

/* v1.6.4 final override: mobile launch polish + softer nude system palette */
:root {
    --bg: #f7f4ef;
    --surface: rgba(255, 255, 255, .76);
    --surface-strong: rgba(255, 255, 255, .92);
    --ink: #1f1d1b;
    --muted: #746f68;
    --muted-2: #928a80;
    --hairline: rgba(47, 42, 37, .10);
    --primary: #6757e8;
    --primary-dark: #342c8f;
    --mint: #6fc6b0;
    --peach: #e8ad78;
    --rose: #e99ab6;
    --shadow: 0 18px 52px rgba(66, 52, 38, .10);
}

body {
    background:
        radial-gradient(circle at 14% 8%, rgba(103, 87, 232, .10), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(111, 198, 176, .12), transparent 26%),
        radial-gradient(circle at 50% 96%, rgba(232, 173, 120, .14), transparent 34%),
        var(--bg);
}

.tp-app-bg {
    background:
        radial-gradient(circle at 18% 10%, rgba(103, 87, 232, .12), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(232, 173, 120, .13), transparent 28%),
        radial-gradient(circle at 54% 88%, rgba(111, 198, 176, .12), transparent 32%),
        var(--bg);
}

.tp-mobile-top,
.tp-home-hero,
.tp-daily-card,
.tp-feature-card,
.tp-value-cards article,
.tp-start-path article,
.tp-pricing-grid article,
.tp-seo-content,
.tp-market-hero,
.tp-goal-advisor,
.tp-category-digest button,
.tp-orb-card,
.tp-product,
.tp-panel,
.tp-report,
.tp-history,
.tp-empty {
    border-color: rgba(255, 255, 255, .84);
    background-color: rgba(255, 255, 255, .76);
    box-shadow: var(--shadow);
}

.tp-home-hero {
    background:
        linear-gradient(135deg, rgba(255,255,255,.84), rgba(255,255,255,.58)),
        radial-gradient(circle at 82% 18%, rgba(103, 87, 232, .12), transparent 32%),
        radial-gradient(circle at 18% 78%, rgba(111, 198, 176, .10), transparent 34%);
}

.tp-btn--primary,
.tp-bottom-nav button.is-active,
.tp-category-rail button.is-active,
.tp-goal-tabs button.is-active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    box-shadow: 0 14px 32px rgba(103, 87, 232, .22);
}

.tp-btn--glass,
.tp-btn--ghost,
.tp-search,
.tp-category-rail button,
.tp-related button {
    border-color: rgba(47, 42, 37, .09);
    background: rgba(255, 255, 255, .72);
}

.tp-home-copy h1,
.tp-market-hero h3,
.tp-product__body :is(h1, h2),
.tp-panel h2 {
    color: var(--ink);
    text-wrap: balance;
}

.tp-home-copy p,
.tp-market-hero p,
.tp-product__body p,
.tp-panel p,
.tp-orb-copy p {
    color: var(--muted);
}

.tp-galaxy {
    background:
        radial-gradient(circle at 14% 20%, rgba(103, 87, 232, .14), transparent 24%),
        radial-gradient(circle at 84% 28%, rgba(111, 198, 176, .12), transparent 26%),
        radial-gradient(circle at 52% 88%, rgba(232, 173, 120, .13), transparent 30%),
        #171514;
}

.tp-orb-card {
    color: var(--ink);
    background: rgba(255, 255, 255, .84);
}

.tp-orb-copy h3,
.tp-orb-copy .tp-meta strong {
    color: var(--ink);
}

.tp-orb-copy span,
.tp-orb-copy p,
.tp-orb-copy small {
    color: var(--muted);
}

.tp-orb-copy .tp-meta {
    border-top-color: var(--hairline);
}

.tp-orb-card:nth-child(4n+1) .tp-orb {
    background: rgba(103, 87, 232, .12);
    color: var(--primary);
}

.tp-orb-card:nth-child(4n+2) .tp-orb {
    background: rgba(232, 173, 120, .18);
    color: #a65f1f;
}

.tp-orb-card:nth-child(4n+3) .tp-orb {
    background: rgba(111, 198, 176, .18);
    color: #1a7d6e;
}

.tp-orb-card:nth-child(4n+4) .tp-orb {
    background: rgba(233, 154, 182, .16);
    color: #a83f68;
}

.tp-product__body,
.tp-orb-copy,
.tp-home-copy,
.tp-market-hero > div {
    min-width: 0;
}

.tp-value-cards,
.tp-start-path {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tp-value-cards article,
.tp-start-path article {
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 24px;
    padding: 16px;
}

.tp-value-cards i,
.tp-start-path i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 16px;
    background: rgba(103, 87, 232, .10);
    color: var(--primary);
}

.tp-value-cards strong,
.tp-start-path strong {
    display: block;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.7;
}

.tp-value-cards p,
.tp-start-path p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.tp-seo-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .72fr);
    gap: 18px;
    align-items: start;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 28px;
    padding: clamp(18px, 4vw, 28px);
}

.tp-seo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tp-seo-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    padding: 7px 12px;
}

@media (max-width: 980px) {
    .tp-value-cards,
    .tp-start-path,
    .tp-seo-content {
        grid-template-columns: 1fr;
    }

    .tp-market-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tp-product__orb {
        min-height: auto;
        order: -1;
    }

    .tp-product-scorecard {
        max-width: 280px;
    }
}

@media (max-width: 760px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .tp-app-shell {
        width: 100%;
        padding: 10px 10px calc(106px + env(safe-area-inset-bottom));
    }

    .tp-app-screen {
        min-height: auto;
    }

    .tp-mobile-top {
        position: static;
        margin: 0 0 10px;
        padding: 9px 10px;
        border-radius: 22px;
    }

    .tp-mobile-top strong {
        max-width: 245px;
        font-size: 15px;
        line-height: 1.55;
    }

    .tp-avatar {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .tp-home-hero {
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: 0;
        border-radius: 28px;
        padding: 17px;
    }

    .tp-home-copy h1 {
        margin-bottom: 10px;
        font-size: clamp(31px, 10vw, 43px);
        line-height: 1.13;
    }

    .tp-home-copy p {
        margin-bottom: 14px;
        font-size: 14px;
        line-height: 1.9;
    }

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

    .tp-actions .tp-btn,
    .tp-actions a.tp-btn {
        width: 100%;
        min-height: 48px;
        padding-inline: 12px;
    }

    .tp-trust-strip {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        margin-top: 10px;
    }

    .tp-home-orbit {
        min-height: 0;
    }

    .tp-hero-device {
        min-height: 236px;
        gap: 10px;
        border-radius: 24px;
        padding: 12px;
    }

    .tp-hero-device__top strong {
        font-size: 17px;
    }

    .tp-hero-device__orb {
        width: 116px;
        height: 116px;
        font-size: 34px;
    }

    .tp-hero-device__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .tp-hero-device__grid span {
        min-height: 42px;
        font-size: 11px;
        padding: 7px;
    }

    .tp-app-section {
        margin-top: 14px;
    }

    .tp-row-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 9px;
    }

    .tp-row-head h2 {
        font-size: 22px;
        line-height: 1.45;
    }

    .tp-daily-card {
        position: relative;
        grid-template-columns: 1fr;
        gap: 10px;
        overflow: hidden;
        border-radius: 24px;
        padding: 15px;
    }

    .tp-daily-card h2 {
        max-width: calc(100% - 76px);
        font-size: 22px;
        line-height: 1.45;
    }

    .tp-daily-card p {
        max-width: calc(100% - 46px);
        font-size: 13px;
    }

    .tp-daily-lottie {
        left: 8px;
        top: 8px;
        width: 64px;
        height: 64px;
        opacity: .36;
    }

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

    .tp-shortcuts button {
        min-height: 78px;
        border-radius: 22px;
        font-size: 12px;
        padding: 10px 8px;
    }

    .tp-app-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .tp-app-stats article {
        min-width: 0;
        border-radius: 20px;
        padding: 10px 8px;
    }

    .tp-app-stats strong {
        font-size: 20px;
    }

    .tp-app-stats span {
        font-size: 10.5px;
        line-height: 1.5;
    }

    .tp-value-cards,
    .tp-start-path,
    .tp-pricing-grid,
    .tp-badge-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .tp-value-cards article,
    .tp-start-path article,
    .tp-pricing-grid article {
        min-height: auto;
        border-radius: 22px;
        padding: 14px;
    }

    .tp-seo-content {
        border-radius: 24px;
        padding: 15px;
    }

    .tp-seo-content h2 {
        font-size: 22px;
        line-height: 1.55;
    }

    .tp-seo-content p {
        font-size: 13px;
    }

    .tp-seo-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tp-seo-actions a {
        justify-content: center;
        width: 100%;
        min-height: 42px;
        text-align: center;
    }

    .tp-section__head.tp-app-head {
        border-radius: 24px;
        padding: 12px;
    }

    .tp-section__head.tp-app-head h2 {
        font-size: 25px;
    }

    .tp-search {
        min-height: 46px;
        border-radius: 18px;
        font-size: 14px;
    }

    .tp-marketplace {
        gap: 12px;
    }

    .tp-market-hero {
        border-radius: 24px;
        padding: 15px;
    }

    .tp-market-hero h3 {
        font-size: 27px;
        line-height: 1.35;
    }

    .tp-market-hero p {
        font-size: 13px;
        line-height: 1.9;
    }

    .tp-market-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-top: 10px;
    }

    .tp-market-stats span {
        min-width: 0;
        border-radius: 18px;
        padding: 9px 6px;
        text-align: center;
        font-size: 10.5px;
        line-height: 1.55;
    }

    .tp-market-stats strong {
        font-size: 17px;
    }

    .tp-goal-advisor {
        border-radius: 24px;
        padding: 14px;
    }

    .tp-goal-advisor__head h3 {
        font-size: 23px;
        line-height: 1.45;
    }

    .tp-goal-tabs {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .tp-goal-tabs::-webkit-scrollbar {
        display: none;
    }

    .tp-goal-tabs button {
        flex: 0 0 auto;
        min-height: 40px;
        white-space: nowrap;
        border-radius: 999px;
        padding: 8px 12px;
    }

    .tp-goal-tests,
    .tp-category-digest,
    .tp-galaxy {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .tp-category-digest {
        display: flex;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: none;
    }

    .tp-category-digest::-webkit-scrollbar {
        display: none;
    }

    .tp-category-digest button {
        flex: 0 0 78%;
        min-height: 98px;
        border-radius: 22px;
    }

    .tp-category-rail {
        margin-inline: -10px;
        padding: 0 10px 8px;
        scroll-snap-type: x proximity;
    }

    .tp-category-rail button {
        scroll-snap-align: start;
    }

    .tp-galaxy {
        border-radius: 24px;
        padding: 10px;
        background: transparent;
        box-shadow: none;
    }

    .tp-galaxy::before {
        display: none;
    }

    .tp-orb-card {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 10px;
        min-height: auto;
        border-radius: 22px;
        padding: 12px;
    }

    .tp-orb {
        width: 58px;
        height: 58px;
        font-size: 22px;
        box-shadow: none;
    }

    .tp-orb-copy h3 {
        margin: 4px 0;
        font-size: 15.5px;
        line-height: 1.55;
    }

    .tp-orb-copy p {
        min-height: 0;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 12px;
        line-height: 1.75;
    }

    .tp-orb-copy .tp-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        margin-bottom: 0;
        padding-top: 8px;
    }

    .tp-show-more {
        align-items: stretch;
        flex-direction: column;
        border-radius: 22px;
        padding: 10px;
    }

    .tp-show-more .tp-btn {
        width: 100%;
    }

    .tp-product {
        grid-template-columns: 1fr;
        gap: 12px;
        border-radius: 26px;
        padding: 15px;
    }

    .tp-product__orb {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 0;
        gap: 10px;
    }

    .tp-orb--large {
        width: 96px;
        height: 96px;
        flex: 0 0 96px;
        font-size: 34px;
    }

    .tp-price-badge,
    .tp-product-scorecard {
        font-size: 12px;
    }

    .tp-product-scorecard {
        flex: 1 1 auto;
        min-width: 0;
        border-radius: 18px;
        padding: 10px;
    }

    .tp-product__body :is(h1, h2) {
        font-size: clamp(26px, 9vw, 36px);
        line-height: 1.22;
    }

    .tp-product-grid,
    .tp-report-preview,
    .tp-fit-tags,
    .tp-product-assurance {
        gap: 7px;
    }

    .tp-product-grid span,
    .tp-report-preview span,
    .tp-report-preview strong,
    .tp-fit-tags span,
    .tp-product-assurance span {
        width: 100%;
        justify-content: flex-start;
        border-radius: 16px;
    }

    .tp-paywall-preview,
    .tp-product-value {
        grid-template-columns: 1fr;
        border-radius: 20px;
        padding: 12px;
    }

    .tp-locked-grid {
        grid-template-columns: 1fr;
    }

    .tp-panel {
        border-radius: 24px;
        padding: 17px;
    }

    .tp-panel h2 {
        font-size: 22px;
        line-height: 1.65;
    }

    .tp-option {
        min-height: 58px;
        border-radius: 18px;
        font-size: 13px;
        line-height: 1.8;
        padding: 10px 12px;
    }

    .tp-quiz-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tp-result,
    .tp-columns {
        grid-template-columns: 1fr;
    }

    .tp-share-card,
    .tp-report {
        border-radius: 24px;
        padding: 16px;
    }

    .tp-bottom-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 3px;
        width: calc(100% - 14px);
        border-radius: 22px;
        padding: 5px;
    }

    .tp-bottom-nav button {
        min-width: 0;
        min-height: 50px;
        border-radius: 17px;
        font-size: 10px;
        line-height: 1.2;
        padding: 5px 2px;
    }

    .tp-bottom-nav button span {
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    .tp-app-shell {
        padding-inline: 8px;
    }

    .tp-home-copy h1 {
        font-size: 29px;
    }

    .tp-market-stats,
    .tp-app-stats {
        grid-template-columns: 1fr;
    }

    .tp-category-digest button {
        flex-basis: 86%;
    }

    .tp-product__orb {
        align-items: stretch;
        flex-direction: column;
    }

    .tp-orb--large {
        margin-inline: auto;
    }
}

/* Result page desktop polish: keep the report readable on wide screens. */
@media (min-width: 981px) {
    .tp-app-screen[data-screen="result"] {
        padding-bottom: 128px;
    }

    #tipeman-app .tp-result,
    body.tp-focus-mode #tipeman-app .tp-result {
        width: min(100%, 1140px);
        max-width: 1140px;
        margin: 0 auto;
        grid-template-columns: minmax(300px, .62fr) minmax(0, 1.38fr);
        gap: 18px;
        align-items: start;
    }

    #tipeman-app .tp-share-card {
        top: 22px;
        align-self: start;
        min-height: 0;
        padding: 22px;
        border-radius: 26px;
    }

    #tipeman-app .tp-share-top {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 10px;
    }

    #tipeman-app .tp-share-card h2 {
        margin: 12px 0 6px;
        font-size: clamp(30px, 2.8vw, 42px);
        line-height: 1.22;
    }

    #tipeman-app .tp-share-card p {
        margin: 8px 0 14px;
        font-size: 13px;
        line-height: 1.95;
    }

    #tipeman-app .tp-share-card .tp-score-ring {
        width: 112px;
        height: 112px;
        margin: 12px auto 16px;
    }

    #tipeman-app .tp-share-card .tp-score-ring > div {
        width: 78px;
        height: 78px;
    }

    #tipeman-app .tp-share-card .tp-score-ring strong {
        font-size: 21px;
    }

    #tipeman-app .tp-share-card .tp-tags {
        gap: 7px;
    }

    #tipeman-app .tp-share-card .tp-tags span {
        border-radius: 14px;
        padding: 6px 10px;
        font-size: 11.5px;
    }

    #tipeman-app .tp-report {
        padding: clamp(24px, 2.4vw, 34px);
        border-radius: 28px;
    }

    #tipeman-app .tp-report h3 {
        max-width: 720px;
        margin-bottom: 12px;
        font-size: clamp(32px, 3vw, 44px);
        line-height: 1.24;
    }

    #tipeman-app .tp-report > p {
        max-width: 860px;
        margin-bottom: 22px;
        font-size: 14px;
        line-height: 2;
    }

    #tipeman-app .tp-insight-grid {
        gap: 10px;
        margin: 16px 0;
    }

    #tipeman-app .tp-insight-grid article {
        min-height: 124px;
        border-radius: 22px;
        padding: 14px;
    }

    #tipeman-app .tp-insight-grid i {
        width: 34px;
        height: 34px;
        margin-bottom: 8px;
        border-radius: 13px;
    }

    #tipeman-app .tp-insight-grid strong {
        font-size: 18px;
        line-height: 1.45;
    }

    #tipeman-app .tp-chart-panel {
        grid-template-columns: minmax(260px, .78fr) minmax(0, 1fr);
        gap: 18px;
        margin: 18px 0;
        padding: 20px;
        border-radius: 26px;
    }

    #tipeman-app .tp-chart-panel h4 {
        margin-bottom: 8px;
    }

    #tipeman-app .tp-chart-panel p {
        max-width: 360px;
        font-size: 13px;
        line-height: 1.9;
    }

    #tipeman-app .tp-radar {
        width: min(100%, 292px);
        max-height: 292px;
    }

    #tipeman-app .tp-dimensions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #tipeman-app .tp-dimension {
        padding: 12px;
        border-radius: 18px;
    }

    #tipeman-app .tp-columns {
        gap: 12px;
    }

    #tipeman-app .tp-columns > div,
    #tipeman-app .tp-report > ul {
        border-radius: 20px;
        padding: 14px 16px;
    }

    #tipeman-app .tp-report .tp-actions {
        align-items: center;
        justify-content: flex-start;
        margin-top: 22px;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, .76);
        border-radius: 22px;
        background: rgba(255, 255, 255, .78);
        box-shadow: 0 14px 38px rgba(35, 27, 82, .10);
        backdrop-filter: blur(18px) saturate(150%);
    }
}

@media (min-width: 1180px) {
    #tipeman-app .tp-result,
    body.tp-focus-mode #tipeman-app .tp-result {
        grid-template-columns: minmax(312px, 360px) minmax(0, 1fr);
    }
}

@media (max-width: 980px) {
    .tp-app-screen[data-screen="result"] {
        padding-bottom: 104px;
    }

    #tipeman-app .tp-share-card {
        position: static;
    }
}

/* Reports dashboard redesign. */
#tipeman-app .tp-dashboard {
    width: min(100%, 1120px);
    margin-inline: auto;
    gap: 22px;
    padding-bottom: 132px;
}

#tipeman-app .tp-dashboard-hero--reports {
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, .55fr);
    gap: 20px;
    padding: clamp(22px, 3.2vw, 36px);
    text-align: right;
}

#tipeman-app .tp-dashboard-hero__copy h2 {
    max-width: 760px;
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.24;
}

#tipeman-app .tp-dashboard-hero__copy p {
    max-width: 780px;
    font-size: 14px;
    line-height: 2;
}

#tipeman-app .tp-dashboard-hero__badges,
#tipeman-app .tp-history-tags,
#tipeman-app .tp-next-panel__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#tipeman-app .tp-dashboard-hero__badges span,
#tipeman-app .tp-history-tags em,
#tipeman-app .tp-next-panel__chips span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 999px;
    background: rgba(255,255,255,.66);
    color: rgba(7,31,68,.76);
    padding: 7px 12px;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

#tipeman-app .tp-dashboard-hero__score {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    min-height: 190px;
    border-radius: 24px;
    background: rgba(255,255,255,.54);
    box-shadow: inset 0 1px rgba(255,255,255,.86);
    text-align: center;
}

#tipeman-app .tp-dashboard-hero__score p {
    max-width: 190px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

#tipeman-app .tp-dashboard-stats {
    width: 100%;
    margin: 0;
    gap: 12px;
}

#tipeman-app .tp-dashboard-stats article {
    display: grid;
    gap: 5px;
    min-height: 126px;
    padding: 16px;
    border-radius: 24px;
    text-align: right;
}

#tipeman-app .tp-dashboard-stats article i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(103,87,232,.10);
    color: var(--primary);
}

#tipeman-app .tp-dashboard-stats article small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.7;
}

#tipeman-app .tp-next-panel {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 22px;
    text-align: right;
}

#tipeman-app .tp-next-panel__copy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

#tipeman-app .tp-next-panel__chips {
    justify-content: flex-start;
}

#tipeman-app .tp-report-tools {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(280px, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 26px;
}

#tipeman-app .tp-report-tools__copy {
    display: grid;
    gap: 3px;
}

#tipeman-app .tp-report-tools__copy strong {
    color: var(--ink);
    font-size: 17px;
    font-weight: 950;
}

#tipeman-app .tp-report-tools__copy small,
#tipeman-app .tp-report-count {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

#tipeman-app .tp-report-search {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 20px;
    background: rgba(255,255,255,.70);
    padding: 0 14px;
}

#tipeman-app .tp-report-search i {
    color: var(--primary);
}

#tipeman-app .tp-report-search .tp-search {
    width: 100%;
    min-height: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0;
    text-align: right;
}

#tipeman-app .tp-history--report,
#tipeman-app .tp-history--pending {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 26px;
}

#tipeman-app .tp-history-copy {
    min-width: 0;
}

#tipeman-app .tp-history-copy p {
    max-width: 760px;
    margin: 6px 0 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

#tipeman-app .tp-history-actions {
    gap: 10px;
}

#tipeman-app .tp-pending-tests {
    display: grid;
    gap: 12px;
}

#tipeman-app .tp-pending-tests__head {
    padding-inline: 4px;
}

#tipeman-app .tp-pending-tests__head h3 {
    margin: 0 0 6px;
}

#tipeman-app .tp-pending-tests__head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 980px) {
    #tipeman-app .tp-dashboard {
        width: min(100%, 760px);
    }

    #tipeman-app .tp-dashboard-hero--reports,
    #tipeman-app .tp-next-panel,
    #tipeman-app .tp-report-tools,
    #tipeman-app .tp-history--report,
    #tipeman-app .tp-history--pending {
        grid-template-columns: 1fr;
    }

    #tipeman-app .tp-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    #tipeman-app .tp-dashboard {
        gap: 14px;
        padding-bottom: 112px;
    }

    #tipeman-app .tp-dashboard-hero--reports,
    #tipeman-app .tp-next-panel,
    #tipeman-app .tp-report-tools,
    #tipeman-app .tp-history--report,
    #tipeman-app .tp-history--pending {
        border-radius: 24px;
        padding: 14px;
        text-align: center;
    }

    #tipeman-app .tp-dashboard-hero__badges,
    #tipeman-app .tp-next-panel__chips,
    #tipeman-app .tp-history-tags,
    #tipeman-app .tp-history-actions {
        justify-content: center;
    }

    #tipeman-app .tp-dashboard-stats {
        gap: 8px;
    }

    #tipeman-app .tp-dashboard-stats article {
        min-height: 118px;
        align-items: center;
        justify-items: center;
        text-align: center;
        padding: 12px 8px;
    }

    #tipeman-app .tp-report-search .tp-search {
        text-align: center;
    }

    #tipeman-app .tp-history-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
}

/* Result page standard layout polish. */
@media (min-width: 981px) {
    #tipeman-app .tp-app-screen[data-screen="result"] {
        padding-bottom: 164px;
    }

    #tipeman-app .tp-result,
    body.tp-focus-mode #tipeman-app .tp-result {
        width: min(100%, 1280px);
        max-width: 1280px;
        margin-inline: auto;
        grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
        gap: 22px;
        align-items: start;
    }

    #tipeman-app .tp-share-card {
        position: sticky;
        top: 112px;
        min-height: 0;
        padding: 22px 20px;
        border-radius: 28px;
        text-align: center;
    }

    #tipeman-app .tp-share-top {
        justify-content: center;
        margin-bottom: 8px;
    }

    #tipeman-app .tp-share-card h2 {
        max-width: 300px;
        margin: 10px auto 8px;
        font-size: clamp(28px, 2.4vw, 38px);
        line-height: 1.24;
        text-wrap: balance;
    }

    #tipeman-app .tp-share-card p {
        max-width: 294px;
        margin: 8px auto 12px;
        font-size: 13px;
        line-height: 1.9;
    }

    #tipeman-app .tp-share-card .tp-score-ring {
        width: 112px;
        height: 112px;
        margin: 12px auto;
    }

    #tipeman-app .tp-share-card .tp-tags {
        justify-content: center;
    }

    #tipeman-app .tp-report {
        padding: clamp(22px, 2.2vw, 30px);
        border-radius: 28px;
    }

    #tipeman-app .tp-report h3 {
        max-width: 760px;
        margin-bottom: 10px;
        font-size: clamp(30px, 2.55vw, 40px);
        line-height: 1.28;
    }

    #tipeman-app .tp-report > p {
        max-width: 780px;
        margin-bottom: 20px;
        font-size: 13.5px;
        line-height: 2;
    }

    #tipeman-app .tp-insight-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin: 18px 0;
    }

    #tipeman-app .tp-insight-grid article {
        min-height: 114px;
        border-radius: 20px;
        padding: 14px;
    }

    #tipeman-app .tp-chart-panel,
    #tipeman-app .tp-chart-panel--guide {
        grid-template-columns: minmax(220px, 320px) minmax(260px, 1fr);
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 22px;
        border-radius: 26px;
    }

    #tipeman-app .tp-chart-panel > div:first-child {
        max-width: 320px;
        justify-self: end;
    }

    #tipeman-app .tp-chart-panel p {
        max-width: 320px;
        font-size: 13px;
        line-height: 1.95;
    }

    #tipeman-app .tp-chart-panel .tp-radar {
        width: min(100%, 300px);
        max-height: 300px;
        justify-self: center;
    }

    #tipeman-app .tp-chart-panel--guide .tp-insight-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        margin: 0;
    }

    #tipeman-app .tp-dimensions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #tipeman-app .tp-columns {
        gap: 12px;
    }

    #tipeman-app .tp-columns > div,
    #tipeman-app .tp-report > ul {
        border-radius: 20px;
        padding: 14px 16px;
    }
}

@media (max-width: 980px) {
    #tipeman-app .tp-app-screen[data-screen="result"] {
        padding-bottom: 144px;
    }

    #tipeman-app .tp-result,
    body.tp-focus-mode #tipeman-app .tp-result {
        width: min(100%, 720px);
        margin-inline: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    #tipeman-app .tp-share-card {
        position: static;
        padding: 18px;
        border-radius: 26px;
        text-align: center;
    }

    #tipeman-app .tp-share-top {
        justify-content: center;
    }

    #tipeman-app .tp-share-card h2 {
        margin-inline: auto;
        font-size: clamp(28px, 8vw, 38px);
        line-height: 1.24;
        text-wrap: balance;
    }

    #tipeman-app .tp-share-card p {
        max-width: 420px;
        margin-inline: auto;
    }

    #tipeman-app .tp-share-card .tp-tags {
        justify-content: center;
    }

    #tipeman-app .tp-report {
        padding: 18px;
        border-radius: 26px;
    }

    #tipeman-app .tp-report h3 {
        font-size: clamp(29px, 7vw, 38px);
        line-height: 1.28;
        text-align: center;
        text-wrap: balance;
    }

    #tipeman-app .tp-report > p {
        max-width: 100%;
        font-size: 13px;
        line-height: 1.95;
        text-align: center;
    }

    #tipeman-app .tp-insight-grid,
    #tipeman-app .tp-chart-panel,
    #tipeman-app .tp-chart-panel--guide,
    #tipeman-app .tp-columns {
        grid-template-columns: 1fr;
    }

    #tipeman-app .tp-chart-panel,
    #tipeman-app .tp-chart-panel--guide {
        gap: 16px;
        justify-items: center;
        text-align: center;
    }

    #tipeman-app .tp-chart-panel > div:first-child,
    #tipeman-app .tp-chart-panel p {
        max-width: 380px;
        justify-self: center;
    }

    #tipeman-app .tp-chart-panel .tp-radar {
        width: min(100%, 280px);
        max-height: 280px;
    }

    #tipeman-app .tp-chart-panel--guide .tp-insight-grid {
        grid-template-columns: 1fr;
        width: 100%;
        margin: 0;
    }

    #tipeman-app .tp-dimensions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    #tipeman-app .tp-app-screen[data-screen="result"] {
        padding-inline: 8px;
        padding-bottom: 132px;
    }

    #tipeman-app .tp-report,
    #tipeman-app .tp-share-card,
    #tipeman-app .tp-chart-panel,
    #tipeman-app .tp-ai-report,
    #tipeman-app .tp-result-links,
    #tipeman-app .tp-growth-plan {
        border-radius: 22px;
    }

    #tipeman-app .tp-report,
    #tipeman-app .tp-chart-panel,
    #tipeman-app .tp-ai-report,
    #tipeman-app .tp-result-links,
    #tipeman-app .tp-growth-plan {
        padding: 15px;
    }

    #tipeman-app .tp-insight-grid {
        gap: 10px;
    }

    #tipeman-app .tp-insight-grid article {
        min-height: 0;
        text-align: center;
    }

    #tipeman-app .tp-bottom-nav,
    #tipeman-app .tp-bottom-nav--links {
        width: min(calc(100vw - 16px), 520px);
        bottom: max(10px, env(safe-area-inset-bottom));
    }
}

/* Result mobile clarity polish: readable top cards and tighter responsive rhythm. */
@media (max-width: 980px) {
    #tipeman-app .tp-result,
    body.tp-focus-mode #tipeman-app .tp-result {
        width: min(100%, 640px);
        gap: 12px;
    }

    #tipeman-app .tp-share-card,
    #tipeman-app .tp-report {
        min-height: 0;
    }
}

@media (min-width: 561px) and (max-width: 720px) {
    #tipeman-app .tp-chart-panel:not(.tp-chart-panel--guide) {
        width: 100%;
        grid-template-columns: minmax(190px, .78fr) minmax(240px, 1fr);
        gap: 14px;
        align-items: center;
        justify-items: stretch;
        margin: 12px 0;
        padding: 16px;
        text-align: right;
    }

    #tipeman-app .tp-chart-panel:not(.tp-chart-panel--guide) > div:first-child {
        max-width: 240px;
        justify-self: end;
    }

    #tipeman-app .tp-chart-panel:not(.tp-chart-panel--guide) p {
        max-width: 240px;
        text-align: right;
    }

    #tipeman-app .tp-chart-panel:not(.tp-chart-panel--guide) .tp-radar {
        width: min(100%, 270px);
        max-height: 270px;
        justify-self: start;
    }
}

@media (max-width: 560px) {
    #tipeman-app .tp-app-screen[data-screen="result"] {
        padding: 10px 8px 124px;
    }

    body.tp-focus-mode #tipeman-app [data-screen="result"]:not(.tp-hidden) {
        padding: 10px 8px 124px;
    }

    #tipeman-app .tp-result,
    body.tp-focus-mode #tipeman-app .tp-result {
        width: min(100%, calc(100vw - 20px));
        gap: 10px;
    }

    #tipeman-app .tp-share-card {
        padding: 14px;
        border-radius: 20px;
        text-align: right;
    }

    #tipeman-app .tp-share-top {
        justify-content: flex-start;
        text-align: right;
    }

    #tipeman-app .tp-share-card h2 {
        max-width: 100%;
        margin: 10px 0 8px;
        font-size: clamp(23px, 6.2vw, 30px);
        line-height: 1.3;
        text-align: right;
    }

    #tipeman-app .tp-share-card p {
        max-width: 100%;
        margin: 8px 0 10px;
        font-size: 12.5px;
        line-height: 1.85;
        text-align: right;
    }

    #tipeman-app .tp-share-card .tp-score-ring {
        width: 96px;
        height: 96px;
        margin: 10px 0 12px;
    }

    #tipeman-app .tp-share-card .tp-tags {
        justify-content: flex-start;
    }

    #tipeman-app .tp-report {
        padding: 14px;
        border-radius: 20px;
    }

    #tipeman-app .tp-report h3 {
        margin-bottom: 8px;
        font-size: clamp(24px, 6.4vw, 31px);
        line-height: 1.35;
    }

    #tipeman-app .tp-report > p {
        font-size: 12.5px;
        line-height: 1.95;
        text-align: right;
    }

    #tipeman-app .tp-insight-grid {
        gap: 8px;
        margin: 12px 0;
    }

    #tipeman-app .tp-insight-grid article {
        width: 100%;
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        column-gap: 10px;
        align-items: start;
        justify-items: stretch;
        padding: 13px;
        border-radius: 18px;
        text-align: right;
    }

    #tipeman-app .tp-insight-grid article i {
        grid-row: 1 / span 3;
        width: 36px;
        height: 36px;
        margin: 0;
        border-radius: 13px;
    }

    #tipeman-app .tp-insight-grid article span,
    #tipeman-app .tp-insight-grid article strong,
    #tipeman-app .tp-insight-grid article p {
        min-width: 0;
    }

    #tipeman-app .tp-insight-grid article strong {
        font-size: 17px;
        line-height: 1.55;
    }

    #tipeman-app .tp-insight-grid article p {
        font-size: 12px;
        line-height: 1.8;
    }

    #tipeman-app .tp-chart-panel,
    #tipeman-app .tp-chart-panel--guide {
        width: 100%;
        gap: 12px;
        margin: 12px 0;
        padding: 14px 12px;
        border-radius: 20px;
        overflow: hidden;
    }

    #tipeman-app .tp-chart-panel > div:first-child,
    #tipeman-app .tp-chart-panel p {
        max-width: 100%;
        text-align: right;
    }

    #tipeman-app .tp-chart-panel h4 {
        font-size: 17px;
        line-height: 1.6;
    }

    #tipeman-app .tp-chart-panel p {
        font-size: 12.5px;
        line-height: 1.9;
    }

    #tipeman-app .tp-chart-panel .tp-radar {
        width: min(100%, 260px);
        max-height: 260px;
        overflow: visible;
    }

    #tipeman-app .tp-radar text {
        font-size: 7.2px;
    }

    #tipeman-app .tp-dimension {
        padding: 12px;
        border-radius: 16px;
        text-align: right;
    }

    #tipeman-app .tp-bottom-nav,
    #tipeman-app .tp-bottom-nav--links {
        width: min(calc(100vw - 14px), 500px);
    }
}

@media (max-width: 380px) {
    #tipeman-app .tp-result,
    body.tp-focus-mode #tipeman-app .tp-result {
        width: min(100%, calc(100vw - 16px));
    }

    #tipeman-app .tp-share-card h2 {
        font-size: clamp(22px, 6vw, 28px);
    }

    #tipeman-app .tp-chart-panel .tp-radar {
        width: min(100%, 244px);
        max-height: 244px;
    }
}

/* Result action panel polish: replace scattered lists with a usable action map. */
#tipeman-app .tp-result-action-panel {
    display: grid;
    gap: 16px;
    margin: 24px 0;
    padding: clamp(18px, 2.4vw, 28px);
    border: 1px solid rgba(103, 87, 232, .12);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.92), rgba(247,248,255,.74)),
        rgba(255,255,255,.82);
    box-shadow: 0 22px 54px rgba(39, 31, 86, .09);
    text-align: right;
}

#tipeman-app .tp-result-action-head {
    display: grid;
    gap: 7px;
    max-width: 720px;
}

#tipeman-app .tp-result-action-head h4 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.35;
}

#tipeman-app .tp-result-action-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

#tipeman-app .tp-result-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#tipeman-app .tp-result-action-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 22px;
    background: rgba(255,255,255,.76);
    box-shadow: 0 16px 38px rgba(35, 27, 82, .08);
}

#tipeman-app .tp-result-action-card--wide {
    grid-column: 1 / -1;
}

#tipeman-app .tp-result-action-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(103, 87, 232, .10);
    color: var(--primary);
}

#tipeman-app .tp-result-action-copy {
    min-width: 0;
}

#tipeman-app .tp-result-action-copy h5 {
    margin: 0;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.5;
}

#tipeman-app .tp-result-action-copy p {
    margin: 3px 0 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

#tipeman-app .tp-result-action-copy ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#tipeman-app .tp-result-action-copy li {
    position: relative;
    min-width: 0;
    padding-right: 14px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.85;
}

#tipeman-app .tp-result-action-copy li::before {
    content: "";
    position: absolute;
    top: .78em;
    right: 0;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(103, 87, 232, .09);
}

/* AI result status and transparent answer review — 2026-07-14 */
#tipeman-app .tp-ai-status-top {
    width: min(100%, 1120px);
    margin: 0 auto 18px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(100, 82, 226, 0.24);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(28, 38, 69, 0.1);
}

#tipeman-app .tp-ai-status-top > div:first-child {
    display: grid;
    gap: 4px;
}

#tipeman-app .tp-ai-status-top > div:first-child > strong {
    color: #102448;
    font-size: clamp(1.02rem, 2vw, 1.28rem);
}

#tipeman-app .tp-ai-status-top > div:first-child > small {
    color: #697287;
    line-height: 1.8;
}

#tipeman-app .tp-ai-status-top__timer {
    min-width: 126px;
    padding: 11px 16px;
    display: grid;
    justify-items: center;
    border-radius: 18px;
    background: linear-gradient(145deg, #eeeaff, #faf9ff);
    color: #5545d8;
}

#tipeman-app .tp-ai-status-top__timer span {
    font-size: 0.72rem;
    color: #72798a;
}

#tipeman-app .tp-ai-status-top__timer strong {
    direction: ltr;
    font-size: 1.45rem;
    font-variant-numeric: tabular-nums;
}

#tipeman-app .tp-answer-review {
    margin-top: 22px;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid rgba(16, 36, 72, 0.1);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
}

#tipeman-app .tp-answer-review__head h4 {
    margin: 6px 0;
    color: #102448;
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
}

#tipeman-app .tp-answer-review__head p,
#tipeman-app .tp-answer-review__more {
    margin: 0;
    color: #697287;
    line-height: 1.9;
}

#tipeman-app .tp-ai-growth-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#tipeman-app .tp-ai-growth-grid article {
    padding: 16px;
    display: grid;
    gap: 7px;
    border: 1px solid rgba(91, 76, 226, 0.12);
    border-radius: 18px;
    background: rgba(250, 249, 255, 0.9);
}

#tipeman-app .tp-ai-growth-grid article > span {
    color: #5b4ce2;
    font-size: 0.78rem;
    font-weight: 900;
}

#tipeman-app .tp-ai-growth-grid article > strong {
    color: #102448;
}

#tipeman-app .tp-ai-growth-grid article > p,
#tipeman-app .tp-ai-growth-grid article > em {
    margin: 0;
    color: #687187;
    line-height: 1.85;
}

#tipeman-app .tp-ai-growth-grid article > em {
    padding: 8px 10px;
    border-radius: 12px;
    background: #eeebff;
    color: #493ac7;
    font-style: normal;
}

#tipeman-app .tp-answer-review__list {
    margin-top: 16px;
    display: grid;
    gap: 8px;
}

#tipeman-app .tp-answer-review__list article {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 17px;
    background: rgba(245, 246, 251, 0.92);
}

#tipeman-app .tp-answer-review__list article > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #ebe8ff;
    color: #5646d6;
    font-weight: 900;
}

#tipeman-app .tp-answer-review__list div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

#tipeman-app .tp-answer-review__list div strong {
    color: #17294d;
    line-height: 1.75;
}

#tipeman-app .tp-answer-review__list div small {
    color: #7b8292;
}

#tipeman-app .tp-answer-review__list em {
    max-width: 190px;
    padding: 7px 10px;
    border-radius: 11px;
    background: #fff;
    color: #4637c8;
    font-style: normal;
    font-weight: 800;
    text-align: center;
}

#tipeman-app .tp-answer-review__more {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f1efff;
    color: #5142cb;
}

@media (max-width: 680px) {
    #tipeman-app .tp-ai-status-top {
        padding: 15px;
        align-items: stretch;
        flex-direction: column;
    }

    #tipeman-app .tp-ai-status-top__timer {
        grid-template-columns: auto auto;
        justify-content: space-between;
        align-items: center;
    }

    #tipeman-app .tp-answer-review__list article {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    #tipeman-app .tp-ai-growth-grid {
        grid-template-columns: 1fr;
    }

    #tipeman-app .tp-answer-review__list em {
        grid-column: 2;
        justify-self: start;
        max-width: 100%;
    }
}

@media (max-width: 760px) {
    #tipeman-app .tp-result-action-panel {
        margin: 18px 0;
        padding: 16px;
        border-radius: 24px;
    }

    #tipeman-app .tp-result-action-grid {
        gap: 10px;
    }

    #tipeman-app .tp-result-action-card {
        padding: 14px;
        border-radius: 20px;
    }
}

@media (max-width: 560px) {
    #tipeman-app .tp-result-action-panel {
        padding: 14px;
        border-radius: 20px;
    }

    #tipeman-app .tp-result-action-head h4 {
        font-size: 20px;
    }

    #tipeman-app .tp-result-action-head p {
        font-size: 12.5px;
    }

    #tipeman-app .tp-result-action-grid {
        grid-template-columns: 1fr;
    }

    #tipeman-app .tp-result-action-card--wide {
        grid-column: auto;
    }

    #tipeman-app .tp-result-action-card {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
    }

    #tipeman-app .tp-result-action-icon {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }
}

/* Result hierarchy and server-backed AI status — 2026-09-02 */
#tipeman-app .tp-result-ai-state {
    width: 100%;
    margin-top: 18px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(82, 67, 196, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
    color: #17294d;
    text-align: right;
}

#tipeman-app .tp-result-ai-state > i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #eeebff;
    color: #5747d8;
}

#tipeman-app .tp-result-ai-state > div:not(.tp-result-ai-state__timer) {
    min-width: 0;
    display: grid;
    gap: 3px;
}

#tipeman-app .tp-result-ai-state strong,
#tipeman-app .tp-result-ai-state small {
    display: block;
}

#tipeman-app .tp-result-ai-state small {
    color: #697287;
    font-size: 12px;
    line-height: 1.75;
}

#tipeman-app .tp-result-ai-state__timer {
    min-width: 104px;
    padding: 8px 12px;
    display: grid;
    justify-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #eeeaff, #faf9ff);
}

#tipeman-app .tp-result-ai-state__timer span {
    color: #72798a;
    font-size: 10px;
}

#tipeman-app .tp-result-ai-state__timer strong {
    direction: ltr;
    color: #5545d8;
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

#tipeman-app .tp-result-ai-state--ready {
    border-color: rgba(42, 157, 143, .22);
    background: rgba(235, 253, 248, .82);
}

#tipeman-app .tp-result-ai-state--ready > i {
    background: rgba(42, 157, 143, .12);
    color: #14796e;
}

#tipeman-app .tp-result-ai-state--failed {
    border-color: rgba(180, 44, 44, .18);
    background: rgba(255, 246, 246, .86);
}

#tipeman-app .tp-result-ai-state--failed > i {
    background: rgba(180, 44, 44, .10);
    color: #a42e2e;
}

@media (max-width: 560px) {
    #tipeman-app .tp-result-ai-state {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 13px;
    }

    #tipeman-app .tp-result-ai-state__timer {
        grid-column: 1 / -1;
        width: 100%;
        grid-template-columns: auto auto;
        justify-content: space-between;
        align-items: center;
    }
}
