


button.btn-primary, button.btn-secondary {
    font-family: var(--font-mono); font-size: 12.5px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
    transition: transform var(--dur-base), background var(--dur-base), color var(--dur-base), border-color var(--dur-base);
}
button.btn-secondary { border: 1.5px solid var(--color-text); color: var(--color-text); }
button.btn-secondary:hover:not(:disabled) { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
:root:lang(zh) :is(button.btn-primary, button.btn-secondary) { letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { button.btn-primary:hover { transform: none; } }


.cost-modal-overlay { background: rgba(11, 11, 12, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: ybFade var(--dur-base) var(--ease-out) both; }
.cost-modal {
    position: relative; padding: 36px; border: 0; border-radius: 32px; background: var(--color-surface); color: var(--color-text);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .4); animation: ybRise var(--dur-slow) var(--ease-out) both;
}
.cost-modal-header {
    align-items: flex-start; gap: 16px; margin-bottom: 16px; padding-right: 48px; color: var(--color-text);
    font-family: var(--font-head); font-size: 28px; line-height: 1.2; font-weight: 400; letter-spacing: -.01em;
}
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .cost-modal-header { font-family: var(--font-sans); font-weight: 500; font-size: 24px; letter-spacing: .01em; }
.cost-modal .cost-modal-close, .cost-modal .auth-modal-x {
    position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%;
    display: grid; place-items: center; background: var(--color-surface-soft); color: var(--color-text); font-size: 20px;
    transition: background var(--dur-base), color var(--dur-base);
}
.cost-modal .cost-modal-close:hover, .cost-modal .auth-modal-x:hover { background: var(--accent-fill); color: var(--on-accent); }
.settings-modal-footer { border-top: 0; }

.cost-modal.unlock-ai-modal { width: min(100%, 640px); max-width: 640px; max-height: calc(100dvh - 48px); overflow: auto; }
#unlock_ai_modal_message.cta-up-lead { margin: 6px 0 14px; color: var(--color-text-muted); font-size: 14.5px; line-height: 1.6; }
#unlock_ai_modal_message.cta-up-lead b { color: var(--color-text); font-weight: 600; }
body #unlock_ai_modal_overlay #cta_unlock_extra { margin: 0; }
body #unlock_ai_modal_overlay .cta-up-cmp { margin: 0; }
body #unlock_ai_modal_overlay .cta-up-cmp .cta-cmp :is(th, td) { padding: 9px 14px; font-size: 13px; line-height: 18px; }
body #unlock_ai_modal_overlay .cta-up-cmp .cta-cmp th { font-size: 10.5px; }
body #unlock_ai_modal_overlay .cta-up-cmp .cta-cmp :is(th, td):not(:first-child) { width: 112px; }
body #unlock_ai_modal_overlay .cta-up-cmp .cta-cmp-mark { white-space: normal; }
body #unlock_ai_modal_overlay .cta-up-cmp .cta-cmp-mark:is(.is-num, .is-text) { color: var(--color-text); font-size: 13px; font-weight: 400; } 
.unlock-ai-modal .settings-modal-footer { display: grid; grid-template-columns: 1fr 150px 150px; gap: 12px; align-items: center; margin-top: 20px; padding-top: 0; }
.unlock-ai-modal .settings-modal-footer > .cta-up-sample {
    justify-self: start; height: auto; min-height: 0; padding: 0; border: 0; background: none; color: var(--color-text);
    font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
@media (max-width: 640px) {
    body #unlock_ai_modal_overlay .cta-up-cmp .cta-cmp :is(th, td) { padding: 9px 8px; }
    body #unlock_ai_modal_overlay .cta-up-cmp .cta-cmp th { letter-spacing: .03em; }
    body #unlock_ai_modal_overlay .cta-up-cmp .cta-cmp :is(th, td):not(:first-child) { width: 76px; }
    .unlock-ai-modal .settings-modal-footer { grid-template-columns: 1fr 1fr; }
    .unlock-ai-modal .settings-modal-footer > .cta-up-sample { grid-column: 1 / -1; justify-self: center; order: 3; }
}
.settings-modal-footer > button { height: 52px; min-height: 52px; padding: 0 22px; }
@keyframes ybFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ybRise { from { opacity: 0; transform: translateY(var(--rise-md)); } to { opacity: 1; transform: none; } }


.cost-modal.auth-modal .cost-modal-header { font-size: 28px; line-height: 1.2; margin-bottom: 12px; }
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .cost-modal.auth-modal .cost-modal-header { font-size: 24px; }
.cost-modal.auth-modal { width: min(100%, 440px); padding: 36px; border-radius: 32px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .4); }
.auth-desc, .auth-unlock-note { font-size: 15px; line-height: 1.55; color: var(--color-text-muted); }
.auth-unlock-note { color: var(--color-text); }
.auth-sso { gap: 10px; margin: 24px 0 18px; }

.cost-modal.buy-credits-modal { position: relative; }
.buy-credits-modal .cost-modal-header { justify-content: center; margin: -4px 0 16px; padding: 0 44px 14px; border-bottom: 1px solid var(--color-border); text-align: center; font-family: var(--font-head); font-weight: 400; font-size: 22px; line-height: 1.2; }
.buy-credits-modal .cost-modal-header .cost-modal-close { position: absolute; top: 16px; right: 16px; }
.buy-credits-modal .cost-modal-header .cost-modal-close.buy-credits-back { right: auto; left: 16px; }


.auth-modal .auth-logo { display: flex; margin: 0 0 16px; }
.auth-modal .auth-logo .yb-logo { width: auto; height: 22px; }
.cost-modal.auth-modal { position: relative; }
.cost-modal.auth-modal .auth-modal-x { position: absolute; top: 16px; right: 16px; }
.cost-modal.auth-modal .cost-modal-header { padding-right: 40px; }
.auth-sso-btn {
    gap: 10px; height: 52px; min-height: 52px; border: 1.5px solid var(--color-border); background: transparent; color: var(--color-text);
    font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
:root:lang(zh) .auth-sso-btn { letter-spacing: .04em; }
.auth-sso-btn svg { flex: none; width: 16px; height: 16px; }
.auth-sso-btn:hover { border-color: var(--color-text); background: transparent; }
.auth-sso-btn[data-auth-provider] { background: #313429; border-color: #313429; color: #FFFFFF; }
.auth-sso-btn[data-auth-provider]:hover { background: #1F2219; border-color: #1F2219; }
:root:not([data-theme="linen"]) .auth-sso-btn[data-auth-provider] { background: #ECFC91; border-color: #ECFC91; color: #1F2219; }
.auth-fine { text-align: center; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--color-text-muted); }
.auth-fine a { color: var(--color-text); text-underline-offset: 3px; }


.consent-modal { width: min(100%, 520px); max-width: 520px; }
.consent-box { border: 0; border-radius: 20px; background: var(--color-surface-soft); }
.consent-scroll { padding: 22px 22px 24px; }
.consent-scroll p { color: var(--color-text); font-size: 14.5px; line-height: 1.6; }
.consent-scroll h3 { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); }
.consent-keep { border: 0; border-radius: 14px; background: var(--color-surface); }
.consent-keep > div + div { border-top-color: var(--color-border); }
.consent-keep dt { color: var(--color-text-muted); }
.consent-keep dd { color: var(--color-text); }
.consent-more { background: var(--accent-fill); color: var(--on-accent); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.consent-check { grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 12px 0; font-size: 14.5px; line-height: 1.55; color: var(--color-text); }
.consent-check + .consent-check { border-top-color: var(--color-border); }
.consent-check input {
    appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 6px; border: 1.5px solid var(--color-text);
    background: transparent; cursor: pointer; transition: background .15s, border-color .15s;
}
.consent-check input:checked {
    border-color: #313429;
    background: #313429 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ECFC91' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
:root:not([data-theme="linen"]) .consent-check input:checked {
    border-color: #ECFC91;
    background: #ECFC91 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2219' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.consent-check input:focus-visible { outline: 2px solid #E0703F; outline-offset: 2px; }
.consent-modal .settings-modal-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; padding-top: 0; }
.consent-modal .settings-modal-footer .consent-hint { grid-column: 1 / -1; }
.consent-modal .settings-modal-footer .consent-hint:empty { display: none; }
.consent-modal .settings-modal-footer > button { width: 100%; min-width: 0; }

.auth-modal .auth-signup-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; padding-top: 0; }
.auth-modal .auth-signup-actions > button { width: 100%; min-width: 0; }
.auth-modal #auth_view_complete_signup .account-delete-error { margin: 0; }
.consent-modal button.btn-primary:disabled, .auth-modal .auth-signup-actions button.btn-primary:disabled { background: var(--accent-fill); color: var(--on-accent); opacity: .35; }
@media (max-width: 480px) {
    .cost-modal, .cost-modal.auth-modal { padding: 32px 22px 24px; }
    .consent-modal .settings-modal-footer { grid-template-columns: 1fr; }
}


.pricing-back, .analyze-back-link {
    display: inline-flex; align-items: center; gap: 12px; margin: 0 0 40px; padding: 0; background: none; border: 0; cursor: pointer;
    color: var(--color-text-muted); font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}
.pricing-back:hover, .analyze-back-link:hover { color: var(--color-text); }
.yb-back { flex: none; width: 44px; height: 44px; box-sizing: border-box; border-radius: 50%; border: 1px solid var(--color-text); color: var(--color-text); display: grid; place-items: center; transition: background var(--dur-base), color var(--dur-base), border-color var(--dur-base); }
.yb-back svg { width: 20px; height: 20px; }
:root[dir="rtl"] .yb-back svg { transform: scaleX(-1); }
:is(.pricing-back, .analyze-back-link):hover .yb-back { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }


:is(.pricing-title, .analyze-title, .account-title) {
    color: var(--color-text); font-family: var(--font-head); font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -.02em;
}
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) :is(.pricing-title, .analyze-title, .account-title) { font-weight: 500; letter-spacing: .01em; line-height: 1.22; }


.pricing-view { background: var(--color-bg); }
.pricing-view .pricing-page { max-width: none; margin: 0; padding: 64px 0 0; }
.pricing-view .pricing-page > :not(.pricing-band) { margin-left: var(--yb-gutter); margin-right: var(--yb-gutter); }
.pricing-view .pricing-page > .pricing-back { margin-bottom: 40px; }
.pricing-title { margin: 16px 0 20px; max-width: none; }
.pricing-intro { max-width: 620px; color: #45473A; font-size: 18px; line-height: 1.6; }
:root:not([data-theme="linen"]) .pricing-intro { color: #B3B1A1; }
.pricing-grid { margin-top: 56px; gap: 24px; }
.pricing-card { padding: 40px; gap: 0; border: 0; border-radius: 32px; box-shadow: none; background: #F1EEE6; color: #313429; }
:root:not([data-theme="linen"]) .pricing-card { background: var(--color-surface); color: var(--color-text); }
.pricing-card.is-featured { background: #313429; color: #FFFFFF; box-shadow: none; }
.pricing-name { justify-content: flex-start; flex-wrap: wrap; gap: 10px; min-height: 0; color: inherit; font-family: var(--font-head); font-weight: 400; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .pricing-name { font-family: var(--font-sans); font-weight: 500; font-size: 24px; }
.pricing-badge { padding: 7px 13px; border: 0; border-radius: 999px; background: #ECFC91; color: #313429; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; }
.pricing-amount { order: 1; margin: 20px 0 4px; color: inherit; gap: 6px 8px; }
.pricing-amount strong { font-family: var(--font-head); font-weight: 300; font-size: clamp(44px, 3.9vw, 56px); line-height: 1; letter-spacing: -.02em; }
.pricing-amount span { color: #8C8B7C; font-size: 15px; }
.pricing-sub { order: 2; margin: 0; color: #5C5E50; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
.pricing-card.is-featured .pricing-sub, .pricing-card.is-featured .pricing-amount span { color: rgba(255, 255, 255, .6); }
:root:not([data-theme="linen"]) .pricing-card:not(.is-featured) .pricing-sub { color: #B3B1A1; }
.pricing-list { order: 3; margin: 28px 0 32px; padding: 0; border: 0; display: flex; flex-direction: column; gap: 14px; }
.pricing-list li { display: flex; gap: 12px; align-items: flex-start; color: inherit; font-size: 15px; line-height: 1.6; }
.pricing-list svg { width: 22px; height: 22px; flex: none; margin-top: 1px; padding: 4px; box-sizing: border-box; border-radius: 50%; background: #313429; color: #FFFFFF; stroke-width: 2.4; }
.pricing-card.is-featured .pricing-list svg { background: #ECFC91; color: #313429; }
:root:not([data-theme="linen"]) .pricing-card:not(.is-featured) .pricing-list svg { background: #ECEADF; color: #1F2219; }
.pricing-view .pricing-card > button { order: 4; margin-top: auto; align-self: flex-start; height: 52px; min-height: 52px; padding: 0 28px; }
.pricing-btn-outline {
    border: 1.5px solid #313429; color: #313429; background: transparent;
    font-family: var(--font-mono); font-size: 12.5px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
    transition: transform var(--dur-base), background var(--dur-base), color var(--dur-base);
}
.pricing-btn-outline:hover { background: #313429; color: #ECFC91; transform: translateY(-1px); }
:root:not([data-theme="linen"]) .pricing-btn-outline { border-color: #ECEADF; color: #ECEADF; }
:root:not([data-theme="linen"]) .pricing-btn-outline:hover { background: #ECFC91; border-color: #ECFC91; color: #1F2219; }
.pricing-card.is-featured .home-cta { background: #ECFC91; color: #313429; }
.pricing-card.is-featured .home-cta:hover { background: #DDF070; }
.pricing-legal { margin: 28px var(--yb-gutter) 104px; font-size: 13px; }
.pricing-legal a { color: var(--color-text-muted); }
.pricing-band { padding: 104px var(--yb-gutter); }
.pricing-band.is-sage { background: #F1EEE6; }
.pricing-band.is-blush { background: #EFE2D9; }
:root:not([data-theme="linen"]) .pricing-band { background: var(--color-surface); border-top: 1px solid var(--color-border); }
:root:not([data-theme="linen"]) .pricing-band.is-sage { background: #1D1F17; }
.pricing-band .pricing-sub-h {
    margin: 0 0 40px; color: var(--color-text); font-family: var(--font-head); font-weight: 400; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -.02em;
}
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .pricing-band .pricing-sub-h { font-weight: 500; letter-spacing: .01em; line-height: 1.22; }
.pricing-cmp-wrap { border: 0; border-radius: 0; background: transparent; }
.pricing-cmp th, .pricing-cmp td { padding: 18px 0; border-bottom: 1px solid rgba(49, 52, 41, .18); color: #313429; font-size: 15px; }
.pricing-cmp thead th { border-bottom: 1.5px solid #313429; color: #5C5E50; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; }
.pricing-cmp .c { width: 200px; }
.pricing-cmp svg { width: 20px; height: 20px; color: #E0703F; }
.pricing-dash { color: #8C8B7C; }
.pricing-note { margin-top: 20px; color: #5C5E50; font-size: 13px; }
:root:not([data-theme="linen"]) :is(.pricing-cmp th, .pricing-cmp td) { color: #ECEADF; border-bottom-color: var(--color-border); }
:root:not([data-theme="linen"]) .pricing-cmp thead th { color: #B3B1A1; border-bottom-color: #ECEADF; }
:root:not([data-theme="linen"]) .pricing-note { color: #B3B1A1; }
.pricing-band.is-blush { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(36px, 8vw, 115px); }
.pricing-band.is-blush .pricing-sub-h { margin: 0; }
@media (max-width: 760px) {
    .pricing-view .pricing-page { padding-top: 40px; }
    .pricing-title { font-size: 40px; line-height: 1.08; }
    .pricing-grid { grid-template-columns: minmax(0, 1fr); }
    .pricing-card { padding: 28px; }
    .pricing-view .pricing-card > button { align-self: stretch; justify-content: center; }
    .pricing-legal { margin-bottom: 72px; }
    .pricing-band { padding-top: 72px; padding-bottom: 72px; }
    .pricing-band.is-blush { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    
    .pricing-cmp { min-width: 0; }
    .pricing-cmp th, .pricing-cmp td { padding: 14px 0; }
    .pricing-cmp th:first-child, .pricing-cmp td:first-child { padding-inline-end: 12px; }
    .pricing-cmp .c { width: 96px; }
}


body.analyze-view-open .app-main { padding-top: 32px; padding-bottom: 112px; }
body.analyze-view-open .analyze-title { margin: 0 0 12px; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.05; }
body.analyze-view-open .analyze-subtitle { margin: 0; color: #45473A; font-size: 18px; line-height: 1.6; }
:root:not([data-theme="linen"]) body.analyze-view-open .analyze-subtitle { color: #B3B1A1; }
body.analyze-view-open .analyze-view-head { margin-bottom: 32px; }
body.analyze-view-open .photo-card:not(.has-image):not(.camera-active) { border: 0; border-radius: 32px; background: #EFE2D9; box-shadow: none; }
:root:not([data-theme="linen"]) body.analyze-view-open .photo-card:not(.has-image):not(.camera-active) { background: var(--color-surface); }
body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder:not(.is-error) { color: #45473A; font-size: 15px; gap: 24px; }
:root:not([data-theme="linen"]) body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder:not(.is-error) { color: #B3B1A1; }
body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder .icon {
    position: relative; flex: none; width: min(100%, 240px); height: auto; aspect-ratio: 10 / 13; font-size: 0; border: 0; border-radius: 50% / 38.5%;
    background: #EAD7F2; color: #313429; overflow: hidden;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .35), 0 2px 6px rgba(49, 52, 41, .05), 0 24px 48px -18px rgba(49, 52, 41, .22);
}
body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder .icon > * { display: none; }
body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder .icon::before {
    content: ""; position: absolute; inset: 0; margin: auto; width: 62%; aspect-ratio: 90 / 106; opacity: .75; background: #FFFFFF;
    -webkit-mask: var(--face-scan-mask) center / contain no-repeat; mask: var(--face-scan-mask) center / contain no-repeat;
}
body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder:not(.is-error) .icon::after {
    content: ""; position: absolute; left: 20%; right: 20%; top: 39%; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, rgba(224, 112, 63, 0), #E0703F 20%, #E0703F 80%, rgba(224, 112, 63, 0));
    box-shadow: 0 0 10px 2px rgba(224, 112, 63, .45); animation: ybScan 2.6s ease-in-out infinite;
}
@keyframes ybScan { 0%, 100% { top: 42%; } 50% { top: 67%; } }
body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder.is-error { gap: 24px; padding: 20px 28px; color: var(--color-text); font-size: 17px; font-weight: 500; line-height: 1.5; }
body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder.is-error .icon {
    background: #F9D9C9; color: #313429; overflow: visible;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .35), 0 2px 6px rgba(49, 52, 41, .05), 0 24px 48px -18px rgba(49, 52, 41, .22);
}
body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder.is-error .icon::before { opacity: .75; }
body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder.is-error .icon::after {
    content: "!"; position: absolute; left: 64%; top: 62%; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    background: #AA522B; color: #FFFFFF; box-shadow: 0 0 0 3px #F9D9C9; font: 700 19px/1 var(--font-sans);
}
:root:not([data-theme="linen"]) body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder.is-error .icon {
    background: #3A2A22; color: #ECEADF; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .06), 0 24px 48px -18px rgba(0, 0, 0, .6);
}
:root:not([data-theme="linen"]) body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder.is-error .icon::after { background: #F08A7A; color: #1F2219; box-shadow: 0 0 0 3px #3A2A22; }
body.analyze-view-open .photo-source-actions button { height: 52px; min-height: 52px; padding: 0 28px; }
body.analyze-view-open .photo-source-actions #button_load_photo { background: #FFFFFF; color: #313429; }
body.analyze-view-open .photo-source-actions #button_load_photo:hover:not(:disabled) { background: #313429; color: #ECFC91; }
:root:not([data-theme="linen"]) body.analyze-view-open .photo-source-actions #button_load_photo { background: #26281F; color: #ECEADF; }

body.analyze-view-open .photo-card:not(.has-image):not(.camera-active) { height: auto; min-height: 0; max-height: none; aspect-ratio: auto; }
body.analyze-view-open .photo-column:has(.photo-card:not(.has-image):not(.camera-active)) .photo-placeholder { position: relative; inset: auto; align-self: stretch; flex: 1 1 auto; }

.analyze-photo-guide { border: 0; border-radius: 32px; background: #F1EEE6; padding: 40px 36px; }
:root:not([data-theme="linen"]) .analyze-photo-guide { background: var(--color-surface); }
.analyze-photo-guide strong { margin: 0 0 20px; color: var(--color-text); font-family: var(--font-head); font-weight: 400; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .analyze-photo-guide strong { font-family: var(--font-sans); font-weight: 500; font-size: 24px; }
.analyze-photo-guide ul { counter-reset: tip; gap: 0; justify-content: flex-start; }
.analyze-photo-guide li {
    counter-increment: tip; grid-template-columns: 36px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 16px 0;
    border-top: 1px solid rgba(49, 52, 41, .16); color: var(--color-text); font-size: 15px; line-height: 1.5;
}
.analyze-photo-guide li:last-child { border-bottom: 1px solid rgba(49, 52, 41, .16); }
:root:not([data-theme="linen"]) .analyze-photo-guide li { border-color: #34372B; }
.analyze-photo-guide li::before { content: counter(tip, decimal-leading-zero); color: #E0703F; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; }
.analyze-photo-guide li > svg { display: none; }

.upload-preview { border-radius: 32px; background: #EFE2D9; gap: 24px; }
:root:not([data-theme="linen"]) .upload-preview { background: var(--color-surface); }

.upload-preview-frame { position: relative; flex: 0 1 auto; min-height: 0; height: calc(100% - 100px); aspect-ratio: 10 / 13; max-width: 100%; border-radius: 50% / 38.5%; box-shadow: 0 2px 6px rgba(49, 52, 41, .05), 0 24px 48px -18px rgba(49, 52, 41, .22); }
.upload-preview-frame :is(img, canvas) { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border-radius: inherit; box-shadow: none; }
.upload-preview-actions button { height: 52px; min-height: 52px; padding: 0 28px; }

@media (min-width: 641px) { .upload-preview-actions #button_choose_other_photo { order: 1; } .upload-preview-actions #button_start_analysis { order: 2; } }
.upload-preview-actions .btn-secondary { background: #FFFFFF; border-color: #FFFFFF; color: #313429; }
:root:not([data-theme="linen"]) .upload-preview-actions .btn-secondary { background: #26281F; border-color: #26281F; color: #ECEADF; }
@media (min-width: 821px) {
    body.analyze-view-open .app-main { max-width: none; margin: 0; padding-left: var(--yb-gutter); padding-right: var(--yb-gutter); box-sizing: border-box; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: 24px; }
    body.analyze-view-open .app-main { align-items: stretch; }
    body.analyze-view-open .photo-column:has(.photo-card:not(.has-image):not(.camera-active)) { align-self: stretch; }
    body.analyze-view-open .photo-card:not(.has-image):not(.camera-active) { flex: 1 1 auto; }
    
    body.analyze-view-open .photo-column:has(.photo-card:not(.has-image):not(.camera-active)) .photo-placeholder { padding: 48px 32px 116px; }
    body.analyze-view-open .photo-column:has(.photo-card:not(.has-image):not(.camera-active)) .photo-controls-wrap { top: auto; bottom: 40px; }
    body.analyze-view-open .photo-column:has(.photo-card:not(.has-image):not(.camera-active)) .photo-source-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(420px, calc(100vw - 80px)); }
    body.analyze-view-open .photo-column:has(.photo-card:not(.has-image):not(.camera-active)) .photo-source-actions button.btn-primary { width: 100%; padding: 0 16px; }
    .analyze-photo-guide ul { flex: 0 0 auto; }
}
@media (max-width: 820px) {
    body.analyze-view-open .app-main { padding: 24px 20px 72px; }
    body.analyze-view-open .analyze-title { font-size: 40px; line-height: 1.08; }
    
    body.analyze-view-open .photo-column:has(.photo-card:not(.has-image):not(.camera-active)) .photo-placeholder { padding: 36px 20px 164px; }
    body.analyze-view-open .photo-column:has(.photo-card:not(.has-image):not(.camera-active)) .photo-source-actions {
        top: auto; bottom: 24px; flex-direction: column; width: calc(100% - 40px); max-width: none;
    }
    body.analyze-view-open .photo-column:has(.photo-card:not(.has-image):not(.camera-active)) .photo-source-actions button.btn-primary { width: 100%; height: 52px; padding: 0 20px; font-size: 12.5px; }
    .analyze-photo-guide { margin-top: 16px; padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .cost-modal-overlay, .cost-modal { animation: none; }
    body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder:not(.is-error) .icon::after { animation: none; top: 55%; }
}


.feature-strip-wrap { background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: 14px max(24px, calc((100% - 1620px) / 2 + 24px)); }
.feature-pill {
    height: 40px; padding: 0 14px; gap: 8px; opacity: 1; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface);
    color: var(--color-text); font-size: 13.5px; font-weight: 500; transition: background var(--dur-base) var(--ease-in-out), color var(--dur-base) var(--ease-in-out), border-color var(--dur-base);
}
.feature-pill:hover { border-color: var(--color-text-muted); }
.feature-pill.active { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.feature-pill.active .feature-pill-meta { color: inherit; }

.feature-pill .swatch { flex: none; width: 8px; height: 8px; min-width: 0; padding: 0; border: 0; border-radius: 50%; background: var(--pill-dot, var(--color-text-muted)); box-shadow: none; }
.feature-pill .swatch svg { display: none; }
.feature-pill[data-feature="skin_type"] .swatch { background: #E0703F; }
.feature-pill[data-feature="skin_report"] .swatch { width: 14px; height: 14px; border-radius: 0; background: none; color: inherit; }
.feature-pill[data-feature="skin_report"] .swatch svg { display: block; width: 14px; height: 14px; }
.feature-pill-meta { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; background: transparent; opacity: .75; }
.feature-pill-meta--score .feature-pill-score-ring { display: inline; width: auto; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.feature-pill-meta--score .feature-pill-score-ring::before, .feature-pill-meta--score .feature-pill-score-ring::after,
.feature-pill-meta--score .feature-pill-score-arc { display: none; }
.feature-pill-meta--score .feature-pill-score-value { position: static; color: inherit; font: inherit; }
.feature-scroll-button { width: 36px; height: 36px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); box-shadow: 0 2px 8px rgba(49, 52, 41, .12); backdrop-filter: none; }

.feature-scroll-fade { width: 96px; }
.feature-scroll-fade--left { background: linear-gradient(to right, var(--color-bg) 45%, transparent); }
.feature-scroll-fade--right { background: linear-gradient(to left, var(--color-bg) 45%, transparent); }



html:has(> body.app-page-open:not(.analyze-view-open)) {
    --desktop-photo-min-render-width: 215px;
    --rs-col: max(300px, var(--rs-photo, 400px));
    --rs-content: clamp(1000px, calc(var(--rs-col) * 3.1 + 32px), 1572px);
    --rs-gutter: max(24px, calc((100% - var(--rs-content)) / 2));  
}

.result-ai-note { display: none; }
body.app-page-open:not(.analyze-view-open) .result-ai-note {
    display: block; margin: 8px var(--rs-gutter, 24px) 40px; padding-top: 18px; border-top: 1px solid var(--color-border);
    color: var(--color-text-muted); font-size: 12.5px; line-height: 1.6; text-align: center;
}
@media (max-width: 640px) { body.app-page-open:not(.analyze-view-open) .result-ai-note { margin: 8px 16px 32px; } }
@media (min-width: 821px) {
    body.app-page-open:not(.analyze-view-open) .feature-strip-wrap { padding-left: var(--rs-gutter); padding-right: var(--rs-gutter); }
    body.app-page-open:not(.analyze-view-open) .feature-scroll-viewport { padding-left: 0; padding-right: 0; }
    body.app-page-open:not(.analyze-view-open) .app-main {
        grid-template-columns: var(--rs-col) minmax(0, 1fr); gap: 32px; align-items: start;
        max-width: none; margin: 0; padding: 24px var(--rs-gutter) 32px; box-sizing: border-box;
    }
    body.app-page-open:not(.analyze-view-open) .photo-column { width: 100%; min-width: 0; align-items: center; gap: 14px; }
    body.app-page-open:not(.analyze-view-open) .photo-card.has-image:not(.camera-active) { margin-inline: auto; }
    body.app-page-open:not(.analyze-view-open) .photo-controls-wrap { width: 100%; margin-top: 0; }
    
    body.app-page-open:not(.analyze-view-open) .app-header { position: sticky; top: 0; z-index: 450; }
    body.app-page-open:not(.analyze-view-open) .feature-strip-wrap { position: sticky; top: 64px; z-index: 300; }
    body.app-page-open:not(.analyze-view-open) .photo-column { position: sticky; top: calc(var(--desktop-top-ui-height, 133px) + 24px); align-self: start; }
    body.app-page-open:not(.analyze-view-open) .photo-column.is-unstuck { position: static; }  
    body.app-page-open:not(.analyze-view-open) :is(.result-card, .result-card:has(> #overall_summary:not([hidden]))) { height: auto; max-height: none; overflow: visible; }
    body.app-page-open:not(.analyze-view-open) .result-tab-panels { flex: none; min-height: 0; max-height: none; overflow: visible; }
    
    body.app-page-open:not(.analyze-view-open) .result-card:has(> #overall_summary:not([hidden])) .result-head {
        position: static; margin: 0; padding: 0; background: none;
    }
    body.app-page-open:not(.analyze-view-open) :is(.result-card, .result-tab-panels) { scrollbar-width: none; }
    body.app-page-open:not(.analyze-view-open) :is(.result-card, .result-tab-panels)::-webkit-scrollbar { display: none; }
}

.magnifier-toggle-btn { display: none !important; }

@media (min-width: 821px) and (max-height: 760px) {
    body.app-page-open:not(.analyze-view-open) .upload-btn-wrap, body.app-page-open:not(.analyze-view-open) .photo-source-actions { gap: 8px; }
    body.app-page-open:not(.analyze-view-open) .view-toggle-btn { height: 34px; padding: 0 6px; font-size: 11px; letter-spacing: .04em; }
    body.app-page-open:not(.analyze-view-open) .magnifier-toggle-btn { width: 42px; height: 42px; }
    body.app-page-open:not(.analyze-view-open) .photo-source-actions > button { height: auto; min-height: 40px; padding: 6px 12px; font-size: 11px; letter-spacing: .03em; }
}


.photo-card, .photo-card.has-image { border: 0; border-radius: 28px; box-shadow: none; }
#result_canvas, #result_canvas_display { border-radius: 28px; }
:is(.eye-age-callout, .skin-age-badge, .overlay-legend) {
    border: 0; background: #FFFFFF; color: #313429; -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: 0 2px 6px rgba(49, 52, 41, .05), 0 24px 48px -18px rgba(49, 52, 41, .22);
}
:root[data-theme="linen"] :is(.overlay-legend, .eye-age-callout, .skin-age-badge) { -webkit-backdrop-filter: none; backdrop-filter: none; }
.eye-age-callout { padding: var(--overlay-pad); border-radius: 10px; text-align: left; }
.skin-age-badge {
    width: auto; height: auto; padding: var(--overlay-pad); border: 0; border-radius: 10px; overflow: visible;
    align-items: flex-start; justify-content: flex-start; text-align: left;
}
:is(.eye-age-callout, .skin-age-badge) .eye-age-callout-label {
    margin: 0 0 1px; color: #8C8B7C; font-family: var(--font-sans); font-size: var(--overlay-annotation-title-size); font-weight: 500; line-height: 1.25; letter-spacing: 0; text-transform: none;
}
:is(.eye-age-callout, .skin-age-badge) .eye-age-callout-value {
    display: flex; align-items: baseline; gap: 3px; color: #8C8B7C; font-family: var(--font-mono); font-size: var(--overlay-annotation-unit-size); font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
}

:is(.eye-age-callout, .skin-age-badge) .eye-age-callout-value strong {
    display: inline; margin: 0; color: #313429; font-family: var(--font-head); font-weight: 400; font-size: calc(var(--overlay-annotation-value-size) + 4px); line-height: 1; letter-spacing: -.01em;
}
.overlay-legend { border-radius: 10px; padding: var(--overlay-pad); }

.overlay-legend-title { display: none; }

@container (max-width: 380px) {
    .photo-card * {
        --overlay-legend-title-size: 9px; --overlay-legend-item-size: 8px;
        --overlay-annotation-title-size: 9px; --overlay-annotation-value-size: 14px; --overlay-annotation-unit-size: 7px;
        --overlay-pad: 5px 7px;
    }
    .overlay-legend { max-width: 108px; }
    .eye-age-callout { padding: 4px 6px; }
}

@container (max-width: 260px) {
    .overlay-legend-title { margin-bottom: 3px; }
    .overlay-legend-list { gap: 1px; }
}
.overlay-legend-title { color: #313429; font-family: var(--font-mono); letter-spacing: .08em; }
.overlay-legend-row-label, .overlay-legend-gradient-label, .overlay-legend-note { color: #5C5E50; }


body.app-page-open:not(.analyze-view-open) .upload-btn-wrap { gap: 10px; }
body.app-page-open:not(.analyze-view-open) .photo-view-actions { order: -1; display: flex; align-items: center; gap: 8px; width: 100%; }
body.app-page-open:not(.analyze-view-open) .photo-view-toggle { flex: 1 1 auto; width: auto; }
body.app-page-open:not(.analyze-view-open) .photo-source-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
body.app-page-open:not(.analyze-view-open) .photo-source-actions > button { width: 100%; max-width: none; height: 48px; min-height: 48px; padding: 0 20px; white-space: normal; line-height: 1.25; }
body.app-page-open:not(.analyze-view-open) .photo-source-actions > #button_download_pdf { order: -1; border: 1px solid var(--accent-fill); background: var(--accent-fill); color: var(--on-accent); }
@media (hover: hover) { body.app-page-open:not(.analyze-view-open) .photo-source-actions > #button_download_pdf:hover:not(:disabled) { background: var(--accent-fill-hover); border-color: var(--accent-fill-hover); } }
body.app-page-open:not(.analyze-view-open) .photo-source-actions > #button_retake_upload { border: 1px solid var(--color-text); background: transparent; color: var(--color-text); }
@media (hover: hover) { body.app-page-open:not(.analyze-view-open) .photo-source-actions > #button_retake_upload:hover:not(:disabled) { background: var(--color-text); color: var(--color-bg); } }

body.app-page-open:not(.analyze-view-open) .photo-card.has-image:not(.camera-active) { background: transparent; }
.photo-view-toggle { padding: 4px; border: 1px solid var(--color-border); border-radius: 999px; background: rgba(var(--wash-rgb), .06); }
.view-toggle-btn { flex: 1 1 0; height: 40px; border-radius: 999px; color: var(--color-text-muted); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.view-toggle-btn.active { background: var(--color-surface); color: var(--color-text); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.magnifier-toggle-btn { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); }


body .result-card { padding: 36px 40px 44px; border-radius: 32px; border: 1px solid var(--color-border); background: var(--color-surface); box-shadow: none; }
.result-eyebrow { margin: 0; color: var(--color-text-muted); font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.result-title { margin: 6px 0 10px; color: var(--color-text); font-family: var(--font-head); font-weight: 400; font-size: clamp(34px, 3.4vw, 46px); line-height: 1.08; letter-spacing: var(--title-tracking-result, 0); }
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .result-title { font-weight: 500; letter-spacing: .01em; line-height: 1.25; }
.result-disclaimer { margin: 0 0 26px; color: var(--color-text-muted); font-size: 13px; line-height: 1.6; }
.result-card .viz-section-title, .result-card .tab-panel .viz-section-title {
    margin: 40px 0 14px; color: var(--color-text); font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase;
}
.result-card .tab-panel .viz-section-title:first-child { margin-top: 0; }

.result-tabs[hidden], .result-tabs.result-tabs--4col[hidden] { display: none; }

.result-card .skin-report-insight-summary:not(:empty):not(:has(.free-sample, .lite-lock)) { padding: 22px 24px; border-radius: 24px; background: var(--color-surface-soft); }
.result-card .skin-report-insight-summary .skin-report-insight-lead { margin: 0 0 14px; color: var(--color-text); font-size: 14.5px; line-height: 1.6; }
.result-card .skin-report-insight-summary .skin-report-insight-groups { gap: 10px; margin-bottom: 14px; }
.result-card .skin-report-insight-summary .skin-report-insight-group-card { padding: 16px 18px; border: 0; border-radius: 16px; background: var(--color-surface); }
.result-card .skin-report-insight-summary .skin-report-insight-group-tag { padding: 0; border: 0 !important; background: none !important; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.result-card .skin-report-insight-summary .skin-report-insight-group-title { font-size: 15.5px; font-weight: 600; }
.result-card .skin-report-insight-summary .skin-report-insight-group-headline { font-size: 14px; font-weight: 400; line-height: 1.55; }
.result-card .skin-report-insight-summary .skin-report-insight-chip { padding: 2px 10px; border: 1px solid currentColor; background: transparent !important; font-size: 12px; }
.result-card .skin-report-insight-summary .skin-report-insight-group-interpretation { border-top-color: var(--color-border); }
.result-card .skin-report-insight-summary .skin-report-insight-disclaimer { padding-top: 0; border-top: 0; }
.result-card .skin-report-insight-summary .skin-report-insight-ai-list { margin-top: 14px; padding: 4px 18px; border: 0; border-radius: 16px; background: var(--color-surface); }
.result-card .skin-report-insight-summary .skin-report-insight-ai-list-title { color: var(--color-text); }
.result-card .skin-report-insight-summary .skin-report-insight-ai-row { border-top-color: var(--color-border); }
@media (max-width: 640px) { .result-card .skin-report-insight-summary:not(:empty):not(:has(.free-sample, .lite-lock)) { padding: 18px; } }

.result-card .skin-report-advanced-summary:not(:empty):not(:has(.free-sample, .lite-lock)) { padding: 22px 24px; border-radius: 24px; background: var(--color-surface-soft); }
.result-card .skin-report-advanced-summary .skin-report-advanced-lead { margin: 0 0 18px; color: var(--color-text); font-size: 14.5px; line-height: 1.65; }
.result-card .skin-report-advanced-summary .skin-report-advanced-block { margin: 0 0 18px; }
.result-card .skin-report-advanced-summary .skin-report-advanced-block:last-child { margin-bottom: 0; }
.result-card .skin-report-advanced-summary .skin-report-advanced-block-title { margin: 0 0 10px; color: var(--color-text); font-family: var(--font-head); font-size: 20px; font-weight: 400; line-height: 1.3; }
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .result-card .skin-report-advanced-summary .skin-report-advanced-block-title { font-family: var(--font-sans); font-size: 17px; font-weight: 600; }
.result-card .skin-report-advanced-summary :is(.skin-report-advanced-card, .skin-report-advanced-step) { padding: 14px 18px; border: 0; border-radius: 16px; background: var(--color-surface); }
.result-card .skin-report-advanced-summary .skin-report-advanced-card-title { color: var(--color-text); font-size: 15px; font-weight: 600; }
.result-card .skin-report-advanced-summary .skin-report-advanced-card-text { color: var(--color-text); font-size: 13.5px; line-height: 1.55; }
.result-card .skin-report-advanced-summary .skin-report-advanced-card-text--muted { color: var(--color-text-muted); }
.result-card .skin-report-advanced-summary :is(.skin-report-advanced-rank, .skin-report-advanced-step-order) { width: auto; height: auto; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--yb-terra); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; }
@media (max-width: 640px) { .result-card .skin-report-advanced-summary:not(:empty):not(:has(.free-sample, .lite-lock)) { padding: 18px; } }

.result-card .item-score-slot { order: 7; margin: 12px 0 14px; }  
.result-card .item-score-slot[hidden] { display: none; }
.result-card .item-score-slot .viz-dashboard, .result-card .item-score-slot .feature-score-fit { margin: 0; }
.result-card :is(#llm_tab_causes, #llm_tab_care, #llm_tab_products) > .viz { padding: 22px 24px; border-radius: 24px; background: var(--color-surface-soft); }
.result-card :is(#llm_tab_causes, #llm_tab_care, #llm_tab_products) > .viz > .viz-section:first-child { margin-top: 0; }
.result-card :is(#llm_tab_causes, #llm_tab_care, #llm_tab_products) > .viz > .viz-section:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .result-card :is(#llm_tab_causes, #llm_tab_care, #llm_tab_products) > .viz { padding: 18px; } }

#llm_tab_care .care-routine { margin-top: 26px; }
#llm_tab_care .cr-title { margin: 0 0 12px; color: var(--color-text); font-size: 17px; font-weight: 650; }
#llm_tab_care .cr-cols { display: grid; gap: 12px; }
#llm_tab_care .cr-card { padding: 6px 16px; border-radius: 18px; background: var(--color-surface); }
#llm_tab_care .cr-when { display: flex; align-items: baseline; gap: 8px; padding: 12px 0 6px; border-bottom: 1px solid var(--color-border); }
#llm_tab_care .cr-when b { color: var(--color-text); font-family: var(--font-serif); font-size: 20px; font-weight: 500; }
#llm_tab_care .cr-when span { color: var(--color-text-muted); font-size: 12.5px; }
#llm_tab_care .cr-step { display: grid; grid-template-columns: 28px 1fr; gap: 4px; padding: 12px 0; }
#llm_tab_care .cr-step > div { display: grid; grid-template-columns: 150px 1fr; gap: 4px 16px; align-items: baseline; }
#llm_tab_care .cr-step + .cr-step { border-top: 1px solid var(--color-border); }
#llm_tab_care .cr-n { padding-top: 2px; color: var(--color-primary); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
#llm_tab_care .cr-step b { color: var(--color-text); font-size: 14.5px; font-weight: 650; }
#llm_tab_care .cr-step p { margin: 0; color: var(--color-text-muted); font-size: 14.5px; line-height: 1.55; }
#llm_tab_care .cr-tip { margin-top: 12px; padding: 14px 18px; border-radius: 16px; background: var(--color-text); color: var(--color-surface); }
#llm_tab_care .cr-tip b { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; opacity: .85; }
#llm_tab_care .cr-tip p { margin: 0; color: var(--color-surface); font-size: 14px; line-height: 1.6; }
@media (max-width: 640px) { #llm_tab_care .cr-step > div { grid-template-columns: 1fr; } }

.result-card .feature-score-area { margin: 12px 0 0; color: var(--color-text-muted); font-size: 13.5px; line-height: 1.5; }
.result-card .feature-score-area b { color: var(--color-text); font-weight: 600; }
.result-card .viz-text-card { margin-top: 14px; padding: 22px 24px; border-radius: 24px; background: var(--color-surface-soft); }
.result-card .viz-text-card .viz-section { margin: 0; }
.result-card .viz-text-card .viz-section + .viz-section { margin-top: 18px; }
.result-card .viz-text-card .viz-section-title { margin: 0 0 8px; color: var(--color-text); font-family: var(--font-head); font-size: 20px; font-weight: 400; line-height: 1.3; letter-spacing: 0; text-transform: none; }
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .result-card .viz-text-card .viz-section-title { font-family: var(--font-sans); font-size: 17px; font-weight: 600; }
.result-card .viz-text-card .summary-box { margin: 0; padding: 0; border: 0; background: none; color: var(--color-text); font-size: 14.5px; line-height: 1.65; }

.result-card .summary-brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.result-card .summary-brief-item { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 58px; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--color-surface); }
.result-card .summary-brief-item-icon { flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-surface-soft); color: var(--yb-terra); }
.result-card .summary-brief-item-icon svg { width: 16px; height: 16px; }
.result-card .summary-brief-item span { display: block; color: var(--color-text-muted); font-size: 12.5px; }
.result-card .summary-brief-item strong { display: block; margin-top: 1px; color: var(--color-text); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
@media (max-width: 640px) { .result-card .summary-brief-grid { grid-template-columns: minmax(0, 1fr); } }

.result-card .viz-text-card .survey-hl { padding: 0 2px; border-radius: 3px; background: color-mix(in srgb, var(--survey-hl) 10%, transparent); }
@media (max-width: 640px) {
    .result-card .viz-text-card { padding: 18px; }
}
.result-card .skin-report-ai-icon { color: #E0703F; }


.overall-summary { margin: 0; padding: 22px 24px; border: 0; border-radius: 24px; background: var(--color-surface-soft); }
.skin-report-hero { gap: 14px 36px; align-items: flex-end; }
.skin-report-hero-divider { display: none; }
.skin-report-stat { flex-wrap: wrap; align-items: baseline; column-gap: 4px; row-gap: 6px; }
.skin-report-stat-label { flex: 0 0 100%; margin: 0; color: var(--color-text-muted); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.skin-report-stat-value { color: var(--color-text); font-family: var(--font-head); font-weight: 300; font-size: 46px; line-height: 1; letter-spacing: -.02em; }
#overall_score_value { color: var(--color-text) !important; }
.skin-report-stat-suffix, .skin-report-eye-age-side { color: var(--color-text-muted); font-size: 12px; }
.skin-report-eye-age-side { font-family: var(--font-mono); font-size: 11px; }
.skin-score-range { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin-top: 20px; }
.skin-score-range-label { order: 2; margin: 14px 0 0; color: var(--color-text-muted); font-size: 14px; }
.skin-score-range-label strong { font-weight: 700; }
.feature-score-band-bars { gap: 6px; }
.feature-score-band-bars i, .feature-score-band-bars i.is-current { height: 5px; border-radius: 3px; opacity: .3; }
.feature-score-band-bars i.is-current { opacity: 1; }
.feature-score-band-marker { width: 3px; height: 15px; border-radius: 2px; background: var(--color-text); box-shadow: none; }
.feature-score-band-labels { gap: 6px; margin-top: 8px; font-size: 12px; color: var(--color-text-muted); }
.feature-score-band-labels span.is-current { font-size: 12px; font-weight: 700; }


.result-card .cta-core-card { gap: 22px; margin: 16px 0 0; padding: 22px 24px; border: 0; border-radius: 24px; background: var(--color-surface-soft); }
.result-card .cta-core-card:hover { background: var(--color-surface-soft); }
.result-card .cta-core-card-cover, .result-card .cta-core-card-cover .cr-thumb { width: 92px; }
.result-card .cta-core-card-cover .cr-thumb { border-radius: 10px; box-shadow: 0 12px 22px -12px rgba(0, 0, 0, .45); }
.result-card .cta-core-card-main { gap: 0; }
.result-card .cta-core-card-main strong { margin: 0 0 6px; color: var(--color-text); font-family: var(--font-head); font-weight: 400; font-size: 22px; line-height: 1.25; }
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .result-card .cta-core-card-main strong { font-family: var(--font-sans); font-weight: 600; font-size: 19px; }
.result-card .cta-core-card-main p { margin: 0 0 14px; color: var(--color-text-muted); font-size: 14px; line-height: 1.55; }
.result-card .cta-core-card-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result-card .cta-core-card-actions > button {
    height: 44px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.result-card .cta-core-card-actions > .cta-btn-outline { border: 1px solid var(--color-text); background: transparent; color: var(--color-text); }
.result-card .cta-core-card-actions > .cta-btn-outline:hover { background: var(--color-text); color: var(--color-bg); }


.result-card :is(.skin-type-section, .skin-radar-section) { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(5, auto); row-gap: 0; }
.result-card :is(.skin-type-section, .skin-radar-section)::before { content: ""; grid-column: 1; grid-row: 2 / -1; border-radius: 24px; background: var(--color-surface-soft); }
.result-card :is(.skin-type-section, .skin-radar-section) > * { grid-column: 1; position: relative; }
.result-card :is(.skin-type-section, .skin-radar-section) > :nth-child(1) { grid-row: 1; }
.result-card :is(.skin-type-section, .skin-radar-section) > :nth-child(2) { grid-row: 2; }
.result-card :is(.skin-type-section, .skin-radar-section) > :nth-child(3) { grid-row: 3; }
.result-card :is(.skin-type-section, .skin-radar-section) > :nth-child(4) { grid-row: 4; }
.result-card :is(.skin-type-section, .skin-radar-section) > :nth-child(5) { grid-row: 5; }
.result-card :is(.skin-type-section, .skin-radar-section) > p:not(.viz-section-title) { margin: 0; padding: 22px 24px; }

.result-card .skin-type-card { border-radius: 24px; background: var(--color-surface-soft); }
.result-card .skin-type-main-card { margin: 0; padding: 22px 24px 0; gap: 12px; align-items: flex-start; }
.result-card .skin-type-main-card:last-child { padding-bottom: 22px; }
.result-card .skin-type-icon { width: 36px; height: 36px; background: var(--color-surface); color: #E0703F; }
.result-card .skin-type-icon svg { width: 18px; height: 18px; }
.result-card .skin-type-main-card strong { margin: 4px 0 8px; color: var(--color-text); font-family: var(--font-head); font-weight: 400; font-size: 22px; line-height: 1.2; }
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .result-card .skin-type-main-card strong { font-family: var(--font-sans); font-weight: 600; font-size: 19px; }
.result-card .skin-type-main-card p { color: var(--color-text); font-size: 14.5px; line-height: 1.6; }
.result-card .skin-zone-grid { gap: 10px; margin: 0; padding: 16px 24px 22px; }
.result-card .skin-zone-grid > div { padding: 12px 14px; border: 0; border-radius: 16px; background: var(--color-surface); }
.result-card .skin-zone-grid span { margin-bottom: 4px; color: var(--color-text-muted); font-size: 12px; }
.result-card .skin-zone-grid strong { color: var(--color-text); font-size: 15px; }
.result-card .skin-radar-canvas-wrap { margin: 12px auto; }
:is(.result-card, .cta-tour) .skin-radar-grid-ring { stroke: var(--color-border); stroke-width: 1; }
:is(.result-card, .cta-tour) .skin-radar-axis-line { stroke: var(--color-border); }
:is(.result-card, .cta-tour) .skin-radar-data-area { fill: rgba(224, 112, 63, .16); }
:is(.result-card, .cta-tour) .skin-radar-edge { stroke: #E0703F; stroke-width: 1.6; }
:is(.result-card, .cta-tour) .skin-radar-dot { fill: #E0703F; stroke: none; }
:is(.result-card, .cta-tour) .skin-radar-label-name { fill: var(--color-text); font-weight: 500; }
:is(.result-card, .cta-tour) .skin-radar-label-value { fill: #E0703F; }


.result-card .skin-indicator-intro { margin: -6px 0 16px; color: var(--color-text-muted); font-size: 13.5px; line-height: 1.55; }
.result-card .skin-indicator-grid { gap: 12px; }
.result-card .skin-indicator-group { padding: 16px 18px 6px; border: 0; border-radius: 20px; background: var(--color-surface-soft); }
.result-card .skin-indicator-group h4 { margin: 0 0 6px; color: var(--color-text); font-family: var(--font-sans); font-size: 14px; font-weight: 700; }
.result-card .skin-indicator-group dl > div { padding: 9px 0; border-top: 1px solid var(--color-border); font-size: 13.5px; line-height: 1.35; }
.result-card .skin-indicator-group dt { color: var(--color-text); }
.result-card .skin-indicator-group dd { font-weight: 600; }


.result-card .free-sample {
    position: relative; min-height: 220px; max-height: 260px; overflow: hidden; padding: 28px 28px 24px; border: 1px dashed var(--color-border); border-radius: 24px; background: var(--color-surface-soft);
}
.result-card .free-sample:hover, .result-card .free-sample:focus-visible { border-style: dashed; border-color: var(--color-text-muted); background: var(--color-surface-soft); }
.result-card .free-sample .free-blur { filter: blur(6px); opacity: .28; }
.result-card .free-sample > .lite-lock-head {
    position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; margin: 0; padding: 24px;
    color: var(--color-text); font-size: 14.5px; font-weight: 400; line-height: 1.5; text-align: center;
    background: radial-gradient(ellipse 70% 85% at 50% 50%, var(--color-surface-soft) 45%, transparent 100%);
}
.result-card .free-sample > .lite-lock-head > span[aria-hidden] {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--color-surface); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .3);
}
.result-card .free-sample > .lite-lock-head svg { width: 15px; height: 15px; }
.result-card .lite-lock-cta {
    flex-shrink: 0; display: inline-flex; align-items: center; height: 42px; margin: 2px 0 0; padding: 0 22px; border: 1px solid var(--color-text); border-radius: 999px; background: var(--color-surface);
    color: var(--color-text); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}

@media (hover: hover) {
    .result-card :is(.free-sample, .lite-lock):hover .lite-lock-cta { background: #313429; border-color: #313429; color: #ECFC91; }
    :root:not([data-theme="linen"]) .result-card :is(.free-sample, .lite-lock):hover .lite-lock-cta { background: #ECFC91; border-color: #ECFC91; color: #1F2219; }
}
.result-card .free-sample + .free-sample { margin-top: 16px; }


.result-card .feature-score-compact { grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; margin: 0; padding: 26px 28px; border-radius: 24px; background: var(--color-surface-soft); }
.result-card .feature-score-compact > * { grid-column: 1 / -1; grid-row: auto; }
.result-card .feature-score-compact .feature-score-region-block { border: 0; padding: 0; }
@container (min-width: 520px) {
    .result-card .feature-score-compact > .feature-score-value-block { grid-column: 1; grid-row: 1; }
    .result-card .feature-score-compact > .feature-score-bands { grid-column: 2; grid-row: 1; }
}
.result-card .feature-score-label { margin: 0 0 6px; color: var(--color-text-muted); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.result-card .feature-score-value, .result-card .feature-score-compact .feature-score-value { color: var(--color-text); font-family: var(--font-head); font-weight: 300; font-size: 46px; line-height: 1; letter-spacing: -.02em; }
.result-card .feature-score-bands { padding-top: 0; }
.result-card .feature-score-fit + * { margin-top: 16px; }
.feature-region-picker { padding: 4px; border: 1px solid var(--color-border); border-radius: 22px; background: rgba(var(--wash-rgb), .06); }  
.feature-region-btn { min-height: 36px; border-radius: 999px; color: var(--color-text-muted); font-size: 13px; }
.feature-region-btn.active { background: var(--color-surface); color: var(--color-text); box-shadow: 0 1px 3px rgba(49, 52, 41, .12); }


@media (max-width: 820px) {
    body.app-page-open:not(.analyze-view-open) .app-main { padding: 20px 16px 64px; }
    body.app-page-open:not(.analyze-view-open) .photo-column { width: 100%; margin: 0 0 20px; gap: 10px; }
    body.app-page-open:not(.analyze-view-open) .photo-view-actions { order: 1; }
    body.app-page-open:not(.analyze-view-open) .photo-source-actions { order: 2; }
    body.app-page-open:not(.analyze-view-open) .feature-region-picker { order: 3; }
    body.app-page-open:not(.analyze-view-open) .photo-view-actions .photo-view-toggle { display: flex; }
    body:has(.photo-card.has-image) .result-card {
        padding: 24px 18px 28px; border: 1px solid var(--color-border); border-radius: 24px; background: var(--color-surface); box-shadow: none; gap: 0;
    }
    body:has(.photo-card.has-image) .result-card-body { display: contents; padding: 0; border: 0; background: none; box-shadow: none; }
    body:has(.photo-card.has-image) .result-card .overall-summary { order: 4; margin: 0; padding: 18px; border: 0; border-radius: 24px; background: var(--color-surface-soft); box-shadow: none; }
    body:has(.photo-card.has-image) .result-card .result-head { order: 1; }
    body:has(.photo-card.has-image) .result-card .result-tab-panels { order: 8; }
    .result-card .result-title { font-size: 34px; }
    .result-tabs, .result-tabs.result-tabs--4col { position: static; margin: 0 0 16px; padding: 4px; background: rgba(var(--wash-rgb), .06); }
    .result-tab { max-width: none; min-height: 40px; padding: 0 8px; font-size: 11px; }
}


.photo-view-tag {
    position: absolute; right: max(12px, calc((100% - var(--stage-photo-w, 100%)) / 2 + 12px)); bottom: 12px; z-index: 3; padding: 5px 10px; border-radius: 999px; background: rgba(31, 34, 25, .72); color: #FFFFFF;
    font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; pointer-events: none;
}
.photo-view-tag[hidden], body.analyze-view-open .photo-view-tag { display: none; }


.result-tabs, .result-tabs.result-tabs--4col { display: inline-flex; width: fit-content; max-width: 100%; align-self: flex-start; gap: 0; padding: 4px; border: 1px solid var(--color-border); border-radius: 999px; background: rgba(var(--wash-rgb), .06); }
.result-tab {
    min-height: 40px; max-width: none; padding: 0 16px; border-radius: 999px; background: transparent; color: var(--color-text-muted);
    font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.result-tab:hover { background: transparent; color: var(--color-text); }
.result-tab.active { background: var(--color-surface); color: var(--color-text); font-weight: 500; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
:root:not([data-theme="dark"]) .result-tab:not(.active) { background: transparent; color: var(--color-text-muted); }
:root:lang(zh) :is(.result-tab, .view-toggle-btn) { letter-spacing: .04em; }

.result-tabs, .result-tabs.result-tabs--4col { overflow: visible; }
.result-tab { flex: 1 1 auto; min-width: 0; white-space: normal; line-height: 1.2; padding-top: 4px; padding-bottom: 4px; hyphens: auto; overflow-wrap: break-word; }

.result-tabs, .result-tabs.result-tabs--4col { gap: 4px; padding: 4px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: none; }
.result-tab { min-height: 44px; padding-left: 20px; padding-right: 20px; color: var(--color-text); cursor: pointer; transition: background-color .18s ease, color .18s ease; }
:root:not([data-theme="dark"]) .result-tab:not(.active) { color: var(--color-text); }
.result-tab:hover, :root:not([data-theme="dark"]) .result-tab:not(.active):hover { background: var(--color-surface-soft); color: var(--color-text); }
.result-tab.active, .result-tab.active:hover { background: #ECFC91; color: #313429; box-shadow: inset 0 0 0 1px rgba(49, 52, 41, .18); }
.result-tab:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }

.result-tab { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.result-tab.active { font-weight: 600; }
.view-toggle-btn { font-family: var(--font-sans); font-weight: 600; letter-spacing: .04em; }

@media (max-width: 820px) {
    .feature-strip-wrap { padding: 0; border-bottom: 0; }
    body .result-card { padding: 24px 18px 28px; border-radius: 24px; }
    .overall-summary { padding: 18px; }
    .skin-report-stat-value { font-size: 38px; }
    .result-tabs, .result-tabs.result-tabs--4col { display: flex; width: auto; align-self: stretch; }
    .result-card .feature-score-compact { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px; }
    .result-tab { flex: 1 1 0; padding: 0 8px; }
    .result-card .cta-core-card { flex-direction: column; align-items: flex-start; gap: 14px; }
    .result-card .cta-core-card-cover, .result-card .cta-core-card-cover .cr-thumb { width: 80px; align-self: flex-start; }
    .result-card .skin-zone-grid { padding: 14px 18px 18px; }
    .result-card .skin-type-main-card { padding: 18px 18px 0; }
}


.account-view .account-page { max-width: none; margin: 0; padding: 32px var(--yb-gutter) 112px; }
.account-view .account-page > .pricing-back { margin-bottom: 32px; }
.account-title { margin: 0 0 32px; }
.account-tabs { margin: 0 0 24px; padding: 4px; gap: 4px; border: 0; background: #F1EEE6; }
.account-tabs button { min-height: 40px; padding: 0 20px; color: #5C5E50; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; transition: background .2s, color .2s; }
.account-tabs button:hover { color: #313429; }
.account-tabs button.is-on { background: #313429; color: #ECFC91; box-shadow: none; }
:root:not([data-theme="linen"]) .account-tabs { background: var(--color-surface); }
:root:not([data-theme="linen"]) .account-tabs button { color: #B3B1A1; }
:root:not([data-theme="linen"]) .account-tabs button.is-on { background: #ECFC91; color: #1F2219; }
.account-view .history-list { gap: 16px; }
.account-view .history-item { grid-template-columns: 80px minmax(0, 1fr) auto; gap: 24px; padding: 20px; border: 0; border-radius: var(--radius-xl); background: #F1EEE6; color: #313429; }
:root:not([data-theme="linen"]) .account-view .history-item { background: var(--color-surface); color: #ECEADF; }
.account-view .history-item-thumb { width: 80px; height: 104px; border: 0; border-radius: 50% / 38.5%; object-fit: cover; background: #DEE0D3; }
.account-view img.history-item-thumb { object-fit: cover; background: #DEE0D3; }
.account-view .history-item-title { color: inherit; font-family: var(--font-head); font-weight: 400; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; }
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .account-view .history-item-title { font-family: var(--font-sans); font-weight: 500; font-size: 20px; }
.account-view .history-badge { padding: 5px 10px; border: 0; background: #FFFFFF; color: #5C5E50; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.account-view .history-badge.is-unlocked { background: #ECFC91; color: #313429; }
:root:not([data-theme="linen"]) .account-view .history-badge:not(.is-unlocked) { background: #26281F; color: #B3B1A1; }
.account-view .history-item-lines { gap: 2px; font-size: 14px; color: #5C5E50; }
:root:not([data-theme="linen"]) .account-view .history-item-lines { color: #B3B1A1; }
.account-view .history-item-lines .is-warning { color: #E0703F; font-weight: 500; }
.account-view .history-btn {
    height: 40px; padding: 0 16px; border: 1.5px solid #313429; background: transparent; color: #313429;
    font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; transition: background .2s, color .2s;
}
.account-view .history-btn:hover:not(:disabled) { background: #313429; border-color: #313429; color: #ECFC91; }
.account-view .history-btn.is-primary { background: #313429; color: #ECFC91; }
.account-view .history-btn.is-danger { border-color: rgba(200, 90, 43, .5); color: #C85A2B; }
.account-view .history-btn.is-danger:hover:not(:disabled) { background: #C85A2B; border-color: #C85A2B; color: #FFFFFF; }
:root:not([data-theme="linen"]) .account-view .history-btn { border-color: #ECEADF; color: #ECEADF; }
:root:not([data-theme="linen"]) .account-view .history-btn:is(:hover:not(:disabled), .is-primary) { background: #ECFC91; border-color: #ECFC91; color: #1F2219; }
.account-table-wrap { margin-top: 0; border: 0; border-radius: 0; }
.account-table th, .account-table td { padding: 18px 16px 18px 0; border-bottom: 1px solid rgba(49, 52, 41, .16); color: #313429; font-size: 15px; background: none; }
.account-table thead th { border-bottom: 1.5px solid #313429; color: #5C5E50; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.account-table tr:last-child td { border-bottom: 1px solid rgba(49, 52, 41, .16); }
.account-link-btn { color: #313429; font-weight: 500; }
:root:not([data-theme="linen"]) :is(.account-table td, .account-link-btn) { color: #ECEADF; }
:root:not([data-theme="linen"]) .account-table thead th { color: #B3B1A1; border-bottom-color: #ECEADF; }
:root:not([data-theme="linen"]) :is(.account-table th, .account-table td) { border-bottom-color: #34372B; }
.account-note { color: var(--color-text-muted); }
.account-kv { gap: 0; padding: 0; border: 0; border-radius: 0; background: none; border-top: 1.5px solid var(--color-text); grid-template-columns: 200px minmax(0, 1fr); color: var(--color-text); }
.account-kv dt, .account-kv dd { padding: 18px 0; border-bottom: 1px solid rgba(49, 52, 41, .16); font-size: 15px; }
:root:not([data-theme="linen"]) :is(.account-kv dt, .account-kv dd) { border-bottom-color: #34372B; }
.account-kv dt { display: flex; align-items: center; color: var(--color-text-muted); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.account-danger-zone { margin-top: 40px; padding: 28px; border: 0; border-radius: var(--radius-xl); background: #F1EEE6; }
:root:not([data-theme="linen"]) .account-danger-zone { background: var(--color-surface); }
.account-danger-zone h3 { margin-bottom: 8px; color: var(--danger); font-family: var(--font-head); font-weight: 400; font-size: 24px; }
.account-danger-zone p { color: var(--color-text-muted); font-size: 15px; }
.account-danger-btn {
    height: 52px; min-height: 52px; padding: 0 28px; border: 1.5px solid var(--danger); background: transparent; color: var(--danger);
    font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.account-danger-btn:hover { background: var(--danger); color: #FFFFFF; }
@media (max-width: 640px) {
    .account-view .account-page { padding-top: 24px; padding-bottom: 72px; }
    .account-title { font-size: 40px; }
    .account-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .account-tabs button { flex: none; padding: 0 14px; }
    .account-view .history-item { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
    .account-view .history-item-thumb { width: 64px; height: 84px; }
    .account-view .history-item-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .account-kv { grid-template-columns: 1fr; }
    .account-kv dt { border-bottom: 0; padding-bottom: 4px; }
    .account-kv dd { padding-top: 0; }
}


body .cta-tour-overlay, body .cta-sample-overlay { background: rgba(11, 11, 12, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
body .cta-tour { border: 0; background: var(--color-surface); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .4); }
@media (min-width: 821px) { body .cta-tour { border-radius: 32px; overflow: hidden; } }
body .cta-tour-main { border-left: 0; }
body .cta-tour-top { padding: 28px 28px 10px; }
body .cta-tour-top h3 { margin: 6px 0 0; color: var(--color-text); font-family: var(--font-head); font-weight: 400; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) body .cta-tour-top h3 { font-family: var(--font-sans); font-weight: 500; font-size: 22px; }
body .cta-step { color: var(--color-text-muted); font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
body .cta-sample-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--color-surface-soft); color: var(--color-text); }
body .cta-sample-close:hover { background: var(--accent-fill); color: var(--on-accent); }
body .cta-tour-dots { padding: 0 28px 14px; }
body .cta-tour-dots span.is-on, body .cta-tour-dots span.is-done { background: var(--accent-fill); }
body .cta-tour-body { padding: 4px 28px 20px; }
body .cta-tour-foot { padding: 16px 28px; border-top-color: var(--color-border); }
body .cta-tour-foot :is(.btn-primary, .btn-secondary) { height: 48px; min-height: 48px; padding: 0 24px; }
body .cta-tour-h { margin: 18px 0 10px; color: var(--color-text); font-family: var(--font-sans); font-weight: 700; font-size: 15px; line-height: 1.35; }
body .cta-tour-body > .cta-tour-h:first-child { margin-top: 0; }

body .cta-t-prio { display: grid; gap: 6px; }
body .cta-t-prio-row {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; border-radius: 14px; background: var(--color-surface-soft);
    color: var(--color-text); font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
@media (hover: hover) { body .cta-t-prio-row:hover { background: var(--color-border); } }
body .cta-t-prio-row b { margin-left: auto; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; }
body .cta-t-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }

body .cta-t-cover {
    display: grid; justify-items: center; gap: 10px; width: 100%; margin: 4px 0 16px; padding: 18px; border: 0; border-radius: 20px;
    background: var(--color-surface-soft); color: var(--color-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
body .cta-t-cover .cr-thumb { width: 150px; margin: 0; border-radius: 10px; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .45); transition: transform var(--dur-base) var(--ease-out); pointer-events: none; }
@media (hover: hover) { body .cta-t-cover:hover .cr-thumb { transform: translateY(-3px); } }

body .cta-t-feat { display: grid; gap: 8px; margin-top: 4px; }
body .cta-t-feat > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; border-radius: 16px; background: var(--color-surface-soft); }
body .cta-t-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-fill); color: var(--on-accent); font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; }
body .cta-t-feat b { display: block; margin-bottom: 2px; color: var(--color-text); font-size: 14.5px; }
body .cta-t-feat p { margin: 0; color: var(--color-text-muted); font-size: 13px; line-height: 1.5; }
body .cta-t-cta { display: flex; justify-content: center; width: 100%; height: 48px; min-height: 48px; margin-top: 14px; }
body .cta-tour-body .cta-unlock-sample { display: block; margin: 14px auto 0; color: var(--color-text); font-size: 13.5px; }
body .cta-tour-foot .cta-tour-explore { margin-left: auto; }

body .cta-tour-foot > .btn-secondary[data-cta-tour="prev"] { margin-left: auto; }
body .cta-tour-foot > .btn-secondary[data-cta-tour="prev"] + .btn-primary { margin-left: 0; }

@media (max-width: 820px) {
    body .cta-tour-overlay { padding: 16px; align-items: center; }
    body .cta-tour { width: 100%; height: min(92dvh, 720px); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
    body .cta-tour-media { display: none; }
    body .cta-tour-main { flex: 1 1 auto; min-height: 0; }
    body .cta-tour-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 18px 16px; }
    body .cta-tour-top { padding: 22px 18px 10px; }
    body .cta-tour-dots { padding: 0 18px 14px; }
    body .cta-tour-foot { position: static; padding: 14px 18px; }
    body .cta-tour-foot:not(.cta-tour-foot--final) .btn-primary { flex: 0 0 auto; }
    body .cta-t-feat > div { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
    body .cta-t-ico { width: 40px; height: 40px; }
    body .cta-sp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body .cta-tour-media { position: relative; overflow: hidden; background: #DEE0D3; }
body .cta-tour-media .cta-tour-photo { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-height: none; object-fit: cover; border-radius: 0; }
body .cta-tour-caption {
    left: auto; right: 14px; bottom: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(31, 34, 25, .72); color: #FFFFFF;
    font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}
body .cta-sp-hero, body .cta-sp-stats > div, body .cta-sp-unlock, body .cta-tour-body .cta-tour-card { border: 0; background: var(--color-surface-soft); box-shadow: none; }
body .cta-sp-hero { padding: 18px 20px; border-radius: 20px; }
body .cta-sp-hero small, body .cta-sp-stats small { color: var(--color-text-muted); font-size: 13px; font-weight: 400; }
body .cta-sp-hero h4 { margin: 2px 0 4px; color: var(--color-text); font-family: var(--font-head); font-weight: 400; font-size: 22px; line-height: 1.25; }
body .cta-sp-hero h4 b { font-weight: 400; }
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) body .cta-sp-hero h4 { font-family: var(--font-sans); font-weight: 600; font-size: 18px; }
body .cta-sp-score { color: var(--color-text-muted); font-family: var(--font-sans); font-size: 13px; font-weight: 400; }
body .cta-sp-stats { gap: 8px; }
body .cta-sp-stats > div { padding: 12px 14px; border-radius: 16px; }
body .cta-sp-stats b { color: var(--color-text); font-family: var(--font-head); font-weight: 400; font-size: 22px; line-height: 1.2; }
body .cta-sp-stats em { color: var(--color-text-muted); font-size: 11px; font-style: normal; line-height: 1.35; }
body .cta-sp-unlock { padding: 18px 20px; border-radius: 20px; }
body .cta-sp-unlock b { color: var(--color-text); font-family: var(--font-head); font-weight: 400; font-size: 20px; }
body .cta-sp-unlock p { color: var(--color-text-muted); font-size: 13.5px; line-height: 1.55; }
body .cta-sp-unlock-btn {
    width: 100%; height: 48px; min-height: 48px; border: 0; border-radius: 999px; background: var(--accent-fill); color: var(--on-accent);
    font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
body .cta-tour-foot .cta-link { color: var(--color-text); font-size: 13.5px; font-weight: 500; }

:root:lang(en) :is(.cta-tour-foot .cta-link, .cta-coach-skip) { text-transform: capitalize; }
body :is(.cta-ritual-card, .cta-link-card, .cta-unlock-item, .cta-sample-block, .cta-sp-item) { border: 0; border-radius: 16px; background: var(--color-surface-soft); }
body .cta-link-card { border-left: 0; }
body .cta-btn-outline {
    min-height: 44px; padding: 0 20px; border: 1px solid var(--color-text); border-radius: 999px; background: transparent; color: var(--color-text);
    font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
@media (hover: hover) { body .cta-btn-outline:hover { background: var(--color-text); color: var(--color-bg); } }
:root:lang(zh) body .cta-btn-outline { letter-spacing: .04em; }
body .cta-sample-modal { border: 0; border-radius: 32px; background: var(--color-surface); }
body .cta-sample-head h3, body .cta-sample-head h2 { font-family: var(--font-head); font-weight: 400; }
.survey-ready-success { align-items: center; gap: 0; text-align: center; }
.survey-ready-check { width: 64px; height: 64px; margin: 0 0 20px; background: #ECFC91; color: #313429; }
.survey-ready-check svg { width: 28px; height: 28px; }
.survey-ready-title { margin: 0; color: var(--color-text); font-family: var(--font-head); font-weight: 400; font-size: 32px; line-height: 1.15; letter-spacing: -.015em; }
.survey-ready-text { margin: 12px 0 0; color: var(--color-text-muted); font-size: 15px; line-height: 1.55; }
.survey-ready-title + .survey-ready-text { margin-top: 14px; }

#survey_answer_modal_overlay .cost-modal.is-ready { width: min(100%, 580px); padding: 48px 48px 40px; }
#survey_answer_modal_overlay .cost-modal.is-ready .survey-modal-actions { margin-top: 28px; }
#survey_answer_modal_overlay .cost-modal.is-ready #survey_answer_ready_btn { flex: 1 1 100%; height: 52px; min-height: 52px; }

.survey-answer-progress { color: var(--color-text-muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.survey-answer-question-title { color: var(--color-text); font-family: var(--font-head); font-weight: 400; font-size: 24px; line-height: 1.25; }
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .survey-answer-question-title { font-family: var(--font-sans); font-weight: 600; font-size: 19px; }
.survey-answer-options { gap: 8px; }
.survey-answer-option {
    gap: 12px; padding: 12px 16px; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-surface); color: var(--color-text); font-size: 14.5px; line-height: 1.4;
    transition: border-color var(--dur-base), background var(--dur-base);
}
.survey-answer-option:hover { border-color: var(--color-text-muted); }
.survey-answer-option:has(input:checked) { border-color: var(--accent-fill); background: var(--color-surface-soft); box-shadow: inset 0 0 0 1px var(--accent-fill); font-weight: 600; }
.survey-answer-option input { accent-color: var(--accent-fill); }
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .survey-ready-title { font-family: var(--font-sans); font-weight: 500; font-size: 26px; }
.survey-modal-actions :is(.btn-primary, .btn-secondary) { height: 48px; min-height: 48px; }

#survey_answer_modal_overlay .cost-modal {
    display: flex; flex-direction: column; width: min(100%, 560px); max-width: none; max-height: min(90vh, 820px); overflow: hidden;
    padding: 30px 32px 24px; border-radius: 32px;
}

#survey_answer_modal_overlay { --survey-soft: #8E8D7E; }
:root[data-theme="linen"] #survey_answer_modal_overlay { --survey-soft: #8C8B7C; }
#survey_answer_intro { margin: 0; }
#survey_answer_intro p { margin: 0 0 12px; color: var(--survey-soft); font-size: 14.5px; line-height: 1.65; }
#survey_answer_intro p + p { color: var(--color-text-muted); font-size: 13.5px; }
#survey_answer_modal_overlay .survey-modal-actions { margin-top: 20px; flex-wrap: wrap; }
#survey_answer_modal_overlay .survey-modal-actions :is(.btn-primary, .btn-secondary):not(.is-link) { min-width: 0; height: 46px; min-height: 46px; padding: 0 22px; }
#survey_answer_modal_overlay .cost-modal > * { flex: none; }
.survey-answer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 0; border: 0; }
.survey-answer-head[hidden], .survey-answer-prog[hidden] { display: none; }
.survey-answer-heading { margin: 0; color: var(--color-text); font-family: var(--font-head); font-weight: 400; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .survey-answer-heading { font-weight: 500; letter-spacing: .01em; }
.survey-answer-close { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--color-border); border-radius: 50%; background: transparent; color: var(--survey-soft); cursor: pointer; }
.survey-answer-close svg { width: 16px; height: 16px; }
@media (hover: hover) { .survey-answer-close:hover { border-color: var(--color-text-muted); } }
.survey-answer-prog { display: grid; gap: 8px; margin: 4px 0 18px; }
.survey-answer-bar { height: 5px; border-radius: 999px; background: var(--color-border); overflow: hidden; }
.survey-answer-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--yb-terra); transition: width var(--dur-base) var(--ease-out); }
#survey_answer_modal_overlay .survey-answer-list { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; margin-right: -16px; padding-right: 16px; overscroll-behavior: contain; }
.survey-answer-question { padding: 0 0 16px; border-bottom: 0; }
.survey-answer-question-title { margin: 0 0 6px; }
.survey-answer-hint { margin: 0 0 16px; color: var(--color-text-muted); font-size: 13px; }
.survey-answer-followup .survey-answer-hint { margin-bottom: 10px; }
.survey-answer-option { position: relative; align-items: center; }
.survey-answer-option input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.survey-answer-box { flex: none; width: 18px; height: 18px; box-sizing: border-box; border: 1.5px solid var(--color-text-muted); border-radius: 6px; }
.survey-answer-option:has(input:checked) .survey-answer-box { border-color: var(--accent-fill); background: var(--accent-fill); box-shadow: inset 0 0 0 3px var(--color-surface); }
.survey-answer-option:has(input:focus-visible) { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
.survey-answer-option:has(input:disabled) { opacity: .45; cursor: not-allowed; }
#survey_answer_modal_overlay .survey-modal-actions { align-items: center; }
#survey_answer_modal_overlay .survey-answer-list:not([hidden]) ~ .survey-modal-actions { margin-top: 0; padding-top: 16px; border-top: 1px solid var(--color-border); }
#survey_answer_skip_btn.is-link {
    min-width: 0; height: auto; min-height: 0; margin-right: auto; padding: 0; border: 0; background: none; color: var(--color-text-muted);
    font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px;
}
#survey_answer_submit_btn:disabled { background: var(--accent-fill); color: var(--on-accent); opacity: .4; }
@media (max-width: 640px) {
    #survey_answer_modal_overlay .cost-modal { padding: 22px 20px 18px; border-radius: 24px; }
    #survey_answer_modal_overlay .cost-modal.is-ready { padding: 40px 24px 28px; }
    .survey-answer-heading { font-size: 24px; }
}

body.analyze-view-open .photo-card:has(.upload-preview:not([hidden])) { box-shadow: none; border: 0; background: transparent; }
.photo-card .upload-preview-actions button.btn-secondary { background: #FFFFFF; border: 1.5px solid #FFFFFF; color: #313429; }
.photo-card .upload-preview-actions button.btn-secondary:hover { background: #313429; border-color: #313429; color: #ECFC91; }
:root:not([data-theme="linen"]) .photo-card .upload-preview-actions button.btn-secondary { background: #26281F; border-color: #26281F; color: #ECEADF; }
@media (max-width: 640px) {
    .upload-preview-actions { flex-direction: column; align-items: stretch; width: calc(100% - 40px); }
    .upload-preview-actions button { width: 100%; justify-content: center; }
}


body .cta-pstep .cta-tour-h, body .cta-tour-concern-head .cta-tour-h { margin: 0; }
body .cta-tour-concern-head { margin: 18px 0 10px; }
body .cta-tour-body > .cta-tour-concern-head:first-child { margin-top: 0; }
body .cta-pstep > .cta-tour-concern-head { margin: 0; }
body .cta-core-open { align-items: center; }
body .cta-sp-list.is-paid { display: grid; gap: 12px; }
body .cta-kf-item { display: block; padding: 16px 18px; border-radius: 18px; background: var(--color-surface-soft); }
body .cta-kf-item > b { display: block; color: var(--color-text); font-size: 15px; font-weight: 600; line-height: 1.4; }
body .cta-kf-item > p { margin: 6px 0 0; color: var(--color-text-muted); font-size: 13.5px; line-height: 1.55; }
body .cta-kf-item > .cta-kf-fix { display: grid; gap: 2px; margin: 10px 0 0; }
body .cta-kf-fix small { color: var(--yb-terra); font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) body .cta-kf-fix small { font-family: var(--font-sans); font-size: 12px; letter-spacing: .02em; }
body .cta-kf-fix span { color: var(--color-text); font-size: 13.5px; line-height: 1.55; }
body .cta-kf-more { display: inline-block; margin-top: 8px; padding: 0; font-size: 13px; }
body .cta-pt-ritual { display: grid; gap: 14px; }
body .cta-pt-rcol h5 { margin: 0 0 8px; color: var(--color-text-muted); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) body .cta-pt-rcol h5 { font-family: var(--font-sans); font-size: 12.5px; letter-spacing: .04em; }
body :is(.cta-pt-rcol ol, .cta-pt-weeks) { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
body :is(.cta-pt-rcol li, .cta-pt-weeks > li) { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
body .cta-pt-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #313429; color: #ECFC91; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; }
:root[data-theme="dark"] body .cta-pt-n { background: #ECFC91; color: #1F2219; }
body :is(.cta-pt-rcol li, .cta-pt-weeks) b { display: block; color: var(--color-text); font-size: 14px; font-weight: 600; }
body .cta-pt-rcol li p { margin: 2px 0 0; color: var(--color-text-muted); font-size: 13px; line-height: 1.55; }
body .cta-pt-tip { margin-top: 14px; padding: 16px 18px; border-radius: 20px; background: var(--color-surface-soft); }
body .cta-pt-tip b { display: block; color: var(--color-text); font-size: 14px; font-weight: 600; }
body .cta-pt-tip p { margin: 4px 0 0; color: var(--color-text-muted); font-size: 13.5px; line-height: 1.55; }
body .cta-pt-weeks small { display: block; color: var(--yb-terra); font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) body .cta-pt-weeks small { font-family: var(--font-sans); font-size: 12px; letter-spacing: .02em; }
body .cta-pt-weeks ul { margin: 4px 0 0; padding-left: 18px; color: var(--color-text-muted); font-size: 13px; line-height: 1.55; }
body .cta-pt-retake { margin-top: 14px; }
body .cta-tour-concern-head { align-items: center; gap: 8px; }
body .cta-tour-concern-head .cta-model-badge { align-self: center; padding: 2px 8px; border: 1px solid var(--color-border); border-radius: 999px; background: none; color: var(--color-text-muted); font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; }
body .cta-pt-parts { margin: 8px 0 12px; padding-left: 20px; display: grid; gap: 6px; color: var(--color-text); font-size: 13.5px; line-height: 1.5; }
body .cta-pt-small { margin: 0 0 8px; color: var(--color-text-muted); font-size: 13px; line-height: 1.5; }
body .cta-pg-anno { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: start; margin: 8px 0 12px; }
body .cta-pg-page { width: 100%; border: 0; border-radius: 12px; box-shadow: 0 2px 6px rgba(49, 52, 41, .08), 0 16px 32px -18px rgba(49, 52, 41, .35); }
body .cta-pg-box .cta-pg-pin { left: -7px; top: -7px; width: 16px; height: 16px; font-size: 9.5px; }
body .cta-pg-side { min-width: 0; }
body .cta-pg-h { display: block; margin: 0 0 8px; color: var(--color-text); font-size: 14px; font-weight: 600; }
body .cta-pg-legend { gap: 6px; }
body .cta-pg-legend .cta-pg-pin { width: 20px; height: 20px; font-size: 11px; box-shadow: none; }
body .cta-pg-legend p { color: var(--color-text-muted); font-size: 13px; line-height: 1.5; }
body .cta-pt-next { margin: 8px 0 0; color: var(--color-text); font-size: 13px; }
body .cta-pt-cmp { margin: 8px 0 16px; border: 1px solid var(--color-border); border-radius: 16px; overflow: hidden; }
body .cta-pt-cmp .cta-cmp { table-layout: fixed; margin: 0; }
body .cta-pt-cmp .cta-cmp :is(th, td) { padding: 11px 12px; border: 0; border-bottom: 1px solid var(--color-border); color: var(--color-text); font-size: 13px; line-height: 18px; text-align: start; }
body .cta-pt-cmp .cta-cmp tr:last-child td { border-bottom: 0; }
body .cta-pt-cmp .cta-cmp th { color: var(--color-text-muted); font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; white-space: normal; }
body .cta-pt-cmp .cta-cmp :is(th, td):not(:first-child) { width: 84px; text-align: center; }
body .cta-pt-cmp .cta-cmp-mark.is-yes { color: var(--yb-terra); font-weight: 600; }
body .cta-pt-cmp .cta-cmp-mark.is-no { color: var(--color-text-muted); }
body .cta-pt-all { display: flex; flex-wrap: wrap; gap: 8px; }
body .cta-pt-all .cta-link-chip { height: 34px; padding: 0 12px; gap: 8px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); color: var(--color-text); font-size: 13px; cursor: pointer; }
@media (hover: hover) { body .cta-pt-all .cta-link-chip:hover { border-color: var(--color-text-muted); } }
body .cta-report-cover, body .cta-report-cover .cr-thumb { width: 132px; }
body .cta-report-cover .cr-thumb { border-radius: 12px; }
body .cta-report-main .cta-pc-h { margin: 0; color: var(--color-text); font-size: 14px; font-weight: 600; }
@media (max-width: 640px) {
    body .cta-pg-anno { grid-template-columns: 96px minmax(0, 1fr); }
    body .cta-report-cover, body .cta-report-cover .cr-thumb { width: 96px; }
    body .cta-report { flex-direction: row; align-items: flex-start; }
    body .cta-report-cover { align-self: flex-start; }
}


#restore_loading_overlay { background: var(--color-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
#restore_loading_overlay .restore-loading-card { gap: 0; max-width: min(560px, calc(100% - 48px)); padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: center; }
#restore_loading_overlay .restore-loading-spinner {
    position: relative; width: 88px; height: 88px; margin: 0 0 28px; border: 0; border-radius: 50%; background: #ECFC91; animation: none;
}
#restore_loading_overlay .restore-loading-spinner::after {
    content: ""; position: absolute; inset: 24px; border-radius: 50%; border: 3px solid rgba(49, 52, 41, .16); border-top-color: #313429;
    animation: restore-loading-spin .9s linear infinite;
}
.restore-loading-eyebrow { margin: 0 0 10px; color: var(--color-text-muted); font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.restore-loading-eyebrow:empty, .restore-loading-title:empty { display: none; }
.restore-loading-title { margin: 0 0 12px; color: var(--color-text); font-family: var(--font-head); font-size: clamp(34px, 4vw, 48px); font-weight: 300; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .restore-loading-title { font-family: var(--font-sans); font-weight: 500; font-size: clamp(28px, 3.2vw, 38px); letter-spacing: .01em; line-height: 1.25; }
#restore_loading_overlay .restore-loading-text { color: var(--color-text-muted); font-size: 16px; font-weight: 400; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { #restore_loading_overlay .restore-loading-spinner::after { animation-duration: 2.4s; } }

body:has(#restore_loading_overlay:not([hidden])) .cta-coach { display: none; }
body:has(#restore_loading_overlay:not([hidden])) .cta-coach-target { z-index: auto; box-shadow: none !important; }


:is(#consent_scroll, .cost-modal-body, .cta-sample-scroll, .cta-tour-body) { scrollbar-width: thin; scrollbar-color: var(--color-border) transparent; overscroll-behavior: contain; }
:is(#consent_scroll, .cost-modal-body, .cta-sample-scroll, .cta-tour-body)::-webkit-scrollbar { width: 6px; }
:is(#consent_scroll, .cost-modal-body, .cta-sample-scroll, .cta-tour-body)::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--color-border); }
:is(#consent_scroll, .cost-modal-body, .cta-sample-scroll, .cta-tour-body)::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }
:is(#consent_scroll, .cost-modal-body, .cta-sample-scroll, .cta-tour-body)::-webkit-scrollbar-track { background: transparent; margin: 4px 0; }


.analysis-progress-view.is-photo .analysis-progress-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px;
    max-width: none; height: auto; min-height: 0; max-height: none; padding: 56px var(--yb-gutter) 96px;
}
.analysis-progress-view.is-photo .analysis-progress-stage {
    width: 100%; max-width: 460px; height: auto; justify-self: end; align-self: center; aspect-ratio: 435 / 525; margin: 0;
    border: 0; border-radius: 32px; overflow: hidden; background: #1F2219; box-shadow: 0 30px 60px -24px rgba(31, 34, 25, .45); isolation: isolate;
}

.an-photo { position: absolute; inset: 0; margin: 0; container-type: size; }
.an-photo[hidden] { display: none; }
.an-photo-media { position: absolute; inset: 0; overflow: hidden; }

.an-photo-media > img, .an-photo-media > canvas {
    position: absolute; left: var(--an-photo-x, 0); top: var(--an-photo-y, 0); display: block;
    width: var(--an-photo-w, 100%); height: var(--an-photo-h, 100%); object-fit: cover;
}
.an-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(31, 34, 25, .04), rgba(31, 34, 25, .25)); pointer-events: none; }
.an-mesh {
    position: absolute; inset: 0; z-index: 2; background-image: radial-gradient(rgba(255, 255, 255, .75) 1px, transparent 1.6px); background-size: 13px 13px;
    -webkit-mask-image: radial-gradient(ellipse 34% 42% at var(--an-face-x, 50%) var(--an-face-y, 47%), #000 55%, transparent 72%); mask-image: radial-gradient(ellipse 34% 42% at var(--an-face-x, 50%) var(--an-face-y, 47%), #000 55%, transparent 72%);
    opacity: .5; animation: anMesh 2.2s ease-in-out infinite alternate;
}
.an-ring { position: absolute; left: var(--an-face-x, 50%); top: var(--an-face-y, 47%); width: 86%; transform: translate(-50%, -50%); z-index: 2; overflow: visible; }
.an-ring circle { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.2; stroke-dasharray: 2 7; transform-origin: 100px 100px; animation: anSpin 16s linear infinite; }
.an-ring .an-ring-2 { stroke: rgba(255, 255, 255, .6); stroke-dasharray: 56 20; animation-duration: 9s; animation-direction: reverse; }
.an-sweep { position: absolute; left: 8%; right: 8%; top: 12%; height: 2px; z-index: 3; background: linear-gradient(90deg, transparent, #E0703F, transparent); box-shadow: 0 0 18px 5px rgba(224, 112, 63, .4); will-change: transform; animation: anSweep 2.4s ease-in-out infinite alternate; }
.an-corner { position: absolute; z-index: 3; width: 26px; height: 26px; border: 2px solid rgba(255, 255, 255, .9); }
.an-corner.is-tl { left: 18px; top: 18px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.an-corner.is-tr { right: 18px; top: 18px; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.an-corner.is-bl { left: 18px; bottom: 18px; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.an-corner.is-br { right: 18px; bottom: 18px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.an-zone { position: absolute; left: 50%; top: 22px; z-index: 4; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: rgba(31, 34, 25, .72); color: #ECFC91; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.an-cap { position: absolute; left: 54px; right: 54px; bottom: 22px; z-index: 4; display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
@keyframes anSpin { to { transform: rotate(360deg); } }
@keyframes anSweep { from { transform: translateY(0); } to { transform: translateY(74cqh); } }
@keyframes anMesh { from { opacity: .25; } to { opacity: .65; } }
@keyframes anPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 112, 63, .3); } 50% { box-shadow: 0 0 0 6px rgba(224, 112, 63, 0); } }

.analysis-progress-view.is-photo .analysis-progress-panel { display: block; max-width: 520px; min-height: 0; height: auto; }
.analysis-progress-view.is-photo .analysis-progress-eyebrow {
    margin: 0 0 14px; color: var(--color-text-muted);
    font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.analysis-progress-view.is-photo .analysis-progress-title-row { align-items: baseline; justify-content: space-between; gap: 16px; margin: 8px 0 18px; }
.analysis-progress-view.is-photo .analysis-progress-title {
    margin: 0; color: var(--color-text); font-family: var(--font-head); font-size: clamp(34px, 3.6vw, 52px); font-weight: 300;
    line-height: 1.08; letter-spacing: -.02em; text-wrap: balance;
}
.analysis-progress-view.is-photo .analysis-progress-title:lang(zh) { font-weight: 500; letter-spacing: .01em; }

.analysis-progress-view.is-photo .analysis-progress-title { word-break: keep-all; overflow-wrap: anywhere; }
.analysis-progress-view.is-photo .analysis-progress-percent { margin: 0; font-family: var(--font-head); font-size: 52px; font-weight: 300; line-height: 1; color: var(--color-text); font-variant-numeric: tabular-nums; }
.analysis-progress-view.is-photo .analysis-progress-percent small { margin-left: 4px; font-family: var(--font-mono); font-size: 13px; font-weight: 400; color: var(--color-text-muted); }
.analysis-progress-view.is-photo .analysis-progress-bar { position: relative; display: block; width: 100%; height: 6px; margin: 0; border-radius: var(--radius-pill); background: var(--color-border); overflow: hidden; }
.analysis-progress-view.is-photo .analysis-progress-bar-fill {
    position: absolute; left: 0; top: 0; bottom: 0; width: 100%; height: auto; border-radius: inherit;
    background: var(--yb-terra); transform: translateX(calc(6px - 100%)); transition: none; will-change: transform;
}
.analysis-progress-view.is-photo .analysis-progress-sub {
    display: block; height: auto; min-height: 24px; margin: 14px 0 22px; overflow: visible;
    color: var(--color-text-muted); font-size: 15px; line-height: 1.5; -webkit-line-clamp: unset; line-clamp: none;
}
.analysis-progress-view.is-photo .analysis-progress-slow { margin: -10px 0 22px; }
.analysis-progress-view.is-photo .analysis-progress-steps-card {
    flex: none; height: auto; min-height: 0; max-height: none; overflow: visible;
    border: 1px solid var(--color-border); border-radius: 24px; background: var(--color-surface); box-shadow: none;
    -webkit-mask-image: none; mask-image: none;
}
.analysis-progress-view.is-photo .analysis-progress-steps { display: grid; gap: 11px; padding: 22px 24px; transition: none; }

@media (min-width: 901px) {
    .analysis-progress-view.is-photo .analysis-progress-steps { transform: none !important; }
}
.analysis-progress-view.is-photo .analysis-progress-step {
    display: flex; align-items: center; gap: 12px; min-height: 0; padding: 0;
    color: var(--color-text-muted); font-size: 14.5px; line-height: 1.35; opacity: .5; -webkit-text-stroke: 0;
    transition: opacity .3s, color .3s;
}
.analysis-progress-view.is-photo .analysis-progress-step::before, .analysis-progress-view.is-photo .analysis-progress-step::after { content: none; }
.analysis-progress-view.is-photo .analysis-progress-step.is-done, .analysis-progress-view.is-photo .analysis-progress-step.is-active { opacity: 1; color: var(--color-text); }
.analysis-progress-view.is-photo .analysis-progress-step.is-active { font-weight: 600; }
.an-dot { flex: none; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; transition: background .3s, border-color .3s; }
.an-dot svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.analysis-progress-step.is-done .an-dot { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.analysis-progress-step.is-done .an-dot svg { opacity: 1; }
.analysis-progress-step.is-active .an-dot { border-color: var(--yb-terra); animation: anPulse 1.2s ease-in-out infinite; }
.an-note { margin: 16px 0 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--color-text-muted); }
.an-note[hidden] { display: none; }


.analysis-progress-view.is-photo .analysis-progress-ready {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; max-width: none; min-height: 0; margin: 0; padding: 64px var(--yb-gutter); text-align: center;
}
.analysis-progress-view.is-photo .analysis-progress-ready[hidden] { display: none; }
.analysis-progress-view.is-photo .analysis-progress-ready-head { display: flex; flex-direction: column; align-items: center; gap: 0; }
.analysis-progress-view.is-photo .analysis-progress-check { width: 96px; height: 96px; margin-bottom: 28px; opacity: 1; transform: none; }
.analysis-progress-view.is-photo .analysis-progress-check circle { fill: #ECFC91; }
.analysis-progress-view.is-photo .analysis-progress-check path { stroke: #313429; stroke-width: 4.17; stroke-dasharray: none; stroke-dashoffset: 0; }
:root:not([data-theme="linen"]) .analysis-progress-view.is-photo .analysis-progress-check path { stroke: #1F2219; }
.analysis-progress-view.is-photo.is-done .analysis-progress-check { animation: anPopUp var(--dur-slow) var(--ease-out) both; transition: none; }
.analysis-progress-view.is-photo.is-done .analysis-progress-check path { transition: none; }
@keyframes anPopUp { from { opacity: 0; transform: translateY(var(--rise-md)); } to { opacity: 1; transform: none; } }
.analysis-progress-view.is-photo .analysis-progress-done-title {
    margin: 0 0 12px; color: var(--color-text); font-family: var(--font-head); font-size: clamp(40px, 4vw, 56px); font-weight: 300;
    line-height: 1.05; letter-spacing: -.02em; text-wrap: balance;
}
.analysis-progress-view.is-photo .analysis-progress-done-title:lang(zh) { font-weight: 500; letter-spacing: .01em; line-height: 1.22; }
.analysis-progress-view.is-photo .analysis-progress-note { max-width: none; margin: 0 0 32px; color: var(--color-text-muted); font-size: 17px; line-height: 1.6; }
.analysis-progress-view.is-photo .analysis-progress-ready .btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: auto; height: 52px; min-height: 52px; margin: 0; padding: 0 28px;
}
.analysis-progress-view.is-photo .analysis-progress-ready .btn-primary svg { width: 16px; height: 16px; flex: 0 0 auto; }


.analysis-progress-view [data-site-footer-host="scan"] { display: none; }

.analysis-progress-view.is-photo:not([hidden]) { display: flex; flex-direction: column; padding-right: 0; padding-bottom: 0; padding-left: 0; }
.analysis-progress-view.is-photo .analysis-progress-shell,
.analysis-progress-view.is-photo .analysis-progress-ready { flex: 1 0 auto; box-sizing: border-box; width: 100%; }
.analysis-progress-view.is-photo [data-site-footer-host="scan"] { display: block; flex: none; margin: 0; }
@media (max-width: 900px) {
    .analysis-progress-view.is-photo:not(.is-done) .analysis-progress-shell { display: grid; grid-template-columns: 1fr; gap: 32px; }
    .analysis-progress-view.is-photo .analysis-progress-stage { justify-self: center; max-width: 360px; }
    .analysis-progress-view.is-photo .analysis-progress-panel { max-width: none; }
    
    .analysis-progress-view.is-photo .analysis-progress-steps-card { height: 158px; overflow: hidden; }
    .analysis-progress-view.is-photo .analysis-progress-steps-card.is-scrolled {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
        mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
    }
    .analysis-progress-view.is-photo .analysis-progress-steps { transition: transform .45s ease; }
}
@media (max-width: 640px) {
    .analysis-progress-view.is-photo .analysis-progress-shell { padding: 32px var(--yb-gutter) 64px; }
    .analysis-progress-view.is-photo .analysis-progress-percent { font-size: 40px; }
    
    .analysis-progress-view.is-photo .analysis-progress-title { font-size: clamp(26px, 7.4vw, 34px); }
}
@media (prefers-reduced-motion: reduce) {
    .an-ring circle, .an-sweep, .an-mesh, .analysis-progress-step.is-active .an-dot,
    .analysis-progress-view.is-photo.is-done .analysis-progress-check { animation: none; }
    .analysis-progress-view.is-photo .analysis-progress-steps { transition: none; }
}

.result-disclaimer-more { padding: 0; border: 0; background: none; font: inherit; color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.disclaimer-modal { width: min(100%, 640px); max-width: 640px; }
.disclaimer-modal .consent-box { max-height: min(56vh, 520px); }
.disclaimer-modal .consent-scroll { padding: 18px 20px; }
.disclaimer-list { display: grid; gap: 10px; margin: 0; padding-inline-start: 18px; color: var(--color-text); font-size: 13.5px; line-height: 1.6; }
.disclaimer-list a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.disclaimer-h { margin: 14px 0 6px; color: var(--color-text); font-size: 13.5px; font-weight: 600; }
.disclaimer-modal .settings-modal-footer > button { grid-column: 1; }
body:has(#legal_disclaimer_overlay:not([hidden])) .cta-coach { display: none; }
body:has(#legal_disclaimer_overlay:not([hidden])) .cta-coach-target { z-index: auto; box-shadow: none !important; }

.analysis-progress-view.is-photo .analysis-progress-stage { max-width: min(460px, max(240px, calc((100dvh - 170px) * 435 / 525))); }
@media (max-width: 900px) {
    .analysis-progress-view.is-photo .analysis-progress-stage { max-width: min(360px, max(200px, calc((100dvh - 330px) * 435 / 525))); }
}

:root:lang(ja) :is(h1, h2, h3, h4, .analysis-progress-title, .analysis-progress-done-title, .cost-modal-header) { word-break: auto-phrase; }

@container (max-width: 320px) {
    .an-cap { left: 40px; right: 40px; bottom: 16px; font-size: 9px; letter-spacing: .06em; }
    .an-cap > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .an-zone { top: 14px; padding: 4px 10px; font-size: 10px; }
}
@container (max-width: 250px) { .an-cap { display: none; } }


body :is(.cta-core-open, .cta-btn-outline, .cta-core-card-btn) { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 400px) {
    .result-tab { padding-left: 4px; padding-right: 4px; letter-spacing: .02em; overflow-wrap: anywhere; }
}


@media (max-width: 480px) {
    .result-tabs:has(> .result-tab:nth-child(4):not([hidden])), .result-tabs.result-tabs--4col:has(> .result-tab:nth-child(4):not([hidden])) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 26px; }
    .result-tabs:has(> .result-tab:nth-child(4):not([hidden])) > .result-tab { overflow-wrap: break-word; }
}


.photo-stage { display: contents; }
body.app-page-open:not(.analyze-view-open) .photo-stage {
    display: block; position: relative; width: 100%; order: 0; container-type: inline-size;
    --overlay-legend-title-size: 9px; --overlay-legend-item-size: 10.5px;
    --overlay-annotation-title-size: 11px; --overlay-annotation-value-size: 17px; --overlay-annotation-unit-size: 8px;
    --overlay-pad: 7px 10px;
    
    --stage-badge-x: max(-12px, calc((100% - var(--stage-photo-w, 100%)) / 2 - 40px));
}
@media (max-width: 820px) {
    body.app-page-open:not(.analyze-view-open) .photo-stage { --stage-badge-x: max(-24px, calc((100% - var(--stage-photo-w, 100%)) / 2 - 24px)); }
}
@media (max-width: 640px) {
    body.app-page-open:not(.analyze-view-open) .photo-stage { --stage-badge-x: max(-8px, calc((100% - var(--stage-photo-w, 100%)) / 2 - 8px)); }
}

body.app-page-open:not(.analyze-view-open) .photo-stage > .overlay-legend {
    z-index: 3; top: 12px; right: 12px; left: auto; box-sizing: border-box;
    width: fit-content; min-width: 80px; max-width: 124px; padding: 6px 8px 7px; border-radius: 12px; overflow: hidden;
    box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .4);
    
    border: 1px solid rgba(49, 52, 41, .1); background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
body.app-page-open:not(.analyze-view-open) .photo-stage > .overlay-legend:not([hidden]) { display: flex; flex-direction: column; gap: 4px; }

body.app-page-open:not(.analyze-view-open) .photo-column:has(.view-toggle-btn.active[data-view="original"]) .photo-stage > .overlay-legend { display: none; }

body.app-page-open:not(.analyze-view-open) .photo-stage > .overlay-legend .overlay-legend-gradient-bar { width: 8px; height: 34px; }

@media (max-width: 820px) {
    body.app-page-open:not(.analyze-view-open) .photo-stage > .overlay-legend { top: 8px; right: 8px; }
    body.app-page-open:not(.analyze-view-open) .photo-stage > .overlay-legend .overlay-legend-gradient-bar { height: 30px; }
}
body.app-page-open:not(.analyze-view-open) .photo-stage > .overlay-legend * { box-sizing: border-box; }
body.app-page-open:not(.analyze-view-open) .photo-stage > .overlay-legend .overlay-legend-title {
    display: block; contain: inline-size; margin: 0 0 4px; color: #5C5E50;
    font-family: var(--font-mono); font-size: 9px; font-weight: 500; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase;
    text-align: center; white-space: normal; overflow-wrap: anywhere;
}
body.app-page-open:not(.analyze-view-open) .photo-stage > .overlay-legend .overlay-legend-gradient { display: grid; justify-items: center; gap: 4px; }
body.app-page-open:not(.analyze-view-open) .photo-stage > .overlay-legend .overlay-legend-gradient-label { font-size: 9.5px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
body.app-page-open:not(.analyze-view-open) .photo-stage > .overlay-legend .overlay-legend-list { display: grid; gap: 4px; }
body.app-page-open:not(.analyze-view-open) .photo-stage > .overlay-legend .overlay-legend-row { align-items: flex-start; gap: 6px; }
body.app-page-open:not(.analyze-view-open) .photo-stage > .overlay-legend .overlay-legend-row-label { font-size: 10px; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
body.app-page-open:not(.analyze-view-open) .photo-stage > .overlay-legend :is(.overlay-legend-swatch, .overlay-legend-symbol) { width: 8px; height: 8px; margin-top: 2px; }
body.app-page-open:not(.analyze-view-open) .photo-stage > .overlay-legend .overlay-legend-swatch { border-radius: 2px; }
body.app-page-open:not(.analyze-view-open) .photo-stage > .overlay-legend .overlay-legend-swatch--line { width: 14px; height: 0; margin-top: 6px; }

body.app-page-open:not(.analyze-view-open) .photo-stage > .eye-age-overlay { inset: 0; z-index: 3; }
body.app-page-open:not(.analyze-view-open) .photo-stage .eye-age-callout { transform: none; }
body.app-page-open:not(.analyze-view-open) .photo-stage .eye-age-callout--left { left: var(--stage-badge-x); right: auto; top: min(calc(28% + 20px), calc(100% - 152px)); }
body.app-page-open:not(.analyze-view-open) .photo-stage .eye-age-callout--right { left: auto; right: var(--stage-badge-x); top: calc(28% + 20px); }
body.app-page-open:not(.analyze-view-open) .photo-stage > .skin-age-badge { z-index: 3; top: auto; left: var(--stage-badge-x); bottom: 12px; width: auto; height: auto; }

@media (min-width: 821px) {
    body.app-page-open:not(.analyze-view-open) .photo-stage > :is(.overlay-legend, .skin-age-badge),
    body.app-page-open:not(.analyze-view-open) .photo-stage .eye-age-callout {
        scale: clamp(.8, calc(.8 + .2 * ((var(--stage-photo-h, 380) - 270) / 110)), 1);
    }
    body.app-page-open:not(.analyze-view-open) .photo-stage > .overlay-legend { transform-origin: right top; }
    body.app-page-open:not(.analyze-view-open) .photo-stage .eye-age-callout--left { transform-origin: left center; }
    body.app-page-open:not(.analyze-view-open) .photo-stage .eye-age-callout--right { transform-origin: right center; }
    body.app-page-open:not(.analyze-view-open) .photo-stage > .skin-age-badge { transform-origin: left bottom; }
    
    body.app-page-open:not(.analyze-view-open) .photo-card.has-image:not(.camera-active) { transition: width var(--dur-slow) var(--ease-out); }
}

body.app-page-open:not(.analyze-view-open) #result_canvas_display { transition: transform var(--dur-slow) var(--ease-out), transform-origin var(--dur-slow) var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
    body.app-page-open:not(.analyze-view-open) .photo-card.has-image:not(.camera-active) { transition: none; }
    body.app-page-open:not(.analyze-view-open) #result_canvas_display { transition: none; }
}


body.app-page-open:not(.analyze-view-open) .upload-btn-wrap { display: contents; }
body.app-page-open:not(.analyze-view-open) .photo-controls-wrap { gap: 10px; }
body.app-page-open:not(.analyze-view-open) .photo-view-actions { order: 1; }
body.app-page-open:not(.analyze-view-open) .feature-region-picker { order: 2; margin-bottom: 4px; }   
body.app-page-open:not(.analyze-view-open) .photo-source-actions { order: 3; }

body.app-page-open:not(.analyze-view-open) .feature-region-picker:not([hidden]) {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; width: 100%; box-sizing: border-box;
    padding: 4px; border: 1px solid var(--color-border); border-radius: 24px; background: var(--color-surface); box-shadow: none;
}
body.app-page-open:not(.analyze-view-open) .feature-region-picker .feature-region-btn {
    grid-column: span 2; min-width: 0; min-height: 40px; padding: 6px 8px; border-radius: 20px;
    background: transparent; box-shadow: none; color: var(--color-text-muted);
    font-family: var(--font-sans); font-size: 14px; font-weight: 400; letter-spacing: 0; line-height: 1.2; text-transform: capitalize;
    white-space: normal; text-align: center; overflow-wrap: anywhere;
}
body.app-page-open:not(.analyze-view-open) .feature-region-picker .feature-region-btn:last-child:nth-child(3n + 1) { grid-column: 3 / span 2; }
@media (hover: hover) { body.app-page-open:not(.analyze-view-open) .feature-region-picker .feature-region-btn:hover { color: var(--color-text); } }
body.app-page-open:not(.analyze-view-open) .feature-region-picker .feature-region-btn.active { background: var(--color-surface-soft); color: var(--color-text); font-weight: 600; box-shadow: none; }


@media (hover: hover) and (pointer: fine) {
    body.app-page-open:not(.analyze-view-open) .feature-scroll-button { opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) var(--ease-in-out); }
    body.app-page-open:not(.analyze-view-open) .feature-strip-wrap:hover .feature-scroll-button:not(:disabled),
    body.app-page-open:not(.analyze-view-open) .feature-scroll-button:not(:disabled):focus-visible { opacity: 1; pointer-events: auto; }
}


@property --upload-check-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes uploadCheckSpin { to { --upload-check-angle: 360deg; } }
@keyframes uploadCheckDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

.upload-preview.is-checking .upload-preview-frame::after {
    content: ""; position: absolute; inset: 0; z-index: 1; box-sizing: border-box; padding: 3px; border-radius: inherit; pointer-events: none;
    background: conic-gradient(from var(--upload-check-angle), rgba(224, 112, 63, 0) 0deg, rgba(224, 112, 63, 0) 40deg, rgba(224, 112, 63, .4) 210deg, #E0703F 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: uploadCheckSpin 1.6s linear infinite;
}
.upload-preview-actions { position: relative; }
.upload-preview.is-checking .upload-preview-actions > button { visibility: hidden; }
.upload-preview-status {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #45473A; font-size: 15px; line-height: 1.4; white-space: nowrap; pointer-events: none;
}
.upload-preview-status[hidden] { display: none; }
:root:not([data-theme="linen"]) .upload-preview-status { color: #B3B1A1; }
.upload-preview-dots { display: inline-flex; gap: 2px; margin-left: 2px; }
.upload-preview-dots i { width: 3px; height: 3px; margin-top: 8px; border-radius: 50%; background: currentColor; animation: uploadCheckDot 1.2s ease-in-out infinite; }
.upload-preview-dots i:nth-child(2) { animation-delay: .15s; }
.upload-preview-dots i:nth-child(3) { animation-delay: .3s; }

.photo-card:has(.upload-preview.is-checking:not([hidden])) .photo-check-scan { display: none; }
@media (prefers-reduced-motion: reduce) {
    .upload-preview.is-checking .upload-preview-frame::after, .upload-preview-dots i { animation: none; }
    .upload-preview-dots i { opacity: 1; }
}


:root {
    --up-drop-bg: #F1EEE6;
    --up-drop-shadow: 0 2px 6px rgba(49, 52, 41, .05);
    --up-drop-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 312' preserveAspectRatio='none'%3E%3Crect x='1.5' y='1.5' width='237' height='309' rx='22.5' ry='22.5' fill='none' stroke='%23C7C0A6' stroke-width='3' stroke-dasharray='10 12' stroke-linecap='round'/%3E%3C/svg%3E");
    --up-drop-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 128 129' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect opacity='0.8' x='21' y='10' width='86' height='94' rx='12' fill='%23FB8864'/%3E%3Ccircle cx='80.5' cy='37.5' r='8.5' fill='%233B3E32'/%3E%3Cpath d='M81.8373 61.1119L94.8256 79.8611C95.7444 81.1875 94.7951 83 93.1815 83H34.4877C32.9428 83 31.9813 81.3232 32.7615 79.9899L52.1505 46.8571C52.9103 45.5586 54.7779 45.5324 55.5738 46.8091L69.0192 68.3747C69.7384 69.5282 71.3739 69.6437 72.248 68.6027L78.6616 60.9647C79.5097 59.9546 81.0862 60.0277 81.8373 61.1119Z' fill='%23F1EEE6'/%3E%3Cpath d='M93.4538 88.4299C94.8382 88.4984 96.1514 89.0785 97.1361 90.0632C97.6189 90.546 98.3592 90.7321 99.0122 90.5328C99.5362 90.3728 100.085 90.2893 100.643 90.2893L100.921 90.2966C102.305 90.3651 103.618 90.9452 104.603 91.9299C104.791 92.1179 104.964 92.318 105.121 92.5282C105.798 93.4312 106.982 94.0226 108.11 94.0226L108.387 94.0299C109.772 94.0984 111.085 94.6785 112.069 95.6632C113.12 96.7134 113.71 98.1374 113.71 99.6226V105.223C113.71 109.678 111.94 113.951 108.789 117.102C105.639 120.253 101.366 122.023 96.9101 122.023H89.4434C84.9878 122.023 80.7147 120.253 77.5641 117.102C74.4135 113.951 72.6434 109.678 72.6434 105.223C72.6434 103.737 73.2339 102.313 74.2841 101.263C75.3343 100.213 76.7582 99.6226 78.2434 99.6226L78.5205 99.6299C78.6981 99.6387 78.8744 99.6567 79.0492 99.6822C79.2008 99.7042 79.3513 99.7317 79.5 99.766C79.5191 99.7704 79.5381 99.7748 79.5571 99.7794C79.6281 99.7965 79.6985 99.8154 79.7686 99.8353C79.7779 99.8379 79.7873 99.8399 79.7966 99.8426C79.8525 99.8587 79.9077 99.877 79.9631 99.8948C80.0049 99.9083 80.0467 99.9217 80.0882 99.9361C80.0988 99.9399 80.1101 99.9316 80.1101 99.9204V95.8893C80.1101 94.4041 80.7005 92.9801 81.7507 91.9299C82.8009 90.8797 84.2249 90.2893 85.7101 90.2893L85.9872 90.2966C86.4492 90.3194 86.9034 90.3994 87.34 90.5323C87.9931 90.7312 88.7346 90.546 89.2174 90.0632C90.2676 89.013 91.6916 88.4226 93.1768 88.4226L93.4538 88.4299Z' fill='%23F1EEE6'/%3E%3Cpath d='M93.4538 88.4299C94.8382 88.4984 96.1514 89.0785 97.1361 90.0632C97.6189 90.546 98.3592 90.7321 99.0122 90.5328C99.5362 90.3728 100.085 90.2893 100.643 90.2893L100.921 90.2966C102.305 90.3651 103.618 90.9452 104.603 91.9299C104.791 92.1179 104.964 92.318 105.121 92.5282C105.798 93.4312 106.982 94.0226 108.11 94.0226L108.387 94.0299C109.772 94.0984 111.085 94.6785 112.069 95.6632C113.12 96.7134 113.71 98.1374 113.71 99.6226V105.223C113.71 109.678 111.94 113.951 108.789 117.102C105.639 120.253 101.366 122.023 96.9101 122.023H89.4434C84.9878 122.023 80.7147 120.253 77.5641 117.102C74.4135 113.951 72.6434 109.678 72.6434 105.223C72.6434 103.737 73.2339 102.313 74.2841 101.263C75.3343 100.213 76.7582 99.6226 78.2434 99.6226L78.5205 99.6299C78.6981 99.6387 78.8744 99.6567 79.0492 99.6822C79.2008 99.7042 79.3513 99.7317 79.5 99.766C79.5191 99.7704 79.5381 99.7748 79.5571 99.7794C79.6281 99.7965 79.6985 99.8154 79.7686 99.8353C79.7779 99.8379 79.7873 99.8399 79.7966 99.8426C79.8525 99.8587 79.9077 99.877 79.9631 99.8948C80.0049 99.9083 80.0467 99.9217 80.0882 99.9361C80.0988 99.9399 80.1101 99.9316 80.1101 99.9204V95.8893C80.1101 94.4041 80.7005 92.9801 81.7507 91.9299C82.8009 90.8797 84.2249 90.2893 85.7101 90.2893L85.9872 90.2966C86.4492 90.3194 86.9034 90.3994 87.34 90.5323C87.9931 90.7312 88.7346 90.546 89.2174 90.0632C90.2676 89.013 91.6916 88.4226 93.1768 88.4226L93.4538 88.4299ZM93.1768 92.1559C92.6817 92.1559 92.207 92.3527 91.857 92.7028C91.5069 93.0529 91.3101 93.5275 91.3101 94.0226V97.7559C91.3101 98.7869 90.4744 99.6226 89.4434 99.6226C88.4125 99.6226 87.5768 98.7869 87.5768 97.7559V95.8893C87.5768 95.3942 87.38 94.9196 87.0299 94.5695C86.7236 94.2632 86.322 94.0748 85.8948 94.0323L85.7101 94.0226C85.215 94.0226 84.7404 94.2194 84.3903 94.5695C84.0402 94.9196 83.8434 95.3942 83.8434 95.8893V105.223C83.8434 106.254 83.0077 107.089 81.9768 107.089C80.9458 107.089 80.1101 106.254 80.1101 105.223C80.1101 104.728 79.9133 104.253 79.5632 103.903C79.2132 103.553 78.7385 103.356 78.2434 103.356C77.7484 103.356 77.2737 103.553 76.9236 103.903C76.5736 104.253 76.3768 104.728 76.3768 105.223C76.3768 108.688 77.7532 112.012 80.2037 114.462C82.6542 116.913 85.9779 118.289 89.4434 118.289H96.9101L97.5578 118.273C100.788 118.113 103.852 116.76 106.15 114.462C108.447 112.165 109.801 109.1 109.961 105.87L109.977 105.223V99.6226C109.977 99.1275 109.78 98.6529 109.43 98.3028C109.124 97.9966 108.722 97.8081 108.295 97.7657L108.11 97.7559C107.615 97.7559 107.14 97.9527 106.79 98.3028C106.443 98.6506 106.246 99.1213 106.243 99.6129V100.556C106.243 101.587 105.408 102.423 104.377 102.423C103.346 102.423 102.51 101.587 102.51 100.556V95.8893C102.51 95.3942 102.313 94.9196 101.963 94.5695C101.657 94.2632 101.255 94.0748 100.828 94.0323L100.643 94.0226C100.148 94.0226 99.6737 94.2194 99.3236 94.5695C98.9736 94.9196 98.7768 95.3942 98.7768 95.8893V98.5021C98.7768 99.5331 97.941 100.369 96.9101 100.369C95.8792 100.369 95.0434 99.5331 95.0434 98.5021V94.0226C95.0434 93.5275 94.8466 93.0529 94.4966 92.7028C94.1903 92.3966 93.7887 92.2081 93.3615 92.1657L93.1768 92.1559Z' fill='%233B3E32'/%3E%3C/svg%3E");
    --up-failed-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 128 128' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect opacity='0.3' x='21' y='10' width='86' height='94' rx='12' fill='%23FB8864'/%3E%3Ccircle cx='80.5' cy='37.5' r='8.5' fill='%233B3E32'/%3E%3Cpath d='M81.8373 61.1119L94.8256 79.8611C95.7444 81.1875 94.7951 83 93.1815 83H34.4877C32.9428 83 31.9813 81.3232 32.7615 79.9899L52.1505 46.8571C52.9103 45.5586 54.7779 45.5324 55.5738 46.8091L69.0192 68.3747C69.7384 69.5282 71.3739 69.6437 72.248 68.6027L78.6616 60.9647C79.5097 59.9546 81.0862 60.0277 81.8373 61.1119Z' fill='%23F1EEE6'/%3E%3Ccircle cx='104.235' cy='104' r='18' fill='%23E0703F'/%3E%3Cpath d='M104.235 108.717C105.616 108.717 106.735 109.836 106.735 111.217C106.735 112.598 105.616 113.717 104.235 113.717C102.855 113.717 101.735 112.598 101.735 111.217C101.735 109.836 102.855 108.717 104.235 108.717ZM104.235 93.4671C105.34 93.4671 106.235 94.3626 106.235 95.4671V104.217C106.235 105.322 105.34 106.217 104.235 106.217C103.131 106.217 102.235 105.322 102.235 104.217V95.4671C102.235 94.3626 103.131 93.4671 104.235 93.4671Z' fill='%23F1EEE6'/%3E%3C/svg%3E");
}
:root:not([data-theme="linen"]) {
    --up-drop-bg: #26281F;
    --up-drop-shadow: none;
    --up-drop-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 312' preserveAspectRatio='none'%3E%3Crect x='1.5' y='1.5' width='237' height='309' rx='22.5' ry='22.5' fill='none' stroke='%234A4C3E' stroke-width='3' stroke-dasharray='10 12' stroke-linecap='round'/%3E%3C/svg%3E");
}
body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder .icon,
body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder.is-error .icon,
:root:not([data-theme="linen"]) body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder.is-error .icon,
.no-face-mirror, :root:not([data-theme="linen"]) .no-face-mirror {
    border-radius: 24px; background: var(--up-drop-dash) center / 100% 100% no-repeat, var(--up-drop-bg); box-shadow: var(--up-drop-shadow); overflow: visible;
}
body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder .icon::before {
    width: 42.67%; aspect-ratio: 1; opacity: 1; background: var(--up-drop-icon) center / contain no-repeat; -webkit-mask: none; mask: none;
}
body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder.is-error .icon::before { opacity: 1; background-image: var(--up-failed-icon); }
body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder:not(.is-error) .icon::after,
body.analyze-view-open .photo-card:not(.has-image) .photo-placeholder.is-error .icon::after { content: none; }
.no-face-mirror { width: min(60%, 240px); margin: 0 auto 28px; }
.no-face-mirror::before { content: ""; width: 42.67%; aspect-ratio: 1; background: var(--up-failed-icon) center / contain no-repeat; }
.upload-preview-frame { width: min(100%, 240px); height: auto; max-height: calc(100% - 100px); border-radius: 24px; overflow: hidden; box-shadow: var(--up-drop-shadow); }
@media (max-width: 767px) {
    .no-face-mirror { width: min(52%, 200px); margin-bottom: 20px; }
}


:root {
    --pk-box-bg: var(--color-surface-soft);
    --pk-top-bg: #3A271D;
    --pk-top-border: #5A3A2A;
    --pk-warn-bg: var(--color-surface);
    --pk-warn-ink: #E0703F;
    --pk-derm-bg: #3A2A22;
    --pk-derm-rule: #E0864F;
}
:root[data-theme="linen"] {
    --pk-top-bg: #FEF7F3;
    --pk-top-border: #F9E2D6;
    --pk-warn-bg: #FFFFFF;
    --pk-warn-ink: #C85A2B;
    --pk-derm-bg: #FBF1EA;
    --pk-derm-rule: #B04E1F;
}
.feature-pill[hidden] { display: none; }
.pk-box { padding: 22px 24px 24px; border-radius: 22px; background: var(--pk-box-bg); color: var(--color-text); }
.pk-box p { margin: 0; }
.pk-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pk-head h3 { margin: 0; font-family: var(--font-head); font-size: 22px; font-weight: 400; }
.pk-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--color-border); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.pk-page > .pk-tag { margin-bottom: 8px; }
.pk-intro { margin: 6px 0 14px !important; font-size: 14px; line-height: 1.55; color: var(--color-text-muted); }
.pk-info { display: flex; align-items: center; gap: 8px; margin: 0 0 14px !important; padding: 12px 14px; border-radius: 16px; background: var(--color-surface); border: 1px solid var(--color-border); font-size: 13px; line-height: 1.5; font-style: italic; color: var(--color-text-muted); }
.pk-info-ico { flex: none; width: 16px; height: 16px; color: var(--color-text-muted); }
.pk-derm { margin: 0 0 12px !important; padding: 12px 14px; border-left: 3px solid var(--pk-derm-rule); border-radius: 4px 16px 16px 4px; background: var(--pk-derm-bg); font-size: 13.5px; line-height: 1.55; color: var(--color-text); }
.pk-by { margin: 22px 0 4px; padding-top: 22px; border-top: 1px solid var(--color-border); font-family: var(--font-head); font-size: 24px; font-weight: 400; }
.pk-grp { margin: 18px 0 0; }
.pk-grp.is-top { padding: 18px; border-radius: 16px; background: var(--pk-top-bg); border: 1.5px solid var(--pk-top-border); }
.pk-gh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }

.pk-grp.is-top .pk-gh { flex-direction: column; align-items: flex-start; gap: 6px; }
.pk-top { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: #E0703F; }
:root:lang(zh) .pk-top, :root:lang(ja) .pk-top, :root:lang(ko) .pk-top, :root:lang(ar) .pk-top { font-family: var(--font-sans); font-size: 13px; letter-spacing: .04em; }
.pk-gh h4 { margin: 0; font-family: var(--font-head); font-size: 19px; font-weight: 400; }
.pk-gdesc { margin: 0 0 16px !important; max-width: 680px; font-size: 15px; line-height: 23px; color: var(--color-text-muted); }

.pk-list { margin: 0; padding: 0; list-style: none; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; overflow: hidden; counter-reset: pk; }
.pk-card { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 16px; align-items: center; padding: 20px 22px; counter-increment: pk; }
.pk-card + .pk-card { border-top: 1px solid var(--color-border); }
.pk-card::before { content: counter(pk, decimal-leading-zero); align-self: start; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; line-height: 18px; color: var(--color-text-muted); }
.pk-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 640px; }
.pk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 12px; line-height: 18px; color: var(--color-text-muted); }
.pk-brand { font-weight: 600; color: var(--color-text); }
.pk-type::before { content: "\00B7"; margin-right: 8px; }
.pk-name { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--color-text); overflow-wrap: anywhere; }
.pk-desc { margin-top: 4px !important; font-size: 14px; line-height: 21px; color: var(--color-text-muted); }

.pk-warn { display: flex; align-items: center; gap: 6px; margin-top: 10px !important; padding: 6px 10px; border-radius: 12px; background: var(--pk-warn-bg); border: 1px solid #E0703F; font-size: 12px; line-height: 1.45; color: var(--pk-warn-ink); }
.pk-warn-ico { flex: none; width: 14px; height: 14px; color: #E0703F; }
.pk-ing { margin-top: 10px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; line-height: 18px; color: var(--color-text-muted); }
.pk-ing b { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: 999px; background: var(--color-surface-soft); color: var(--color-text); font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }
.pk-go { justify-self: end; display: inline-flex; align-items: center; height: 36px; padding: 0 18px; border: 1px solid var(--color-text); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--color-text); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.pk-go:hover { background: #313429; color: #ECFC91; border-color: #313429; }

.pk-card.has-thumb { grid-template-rows: auto auto; row-gap: 12px; }
.pk-card.has-thumb::before { grid-column: 1; grid-row: 1; }
.pk-card.has-thumb > .pk-main { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.pk-card.has-thumb > .pk-thumb { grid-column: 3; grid-row: 1; justify-self: center; align-self: end; }
.pk-card.has-thumb > .pk-go { grid-column: 3; grid-row: 2; align-self: start; justify-self: center; }
.pk-thumb { position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--color-border); overflow: hidden; color: var(--color-text-muted); }
.pk-thumb.is-fail { background: var(--color-surface-soft); }
.pk-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; background: #FFFFFF; display: block; }
.pk-thumb.is-fail img { display: none; }
.pk-thumb-ico { width: 20px; height: 20px; }
.pk-go:focus-visible, .pk-disc a:focus-visible, .pk-link button:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }
.pk-empty { padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--color-border); font-size: 13.5px; color: var(--color-text-muted); }
.pk-disc { margin-top: 14px !important; padding-top: 10px; font-size: 12px; line-height: 1.6; color: var(--color-text-muted); }
.pk-disc a { color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; }
.pk-link { margin-top: 18px !important; }
.pk-link button { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pk-lock { display: grid; gap: 16px; justify-items: start; padding: 26px 28px; }

.cause-card { background: var(--color-surface); }
.pk-lock p { font-size: 16px; }
@media (max-width: 700px) {
    .pk-card { grid-template-columns: 22px minmax(0, 1fr); row-gap: 14px; padding: 18px 16px; }
    .pk-go { grid-column: 2; justify-self: start; }
    .pk-card.has-thumb { grid-template-columns: 22px minmax(0, 1fr) 56px; row-gap: 14px; }
    .pk-card.has-thumb > .pk-main { grid-row: 1; }
    .pk-card.has-thumb > .pk-thumb { grid-column: 3; grid-row: 1; align-self: start; }
    .pk-card.has-thumb > .pk-go { grid-column: 2; grid-row: 2; justify-self: start; }
    .pk-thumb { width: 56px; height: 56px; }
    .pk-thumb-ico { width: 18px; height: 18px; }
}
@media (max-width: 640px) {
    .pk-box { padding: 18px 16px 20px; border-radius: 18px; }
    .pk-grp.is-top { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .pk-go { transition: none; }
}



.pk-meta { line-height: 20px; }
.pk-brand { font-family: var(--font-mono); font-size: 15px; line-height: 22px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text); }
.pk-name { font-size: 18px; line-height: 26px; }

.pk-grp.is-top .pk-list { border-radius: 12px; }

@media (min-width: 701px) {
    .pk-card:not(.has-thumb) { row-gap: 2px; }
    .pk-card:not(.has-thumb) > .pk-main { display: contents; }
    .pk-card:not(.has-thumb) > .pk-main > * { grid-column: 2; max-width: 640px; }
    .pk-card:not(.has-thumb) > .pk-main > .pk-meta { grid-row: 1; }
    .pk-card:not(.has-thumb) > .pk-main > .pk-name { grid-row: 2; }
    .pk-card:not(.has-thumb) > .pk-main > .pk-desc { grid-row: 3; }
    .pk-card:not(.has-thumb) > .pk-main > .pk-ing { grid-row: 4; }
    .pk-card:not(.has-thumb) > .pk-main > .pk-warn { grid-row: 5; grid-column: 2 / -1; max-width: none; }
    .pk-card:not(.has-thumb)::before { grid-row: 1 / span 4; }
    .pk-card:not(.has-thumb) > .pk-go { grid-column: 3; grid-row: 1 / span 4; align-self: center; }
}

.cta-cmp-check { box-sizing: content-box; width: 14px; height: 14px; padding: 5px; border-radius: 50%; background: rgba(224, 112, 63, .16); color: #E0703F; vertical-align: middle; }

.cost-modal.unlock-ai-modal::-webkit-scrollbar { width: 16px; }
.cost-modal.unlock-ai-modal::-webkit-scrollbar-track { background: transparent; margin: 32px 0; }
.cost-modal.unlock-ai-modal::-webkit-scrollbar-thumb { background: rgba(49, 52, 41, .28); border: 5px solid transparent; border-radius: 999px; background-clip: padding-box; }
.cost-modal.unlock-ai-modal::-webkit-scrollbar-thumb:hover { background-color: rgba(49, 52, 41, .45); }
:root:not([data-theme="linen"]) .cost-modal.unlock-ai-modal::-webkit-scrollbar-thumb { background-color: rgba(236, 234, 223, .3); }
@supports (-moz-appearance: none) {
    .cost-modal.unlock-ai-modal { scrollbar-width: thin; scrollbar-color: rgba(49, 52, 41, .28) transparent; }
    :root:not([data-theme="linen"]) .cost-modal.unlock-ai-modal { scrollbar-color: rgba(236, 234, 223, .3) transparent; }
}
