[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
a.button { text-decoration: none; }
.cartoon-icon { width: 100%; height: 100%; display: block; object-fit: contain; }
.inline-cartoon-icon { width: 30px; height: 30px; display: block; flex: 0 0 auto; object-fit: contain; }
.micro-cartoon-icon { width: 22px; height: 22px; display: inline-block; flex: 0 0 auto; object-fit: contain; vertical-align: middle; }
.sound-toggle { position: relative; padding: 6px; }
.sound-toggle.is-muted .cartoon-icon { opacity: .42; filter: grayscale(1); }
.sound-toggle.is-muted::after { content: ""; position: absolute; left: 8px; right: 8px; top: 19px; height: 2px; border-radius: 3px; background: #a42e43; transform: rotate(-42deg); }
.button-small { min-height: 40px; padding: 0 14px; font-size: 12px; }
.header-login { color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; }
.desktop-nav { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.desktop-nav a { padding: 8px 12px; border-radius: 12px; color: #715914; text-decoration: none; font-size: 12px; font-weight: 800; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--ink); background: rgba(255,255,255,.5); }
.language-form select { width: 126px; height: 40px; appearance: none; border: 1px solid rgba(36,33,31,.17); border-radius: 20px; padding: 0 27px 0 12px; background-color: rgba(255,255,255,.4); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%2324211f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; color: var(--ink); font-size: 11px; font-weight: 800; }
.language-form { position: relative; z-index: 45; }
.locale-menu { position: relative; }
.locale-menu summary { min-width: 132px; height: 40px; display: grid; grid-template-columns: 22px minmax(0, auto) 10px; align-items: center; justify-content: center; gap: 8px; padding: 0 11px; border: 1px solid rgba(36,33,31,.17); border-radius: 20px; background: rgba(255,255,255,.4); color: var(--ink); font-size: 11px; font-weight: 800; list-style: none; cursor: pointer; user-select: none; }
.locale-menu summary::-webkit-details-marker { display: none; }
.locale-menu summary i { width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-2px) rotate(45deg); transition: transform .16s ease; }
.locale-menu[open] summary { background: rgba(255,255,255,.82); }
.locale-menu[open] summary i { transform: translateY(2px) rotate(225deg); }
.locale-options { position: absolute; z-index: 70; right: 0; top: calc(100% + 7px); width: 194px; max-height: min(64vh, 510px); display: grid; gap: 2px; overflow-y: auto; padding: 7px; border: 1px solid rgba(36,33,31,.16); border-radius: 15px; background: var(--paper); box-shadow: 0 16px 38px rgba(36,33,31,.22); }
.locale-options a { min-height: 35px; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 9px; color: var(--ink); font-size: 11px; font-weight: 700; text-decoration: none; }
.locale-options a:hover, .locale-options a.is-current { background: var(--pink-soft); }
.locale-options a.is-current { color: #9f2f43; font-weight: 900; }
.locale-picker { position: relative; display: inline-flex; align-items: center; }
.locale-picker select { cursor: pointer; }
.locale-flag { width: 22px; height: 15px; display: inline-block; overflow: hidden; border: 1px solid rgba(36,33,31,.18); border-radius: 3px; box-shadow: 0 1px 2px rgba(36,33,31,.12); }
.flag-icon { position: absolute; z-index: 2; left: 11px; width: 22px; height: 15px; overflow: hidden; border: 1px solid rgba(36,33,31,.18); border-radius: 3px; box-shadow: 0 1px 2px rgba(36,33,31,.12); pointer-events: none; }
.flag-es { background: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }
.flag-fr { background: linear-gradient(90deg, #0055a4 0 33.33%, #fff 33.33% 66.66%, #ef4135 66.66%); }
.flag-de { background: linear-gradient(#111 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66%); }
.flag-it { background: linear-gradient(90deg, #009246 0 33.33%, #fff 33.33% 66.66%, #ce2b37 66.66%); }
.flag-ru { background: linear-gradient(#fff 0 33.33%, #1c57a7 33.33% 66.66%, #d52b1e 66.66%); }
.flag-pt { background: linear-gradient(90deg, #046a38 0 40%, #da291c 40%); }
.flag-da { background: linear-gradient(90deg, transparent 0 30%, #fff 30% 40%, transparent 40%), linear-gradient(transparent 0 42%, #fff 42% 58%, transparent 58%), #c8102e; }
.flag-sv { background: linear-gradient(90deg, transparent 0 30%, #fecb00 30% 40%, transparent 40%), linear-gradient(transparent 0 42%, #fecb00 42% 58%, transparent 58%), #006aa7; }
.flag-fi { background: linear-gradient(90deg, transparent 0 30%, #003580 30% 40%, transparent 40%), linear-gradient(transparent 0 42%, #003580 42% 58%, transparent 58%), #fff; }
.flag-en { background: linear-gradient(33deg, transparent 43%, #fff 43% 48%, #c8102e 48% 52%, #fff 52% 57%, transparent 57%), linear-gradient(-33deg, transparent 43%, #fff 43% 48%, #c8102e 48% 52%, #fff 52% 57%, transparent 57%), linear-gradient(90deg, transparent 0 42%, #fff 42% 46%, #c8102e 46% 54%, #fff 54% 58%, transparent 58%), linear-gradient(transparent 0 37%, #fff 37% 43%, #c8102e 43% 57%, #fff 57% 63%, transparent 63%), #012169; }
.flag-zh { background: radial-gradient(circle at 25% 30%, #ffde00 0 12%, transparent 13%), #de2910; }
.flag-hi, .flag-pa { background: linear-gradient(#ff9933 0 33.33%, #fff 33.33% 66.66%, #138808 66.66%); }
.flag-ar { background: linear-gradient(#007a3d 0 33.33%, #fff 33.33% 66.66%, #000 66.66%); }
.flag-bn { background: radial-gradient(circle at 45% 50%, #f42a41 0 28%, transparent 29%), #006a4e; }
.flag-ja { background: radial-gradient(circle, #bc002d 0 31%, transparent 32%), #fff; }
.flag-ko { background: radial-gradient(circle at 46% 45%, #cd2e3a 0 21%, transparent 22%), radial-gradient(circle at 54% 55%, #0047a0 0 21%, transparent 22%), #fff; }
.flag-tr { background: radial-gradient(circle at 43% 50%, transparent 0 17%, #fff 18% 26%, transparent 27%), #e30a17; }
.flag-vi { background: radial-gradient(circle, #ff0 0 19%, transparent 20%), #da251d; }
.flag-ur { background: linear-gradient(90deg, #fff 0 25%, #01411c 25%); }
.settings-locale-picker { width: 210px; }
.settings-locale-picker select { width: 100%; appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%2324211f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.notice-banner { margin-top: 15px; padding: 11px 15px; border-radius: 13px; color: #155a42; background: #dff4eb; font-size: 13px; font-weight: 700; }

.home-hero { min-height: 535px; align-items: center; }
.home-hero-copy { position: relative; z-index: 2; flex: 0 1 590px; }
.home-hero-copy .hero-description-card { width: fit-content; max-width: 560px; padding: 14px 17px; border: 1px solid rgba(36,33,31,.10); border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 5px 0 rgba(135,96,0,.12), 0 12px 28px rgba(111,79,0,.08); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.trust-row span { min-height: 34px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border: 1px solid rgba(36,33,31,.12); border-radius: 30px; background: rgba(255,255,255,.35); color: #6a5314; font-size: 10px; font-weight: 800; }
.hero-art { width: min(52vw, 630px); position: relative; flex-shrink: 0; overflow: hidden; border: 2px solid var(--ink); border-radius: 34px; box-shadow: 9px 10px 0 rgba(36,33,31,.88), var(--shadow); transform: rotate(1.2deg); }
.hero-art > .hero-cover-image { width: 100%; height: 380px; display: block; object-fit: cover; object-position: 72% center; }
.privacy-banner a { color: var(--ink); font-size: 12px; font-weight: 800; }
.demo-dashboard { min-width: 0; margin-bottom: 18px; }
.demo-dashboard .ranking-card { min-width: 0; }
.community-section, .reviews-section { margin: 22px 0; padding: clamp(22px, 4vw, 38px); border: 1px solid rgba(36,33,31,.12); border-radius: 30px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.community-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(430px, 1.15fr); align-items: center; gap: clamp(24px, 5vw, 65px); }
.section-copy h2 { margin: 4px 0 8px; font-family: Nunito, sans-serif; font-size: clamp(28px, 4vw, 43px); line-height: 1.02; letter-spacing: -1.6px; }
.section-copy p { max-width: 560px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.community-counters { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 27px; }
.community-counters article { min-width: 0; padding: 20px; border: 1px solid rgba(36,33,31,.1); border-radius: 22px; background: #fff6da; }
.community-counters article:nth-child(2) { background: #fff0f4; }
.community-counters .counter-icon { display: block; margin-bottom: 5px; font-size: 23px; }
.community-counters strong { display: block; overflow: hidden; font-family: Nunito, sans-serif; font-size: clamp(31px, 4.4vw, 48px); line-height: 1; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; }
.community-counters small { display: block; margin-top: 7px; color: #6d581b; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.community-counters strong.is-counted { animation: counter-pop .46s ease; }
.live-indicator { position: absolute; right: 4px; bottom: 1px; display: inline-flex; align-items: center; gap: 6px; color: #5e6b42; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.live-indicator i { width: 8px; height: 8px; border-radius: 50%; background: #5dcc83; box-shadow: 0 0 0 5px rgba(93,204,131,.13); animation: live-pulse 1.8s infinite; }
@keyframes counter-pop { 50% { transform: translateY(-2px) scale(1.025); color: var(--pink); } }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 8px rgba(93,204,131,0); } }
.demo-dashboard { margin-block: 22px; }
.demo-dashboard .detail-top small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.demo-big-score { width: 100%; border: 0; text-align: left; cursor: pointer; }
.reviews-section { margin-bottom: 10px; }
.reviews-section > .section-copy { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-items: end; margin-bottom: 24px; }
.reviews-section > .section-copy .eyebrow { grid-column: 1 / -1; }
.review-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.public-review { min-width: 0; padding: 18px; border: 1px solid rgba(36,33,31,.1); border-radius: 21px; background: #fffaf0; }
.public-review:nth-child(even) { background: #fff1f5; }
.review-author { display: flex; align-items: center; gap: 11px; }
.review-avatar { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 18px; }
.review-author > span:last-child { display: grid; gap: 2px; }
.review-author strong { font-family: Nunito, sans-serif; font-size: 14px; }
.review-author small { color: var(--pink); font-size: 11px; letter-spacing: 1px; }
.public-review p { margin: 14px 0 0; color: #554e49; font-size: 12px; line-height: 1.55; }
.relationship-insights { margin-top: 18px; padding: clamp(23px,4vw,38px); border: 1px solid rgba(36,33,31,.12); border-radius: 28px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.relationship-insights[hidden] { display: none; }
.insights-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.insights-heading h2 { margin: 4px 0 6px; font-family: Nunito,sans-serif; font-size: clamp(28px,4vw,39px); }
.insights-heading p { max-width: 690px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.evidence-chip { flex: 0 0 auto; padding: 8px 11px; border-radius: 999px; color: #1e674e; background: var(--mint-soft); font-size: 9px; font-weight: 900; }
.insights-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.insight-card { min-width: 0; display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: start; gap: 12px; padding: 16px; border: 1px solid #eadfca; border-radius: 18px; background: #fffaf0; }
.insight-card.insight-gap { background: #fff1f3; }.insight-card.insight-enjoyment,.insight-card.insight-fit { background: #eef9f4; }.insight-card.insight-safety { border-color: #d77888; background: #fff0f2; }
.insight-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.75); }
.insight-card small { color: #7a6952; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; }
.insight-card h3 { margin: 3px 0 5px; font-family: Nunito,sans-serif; font-size: 15px; }
.insight-card p { margin: 0; color: #5f574d; font-size: 10px; line-height: 1.5; }
.insights-note { display: block; margin-top: 13px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.comparison-controls { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.comparison-controls[hidden] { display: none; }
.comparison-controls label { display: grid; gap: 7px; min-width: 0; font-size: 12px; font-weight: 800; }
.comparison-controls select { width: 100%; min-width: 0; padding: 11px; border: 1px solid #dedad1; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.comparison-context { font-size: 13px; line-height: 1.6; }
.weight-detail-toggle { position: relative; }
.detail-mode-tip { display: none; position: absolute; z-index: 8; inset-inline-start: 0; top: 100%; width: min(240px,60vw); padding: 9px; background: #24211f; color: #fff; border-radius: 8px; font-size: 11px; font-weight: 500; line-height: 1.4; text-align: start; pointer-events: none; }
.weight-detail-toggle:hover .detail-mode-tip,.weight-detail-toggle:focus-visible .detail-mode-tip,.weight-detail-toggle[aria-expanded="true"]:focus .detail-mode-tip { display: block; }
.comparison-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.comparison-table th,.comparison-table td { padding: 12px 8px; border-bottom: 1px solid #e9e5dc; overflow-wrap: anywhere; text-align: center; }
.comparison-table th:first-child { width: 44%; text-align: start; }
.comparison-table th small,.comparison-eve { display: block; margin-top: 5px; font-size: 10px; font-weight: 500; color: var(--muted); }
.comparison-table thead,.comparison-table tfoot { background: #fff5d6; }
.comparison-table tfoot { font-weight: 900; }
.comparison-eve { color: #825a00; }
.comparison-differences { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.comparison-difference,.comparison-reflection { padding: 18px; border-radius: 16px; background: #f9f7f0; min-width: 0; overflow-wrap: anywhere; }
.comparison-difference h3,.comparison-reflection h3 { margin: 0; font-size: 17px; }
.comparison-difference p,.comparison-reflection p { font-size: 13px; line-height: 1.6; }
.comparison-difference ul { padding: 0; list-style: none; margin-bottom: 0; }
.comparison-difference li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13px; }
.comparison-difference li strong { flex-shrink: 0; }
.comparison-reflection { margin-top: 12px; background: #fff0e8; }
@media (max-width: 620px) {
    .age-track { min-width: 0; }
    .age-track .age-segment { min-width: 0; flex-basis: 30px; flex-shrink: 0; padding-inline: 2px; }
    .age-track .age-segment small { font-size: 9px; white-space: nowrap; }
    [data-rate-app] > .privacy-banner { display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: start; gap: 8px 10px; padding: 12px; }
    [data-rate-app] > .privacy-banner .privacy-icon { width: 32px; height: 32px; }
    [data-rate-app] > .privacy-banner > div { min-width: 0; display: grid; gap: 4px; font-size: 12px; line-height: 1.35; }
    [data-rate-app] > .privacy-banner .vault-actions { grid-column: 2; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
    [data-rate-app] > .privacy-banner .vault-state { white-space: nowrap; }
    .comparison-controls,.comparison-differences { grid-template-columns: 1fr; }
    .comparison-table { font-size: 12px; }
    .comparison-table th,.comparison-table td { padding: 10px 5px; }
    .comparison-table th small,.comparison-eve { font-size: 9px; }
}
.full-parameter.is-eve { background: #fff2b8; box-shadow: inset 0 0 0 2px #e6b120; }
.full-parameter.is-eve strong, .parameter-preview > .is-eve b { color: #9b4d00; }
.parameter-preview > .is-eve { background: #fff3bd; box-shadow: inset 0 0 0 1px #e6b120; }
.private-review-card { display: grid; grid-template-columns: minmax(240px,.72fr) minmax(0,1.28fr); gap: clamp(22px,4vw,55px); margin-top: 18px; padding: clamp(23px,4vw,38px); border: 1px solid rgba(36,33,31,.12); border-radius: 28px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.private-review-card[hidden] { display: none; }
.private-review-copy h2 { margin: 4px 0 8px; font-family: Nunito, sans-serif; font-size: 31px; }
.private-review-copy p { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.private-review-card form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.private-review-card label { display: grid; align-content: start; gap: 6px; color: #5f4b14; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.private-review-card input[type="text"], .private-review-card textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; background: #fff; color: var(--ink); font: 500 13px Inter, sans-serif; text-transform: none; resize: vertical; }
.private-review-comment, .private-review-actions { grid-column: 1 / -1; }
.private-review-score { min-height: 45px; display: grid; grid-template-columns: minmax(100px,1fr) 34px auto; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.private-review-score input { min-width: 0; accent-color: var(--pink); }
.private-review-score output { font-size: 13px; }
.private-review-score span { color: var(--pink); font-size: 10px; letter-spacing: 0; }
.private-review-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.private-review-actions small { color: #47765a; font-size: 10px; }
.trait-picker-trigger { width: 100%; min-width: 0; min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px 7px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: 800 11px Inter,sans-serif; text-align: left; cursor: pointer; }
.trait-picker-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trait-picker-trigger b { display: grid; width: 25px; height: 25px; place-items: center; flex: 0 0 25px; border-radius: 8px; background: var(--pink-soft); color: var(--pink); font-size: 14px; }
.trait-picker-trigger:hover, .trait-picker-trigger:focus-visible { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); outline: 0; }
.trait-picker-dialog { width: min(920px,calc(100% - 24px)); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); padding: clamp(22px,4vw,34px); overflow: hidden; border: 1px solid rgba(36,33,31,.15); border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 100px rgba(36,33,31,.32); }
.trait-picker-dialog::backdrop { background: rgba(47,38,18,.42); backdrop-filter: blur(5px); }
.trait-picker-dialog h2 { margin: 5px 42px 4px 0; font-family: Nunito,sans-serif; font-size: clamp(27px,4vw,38px); }
.trait-picker-dialog > p { margin: 0 45px 18px 0; color: var(--muted); font-size: 12px; }
.trait-picker-grid { max-height: min(570px,calc(100dvh - 190px)); display: grid; grid-template-columns: repeat(auto-fill,minmax(128px,1fr)); gap: 10px; padding: 4px 6px 10px 3px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.trait-option { min-width: 0; display: grid; justify-items: center; gap: 8px; padding: 12px 8px 10px; border: 1px solid rgba(36,33,31,.12); border-radius: 18px; background: #fff; color: var(--ink); cursor: pointer; transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.trait-option:hover { transform: translateY(-2px); border-color: var(--pink); }
.trait-option.is-selected { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.trait-option strong { max-width: 100%; font-size: 10px; line-height: 1.25; text-align: center; }
.trait-preview { width: 100px; height: 100px; border-radius: 28px; background: #ededed; }
.trait-preview .avatar-v2-layer { display: none; }
.trait-preview .avatar-v2-layer--base { display: block; opacity: .58; filter: var(--avatar-geometry-filter, brightness(1)) grayscale(1) brightness(1.13) contrast(.72) !important; }
.trait-preview[data-preview-trait="hair"] .avatar-v2-layer--hair-back,
.trait-preview[data-preview-trait="hair"] .avatar-v2-layer--hair-occlusion,
.trait-preview[data-preview-trait="hair"] .avatar-v2-layer--hair-front,
.trait-preview[data-preview-trait="hair"] .avatar-v2-layer--hair-complete,
.trait-preview[data-preview-trait="eyes"] .avatar-v2-layer--eyes-left,
.trait-preview[data-preview-trait="eyes"] .avatar-v2-layer--eyes-right,
.trait-preview[data-preview-trait="eyes"] .avatar-v2-layer--iris-left,
.trait-preview[data-preview-trait="eyes"] .avatar-v2-layer--iris-right,
.trait-preview[data-preview-trait="brows"] .avatar-v2-layer--brows,
.trait-preview[data-preview-trait="lashes"] .avatar-v2-layer--lashes-left,
.trait-preview[data-preview-trait="lashes"] .avatar-v2-layer--lashes-right,
.trait-preview[data-preview-trait="nose"] .avatar-v2-layer--nose,
.trait-preview[data-preview-trait="chin"] .avatar-v2-layer--chin,
.trait-preview[data-preview-trait="mouth"] .avatar-v2-layer--mouth,
.trait-preview[data-preview-trait="lipShape"] .avatar-v2-layer--mouth,
.trait-preview[data-preview-trait="facialHair"] .avatar-v2-layer--facial-hair,
.trait-preview[data-preview-trait="glasses"] .avatar-v2-layer--glasses { display: block; filter: var(--avatar-geometry-filter, brightness(1)) grayscale(1) brightness(.24) contrast(1.5) !important; }
.trait-preview[data-preview-trait="eyeShadow"] .avatar-v2-layer--eye-shadow,
.trait-preview[data-preview-trait="blush"] .avatar-v2-layer--blush,
.trait-preview[data-preview-trait="lipstick"] .avatar-v2-layer--mouth,
.trait-preview[data-preview-trait="lipstick"] .avatar-v2-layer--lipstick,
.trait-preview[data-preview-trait="lipShape"] .avatar-v2-layer--lipstick { display: block; }
.demo-dashboard .demo-full-list { min-width: 0; }
.demo-label { padding: 6px 11px; border-radius: 30px; color: #7d3040; background: var(--pink-soft); font-size: 10px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }

.auth-main { min-height: calc(100vh - 168px); display: grid; grid-template-columns: minmax(380px, 520px) minmax(320px, 1fr); align-items: center; gap: clamp(35px, 8vw, 120px); padding: 55px 7%; }
.auth-card { padding: clamp(26px, 5vw, 46px); border: 1px solid rgba(36,33,31,.12); border-radius: 30px; background: var(--paper); box-shadow: var(--shadow); }
.auth-intro h1, .auth-card > h1 { font-size: clamp(35px, 5vw, 53px); line-height: .98; letter-spacing: -2px; }
.auth-intro p, .auth-card > p { margin: 13px 0 24px; color: var(--muted); line-height: 1.5; }
.oauth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.oauth-button { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: white; text-decoration: none; font-size: 12px; font-weight: 800; }
.google-dot, .facebook-dot { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: white; background: #4285f4; font-weight: 900; }
.facebook-dot { background: #1877f2; font-family: Arial, sans-serif; }
.form-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #948b80; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }
.form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { display: grid; gap: 14px; }
.auth-form label, .quick-dialog label, .privacy-passphrase-card label { display: grid; gap: 6px; font-size: 11px; font-weight: 900; }
.auth-form input, .auth-form select, .quick-dialog input, .privacy-passphrase-card input, .settings-card select { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 13px; padding: 0 13px; color: var(--ink); background: white; outline: 0; }
.auth-form input:focus, .auth-form select:focus, .quick-dialog input:focus, .privacy-passphrase-card input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-field button { position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: #f5f0e5; cursor: pointer; }
.field-help { display: block; color: var(--muted); font-size: 10px; font-weight: 650; line-height: 1.35; }
.field-error { display: block; color: #8b2031; font-size: 11px; font-weight: 800; line-height: 1.35; }
.field-error[hidden] { display: none; }
.birth-date-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.birth-date-group legend { margin-bottom: 6px; padding: 0; font-size: 11px; font-weight: 900; }
.birth-date-group > .field-help { margin-bottom: 8px; }
.birth-date-selects { display: grid; grid-template-columns: minmax(68px,.8fr) minmax(78px,1fr) minmax(96px,1.2fr); gap: 8px; }
.birth-date-selects label { min-width: 0; }
.birth-date-selects label > span { color: var(--muted); font-size: 9px; }
.birth-date-selects select { min-width: 0; padding-inline: 9px 25px; }
.birth-date-group[aria-invalid="true"] select { border-color: #ef9aa6; }
.check-label { display: grid !important; grid-template-columns: 20px 1fr; align-items: start; gap: 8px !important; color: var(--muted); font-weight: 600 !important; line-height: 1.4; }
.check-label input { width: 18px; height: 18px; margin: 0; accent-color: var(--pink); }
.check-label a { color: var(--ink); }
.form-error { padding: 10px 12px; border: 1px solid #ef9aa6; border-radius: 11px; color: #8b2031; background: #fff0f2; font-size: 12px; font-weight: 700; }
.auth-switch { margin: 18px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.auth-switch a { color: #9e3043; font-weight: 900; }
.auth-promise { max-width: 530px; }
.auth-promise .lock-orbit { width: 92px; height: 92px; display: grid; place-items: center; margin-bottom: 25px; padding: 8px; border: 2px solid var(--ink); border-radius: 31px; background: var(--paper); box-shadow: 7px 7px 0 var(--ink); transform: rotate(-5deg); }
.auth-promise h2 { font-size: clamp(42px, 6vw, 73px); line-height: .94; letter-spacing: -3px; }
.auth-promise p { max-width: 480px; color: #604c16; font-size: 15px; line-height: 1.6; }
.promise-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.promise-pills span { padding: 7px 11px; border-radius: 20px; background: rgba(255,255,255,.42); color: #5a4713; font-size: 10px; font-weight: 900; }
.compact-auth { grid-template-columns: minmax(300px, 520px); justify-content: center; }

.app-welcome { padding-top: 38px; }
.app-welcome h1 { font-size: clamp(38px, 5vw, 58px); }
.app-title-group { display: flex; align-items: center; gap: 20px; }
.self-avatar-button { display: grid; justify-items: center; gap: 5px; flex-shrink: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.self-avatar-button .generated-avatar { width: 88px; height: 88px; border-radius: 28px; transition: transform .16s ease; }
.self-avatar-button:hover .generated-avatar { transform: rotate(-3deg) translateY(-2px); }
.self-avatar-button small { display: inline-flex; align-items: center; gap: 2px; color: #675114; font-size: 9px; font-weight: 900; }
.self-avatar-button small .micro-cartoon-icon { width: 18px; height: 18px; }
.vault-state { padding: 5px 10px; border-radius: 20px; background: var(--mint-soft); color: #186347; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .7px; }
.vault-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.vault-lock-button { min-height: 30px; padding: 5px 8px; border-radius: 10px; color: var(--ink); white-space: nowrap; }
.setup-card { position: relative; margin-bottom: 30px; padding: clamp(22px, 4vw, 42px); border: 1px solid rgba(36,33,31,.12); border-radius: 30px; background: var(--paper); box-shadow: var(--shadow); }
.setup-heading { max-width: 760px; margin-bottom: 25px; padding-inline-end: 145px; }
.setup-mascot { position: absolute; inset-inline-end: 32px; top: 24px; width: 128px; height: 118px; object-fit: contain; filter: drop-shadow(0 8px 7px rgba(36,33,31,.16)); animation: mascot-float 3.5s ease-in-out infinite; }
.setup-heading h2 { font-size: clamp(31px, 5vw, 48px); letter-spacing: -1.8px; }
.setup-heading > p { color: var(--muted); line-height: 1.55; }
.honesty-note { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; padding: 7px 12px; border-radius: 12px; color: #7d3040; background: var(--pink-soft); font-size: 12px; font-weight: 900; }
.weight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.weight-card { min-height: 142px; display: grid; grid-template-columns: 56px minmax(0,1fr) 110px; align-items: center; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 19px; background: #fffdf7; }
.weight-icon { width: 54px; height: 54px; display: grid; place-items: center; padding: 2px; border-radius: 16px; background: #fff2be; }
.weight-card h3, .privacy-passphrase-card h3 { margin: 0 0 5px; font-family: Nunito, sans-serif; font-size: 16px; }
.weight-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.weight-copy { min-width: 0; }
.weight-detail-toggle { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 0; border: 0; color: #755b13; background: transparent; font-size: 10px; font-weight: 900; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.detail-mode-badge { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; color: #837965; background: #eee9df; text-decoration: none; }
.detail-mode-badge.is-active { color: #196c4e; background: var(--mint-soft); }
.weight-picker { display: grid; grid-template-columns: 33px 1fr; align-items: center; gap: 6px; }
.weight-picker output { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--pink); font-family: Nunito, sans-serif; font-weight: 900; }
.weight-picker input { width: 100%; accent-color: var(--pink); }
.weight-picker input:disabled { cursor: not-allowed; filter: grayscale(1); opacity: .45; }
.weight-picker small { grid-column: 1 / 3; color: var(--muted); text-align: right; font-size: 9px; }
.personality-stage-manager { margin: 0 0 17px; padding: 18px; border: 1px solid #e6d9aa; border-radius: 21px; background: linear-gradient(145deg,#fff9de,#fffdf6); }
.stage-manager-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.stage-manager-heading h3 { margin: 2px 0 4px; font-family: Nunito,sans-serif; font-size: 23px; }
.stage-manager-heading p { max-width: 680px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.stage-count { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; color: #725713; background: var(--sun); font-size: 10px; font-weight: 900; }
.age-timeline { margin-top: 15px; }
.age-timeline-labels { display: flex; justify-content: space-between; margin-bottom: 5px; color: #725f2b; font-size: 9px; font-weight: 900; }
.age-track { min-height: 54px; display: flex; gap: 3px; padding: 4px; border-radius: 16px; background: #e9dfc8; }
.age-segment { min-width: 55px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 6px; border: 0; border-radius: 12px; color: #625a4c; background: #f7f2e7; cursor: pointer; }
.age-segment span { max-width: 100%; overflow: hidden; font-size: 9px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.age-segment small { font-size: 8px; }
.age-segment.is-active { color: #694d00; background: var(--sun); box-shadow: 0 2px 0 #d0a31d; }
.stage-tabs { display: flex; gap: 7px; margin-top: 9px; overflow-x: auto; scrollbar-width: thin; }
.stage-tab { min-width: 130px; flex: 1 0 130px; display: grid; gap: 2px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; text-align: left; cursor: pointer; }
.stage-tab strong { font-size: 10px; }.stage-tab small { color: var(--muted); font-size: 9px; }
.stage-tab.is-active { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.stage-controls { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; }
.stage-controls label { display: grid; gap: 4px; color: #685727; font-size: 9px; font-weight: 900; }
.stage-controls input { width: 120px; height: 39px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: white; }
.stage-controls .button { min-height: 39px; padding-block: 7px; }
.stage-remove { margin-left: auto; padding: 8px; border: 0; color: #a3384a; background: transparent; font-size: 10px; font-weight: 900; text-decoration: underline; cursor: pointer; }
.stage-feedback { min-height: 14px; margin-top: 5px; color: #a3384a; font-size: 10px; font-weight: 800; }
.weight-subpanel { grid-column: 1 / -1; margin: 5px -4px -4px; padding: 14px; border-radius: 15px; background: #f5efe2; }
.detail-question { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.detail-question strong { font-size: 12px; }.detail-question p { margin-top: 3px; }
.detail-switch { flex: 0 0 auto; cursor: pointer; }
.detail-switch input { position: absolute; opacity: 0; pointer-events: none; }
.detail-switch > span { width: 92px; height: 37px; display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 3px; border-radius: 12px; background: #dad3c6; }
.detail-switch b { width: 100%; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #776f63; font-size: 9px; }
.detail-switch input:not(:checked) + span b:first-child, .detail-switch input:checked + span b:last-child { color: white; background: var(--ink); }
.subparameter-list { display: grid; gap: 7px; }
.subparameter-list.is-disabled { filter: grayscale(1); opacity: .5; }
.subparameter-row { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(145px,.55fr); align-items: center; gap: 12px; padding: 9px 10px; border: 1px solid rgba(36,33,31,.09); border-radius: 12px; background: rgba(255,255,255,.72); }
.subparameter-row > span:first-child { min-width: 0; display: grid; gap: 3px; }
.subparameter-row strong { font-size: 10px; }.subparameter-row small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.subparameter-control { display: grid; grid-template-columns: 1fr 34px; align-items: center; gap: 7px; }
.subparameter-control input { min-width: 0; width: 100%; accent-color: var(--pink); }
.subparameter-control output { font-family: Nunito,sans-serif; font-size: 12px; font-weight: 900; text-align: right; }
.subparameter-row.is-locked { background: #edf7f2; }.subparameter-row.is-safety { border-color: #80c2a7; }
.privacy-passphrase-card { display: grid; grid-template-columns: 1fr minmax(280px, .7fr); align-items: center; gap: 30px; margin-top: 22px; padding: 22px; border-radius: 21px; color: white; background: var(--ink); }
.privacy-passphrase-card .eyebrow { color: var(--sun); }
.privacy-passphrase-card h3 { font-size: 22px; }
.privacy-passphrase-card p { margin: 5px 0 0; color: #d2ccc5; font-size: 12px; line-height: 1.5; }
.privacy-passphrase-card label { color: white; }
.privacy-passphrase-card small { color: #bbb3ab; font-weight: 500; }
.passphrase-fields { display: grid; gap: 10px; }
.automatic-key-card { grid-template-columns: minmax(0, 1fr) auto; }
.automatic-key-chip { display: inline-flex; align-items: center; justify-content: center; max-width: 260px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.19); border-radius: 999px; color: #fff8dc; background: rgba(255,255,255,.08); font-size: 11px; font-weight: 900; line-height: 1.25; text-align: center; }
.setup-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 15px; }
.setup-submit { min-width: 190px; margin: 20px 0 0 auto; display: flex; }

.empty-state { min-height: 285px; display: grid; place-items: center; align-content: center; padding: 25px; text-align: center; }
.empty-cartoon-icon { width: 76px; height: 76px; object-fit: contain; }
.empty-mascot { width: 112px; height: 98px; object-fit: contain; filter: drop-shadow(0 7px 6px rgba(36,33,31,.13)); animation: mascot-float 3.7s ease-in-out infinite; }
.empty-state h3 { margin: 10px 0 3px; font-family: Nunito, sans-serif; font-size: 22px; }
.empty-state p { max-width: 360px; margin: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.ad-slot { margin-top: 18px; padding: 11px; border: 1px dashed #bdb5a8; border-radius: 13px; color: #8b8378; background: #faf8f2; text-align: center; }
.ad-slot span { display: block; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .8px; }
.ad-slot small { font-size: 9px; }
.adsbygoogle { display: block; min-height: 70px; }
.consent-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; }
.consent-switch input { width: 38px; height: 20px; accent-color: var(--pink); }
.detail-placeholder { min-height: 440px; display: grid; place-items: center; align-content: center; text-align: center; }
.detail-placeholder-icon { width: 72px; height: 72px; object-fit: contain; }
.detail-placeholder-mascot { width: 124px; height: 108px; object-fit: contain; filter: drop-shadow(0 7px 6px rgba(36,33,31,.13)); }
.detail-placeholder h3 { margin: 7px 0 3px; font-family: Nunito, sans-serif; font-size: 22px; }
.detail-placeholder p { max-width: 250px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.detail-actions { display: flex; gap: 7px; }
.detail-actions .button { flex: 1; }
.detail-actions button:last-child { min-width: 45px; flex: 0; }
.detail-actions .icon-only-button { display: grid; place-items: center; padding: 6px; }

.vault-dialog, .rating-dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100vh - 28px); overflow: auto; border: 1px solid rgba(36,33,31,.15); border-radius: 29px; color: var(--ink); background: var(--paper); box-shadow: 0 30px 100px rgba(36,33,31,.34); }
.vault-dialog::backdrop, .rating-dialog::backdrop, .quick-dialog::backdrop { background: rgba(47,38,18,.44); backdrop-filter: blur(5px); }
.vault-dialog { width: min(430px, calc(100% - 24px)); padding: 35px; text-align: center; }
.vault-dialog form { display: grid; gap: 13px; }
.vault-dialog .vault-lock { width: 72px; height: 72px; justify-self: center; }
.vault-dialog h2, .rating-dialog h2 { margin: 0; font-size: 30px; }
.vault-dialog p { margin: 0 0 7px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.vault-dialog label:not(.check-label) { display: grid; gap: 5px; text-align: left; font-size: 11px; font-weight: 900; }
.vault-dialog input[type="password"], .vault-dialog input[type="text"] { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 13px; padding: 0 13px; background: white; outline: 0; }
.vault-dialog input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.compact-check { justify-self: start; }
.vault-warning { color: var(--muted); line-height: 1.4; }
.recovery-dialog { width: min(520px, calc(100% - 24px)); text-align: center; }
.recovery-dialog .vault-lock { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 8px; }
.recovery-dialog .vault-lock .cartoon-icon { width: 58px; height: 58px; }
.recovery-dialog .eyebrow { display: block; }
.recovery-code { display: block; margin: 19px 0 14px; padding: 16px 13px; border: 2px dashed #d1a42b; border-radius: 15px; color: var(--ink); background: #fff5cb; font: 900 14px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.recovery-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.recovery-dialog .check-label { grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 9px; margin: 18px 0; text-align: left; line-height: 1.45; }
.recovery-dialog .check-label input { width: 20px; height: 20px; margin: 0; accent-color: var(--pink); }
.recovery-dialog [data-close-recovery]:disabled { cursor: not-allowed; filter: grayscale(.45); opacity: .52; }

.quick-dialog.ex-editor { width: min(690px, calc(100% - 24px)); max-height: calc(100vh - 28px); overflow-x: hidden; overflow-y: auto; }
.ex-basics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ex-basics label { min-width: 0; }
.ex-basics select { width: 100%; height: 49px; border: 1px solid var(--line); border-radius: 13px; padding: 0 12px; color: var(--ink); background: white; outline: 0; }
.ex-basics select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.avatar-workshop { display: grid; grid-template-columns: minmax(140px, 170px) minmax(0, 1fr); gap: 22px; margin: 18px 0; padding: 18px; border-radius: 20px; background: #fff4d5; }
.avatar-preview { display: grid; place-items: center; align-content: center; gap: 7px; }
.avatar-preview small { color: #725b1c; font-size: 9px; font-weight: 800; }
.avatar-controls { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.avatar-controls fieldset { min-width: 0; margin: 0; padding: 8px; border: 1px solid rgba(36,33,31,.12); border-radius: 12px; }
.avatar-controls .palette-wide { grid-column: 1 / -1; }
.avatar-controls legend { padding: 0 4px; font-size: 9px; font-weight: 900; }
.avatar-controls label { min-width: 0; display: grid; gap: 4px; margin: 0; font-size: 9px; font-weight: 900; }
.avatar-controls select { width: 100%; min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; color: var(--ink); background: white; font-size: 11px; }
.self-avatar-dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); padding: clamp(24px, 4vw, 34px); overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; }
.self-avatar-dialog > p { max-width: 620px; margin: 10px 42px 0 0; }
.self-avatar-editor { display: grid; grid-template-columns: minmax(170px, .72fr) minmax(0, 1.55fr); align-items: stretch; gap: 22px; margin: 20px 0; padding: 20px; border-radius: 22px; background: #fff4d5; }
.self-avatar-preview { min-width: 0; min-height: 230px; display: grid; place-items: center; border: 1px solid rgba(36,33,31,.08); border-radius: 18px; background: rgba(255,255,255,.34); }
.self-avatar-preview .generated-avatar { width: clamp(148px, 18vw, 184px); height: clamp(148px, 18vw, 184px); border-radius: 30%; }
.self-avatar-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 12px; }
.self-avatar-controls fieldset { padding: 10px; }
.self-avatar-controls legend, .self-avatar-controls label { font-size: 10px; }
.self-avatar-controls select { height: 42px; padding-inline: 10px 30px; font-size: 12px; }
.self-avatar-controls .self-background-control { grid-column: 1 / -1; }
.self-avatar-controls .swatches { flex-wrap: wrap; }
.self-avatar-controls .swatches button { width: 28px; height: 28px; }
.self-avatar-save { position: sticky; z-index: 2; bottom: 0; margin-top: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.swatches button { width: 24px; height: 24px; border: 2px solid white; border-radius: 50%; outline: 1px solid rgba(36,33,31,.2); background: var(--swatch); cursor: pointer; }
.swatches button.selected { outline: 3px solid var(--pink); }

.generated-avatar { --avatar-skin:#f6d1b2; --avatar-hair:#241b19; --avatar-bg:#bde5ef; width: 58px; height: 58px; position: relative; display: inline-block; overflow: hidden; border-radius: 20px; background: var(--avatar-bg); }
.generated-avatar.size-large { width: 128px; height: 128px; border-radius: 39px; box-shadow: 0 8px 0 rgba(36,33,31,.12); }
.avatar-v2-layers { display: none; position: absolute; z-index: 8; inset: 0; opacity: 0; }
.avatar-renderer-v2 .avatar-v2-layers { display: block; }
.avatar-renderer-v2-ready > .avatar-v2-layers { opacity: 1; }
.avatar-renderer-v2 > .avatar-hair,
.avatar-renderer-v2 > .avatar-head,
.avatar-renderer-v2 > .avatar-neck { display: none; }
.avatar-v2-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.avatar-v2-base-mask--soft-waves {
    -webkit-mask-image: linear-gradient(#fff, #fff), url('../avatars/v2/base/masks/base-clip-mask--soft-waves--v014.png');
    -webkit-mask-composite: xor;
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image: linear-gradient(#fff, #fff), url('../avatars/v2/base/masks/base-clip-mask--soft-waves--v014.png');
    mask-composite: exclude;
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}
.avatar-v2-base-mask--short-sculpted {
    -webkit-mask-image: linear-gradient(#fff, #fff), url('../avatars/v2/base/masks/base-clip-mask--short-sculpted--v014.png');
    -webkit-mask-composite: xor;
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image: linear-gradient(#fff, #fff), url('../avatars/v2/base/masks/base-clip-mask--short-sculpted--v014.png');
    mask-composite: exclude;
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}
.avatar-v2-base-mask--soft-curls {
    -webkit-mask-image: linear-gradient(#fff, #fff), url('../avatars/v2/base/masks/base-clip-mask--soft-curls--v014.png');
    -webkit-mask-composite: xor;
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image: linear-gradient(#fff, #fff), url('../avatars/v2/base/masks/base-clip-mask--soft-curls--v014.png');
    mask-composite: exclude;
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}
.avatar-head { position: absolute; z-index: 2; left: 17%; top: 18%; width: 66%; height: 77%; border-radius: 46% 46% 42% 42%; background: var(--avatar-skin); }
.avatar-neck { position: absolute; z-index: 1; left: 37%; bottom: -7%; width: 26%; height: 33%; border-radius: 10px; background: var(--avatar-skin); }
.avatar-hair { position: absolute; z-index: 4; left: 11%; top: 6%; width: 78%; height: 42%; border-radius: 52% 52% 31% 28%; background: var(--avatar-hair); transform: rotate(-4deg); }
.generated-avatar.hair-short .avatar-hair { height: 31%; border-radius: 60% 45% 25% 20%; }
.generated-avatar.hair-curls .avatar-hair { left: 4%; top: -2%; width: 92%; height: 53%; border-radius: 50% 50% 38% 38%; background: radial-gradient(circle at 12% 40%, var(--avatar-hair) 0 13%, transparent 14%), radial-gradient(circle at 34% 18%, var(--avatar-hair) 0 17%, transparent 18%), radial-gradient(circle at 58% 18%, var(--avatar-hair) 0 18%, transparent 19%), radial-gradient(circle at 84% 38%, var(--avatar-hair) 0 16%, transparent 17%), var(--avatar-hair); }
.generated-avatar.hair-bob .avatar-hair { left: 5%; top: 4%; width: 90%; height: 72%; border-radius: 48% 48% 35% 35%; }
.avatar-head i { position: absolute; z-index: 5; top: 43%; width: 8%; height: 9%; border-radius: 50%; background: var(--ink); }
.avatar-head i:first-child { left: 25%; }.avatar-head i:nth-child(2) { right: 25%; }
.generated-avatar.eyes-round .avatar-head i { width: 12%; height: 13%; top: 40%; }
.generated-avatar.eyes-wink .avatar-head i:first-child { height: 2px; top: 47%; border-radius: 0; }
.avatar-head b { position: absolute; left: 39%; top: 69%; width: 22%; height: 9%; border-bottom: 2px solid #9d4c57; border-radius: 0 0 20px 20px; }
.generated-avatar.mouth-calm .avatar-head b { height: 0; border-radius: 0; }
.generated-avatar.mouth-grin .avatar-head b { height: 14%; background: white; border: 1px solid #9d4c57; border-radius: 0 0 50% 50%; }
.generated-avatar.size-large .avatar-head b { border-bottom-width: 3px; }

.rating-dialog { width: min(980px, calc(100% - 24px)); padding: 30px; }
.rating-heading { display: grid; grid-template-columns: 70px minmax(0,1fr) 70px auto; align-items: center; gap: 14px; margin-bottom: 19px; }
.rating-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.rating-mascot { width: 70px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 5px rgba(36,33,31,.15)); animation: mascot-cheer 2.8s ease-in-out infinite; }
.live-average { min-width: 100px; padding: 12px; border-radius: 17px; background: var(--sun); text-align: center; }
.live-average strong { display: block; font-family: Nunito, sans-serif; font-size: 31px; line-height: 1; }
.live-average span { color: #725b14; font-size: 10px; font-weight: 800; }
.rating-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rating-row { min-height: 94px; display: grid; grid-template-columns: 45px minmax(92px, .8fr) minmax(205px, 1.5fr) 48px; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.48); }
.rating-row.is-eve { border-color: #e7aa21; background: linear-gradient(135deg,#fffdf6,#fff2bd); box-shadow: inset 0 0 0 1px rgba(255,204,51,.28); }
.rating-row .parameter-icon { width: 44px; height: 44px; }
.rating-label { display: grid; }
.rating-label strong { font-size: 14px; line-height: 1.2; }.rating-label small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.rating-control { min-width: 0; display: grid; grid-template-columns: minmax(145px,1fr) 50px; align-items: center; gap: 7px; }
.range-shell { position: relative; min-width: 160px; height: 49px; display: grid; grid-template-rows: 35px 12px; gap: 2px; }
.range-shell input { position: absolute; z-index: 4; inset: 0 0 12px; width: 100%; height: 35px; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.stars { --zero-position: 0%; --star-size: 27px; position: relative; display: block; height: 35px; border-radius: 9px; color: #f4ead4; font-size: var(--star-size); font-weight: 900; line-height: 35px; pointer-events: none; transition: transform .1s ease; }
.stars::after { content: ""; position: absolute; z-index: 0; left: calc(var(--star-size) * .35); right: calc(var(--star-size) * .35); top: 50%; height: 4px; border-radius: 5px; background: #dfd5bf; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); transform: translateY(-50%); }
.star-units { position: relative; z-index: 1; height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 0; }
.star-unit { position: relative; flex: 0 0 auto; color: #f5ead1; font-style: normal; line-height: 1; -webkit-text-stroke: 1.2px #6c5a3d; paint-order: stroke fill; text-shadow: 0 2px 0 rgba(88,62,26,.14); transform-origin: center; }
.star-unit::before { content: '★'; position: absolute; inset: 0; width: 0; overflow: hidden; color: var(--sun-deep); }
.star-unit.is-full::before { width: 100%; }
.star-unit.is-half::before { width: 50%; }
.range-shell.is-negative .star-unit::before { color: #c33f56; }
.star-unit.is-boing { animation: star-boing .36s cubic-bezier(.2,.88,.28,1.35); }
.zero-tick { display: none; position: absolute; z-index: 2; top: 4px; bottom: 4px; left: var(--zero-position); width: 2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 1px white; transform: translateX(-1px); }
.range-shell.has-zero .zero-tick { display: block; }
.range-shell input:focus-visible + .stars { outline: 3px solid rgba(71,118,230,.35); outline-offset: 3px; }
.range-shell input:active + .stars { transform: scale(1.03); }
.score-range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 900; line-height: 12px; pointer-events: none; }
.rating-row > output { font-family: Nunito, sans-serif; font-size: 16px; font-weight: 900; text-align: right; white-space: nowrap; }
.eve-button { position: relative; width: 50px; height: 54px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 15px; color: #b5aa98; background: #eee7d9; cursor: pointer; transition: transform .16s ease,filter .16s ease; }
.eve-button > span { font-size: 42px; line-height: 1; -webkit-text-stroke: 1.2px #65502b; paint-order: stroke fill; }
.eve-button > i { position: absolute; top: 18px; color: #4b3c25; font: 900 8px/1 Inter,sans-serif; letter-spacing: -1px; }
.eve-button > small { position: absolute; bottom: 2px; color: #665a47; font-size: 7px; font-weight: 1000; letter-spacing: .4px; }
.eve-button:hover,.eve-button:focus-visible { outline: 0; filter: brightness(1.04); transform: translateY(-2px) rotate(-3deg); }
.eve-button.is-active { color: var(--sun); background: #fff3b9; box-shadow: 0 0 0 3px rgba(255,204,51,.38); animation: star-boing .46s cubic-bezier(.2,.88,.28,1.35); }
.rating-detail-toggle { grid-column: 2 / 5; justify-self: start; padding: 2px 0; border: 0; color: #735b19; background: transparent; font-size: 9px; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rating-subpanel { grid-column: 1 / -1; width: 100%; padding: 10px; border-radius: 14px; background: #f4eee2; }
.rating-subpanel .subparameter-row { grid-template-columns: minmax(0,1fr) minmax(140px,.55fr); }
.analysis-inputs { display: grid; grid-template-columns: minmax(0,1fr) minmax(230px,.65fr); align-items: center; gap: 12px; margin-top: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff9e8; }
.analysis-inputs > label:first-child { display: grid; gap: 6px; color: #665522; font-size: 10px; font-weight: 900; }
.analysis-inputs > label:first-child > span { display: grid; grid-template-columns: 1fr 38px; align-items: center; gap: 8px; }
.analysis-inputs input[type="range"] { width: 100%; accent-color: var(--pink); }
.analysis-inputs output { font-family: Nunito,sans-serif; font-size: 13px; font-weight: 900; }
.analysis-inputs .check-label { display: grid; grid-template-columns: 21px minmax(0,1fr); align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.analysis-inputs .check-label input { width: 19px; height: 19px; margin: 0; accent-color: var(--pink); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.danger-button { color: white; background: #ac3144; }
.confetti-piece { position: fixed; z-index: 100; left: 50%; top: 48%; width: 9px; height: 15px; border-radius: 3px; pointer-events: none; animation: confetti-pop .9s ease-out forwards; }
@keyframes confetti-pop { from { opacity: 1; transform: translate(0,0) rotate(0); } to { opacity: 0; transform: translate(var(--x), 190px) rotate(var(--r)); } }
@keyframes star-boing { 0% { transform: scale(1); } 42% { transform: scale(1.5) rotate(-7deg); } 72% { transform: scale(.88) rotate(3deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes mascot-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1.5deg); } }
@keyframes mascot-cheer { 0%, 100% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-4px) rotate(-3deg) scale(1.03); } 60% { transform: translateY(-2px) rotate(3deg) scale(1.02); } }

.mobile-nav { display: none; }
.subpage-main { min-height: calc(100vh - 170px); padding: 60px 3% 30px; }
.page-intro { max-width: 760px; margin-bottom: 35px; }
.page-intro.centered { margin-inline: auto; text-align: center; }
.page-intro h1 { font-size: clamp(43px, 7vw, 70px); line-height: .95; }
.page-intro p { max-width: 650px; color: #644f16; font-size: 15px; line-height: 1.55; }
.invite-grid { display: grid; grid-template-columns: 1.4fr .65fr; gap: 17px; }
.share-card, .referral-stats, .plan-card, .settings-card, .admin-card { border: 1px solid rgba(36,33,31,.12); border-radius: 25px; background: var(--paper); box-shadow: var(--shadow); }
.share-card { position: relative; padding: 34px; }
.share-card h2 { font-size: 29px; }.share-card > p { color: var(--muted); line-height: 1.55; }
.gift-badge { position: absolute; right: 26px; top: -21px; width: 61px; height: 61px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 21px; color: white; background: var(--pink); box-shadow: 5px 5px 0 var(--ink); font-family: Nunito, sans-serif; font-size: 23px; font-weight: 900; transform: rotate(6deg); }
.share-card label { display: grid; gap: 7px; margin-top: 25px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .7px; }
.copy-field { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.copy-field input { min-width: 0; height: 48px; border: 1px solid var(--line); border-radius: 13px; padding: 0 13px; background: #f8f5ed; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.share-buttons a, .share-buttons button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; text-decoration: none; font-size: 11px; font-weight: 800; cursor: pointer; }
.referral-stats { display: grid; align-content: center; padding: 31px; color: white; background: var(--ink); }
.referral-stats > span { color: var(--sun); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }.referral-stats > strong { font-family: Nunito, sans-serif; font-size: 38px; letter-spacing: 3px; }.referral-stats div { margin-top: 25px; display: grid; gap: 8px; }.referral-stats p { display: flex; justify-content: space-between; margin: 0; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.15); color: #c8c2bb; font-size: 11px; }.referral-stats b { color: white; }
.plans-grid { max-width: 820px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 0 auto; }
.plan-card { position: relative; padding: 32px; }.premium-card { color: white; background: var(--ink); transform: translateY(-8px) rotate(.5deg); }.plan-name { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }.plan-price { display: grid; margin: 13px 0 22px; }.plan-price strong { font-family: Nunito, sans-serif; font-size: 48px; line-height: 1; }.plan-price small { color: var(--muted); }.premium-card .plan-price small { color: #bbb4ac; }.plan-card ul { min-height: 185px; display: grid; gap: 10px; padding: 0; list-style: none; }.plan-card li { font-size: 12px; }.plan-card li::before { content: "✓"; margin-right: 8px; color: var(--mint); font-weight: 900; }.premium-card li::before { color: var(--sun); }.popular-badge { position: absolute; right: 18px; top: 17px; padding: 6px 9px; border-radius: 20px; color: var(--ink); background: var(--sun); font-size: 9px; font-weight: 900; text-transform: uppercase; }.plan-actions { display: grid; gap: 8px; }.billing-note { color: #6c5618; text-align: center; font-size: 10px; }
.settings-grid { display: grid; gap: 11px; }.settings-card { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 17px; padding: 20px; }.settings-icon { width: 58px; height: 58px; display: grid; place-items: center; padding: 2px; border-radius: 17px; background: #fff1bf; }.settings-card h2 { font-size: 17px; }.settings-card p { max-width: 650px; margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }.settings-card select { width: 210px; }.danger-card { border-color: #efbac2; }.settings-feedback { margin-top: 12px; }

.legal-main { min-height: calc(100vh - 170px); padding: 55px 8%; }.legal-main article { max-width: 880px; margin: 0 auto; padding: clamp(24px, 5vw, 56px); border-radius: 29px; background: var(--paper); box-shadow: var(--shadow); }.legal-main h1 { font-size: clamp(42px, 7vw, 68px); }.legal-lead { color: #6b5415; font-size: 18px; line-height: 1.55; }.legal-index { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0; }.legal-index a { padding: 6px 10px; border-radius: 20px; color: var(--ink); background: #fff1bf; font-size: 10px; font-weight: 800; text-decoration: none; }.legal-main section { padding: 20px 0; border-top: 1px solid var(--line); }.legal-main section h2 { font-size: 21px; }.legal-main section p { color: #625d56; font-size: 13px; line-height: 1.7; }.legal-main aside { padding: 14px; border-radius: 13px; background: var(--pink-soft); font-size: 12px; line-height: 1.5; }
.center-message { min-height: calc(100vh - 168px); display: grid; place-items: center; align-content: center; padding: 30px; text-align: center; }.message-emoji { font-size: 60px; }.center-message h1 { font-size: clamp(42px, 8vw, 72px); }.center-message p { max-width: 540px; color: #67521a; line-height: 1.6; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }.metric-grid article { padding: 19px; border: 1px solid rgba(36,33,31,.11); border-radius: 20px; background: rgba(255,255,255,.6); }.metric-grid span, .metric-grid small { display: block; color: #715b1c; font-size: 10px; }.metric-grid strong { display: block; margin: 4px 0; font-family: Nunito, sans-serif; font-size: 32px; }.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 13px; }.admin-card { padding: 23px; }.admin-card table { width: 100%; border-collapse: collapse; font-size: 11px; }.admin-card th, .admin-card td { padding: 9px; border-bottom: 1px solid var(--line); text-align: left; }.language-bars { display: grid; gap: 11px; }.language-bars > div { display: grid; grid-template-columns: 34px 1fr 25px; align-items: center; gap: 8px; font-size: 10px; }.language-bars i { height: 7px; overflow: hidden; border-radius: 8px; background: #eee9dd; }.language-bars b { display: block; height: 100%; border-radius: inherit; background: var(--pink); }.growth-card { grid-column: 1 / 3; }.growth-bars { height: 160px; display: grid; grid-template-columns: repeat(14, minmax(22px, 1fr)); align-items: end; gap: 7px; padding-top: 20px; }.growth-bars > span { min-width: 0; height: 130px; display: grid; grid-template-rows: 18px 1fr 18px; align-items: end; justify-items: center; gap: 3px; }.growth-bars b, .growth-bars small { color: var(--muted); font-size: 8px; }.growth-bars i { width: min(100%, 24px); min-height: 2px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--pink), #dc3f58); }.admin-privacy-note { display: flex; gap: 10px; margin-top: 13px; padding: 14px; border-radius: 15px; background: var(--mint-soft); font-size: 11px; }
.user-usage-card { grid-column: 1 / 3; }.privacy-chip { padding: 6px 9px; border-radius: 20px; color: #176047; background: var(--mint-soft); font-size: 9px; font-weight: 900; }.table-scroll { overflow-x: auto; }.user-usage-card td:first-child strong, .user-usage-card td:first-child small { display: block; }.user-usage-card td:first-child small { color: var(--muted); font-size: 9px; }

footer form, footer button { display: inline; margin: 0; padding: 0; border: 0; color: inherit; background: none; font-size: inherit; text-decoration: underline; cursor: pointer; }
html[dir="rtl"] .eyebrow, html[dir="rtl"] .ex-row, html[dir="rtl"] .detail-card { text-align: right; }
html[dir="rtl"] .locale-picker select { padding-right: 12px; padding-left: 27px; background-position: left 11px center; }
html[dir="rtl"] .locale-options { right: auto; left: 0; }
html[dir="rtl"] .flag-icon { right: 11px; left: auto; }
html[dir="rtl"] .plan-card li::before { margin-right: 0; margin-left: 8px; }

@media (max-width: 1000px) {
    .desktop-nav { display: none; }
    .home-hero { min-height: 0; flex-direction: column; align-items: stretch; }
    .home-hero-copy { flex-basis: auto; }
    .hero-art { width: 100%; max-width: 720px; }
    .auth-main { grid-template-columns: minmax(300px, 560px); justify-content: center; }
    .auth-promise { display: none; }
    .weight-grid { grid-template-columns: 1fr; }
    .invite-grid { grid-template-columns: 1fr; }
    .referral-stats { min-height: 260px; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .admin-grid { grid-template-columns: 1fr; }
    .growth-card, .user-usage-card { grid-column: 1; }
    .insights-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .header-login, .top-actions > .button, .app-page .language-form { display: none; }
    .home-hero { padding-top: 34px; }
    .home-hero-copy .hero-description-card { width: 100%; padding: 12px 14px; }
    .hero-art > .hero-cover-image { height: 280px; }
    .auth-main { padding: 28px 0; }
    .auth-card { padding: 25px 19px; }
    .oauth-grid { grid-template-columns: 1fr; }
    .app-welcome { padding-bottom: 17px; }
    .app-welcome .welcome-actions { position: fixed; z-index: 35; right: 14px; bottom: 79px; width: auto; display: flex; gap: 9px; }
    .app-welcome .button-primary, .app-welcome .button-ghost { flex: 0 0 54px; width: 54px; height: 54px; padding: 0; overflow: hidden; border-radius: 19px; font-size: 0; }
    .app-welcome .button-primary span { font-size: 25px; }
    .app-welcome .button-ghost { display: inline-flex; flex-basis: auto; width: auto; padding: 0 12px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 0 5px 0 rgba(36,33,31,.25); font-size: 11px; white-space: nowrap; }
    .app-welcome .button-ghost .inline-cartoon-icon { width: 29px; height: 29px; }
    .mobile-nav + footer { padding-bottom: 95px; }
    .mobile-nav { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: 8px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: rgba(36,33,31,.94); box-shadow: 0 12px 45px rgba(36,33,31,.35); backdrop-filter: blur(8px); }
    .mobile-nav a { display: grid; place-items: center; gap: 1px; padding: 3px 5px; border-radius: 13px; color: #c7c0b8; text-decoration: none; }.mobile-nav a .cartoon-icon { width: 29px; height: 29px; }.mobile-nav a span { font-size: 8px; font-weight: 800; }.mobile-nav a.active { color: var(--sun); background: rgba(255,255,255,.07); }
    .setup-heading { padding-inline-end: 105px; }.setup-mascot { inset-inline-end: 18px; top: 22px; width: 94px; height: 88px; }.weight-card { grid-template-columns: 48px minmax(0,1fr); column-gap: 15px; }.weight-icon { width: 46px; height: 46px; }.weight-picker { grid-column: 1 / 3; }.privacy-passphrase-card { grid-template-columns: 1fr; }.automatic-key-chip { width: 100%; max-width: none; }.setup-actions { flex-direction: column-reverse; }.setup-actions .button { width: 100%; }
    .avatar-workshop { grid-template-columns: 1fr; }.avatar-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .self-avatar-dialog { width: min(640px, calc(100% - 20px)); }
    .self-avatar-editor { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
    .self-avatar-preview { min-height: 164px; }
    .self-avatar-preview .generated-avatar { width: 148px; height: 148px; }
    .rating-dialog { width: calc(100% - 20px); max-width: 980px; padding: 21px 13px; }.rating-heading { grid-template-columns: 52px minmax(0,1fr) 46px; gap: 9px; }.rating-heading > div:not(.live-average) { min-width: 0; }.rating-heading h2 { overflow-wrap: anywhere; }.rating-mascot { width: 46px; height: 46px; }.live-average { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; display: flex; justify-content: center; gap: 4px; align-items: baseline; }.rating-rows { grid-template-columns: 1fr; }.rating-row { grid-template-columns: 45px minmax(108px, 1fr) minmax(215px, 1.15fr) 48px; }
    .plans-grid { grid-template-columns: 1fr; }.premium-card { transform: none; }.settings-card { grid-template-columns: 48px 1fr; }.settings-card > :last-child { grid-column: 1 / 3; width: 100%; }.settings-card select { width: 100%; }
    .legal-main { padding: 30px 0; }.legal-main article { border-radius: 23px; }
    .personality-stage-manager { padding: 14px; }
    .stage-manager-heading { display: grid; gap: 8px; }.stage-count { justify-self: start; }
}

@media (max-width: 430px) {
    .language-form { display: none; }
    .hero-art > .hero-cover-image { height: 220px; }
    .home-hero-copy .hero-description-card { border-radius: 14px; }
    .app-title-group { flex-wrap: wrap; gap: 12px; }
    .app-title-group > div { min-width: 0; flex-basis: 100%; }
    .self-avatar-button { display: grid; }
    .self-avatar-button .generated-avatar { width: 64px; height: 64px; border-radius: 20px; }
    .self-avatar-dialog { width: calc(100% - 12px); max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px); padding: 22px 14px 14px; border-radius: 22px; scrollbar-gutter: auto; }
    .self-avatar-dialog h2 { padding-right: 38px; font-size: 30px; line-height: 1; }
    .self-avatar-dialog > p { margin: 10px 0 0; font-size: 12px; }
    .self-avatar-dialog .dialog-close { top: 10px; right: 10px; }
    .self-avatar-editor { gap: 12px; margin: 14px 0; padding: 12px; border-radius: 17px; }
    .self-avatar-preview { min-height: 124px; border-radius: 14px; }
    .self-avatar-preview .generated-avatar { width: 118px; height: 118px; border-radius: 28%; }
    .self-avatar-controls { gap: 9px; }
    .self-avatar-controls fieldset { grid-column: 1 / -1; padding: 8px 10px 9px; }
    .self-avatar-controls .swatches { flex-wrap: nowrap; }
    .self-avatar-controls .swatches button { width: 27px; height: 27px; }
    .self-avatar-controls select { height: 40px; padding-inline: 8px 24px; font-size: 11px; }
    .self-avatar-save { min-height: 50px; }
    .setup-heading { padding-inline-end: 0; padding-top: 83px; }.setup-mascot { inset-inline-end: auto; left: 50%; top: 17px; width: 88px; height: 76px; transform: translateX(-50%); animation: none; }.weight-card { grid-template-columns: 44px minmax(0,1fr); column-gap: 13px; padding: 13px; }.weight-icon { width: 42px; height: 42px; }
    .rating-dialog { width: calc(100% - 12px); padding: 18px 10px 12px; }
    .rating-heading { grid-template-columns: 46px minmax(0,1fr) 40px; gap: 7px; }
    .rating-heading > .generated-avatar { width: 46px; height: 46px; }
    .rating-heading h2 { font-size: 24px; line-height: 1.02; }
    .rating-heading p { font-size: 11px; }
    .rating-mascot { width: 40px; height: 40px; }
    .live-average { box-sizing: border-box; padding: 10px; }
    .rating-row { grid-template-columns: 44px minmax(0, 1fr) 42px; gap: 7px; padding: 10px; }
    .rating-row > .parameter-icon { grid-column: 1; grid-row: 1 / 3; }
    .rating-label { grid-column: 2; grid-row: 1; }.rating-label small { display: block; font-size: 10px; }
    .rating-control { grid-column: 2 / 4; grid-row: 2; width: 100%; grid-template-columns: minmax(0,1fr) 48px; }
    .rating-row .range-shell { grid-column: auto; grid-row: auto; width: 100%; min-width: 0; }
    .rating-row > output { grid-column: 3; grid-row: 1; text-align: right; }
    .rating-detail-toggle { grid-column: 2 / 4; grid-row: 3; }
    .rating-subpanel { grid-column: 1 / 4; grid-row: 4; padding: 8px; }
    .rating-subpanel .subparameter-row { grid-template-columns: 1fr; }
    .analysis-inputs { grid-template-columns: 1fr; }
    .dialog-actions .button { flex: 1; }
    .metric-grid { grid-template-columns: 1fr; }
    .vault-dialog, .recovery-dialog { width: calc(100% - 12px); padding: 24px 15px; border-radius: 22px; }
    .recovery-actions { grid-template-columns: 1fr; }
    .stage-controls { align-items: stretch; flex-wrap: wrap; }.stage-controls label { flex: 1 1 110px; }.stage-controls input { width: 100%; }.stage-remove { width: 100%; margin-left: 0; text-align: left; }
    .age-segment span { display: none; }
    .subparameter-row { grid-template-columns: 1fr; }
    .detail-question { align-items: flex-start; flex-direction: column; }
    .detail-switch > span { width: 110px; }
    .insights-heading { display: grid; gap: 10px; }.evidence-chip { justify-self: start; }
    .relationship-insights { padding: 21px 15px; }
    .ex-basics { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .community-section { grid-template-columns: 1fr; }
    .review-grid { grid-template-columns: 1fr 1fr; }
    .private-review-card { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .self-avatar-controls .trait-picker-trigger { min-height: 40px; }
    .community-section, .reviews-section { padding: 20px 15px; border-radius: 23px; }
    .community-counters { grid-template-columns: 1fr 1fr; gap: 8px; }
    .community-counters article { padding: 15px 11px; border-radius: 17px; }
    .community-counters strong { font-size: clamp(25px,8.4vw,36px); letter-spacing: -1px; }
    .reviews-section > .section-copy { display: block; }
    .review-grid { grid-template-columns: 1fr; }
    .private-review-card { padding: 21px 15px; }
    .private-review-card form { grid-template-columns: 1fr; }
    .private-review-card label, .private-review-comment, .private-review-actions { grid-column: 1; }
    .private-review-actions { align-items: stretch; flex-direction: column; }
    .trait-picker-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 12px); padding: 21px 12px 12px; border-radius: 22px; }
    .trait-picker-dialog > p { margin-right: 36px; }
    .trait-picker-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; max-height: calc(100dvh - 180px); padding-right: 2px; }
    .trait-option { padding-inline: 5px; }
    .trait-preview { width: min(100%,112px); height: auto; aspect-ratio: 1; }
}
