/* Dimensions and hierarchy from the preserved SwiftUI screens (Design.swift,
   AuthView.swift, ContentView.swift, MemberViews.swift and SettingsView.swift).
   Only scroll panes move: the installed shell and keyboard viewport stay stable. */
:root{--form-background:#f2f2f7;--form-surface:#fff;--form-separator:rgba(60,60,67,.16)}
:root[data-theme=dark]{--form-background:#000;--form-surface:#1c1c1e;--form-separator:rgba(84,84,88,.65)}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--form-background:#000;--form-surface:#1c1c1e;--form-separator:rgba(84,84,88,.65)}}
.app-frame:not(.welcome-page){max-width:none}
.page-header{padding:24px;min-height:92px;background:var(--paper);gap:12px}
.page-header .logo{font-size:2.375rem;letter-spacing:-1.7px;font-weight:700;font-family:ui-rounded,-apple-system,BlinkMacSystemFont,sans-serif;white-space:nowrap}
.page-header .logo img{width:44px;height:44px}
.page-tag{font-size:.625rem;font-weight:600;letter-spacing:1.5px;line-height:1.2;padding:10px;white-space:nowrap}
.page-header.native-nav{min-height:60px;padding:8px 16px;position:relative;background:var(--paper);display:grid;grid-template-columns:minmax(65px,1fr) minmax(0,auto) minmax(65px,1fr);gap:4px}
.page-header.native-nav>strong{font-size:1.0625rem;font-weight:600;line-height:1.15;text-align:center;overflow-wrap:normal;max-width:240px}
.nav-trailing{justify-self:end;display:flex;align-items:center}
.page-header.native-nav>.back:only-child{grid-column:1}
.auth-page .native-nav{background:var(--paper);margin:0}
.auth-content{padding-top:12px;gap:26px;display:flex;flex-direction:column}
.auth-content>.logo{font-size:1.875rem;letter-spacing:-1.7px}
.auth-content>.logo img{height:36px;width:36px}
.native-auth-hero h1{font-size:2.25rem;font-family:ui-rounded,-apple-system,sans-serif;font-weight:600;line-height:1.2}
.native-auth-hero p{font-size:1rem;line-height:1.5}
.native-auth-form .button>.icon{width:18px;height:18px}
.native-auth-field>div{gap:12px;padding:16px;min-height:52px}
.native-auth-field>div>.icon{width:20px;height:20px;stroke-width:1.4}
.native-auth-card{gap:20px;padding:22px;border-radius:26px}
.native-auth-card .text-button{font-size:.9375rem;font-weight:600;min-height:26px;padding:4px 0}
.native-auth-footer{font-size:.75rem;gap:8px;justify-content:center}
.native-auth-footer>.icon{width:14px;height:14px}
.tabs{padding:7px 16px calc(7px + env(safe-area-inset-bottom));min-height:62px;border:0;background:var(--surface);gap:4px}
.tabs button{min-height:48px;font-size:.625rem;font-weight:500;gap:4px;justify-content:center;border-radius:28px}
.tabs button>.icon{height:25px;width:27px;stroke-width:1.6}
.tabs button.active{background:color-mix(in srgb,var(--lime) 25%,transparent);font-weight:600}
.scroll-page{scrollbar-width:none}
.scroll-page::-webkit-scrollbar{display:none}
.page-home .scroll-page,.page-conversations .scroll-page{padding:24px;display:flex;flex-direction:column;gap:24px}
.page-home .scroll-page>.page-header,.page-conversations .scroll-page>.page-header{padding:0;min-height:44px;margin:0}
.pull-refresh{flex-shrink:0}
.pull-refresh:empty{margin:0}
.page-home .pull-refresh,.page-conversations .pull-refresh{margin-bottom:-24px}
.home-greeting{display:flex;flex-direction:column;gap:8px}
.home-greeting h1{font-family:ui-rounded,-apple-system,sans-serif;font-size:1.875rem;font-weight:600;letter-spacing:0;margin:0}
.home-greeting p{margin:0;font-size:1rem;line-height:1.2}
.daily-card{padding:24px;border-radius:28px;gap:18px}
.daily-card.lime{gap:20px}
.daily-card>h2{font-size:1.375rem;line-height:1.25;font-weight:700;margin:0;letter-spacing:0}
.daily-card>p{font-size:.9375rem;line-height:1.5;margin:0}
.daily-card>small,.daily-card>.horizontal>small{font-size:.6875rem;font-weight:600;letter-spacing:0;display:flex;align-items:center;gap:6px}
.daily-card>.horizontal{gap:12px}
.daily-card.lime>.horizontal{gap:16px}
.daily-card.lime .avatar{width:64px;height:64px;font-size:1.875rem;background:white;color:#173B30}
.daily-card.lime h2{font-size:1.375rem;font-weight:700}
.daily-card.lime .horizontal small{font-size:1rem}
.daily-card:not(.lime) .avatar>.icon{width:24px;height:24px;stroke-width:1.4}
.daily-card>small>.icon{width:15px;height:15px}
.new-partner{margin-left:auto;font-size:.75rem;border-radius:99px;background:var(--ink);color:var(--on-ink);padding:5px 10px;letter-spacing:0}
.home-profile{display:flex;flex-direction:column;gap:16px}
.home-profile>.eyebrow{font-size:.75rem;letter-spacing:1.5px;margin:0;font-weight:600}
.completion{display:flex;flex-direction:column;gap:10px;font-size:.9375rem}
.completion .progress{height:4px}
.feature-card{background:var(--surface);border-radius:24px;padding:22px;text-align:left;display:flex;flex-direction:column;gap:12px;width:100%}
.feature-card>h3{display:flex;gap:12px;align-items:flex-start;font-size:1.25rem;font-weight:700;margin:0;line-height:1.2}
.feature-card>h3>.icon{margin-left:auto;width:18px;height:18px}
.feature-card>p{font-size:.9375rem;line-height:1.35;color:var(--muted);margin:0}
.feature-card>strong{font-size:.9375rem}
.page-home .setting-row{padding:12px 0;border:0;min-height:44px;font-size:.9375rem;font-weight:500;gap:12px}
.page-home .setting-row>.icon{width:18px;height:18px}
.page-home .setting-row>.chevron{width:12px;height:12px}
.page-home .footer-note{margin:0;padding:12px 0;gap:8px;font-size:.9375rem;line-height:1.6}
.footer-note>.icon{width:17px;height:17px}
.conversation-intro{font-size:1rem;line-height:1.2;margin:0}
.page-conversations .scroll-page{gap:20px;padding-left:8px;padding-right:8px}
.page-conversations .scroll-page>.page-header,.page-conversations .conversation-intro{margin-left:16px;margin-right:16px;width:auto;align-self:stretch}
.page-conversations .pull-refresh{margin-bottom:-20px}
.conversation-list{display:flex;flex-direction:column;gap:6px}
.conversation{border:0;background:var(--surface);border-radius:22px;padding:17px;gap:14px;align-items:flex-start;min-height:0;flex:0 0 auto}
.conversation.has-unread{background:var(--lime)}
.conversation.has-unread>.avatar{background:var(--surface)}
.conversation>.avatar{width:48px;height:48px;font-size:1.41rem}
.conversation .preview{display:flex;flex-direction:column;gap:6px}
.conversation-title{display:flex;align-items:center;gap:6px;line-height:1.2}
.conversation-title>strong{font-size:1.0625rem;font-weight:600;margin:0;flex:1}
.conversation-title>.icon{width:16px;height:16px}
.conversation-title>.chevron{width:12px;height:12px}
.conversation p{font-size:.9375rem;line-height:1.35;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.conversation.has-unread p{font-weight:600}
.conversation-meta{display:flex;justify-content:space-between;align-items:center;min-height:15px}
.conversation-meta>small{font-size:.75rem;line-height:1.2}
.unread{font-size:.75rem;padding:4px 9px}
.empty-card{border-radius:28px;background:var(--surface);padding:28px;display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}
.empty-symbol{background:var(--lime);border-radius:50%;width:86px;height:86px;display:flex;align-items:center;justify-content:center}
.empty-symbol>.icon{width:38px;height:38px;stroke-width:1.1}
.empty-card h2{font-family:ui-rounded,-apple-system,sans-serif;font-size:1.625rem;font-weight:600;margin:0}
.empty-card p{font-size:1rem;line-height:1.5;color:var(--muted);margin:0}
/* SwiftUI Form: inset, compact rows with labels on the left and values on the right. */
.page-settings .scroll-page,.page-profile .scroll-page,.page-history .scroll-page,.page-blocked .scroll-page,.page-sessions .scroll-page{background:var(--form-background);padding:20px 16px calc(28px + env(safe-area-inset-bottom))}
.page-settings .scroll-page{padding-top:36px}
.page-settings .page-header{background:var(--surface)}
.page-settings .tabs{background:var(--form-background)}
.form-section{margin:0 0 28px}
.section-label{font-size:1.0625rem;font-weight:700;line-height:1.25;color:var(--ink);text-transform:none;letter-spacing:0;margin:0 0 12px;padding:0 16px}
.setting-group{border-radius:26px;background:var(--form-surface);overflow:hidden}
.page-settings .setting-row,.page-settings .setting-label,.page-profile .setting-row,.page-profile .setting-group>.field,.page-profile .identity-field,.page-profile .form-row,.page-blocked .setting-row,.page-sessions .setting-row{position:relative;border:0;min-height:52px;padding:14px 16px;font-size:1.0625rem;line-height:1.3;gap:12px}
.setting-group>.setting-row:not(:last-child):after,.setting-group>.setting-label:not(:last-child):after,.page-settings .setting-group>.field:not(:last-child):after,.page-profile .setting-group>*:not(:last-child):after{content:'';position:absolute;bottom:0;left:16px;right:0;height:.5px;background:var(--form-separator)}
.page-settings .setting-row>.icon:not(.chevron){width:20px;height:20px}
.page-settings .setting-row>.chevron{width:12px;height:12px;opacity:.7}
.page-settings .setting-group>.field,.page-profile .setting-group>.field,.onboarding-location .field{display:flex;flex-direction:row;align-items:center;gap:12px;margin:0;padding:14px 16px;min-height:52px;position:relative}
.page-settings .setting-group>.field>span,.page-profile .setting-group>.field>span,.onboarding-location .field>span{font-size:1.0625rem;color:var(--ink);flex:1;min-width:80px;line-height:1.3}
.page-settings .setting-group>.field>select,.page-profile .setting-group>.field>select,.onboarding-location .field>select{border:0;border-radius:0;background:transparent;padding:0 18px 0 0;text-align:right;min-height:22px;width:auto;flex:1;min-width:0;max-width:78%;color:var(--muted);font-size:1.0625rem;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='16' fill='none' stroke='%236b7a6e' stroke-width='1.7'%3E%3Cpath d='m3 6 3-3 3 3m-6 4 3 3 3-3'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right center}
.page-profile .setting-group>.field>input{background:transparent;border:0;border-radius:0;padding:0;min-height:22px;width:50%;text-align:right;min-width:0;font-size:max(16px,1.0625rem)}
.page-profile .setting-group>.field:has(input[type=text]){flex-direction:column;align-items:stretch;gap:0}
.page-profile .setting-group>.field:has(input[type=text])>span:not(.profile-visibility-dot){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.page-profile .setting-group>.field>input[type=text]{width:100%;text-align:left}
.page-profile .setting-group>.field>input[type=text]::placeholder{color:var(--muted)}
.page-settings .setting-label>span{font-size:1.0625rem;line-height:1.2}
input.switch,.setting-label input.switch,.welcome-consent input.switch{appearance:none;-webkit-appearance:none;border:0;width:64px;height:28px;min-width:64px;margin:0;background:#c6c6ca}
input.switch:before{width:36px;height:24px;top:2px;left:2px;border-radius:20px;box-shadow:0 2px 4px #0002}
input.switch:checked{background:var(--ink)}
input.switch:checked:before{transform:translateX(24px)}
:root[data-theme=dark] input.switch:not(:checked){background:#39393d}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) input.switch:not(:checked){background:#39393d}}
.settings-identity{display:flex;align-items:center;gap:16px;padding:23px 16px;position:relative}
.settings-identity .avatar{width:60px;height:60px;font-size:1.7625rem}
.settings-identity>div{min-width:0}
.settings-identity h2{font-size:1.375rem;margin:0 0 4px;font-weight:700;line-height:1.2}
.settings-identity small{font-size:.75rem;overflow-wrap:anywhere}
.section-footer{font-size:.8125rem;color:var(--muted);padding:8px 16px 0;margin:0;line-height:1.35}
.text-size-control{padding:12px 16px;position:relative}
.text-size-control .horizontal{margin-top:12px}
.text-size-control input{max-width:none;width:100%}
.contact-row{gap:14px!important;min-height:82px!important}
.setting-row>.contact-symbol{flex:0 0 48px;display:flex;align-items:center;justify-content:center;width:48px}
.website-row .contact-symbol{background:var(--lime);height:48px;border-radius:14px}
.contact-symbol>.icon{width:22px;height:22px}
.contact-row strong{font-size:.9375rem;font-weight:600;display:block}
.website-row strong{font-size:1.0625rem}
.contact-row small{font-size:.75rem;line-height:1.3;margin-top:4px}
.version{padding:6px 0 14px;font-size:.75rem;margin:0}
.identity-field>p{margin:0;font-size:1.0625rem;line-height:1.3}
.identity-field .field{margin:0;display:flex;align-items:center;flex-direction:row}
.identity-field .field>span{font-size:1.0625rem;color:var(--ink);flex:1}
.identity-field .field>input,.identity-field .field>select{border:0;background:transparent;min-height:30px;width:55%;padding:0;text-align:right}
.lock-note{font-size:.75rem;gap:5px;line-height:1.25;text-decoration:none;margin:5px 0 0}
.lock-note>.icon{width:12px;height:12px;fill:currentColor;stroke-width:1}
.profile-image-note{padding:11px 16px;position:relative;display:flex;flex-direction:column;gap:5px}
.profile-image-note small{font-size:.75rem;line-height:1.3}
.page-profile #settlement-field .field{margin:0;display:flex;flex-direction:row;padding:11px 16px;gap:12px}
.page-profile #settlement-field .field>span{font-size:1.0625rem;color:var(--ink);flex:1}
.page-profile #settlement-field select{width:60%;text-align:right;border:0;background:transparent;padding:0;min-height:22px;color:var(--muted)}
.page-profile .form-row .field{margin:0}
.page-profile .priority-field .field>span{color:var(--ink);font-size:1.0625rem;line-height:1.3}
.page-profile .priority-wrap{height:auto}
.page-profile .priority-list{height:auto;padding:0;overflow:visible}
.page-profile .priority-arrow{display:none}
.page-profile .priority-list .choice-button{font-size:1.0625rem;min-height:34px;padding:5px 0;margin:0;gap:8px;outline:0}
.page-profile .priority-list .choice-button.selected{background:transparent}
.page-profile .about-field .field>span{font-size:.75rem}
.page-profile .about-field textarea{border:0;background:transparent;padding:0;border-radius:0;min-height:100px}
.age-control{padding:6px 0;gap:8px}
.age-control #age-label{font-size:1.0625rem;text-align:center;line-height:1.25;font-variant-numeric:tabular-nums}
.dual-range{height:44px;margin:0 8px}
.dual-range input{height:44px;min-height:44px;margin:0}
.dual-track{top:20px;left:14px;right:14px;background:color-mix(in srgb,var(--muted) 25%,transparent)}
.dual-range input::-webkit-slider-thumb{width:28px;height:28px;background:var(--surface);border:2px solid var(--ink);box-shadow:none}
.dual-range input::-moz-range-thumb{width:24px;height:24px;background:var(--surface);border:2px solid var(--ink);box-shadow:none}
.range-extents{font-size:.75rem}
/* Native conversation screen: navigation, partner strip, messages, composer. */
.page-chat .chat-header{padding:0;background:var(--surface)}
.chat-profile-row{display:flex;align-items:center;gap:12px;padding:16px;width:100%;text-align:left;min-height:80px}
.chat-profile-row .avatar{width:40px;height:40px;font-size:1.175rem}
.chat-profile-row>.identity{flex:1;min-width:0}
.chat-profile-row>.icon{width:22px;height:22px}
.identity strong{font-size:1.0625rem;font-weight:600;line-height:1.2}
.identity small{font-size:.75rem;line-height:1.25;margin-top:3px}
.location{gap:3px}
.location>.icon{width:13px;height:13px}
.messages{padding:18px 18px 24px}
.chat-introduction{font-size:.625rem;font-weight:500;letter-spacing:1px;margin:2px 0 20px;padding:0 20px;line-height:1.4}
.chat-introduction small{font-size:inherit}
.chat-safety{margin:0 6px 20px;font-size:.75rem;line-height:1.35;padding:0;background:transparent;gap:7px}
.chat-safety>.icon{width:15px;height:15px}
.message-row{margin:14px 0;gap:5px}
.message-row>.bubble{padding:16px;font-size:1rem;line-height:1.5;max-width:calc(100% - 25px)}
.message-row.mine>.bubble{max-width:calc(100% - 35px)}
.message-row>.photo-bubble{padding:5px}
.message-time{font-size:.75rem;line-height:1.2}
.composer{padding:14px 14px calc(14px + env(safe-area-inset-bottom));border:0;gap:8px}
.composer>.icon-button:first-child{width:26px;height:44px;align-items:center}
.composer>.icon-button:first-child>.icon{width:25px;height:25px;border-radius:50%;background:var(--ink);color:var(--on-ink);padding:4px;stroke-width:2}
.composer textarea,.answer-composer textarea{min-height:48px;border-radius:22px;line-height:1.25;padding:12px 14px;border:0;background:var(--paper);font-size:max(16px,1rem)}
.composer .send{width:44px;height:44px}
.send>.icon{width:21px;height:21px;stroke-width:2.3}
.banner{background:color-mix(in srgb,var(--lime) 45%,var(--paper));padding:10px 18px;font-size:.75rem}
.banner strong{font-size:.75rem}
.banner .icon{width:18px;height:18px}
#chat-ending .notice{margin:18px 6px;font-size:.75rem;background:none;padding:0;line-height:1.35}
#chat-ending .notice>.icon{width:15px;height:15px}
/* Chat-shaped registration, with horizontally scrolling answer pills. */
.onboarding-head{padding:16px;display:flex;align-items:center;gap:12px;background:var(--surface);flex-shrink:0}
.onboarding-head .spacer{min-width:0}
.onboarding-head strong{font-size:1.125rem;display:block;line-height:1.2;font-weight:700}
.onboarding-head small{font-size:.75rem;display:block;line-height:1.2;margin-top:3px}
.onboarding-head>.icon{height:20px;width:20px}
.account-chip{border-radius:99px;background:var(--lime);font-size:.75rem;font-weight:400;padding:10px 12px;white-space:nowrap;display:flex;align-items:center;gap:6px;min-height:34px}
.question-progress{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;font-size:.6875rem;color:var(--muted);gap:10px;flex-shrink:0}
.page-onboarding>.progress{height:4px;border-radius:0;flex-shrink:0}
.page-onboarding .messages{padding:18px}
.page-onboarding .message-row:first-child{margin-top:0}
.question-input{padding:16px 16px calc(16px + env(safe-area-inset-bottom));border:0;display:flex;flex-direction:column;gap:10px;max-height:57%}
.question-input .field{margin:0}
.question-input .priority-list .choice-button{outline:0;min-height:34px;margin:0;padding:5px 0;background:none;font-size:1.0625rem}
.question-input .priority-list .choice-button.selected{background:none}
.question-input .priority-wrap{height:220px}
.question-input .priority-list{padding-right:36px}
.question-input .priority-arrow{height:32px;width:32px}
.question-input .priority-field>span{display:none}
.question-input .skip{margin:0 auto;background:var(--lime);padding:13px 18px;min-height:44px;border-radius:99px;font-size:1rem;justify-content:center}
.question-input .undo{font-size:.75rem;padding:4px 0;margin:0 auto;min-height:24px}
.question-input .undo>.icon{height:13px;width:13px}
.answer-choices{display:flex;overflow-x:auto;gap:8px;scrollbar-width:none;flex-shrink:0;padding:0}
.answer-choices::-webkit-scrollbar{display:none}
.answer-choices>.choice-button{border-radius:99px;background:var(--lime);width:auto;flex-shrink:0;margin:0;padding:13px 18px;font-size:1rem;line-height:1.3}
.answer-composer{display:flex;align-items:center;gap:8px}
.answer-composer textarea{resize:none;max-height:140px;height:48px;min-width:0;flex:1}
.answer-composer input{padding:14px;background:var(--paper);border:0;border-radius:99px;min-height:46px;min-width:0;flex:1}
.answer-composer .send{width:46px;height:46px}
.onboarding-location .field{padding:10px 0}
.onboarding-location #settlement-field>.field{border-top:.5px solid var(--line)}
.account-done{display:flex;justify-content:flex-end;margin:0 0 16px}
.account-done .account-chip{font-size:.9375rem;font-weight:600;padding:12px 18px}
/* The partner page is an uncluttered column, as in PartnerView. */
.page-partner .scroll-page{padding:25px;display:flex;flex-direction:column;gap:22px}
.partner-identity{display:flex;align-items:center;gap:10px}
.partner-identity>.avatar{height:70px;width:70px;font-size:2.056rem}
.partner-identity>h1{font-size:1.75rem;font-weight:700;letter-spacing:0;line-height:1.2;margin:0}
.partner-presence{display:flex;flex-direction:column;gap:6px;font-size:.75rem;color:var(--muted)}
.partner-presence>small{font-size:.75rem}
.partner-presence>span:empty{display:none}
.partner-reason-label{font-size:.75rem;letter-spacing:1px;font-weight:700;margin:0}
.partner-reason{padding:20px;background:var(--lime);border-radius:20px;font-size:1.0625rem;line-height:1.3;margin:0}
.partner-field{display:flex;flex-direction:column;gap:6px}
.partner-field>small{font-size:.75rem;line-height:1.2}
.partner-field>p{font-size:1.0625rem;line-height:1.3;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.card-preview{padding:18px;background:var(--surface);border-radius:20px;display:flex;flex-direction:column;gap:8px}
.card-preview>small{display:flex;gap:8px;align-items:center;font-size:.9375rem}
.card-preview>strong{font-size:1.0625rem}
.card-preview .icon{width:18px;height:18px}
.page-history .history-row{padding:12px 16px;border:0;min-height:64px;gap:12px;position:relative;font-size:1.0625rem;line-height:1.3}
.page-history .history-row:not(:last-child):after{position:absolute;content:'';height:.5px;background:var(--form-separator);bottom:0;left:50px;right:0}
.history-row>svg{width:21px;height:21px;margin-top:2px}
.history-row small{font-size:.75rem;line-height:1.3;margin-top:5px}
.page-archive .scroll-page{display:flex;flex-direction:column;gap:6px;padding:20px 8px calc(20px + env(safe-area-inset-bottom))}
.page-archive .pull-refresh{display:none}
.page-cards .scroll-page{padding:24px}
.page-cards h1{font-size:2.125rem;line-height:1.18;font-weight:700;margin:0 0 24px}
.page-cards .card{border-radius:24px}
/* All presented tools use a consistent native sheet bar, including helper/forms. */
.sheet:not(.photo-sheet){background:var(--paper);border-radius:26px 26px 0 0}
.sheet-header{padding:12px 16px;min-height:60px;gap:12px;background:var(--paper)}
.sheet-header h2{font-size:1.0625rem;font-weight:600;line-height:1.2;text-align:center;flex:1;margin:0}
.sheet-header>.icon-button{width:32px;height:32px;background:var(--line)}
.sheet-header>.icon-button>.icon{width:14px;height:14px;stroke-width:2.5}
.sheet-body{padding:24px 24px calc(24px + env(safe-area-inset-bottom))}
.sheet-body>.setting-group>.setting-row{padding:12px 16px;min-height:48px;font-size:1.0625rem}
.sheet-body .field>span{font-size:.9375rem;color:var(--ink)}
.sheet-body .helper-idea h3{font-size:1.0625rem}
.sheet-body .helper-idea blockquote{background:var(--lime);border-radius:16px;padding:16px;font-size:1rem;margin:14px 0}
.sheet-body .helper-idea small{font-size:.8125rem}
.sheet-body .emojis{gap:4px}
.sheet-body .emojis button{flex:1;max-width:48px;height:48px}
.photo-sheet .sheet-header h2{text-align:left}
.photo-sheet .sheet-header>.icon-button{background:#ffffff20;color:white}
@media(max-width:360px){.page-header{padding-left:18px;padding-right:18px}.page-home .scroll-page{padding-left:18px;padding-right:18px}.page-tag{letter-spacing:1px;padding:9px;font-size:.59rem}.page-header .logo{font-size:2rem}.page-header .logo img{height:38px;width:38px}.onboarding-head{gap:8px;padding:12px}.onboarding-head>.reli-avatar{width:40px!important;height:40px!important}.onboarding-head strong{font-size:1rem}.onboarding-head small{font-size:.6875rem}.account-chip{padding:10px;font-size:.6875rem}.native-nav>strong{font-size:.9375rem!important}}
@media(min-width:700px){.scroll-page{width:100%;max-width:720px;align-self:center}.page-chat,.page-onboarding{max-width:720px!important}.page-header{width:100%;max-width:720px;align-self:center}.tabs{justify-content:center}.tabs>button{flex:0 1 200px}.sheet:not(.photo-sheet){border-radius:28px;max-width:640px}}
.own-birth-date{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.9375rem;line-height:1.3}
.native-auth-card .field:has(input[type=date]){display:flex;flex-direction:row;align-items:center;gap:12px;margin:0}
.native-auth-card .field:has(input[type=date])>span{font-size:1.0625rem;color:var(--ink);flex:1}
.native-auth-card input[type=date]{width:auto;max-width:52%;font-size:max(16px,.9375rem);border:0;padding:8px 10px;min-height:34px;border-radius:8px;background:var(--paper);text-align:right}
.logo>.native-mark{height:44px;width:44px;flex-shrink:0}
.auth-content>.logo>.native-mark{height:36px;width:36px}
.native-auth-card{display:flex;flex-direction:column;gap:20px}
.native-auth-field{margin:0}
.native-auth-card .auth-hint{margin:-12px 0 0;line-height:1.35}
.native-auth-hero{margin:0;gap:12px}
.recovery-content{display:flex;flex-direction:column;gap:24px;padding:26px}
.recovery-content h1{font-family:ui-rounded,-apple-system,sans-serif;font-size:1.875rem;font-weight:600;line-height:1.2;margin:0}
.recovery-content>p{font-size:1rem;line-height:1.5;margin:0}
.recovery-symbol{display:flex;align-items:center;justify-content:center;width:84px;height:84px;border-radius:27px;background:var(--lime)}
.recovery-symbol>.icon{width:34px;height:34px;stroke-width:1.2}
.recovery-content form{display:flex;flex-direction:column;gap:24px}
.recovery-content .field{margin:0}
.recovery-content .field>span{font-size:.9375rem;color:var(--ink);font-weight:600}
.recovery-content input{padding:17px;border:0;background:var(--surface)}
.verification-page .auth-content{display:flex;align-items:center;text-align:center;flex-direction:column;padding:24px;gap:20px}
.verification-page h1{font-size:1.375rem;font-weight:700;margin:0;line-height:1.25;letter-spacing:0}
.verification-page p{font-size:1.0625rem;line-height:1.3;margin:0}
.verification-page .logo{font-size:2.5rem}
.verification-page .logo>.native-mark{height:46px;width:46px}
.verification-page form{width:100%;display:flex;flex-direction:column;gap:20px}
.verification-page .verification-code{font-size:1.75rem;letter-spacing:1px;text-align:center;padding:16px;font-variant-numeric:tabular-nums;border:0;background:var(--surface);border-radius:16px}
.verification-page .text-button{padding:0;min-height:24px}
.cards-intro{display:flex;flex-direction:column;gap:24px}
.cards-intro>.icon{height:44px;width:44px}
.cards-intro h1,.cards-intro p{margin:0}
.cards-intro>p{font-size:1.0625rem;line-height:1.3}
.cards-explanation{padding:20px;background:color-mix(in srgb,var(--lime) 50%,var(--paper));border-radius:22px;display:flex;align-items:flex-start;gap:8px}
.cards-explanation>.icon{width:18px;height:18px}
.cards-explanation p{font-size:.9375rem;line-height:1.35}
.cards-progress{font-size:.75rem;margin-bottom:24px}
.page-cards .progress{margin-bottom:24px}
.card-question{display:flex;flex-direction:column;gap:22px;padding:22px;border-radius:28px;background:color-mix(in srgb,var(--lime) 20%,var(--paper))}
.card-question>.icon{width:36px;height:36px}
.card-question>h2{font-size:1.375rem;font-weight:700;line-height:1.25;margin:0}
.card-choice{padding:19px;background:var(--surface);border-radius:18px;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:1.0625rem;font-weight:600;text-align:left;line-height:1.3}
.card-choice>span:first-child{flex:1}
.card-choice.selected{background:var(--lime)}
.cards-navigation{margin:24px 0}
.cards-navigation .button{width:auto;font-size:1rem;padding:17px 18px}
.page-cards .section-footer{padding:0;font-size:.75rem;margin-bottom:24px}
/* The menu owns its own bottom area: content is clipped above it, never behind it. */
.tab-dock{flex:none;position:relative;z-index:5;padding:4px 16px max(8px,calc(env(safe-area-inset-bottom) - 20px));background:var(--paper);border-top:.5px solid var(--line)}
.page-settings>.tab-dock{background:var(--paper)}
.tab-dock>.tabs{position:relative;margin:0 auto;max-width:500px;min-height:58px;padding:4px 6px;border:.5px solid color-mix(in srgb,var(--muted) 25%,transparent);border-radius:32px;background:var(--surface);gap:4px}
.tab-dock>.tabs button{flex:1;min-width:0;min-height:50px;padding:2px 4px;font-size:.6875rem;gap:3px;color:var(--ink)}
.tab-dock>.tabs button.active{background:color-mix(in srgb,var(--muted) 15%,transparent)}
.tab-dock>.tabs button>.icon{width:26px;height:25px;fill:currentColor;flex:none}
.tab-dock>.tabs button>.icon .hollow{fill:none;stroke:var(--surface)}
.tab-dock>.tabs button>span{line-height:1.25;overflow-wrap:anywhere}
.app-frame>.scroll-page{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:none}
.scroll-page>*{flex-shrink:0}
@media(max-width:360px){.tab-dock{padding-left:8px;padding-right:8px}.page-header .logo>.native-mark{width:38px;height:38px}}

/* Native navigation buttons float over the page; controls keep 44 pt targets. */
.native-nav>.nav-trailing .text-button{min-height:44px;padding:10px 16px;border-radius:24px;background:color-mix(in srgb,var(--surface) 65%,transparent);border:.5px solid color-mix(in srgb,var(--muted) 35%,transparent)}
.native-auth-form>.button:disabled{background:var(--ink);color:var(--on-ink);opacity:.5}
.native-auth-footer{margin:0 0 6px}
.page-profile .form-row{padding-top:20px;padding-bottom:20px}
.page-profile .dual-range{margin:14px 8px 10px}
.page-profile .dual-track{height:5px;top:19px}
.page-profile .identity-field{padding-top:16px;padding-bottom:16px}
.page-profile .native-nav{background:var(--form-background)}
.page-profile .setting-group>.field>select{color:var(--ink)}
.page-settings .setting-row>.chevron{display:none}
.page-settings .setting-group>.field>select{color:var(--ink)}

.settings-identity:after{content:"";position:absolute;bottom:0;left:36px;right:16px;height:.75px;background:var(--form-separator)}
.setting-group>.setting-row:after,.setting-group>.setting-label:after,.setting-group>.field:after,.page-profile .setting-group>*:after{right:16px!important}

.message-row>.photo-bubble,.message-row.mine>.photo-bubble{background:transparent;color:var(--ink);padding:0;border-radius:18px;min-width:0;width:min(260px,calc(100% - 35px));display:flex;align-items:center;justify-content:center}
.message-photo{width:auto;max-width:100%;height:auto;max-height:320px;min-height:0;border-radius:18px;background:transparent}
.photo-sheet{background:var(--surface);color:var(--ink)}
.photo-sheet .sheet-header{display:grid;grid-template-columns:minmax(110px,1fr) auto minmax(110px,1fr);background:var(--surface);color:var(--ink);padding:calc(8px + env(safe-area-inset-top)) 16px 8px}
.photo-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}
.photo-actions .text-button{border-radius:24px;background:var(--line);padding:10px 16px;min-height:44px}
.photo-actions .icon-button{background:var(--line);width:44px;height:44px}
.photo-actions .icon{width:20px;height:20px}

/* Dynamic Type comes from the OS text style; disable Safari's additional text inflation. */
html.installed-app{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.system-font-probe{position:fixed;top:-100px;left:-100px;visibility:hidden;pointer-events:none;white-space:nowrap;font-size:17px;font:-apple-system-body;line-height:normal}
/* Form labels and controls must remain separate at small widths and larger text sizes. */
.setting-row,.setting-label{min-width:0;align-items:center}
a.setting-row{text-decoration:none}
.setting-row>span,.setting-label>span{min-width:0;overflow-wrap:anywhere}
.setting-row>.icon,.setting-row>.chevron,.setting-label>.switch,.contact-symbol{flex-shrink:0}
.settings-identity>div{flex:1;min-width:0}
.page-settings .setting-group>.field{display:flex;gap:12px}
.page-settings .setting-group>.field>span{flex:0 1 auto;max-width:50%;min-width:0;overflow-wrap:anywhere}
.page-settings .setting-group>.field>select{flex:1;width:0;max-width:none;min-width:0;text-overflow:ellipsis;font-weight:400}
.setting-label>span{flex:1;line-height:1.35!important}
.contact-row strong{font-weight:600}
.section-label{font-size:1.0625rem;font-weight:700}
.settings-identity h2{font-weight:700}
.page-header.native-nav{flex-shrink:0}
@media(max-width:360px){.page-settings .setting-group>.field{gap:8px}}

.session-intro{font-size:.8125rem;line-height:1.45;margin:0 0 20px}
.page-sessions .session-row{align-items:flex-start;padding:16px;gap:12px}
.session-row>.icon{width:22px;height:22px;margin-top:2px}
.session-details{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:7px;overflow-wrap:anywhere}
.session-details>strong{font-size:1rem;font-weight:600}
.session-details>small{font-size:.75rem;line-height:1.4;color:var(--muted)}
.session-details .current-device{display:flex;align-items:center;gap:5px;color:var(--ink)}
.current-device>.icon{width:14px;height:14px;flex:none}
.session-details>.text-button{padding:7px 0;min-height:44px;max-width:100%;white-space:normal;text-align:left;font-size:.9375rem;font-weight:500}
.session-all{margin-top:24px}

/* Native profile controls: plain fields, compact date pill and a searchable town sheet. */
.page-profile .identity-field .field>input[name=name]{width:100%;text-align:left}
.page-profile .identity-field .field:has(input[name=name])>span{display:none}
.page-profile .identity-field input[type=date]{width:auto;max-width:60%;border-radius:8px;background:var(--form-background);padding:5px 8px;min-width:0}
.page-profile .identity-field select{appearance:none;-webkit-appearance:none;padding-right:18px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='16' fill='none' stroke='%236b7a6e' stroke-width='1.7'%3E%3Cpath d='m3 6 3-3 3 3m-6 4 3 3 3-3'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right center}
.page-profile .lock-note{font-size:.75rem;gap:5px;line-height:1.3;margin-top:5px}
.page-profile .lock-note .icon{width:12px;height:12px;fill:currentColor;stroke:none}
.page-profile .setting-group>.field:has(input[type=number])>span{display:none}
.page-profile .setting-group>.field>input[type=number]{text-align:left;width:100%}
.page-profile .card-preview{margin:0;padding:16px;border-radius:0;background:transparent}
.page-profile .settlement-picker>.chevron{width:12px;height:12px}
.town-search{display:flex;gap:8px;align-items:center;padding:10px 12px;border-radius:12px;background:var(--form-background);margin-bottom:16px}
.town-search input{background:transparent;border:0;padding:0;min-height:28px;min-width:0;flex:1;font-size:max(16px,1rem)}
.town-search>.icon{width:18px;height:18px;flex:none;color:var(--muted)}
#town-list .setting-row{padding:14px 0;border-bottom:.5px solid var(--line);min-height:48px}
.message-editor{flex:1;min-width:0;min-height:48px;max-height:140px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:22px;line-height:1.25;padding:12px 14px;border:0;background:var(--paper);font-size:max(16px,1rem);outline:none;box-shadow:none;-webkit-user-select:text;user-select:text}
.message-editor:empty:before{content:attr(data-placeholder);color:var(--muted);pointer-events:none}
.keyboard-open .composer{padding-bottom:10px}
.photo-bubble,.photo-bubble>button{outline:none!important;box-shadow:none!important;-webkit-tap-highlight-color:transparent}
.keyboard-navigation .photo-bubble:focus-visible,.keyboard-navigation .photo-bubble>button:focus-visible{outline:2px solid var(--ink)!important;outline-offset:3px}

/* Közös kezdés follows the preserved native choice, waiting and result cards. */
.starter-card{background:var(--surface);border:1px solid color-mix(in srgb,var(--ink) 10%,transparent);border-radius:26px;padding:20px;margin:20px 0;display:flex;flex-direction:column;gap:16px}
.starter-card h2,.starter-card h3,.starter-card p{margin:0}
.starter-card h2{font-size:1.375rem;font-weight:700}
.starter-card h3{font-size:1.25rem;font-weight:700;line-height:1.3}
.starter-eyebrow{display:flex;align-items:center;gap:8px;font-size:.75rem;font-weight:700;letter-spacing:1px}
.starter-eyebrow .icon{width:20px;height:20px;fill:currentColor;stroke:none}
.starter-caption{font-size:.9375rem;line-height:1.45;color:var(--muted)}
.starter-choices{display:flex;flex-direction:column;gap:12px}
.starter-choices>button{display:flex;align-items:center;gap:8px;padding:16px;background:var(--paper);border-radius:16px;min-height:52px;font-size:1rem;text-align:left;line-height:1.35}
.starter-choices>button span{flex:1;min-width:0}.starter-choices>button .icon{width:20px;height:20px;flex:none}
.starter-card .starter-write{background:var(--surface);color:var(--ink);border:1.2px solid var(--ink);padding:15px;font-size:1rem;font-weight:600;min-height:50px}
.starter-own{display:flex;gap:14px;align-items:center;padding:18px;background:var(--lime);border-radius:18px;line-height:1.35;font-weight:500}
.starter-own>.icon{width:28px;height:28px;flex:none}
.starter-wait{display:flex;align-items:center;flex-direction:column;gap:18px;text-align:center;padding:10px 0 6px}
.starter-people{display:flex;align-items:center;justify-content:center;gap:24px}
.starter-person{position:relative;width:54px;height:54px}.starter-person .avatar{width:54px;height:54px;font-size:1.375rem}
.starter-status{position:absolute;bottom:-3px;right:-3px;width:23px;height:23px;border:2px solid var(--surface);border-radius:50%;background:var(--muted);color:var(--on-ink);display:flex;align-items:center;justify-content:center}
.starter-status.answered{background:var(--ink)}.starter-status>.icon{width:12px;height:12px;flex:none;stroke-width:2.5}
.starter-divider{height:42px;width:1px;background:color-mix(in srgb,var(--muted) 18%,transparent)}
.starter-wait-name{font-size:.9375rem;font-weight:500}.starter-wait .text-button{font-size:.9375rem;color:var(--muted)}
.starter-results{display:flex;gap:12px;align-items:stretch}.starter-result{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:20px 12px;background:var(--lime);border-radius:18px;min-height:150px}
.starter-result strong{font-size:.9375rem;font-weight:600}.starter-result>.icon{width:30px;height:40px;flex:none}.starter-result p{font-weight:600;font-size:1rem;line-height:1.35;overflow-wrap:anywhere}
.starter-card>small{font-size:.75rem;line-height:1.35;color:var(--muted)}
@media(max-width:360px){.starter-results{flex-direction:column}.starter-result{min-height:125px}}
.photo-sheet{display:flex;flex-direction:column;overflow:hidden;height:var(--app-height,100dvh);max-height:var(--app-height,100dvh)}
.photo-sheet .sheet-header{flex:none;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px}
.photo-sheet .sheet-body{display:flex;flex:1;min-height:0;max-height:none;height:auto;padding:0;overflow:hidden}
.photo-viewport{width:100%;height:100%;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none;position:relative}
.photo-viewport img{max-width:100%;max-height:100%;object-fit:contain;transform-origin:center;flex:none;pointer-events:none;will-change:transform}

/* One surface: the old paper wrapper and rounded white button looked doubled. */
button.update-banner{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:max-content;max-width:calc(100% - 32px);min-height:52px;padding:12px 20px;border:0;border-radius:24px;background:var(--surface);color:var(--ink);font-size:.9375rem;font-weight:600;line-height:1.3;white-space:normal;text-align:center}
button.update-banner small,.update-banner .button small{font-size:.75rem;font-weight:400;color:var(--muted)}
button.update-banner:active{opacity:.8}
/* Also remove the extra surface for a previous app script still in memory. */
div.update-banner{background:transparent;border-radius:24px}
div.update-banner>.button{display:flex;flex-direction:column;align-items:center;gap:4px;line-height:1.3;white-space:normal;text-align:center;border-radius:24px}

/* Compact chat rows: the former vertical margins doubled the native stack spacing. */
.page-chat .message-row{margin:7px 0;gap:4px;padding-bottom:0}
.page-chat .message-row>.bubble:not(.photo-bubble){padding:10px 14px;line-height:1.35;border-radius:18px}
.page-chat .message-row.has-reactions{margin-bottom:18px}
.page-chat .message-time{font-size:.6875rem;line-height:1.25}
.message-editor[data-empty=true]:before{content:attr(data-placeholder);position:absolute;color:var(--muted);pointer-events:none}
.page-settings .setting-row>.external-arrow{display:inline-block;width:17px;height:17px;flex:none;color:var(--muted)}
.page-settings .setting-row:is([data-action=history],[data-action=archive],[data-action=password],[data-action=blocked],[data-action=sessions],[data-action=pin-settings],[data-action=pause])>.chevron{display:inline-block}
/* Settings destinations use the original iPhone Form hierarchy, rather than a generic dialog. */
.page-password .scroll-page,.page-pin .scroll-page,.page-pause .scroll-page{background:var(--form-background);padding:20px 16px 28px}
.page-password .native-nav,.page-pin .native-nav,.page-pause .native-nav{background:var(--form-background)}
.native-setting-input{display:block;position:relative;padding:14px 16px;min-height:52px}
.native-setting-input:not(:last-child):after,.setting-explanation:after{content:'';position:absolute;bottom:0;left:16px;right:16px;height:.5px;background:var(--form-separator)}
.native-setting-input>input{border:0;border-radius:0;background:transparent;padding:0;min-height:24px;outline:none;font-size:max(16px,1.0625rem);width:100%}
.native-setting-input>input::placeholder{color:var(--muted)}
.native-settings-form .setting-row,.page-pause .setting-row{padding:14px 16px;min-height:52px;font-size:1.0625rem;line-height:1.35;text-align:left}
.native-settings-form .setting-row:disabled{opacity:1;color:var(--muted)}
.native-settings-form .setting-row.danger-text:not(:disabled){color:var(--danger)}
.native-settings-form .setting-label{padding:14px 16px;min-height:52px;gap:12px;font-size:1.0625rem}
.native-form-sheet{height:88dvh;border-radius:28px 28px 0 0;background:var(--form-background)}
.native-form-sheet .sheet-header{display:grid;grid-template-columns:1fr auto 1fr;padding:10px 16px;background:var(--form-background)}
.native-form-sheet .sheet-header>.text-button{justify-self:start;font-size:1rem;font-weight:400}
.native-form-sheet .sheet-body{padding:20px 16px calc(20px + env(safe-area-inset-bottom))}
.setting-explanation{position:relative;padding:16px;font-size:1.0625rem;line-height:1.4;margin:0}
.pause-status{padding:8px 16px 20px;display:flex;flex-direction:column;gap:8px}
.pause-status small{font-size:.75rem}
.pause-status p{font-size:1.0625rem;line-height:1.35;margin:0}
.page-pause .setting-row>.chevron{display:none}

/* Mirror the actual back/control width so large text never overlaps a centered title. */
.page-header.native-nav{grid-template-columns:var(--nav-side,84px) minmax(0,1fr) var(--nav-side,84px);gap:4px}
.page-header.native-nav>strong{min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere;line-height:1.25}

/* A single compact partner strip keeps navigation out of the message area. */
.page-chat .chat-header{display:flex;align-items:center;gap:2px;padding:8px 6px;flex-shrink:0;min-height:72px}
.page-chat .chat-back{width:44px;height:44px;flex:0 0 44px}
.page-chat .chat-back>.icon{width:20px;height:20px;stroke-width:2}
.page-chat .chat-profile-row{flex:1;min-width:0;width:auto;min-height:0;padding:0 4px 0 0;gap:8px}
.page-chat .chat-profile-row .avatar{width:36px;height:36px;font-size:1.0625rem}
.page-chat .chat-profile-row .identity{overflow:hidden}
.page-chat .chat-profile-row .identity strong,.page-chat #chat-presence{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.page-chat #chat-location{white-space:nowrap;overflow:hidden;min-width:0}
.page-chat #chat-location>.icon{flex-shrink:0}
.page-chat .chat-header-actions{display:flex;align-items:center;flex:0 0 88px;gap:0}
.page-chat .chat-header-actions>.icon-button{width:44px;height:44px;flex:0 0 44px}
.page-chat .chat-header-actions>.icon-button>.icon{width:22px;height:22px}

/* SwiftUI Menu: a small popover anchored to the conversation's ellipsis button. */
.sheet.chat-options-menu{position:fixed;inset:auto;margin:0;padding:0;width:300px;max-width:calc(100vw - 24px);border-radius:14px;background:var(--form-surface);color:var(--ink);box-shadow:0 12px 40px #0003,0 0 0 .5px var(--form-separator);overflow:hidden;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
.sheet.chat-options-menu[open]{display:flex;flex-direction:column}
.chat-options-menu::backdrop{background:transparent}
.chat-options-menu .sheet-body{padding:0;max-height:none;min-height:0;overflow-y:auto}
.chat-options-menu .conversation-menu-heading{padding:8px;min-height:60px;background:transparent;border-bottom:.5px solid var(--form-separator);gap:10px;flex-shrink:0}
.chat-options-menu .conversation-menu-heading[hidden]{display:none}
.chat-options-menu .conversation-menu-heading h2{font-size:.875rem;font-weight:600;text-align:left;line-height:1.3}
.conversation-menu-item{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:44px;padding:11px 16px;font-size:1rem;font-weight:400;line-height:1.35;text-align:left;border-bottom:.5px solid var(--form-separator);background:transparent}
.conversation-menu-item>span{flex:1;min-width:0;overflow-wrap:break-word}
.conversation-menu-item>.icon{width:20px;height:20px;flex:none;stroke-width:1.7}
.conversation-menu-item:last-child{border-bottom:0}
.conversation-menu-danger{border-top:6px solid var(--form-background)}
.conversation-menu-item:active,.conversation-menu-item:focus-visible{outline:0;background:color-mix(in srgb,var(--muted) 12%,transparent)}
.conversation-menu-item:disabled{opacity:.4}

.app-frame.edge-back-dragging{will-change:translate;transition:none;user-select:none;-webkit-user-select:none}

/* Registration-style status row, beside the last messages rather than another header. */
.chat-typing{display:flex;align-items:center;gap:8px;width:fit-content;max-width:90%;padding:8px 12px;margin:6px 0 0;border-radius:16px;background:var(--surface);color:var(--muted);font-size:.75rem;line-height:1.4;}
.chat-typing[hidden]{display:none;}
.typing-dots{display:inline-flex;align-items:center;gap:3px;flex:none;height:12px;}
.typing-dots i{display:block;width:4px;height:4px;border-radius:50%;background:currentColor;animation:chat-typing-dot 1.2s ease-in-out infinite;opacity:.35;}
.typing-dots i:nth-child(2){animation-delay:.16s;}.typing-dots i:nth-child(3){animation-delay:.32s;}
@keyframes chat-typing-dot{0%,60%,100%{opacity:.35;transform:translateY(0);}30%{opacity:1;transform:translateY(-2px);}}
@media(prefers-reduced-motion:reduce){.typing-dots i{animation:none;opacity:.65;}}

/* Touch UI must not invoke iOS text-selection callouts. Editors remain editable. */
html,body,body *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,[contenteditable]:not([contenteditable="false"]),[contenteditable]:not([contenteditable="false"]) *{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
dialog.sheet:focus{outline:none}
input.radius-slider{appearance:none;-webkit-appearance:none;background:transparent;height:36px;min-height:36px;border:0;margin:4px 0;cursor:pointer}
input.radius-slider::-webkit-slider-runnable-track{height:4px;border-radius:3px;background:linear-gradient(to right,var(--ink) 0 var(--range-progress),var(--form-separator) var(--range-progress) 100%)}
input.radius-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:26px;height:26px;margin-top:-11px;background:var(--surface);border:2px solid var(--ink);border-radius:50%;box-shadow:0 1px 3px #0002}
input.radius-slider::-moz-range-track{height:4px;border-radius:3px;background:var(--form-separator)}
input.radius-slider::-moz-range-progress{height:4px;background:var(--ink)}
input.radius-slider::-moz-range-thumb{height:22px;width:22px;border:2px solid var(--ink);background:var(--surface);border-radius:50%}
.cards-intro>.logo{font-size:2rem;align-self:flex-start}.cards-intro>.logo .native-mark{width:40px;height:40px}
/* ArchiveScreen/FormGroup on Android: avatar, preview and trash in one row. */
.archive-card{display:flex;align-items:center;gap:12px;flex:0 0 auto;min-width:0;padding:16px;background:var(--surface);border-radius:12px}
.archive-open{appearance:none;-webkit-appearance:none;display:flex;align-items:center;gap:12px;flex:1;min-width:0;min-height:48px;padding:0;text-align:left;border-radius:8px}
.archive-open>.avatar{width:44px;height:44px;font-size:1.2375rem}
.archive-preview{display:flex;flex-direction:column;flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.3}
.archive-preview>strong{font-size:1rem;font-weight:600}
.archive-preview>span{font-size:.8125rem;color:var(--muted)}
.archive-delete.icon-button{width:48px;height:48px;justify-self:end}
.archive-delete>.icon{width:24px;height:24px}
.archive-empty{font-size:1rem;line-height:1.3;margin:0}
.page-chat .bubble{position:relative}
.page-chat .reaction-badge{right:-3px;bottom:-11px;min-height:25px;padding:2px 6px;background:color-mix(in srgb,var(--lime) 65%,var(--surface));z-index:1;line-height:1.2}
.page-chat .message-row.has-reactions{margin-bottom:9px;padding-bottom:0;gap:0}
.page-chat .message-row.has-reactions>.bubble{margin-bottom:14px}
.page-chat .message-row.has-reactions>.message-time{margin-top:3px}
.chat-timeline{flex:1;min-height:0;position:relative;display:flex;flex-direction:column;overflow:hidden}
.chat-timeline>.messages{flex:1;min-height:0;width:100%}
.chat-unread-dock{position:absolute;bottom:10px;left:12px;right:12px;display:flex;justify-content:center;pointer-events:none;z-index:3}
.chat-unread-dock[hidden]{display:none}
.chat-unread-dock>button{pointer-events:auto;display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;max-width:100%;padding:8px 16px;border-radius:22px;background:var(--surface);color:var(--ink);border:1px solid var(--form-separator);box-shadow:0 3px 14px #0002;font-size:.8125rem;font-weight:600}
.chat-unread-dock .icon{width:18px;height:18px;flex-shrink:0}

.cards-intro>.cards-explanation{display:block;padding:0;background:transparent;border-radius:0;font-size:1.0625rem;line-height:1.45}
/* Full-screen conversation helper, using the same hierarchy and controls as Android. */
.sheet.helper-sheet{inset:var(--app-top,0px) 0 auto;margin:0 auto;width:100%;max-width:720px;height:var(--app-height,100dvh);max-height:var(--app-height,100dvh);border-radius:0;padding:0;overflow:hidden;background:var(--paper)}
.sheet.helper-sheet[open]{display:flex;flex-direction:column}
.helper-sheet .sheet-header{flex:none;display:grid;grid-template-columns:var(--helper-back-width,90px) minmax(0,1fr) var(--helper-back-width,90px);gap:4px;min-height:60px;padding:calc(8px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left));border-bottom:0}
.helper-sheet .sheet-header h2{font-size:1rem;font-weight:600;line-height:1.25;overflow-wrap:anywhere}
.helper-sheet .sheet-body{flex:1;min-height:0;max-height:none;overflow-y:auto;padding:20px 20px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:16px;align-items:stretch}
.helper-sheet .sheet-body>*{flex-shrink:0;margin:0;min-width:0}
.helper-sheet p{margin:0;line-height:1.45;overflow-wrap:anywhere}
.helper-heading{display:flex;align-items:center;gap:10px}
.helper-heading>.icon{width:30px;height:30px;flex:none}
.helper-heading h1{margin:0;font-size:1.625rem;line-height:1.2;font-weight:700}
.helper-sheet h3{font-size:1rem;font-weight:700;line-height:1.35;margin:0}
.helper-disclosure,.helper-why{font-size:.8125rem}
.helper-sheet .helper-quota{padding:14px;border-radius:16px;background:var(--surface);font-size:.875rem}
.helper-form,.helper-goals,.helper-editor{display:flex;flex-direction:column;gap:16px}
.helper-goals{gap:10px}
.helper-goal{width:100%;display:flex;align-items:center;gap:12px;padding:14px 12px;min-height:50px;border-radius:16px;background:var(--surface);text-align:left;font-size:1rem;color:var(--ink)}
.helper-goal.selected{background:var(--lime)}
.helper-goal>.icon{flex:none;width:22px;height:22px}
.helper-goal>span{flex:1;min-width:0;overflow-wrap:anywhere}
.helper-tone{display:flex;align-items:center;gap:12px;position:relative;padding:0 16px;background:var(--surface);border:1px solid color-mix(in srgb,var(--ink) 18%,transparent);border-radius:16px;min-height:54px}
.helper-tone>span{color:var(--muted);font-size:.875rem;flex:none}
.helper-tone>select{appearance:none;-webkit-appearance:none;border:0;background:none;box-shadow:none!important;flex:1;min-width:0;width:auto;margin:0;padding:16px 26px 16px 0;font-size:1rem;color:var(--ink)}
.helper-tone>.icon{position:absolute;right:16px;width:16px;pointer-events:none}
.helper-sheet .helper-idea{display:flex;flex-direction:column;gap:12px;padding:18px;background:var(--surface);border-radius:20px;margin:0}
.helper-idea .helper-message{font-size:1rem;white-space:pre-wrap}
.helper-sheet .text-button.helper-use{align-self:flex-start;padding:8px 0;font-size:.9375rem}
.helper-sheet .helper-report{font-size:.75rem;align-self:flex-start;text-align:left;padding:6px 0}
.helper-sheet .helper-new:disabled{background:color-mix(in srgb,var(--muted) 18%,var(--paper));color:var(--muted);opacity:1;box-shadow:none}
.helper-progress{display:flex;align-items:center;flex-direction:column;gap:16px;padding:20px 0;text-align:center}
.helper-editor .field{margin:0}
.helper-editor textarea,.message-edit-sheet textarea{font-size:1rem;min-height:120px;resize:vertical}
.page-chat .message-edited{font-size:.6875rem;color:var(--muted);line-height:1.25;margin-top:2px}
.page-chat .message-row.has-reactions>.message-edited{margin-top:3px}
.message-edit-sheet form{display:flex;flex-direction:column;gap:14px}
.message-edit-sheet form>.field,.message-edit-sheet form>p{margin:0}
.message-edit-sheet .edit-deadline{font-size:.8125rem}
.message-edit-sheet .edit-deadline:empty{display:none}

/* One back-button style across account pages, forms and the helper. */
.navigation-back{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;width:max-content;max-width:none;justify-self:start;min-width:44px;min-height:44px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--ink) 18%,transparent);border-radius:24px;background:var(--surface);color:var(--ink);font-size:1rem;font-weight:400;line-height:1.25;white-space:nowrap}
.navigation-back>.icon{display:block;flex:none;width:18px;height:18px;stroke-width:1.7}
.navigation-back:active{background:var(--line)}
.navigation-back:disabled{opacity:.38}
.question-input>.navigation-back{align-self:center;margin:8px auto 0;max-width:100%;white-space:normal}
.native-nav.nav-stacked>strong,.helper-sheet .sheet-header.nav-stacked>h2{grid-column:1/-1;grid-row:2;padding-top:4px;text-align:center}
.native-nav.nav-stacked>.back,.helper-sheet .sheet-header.nav-stacked>.back{grid-column:1;grid-row:1}
.native-nav.nav-stacked>.nav-trailing,.helper-sheet .sheet-header.nav-stacked>span{grid-column:3;grid-row:1}

/* Shared page background and equally sized contact badges. */
.page-settings,.page-settings .scroll-page,.page-settings .page-header,.page-settings .tabs{background:var(--paper)}
.setting-row>.contact-symbol{background:var(--lime);height:48px;border-radius:14px}
.setting-row>.contact-symbol>.icon{width:22px;height:22px}
.chat-introduction{text-align:center}

/* Settings and every detail page share the application background in both themes. */
:is(.page-settings,.page-profile,.page-history,.page-archive,.page-blocked,.page-sessions,.page-password,.page-pin,.page-pause,.page-cards,.page-delete){--form-background:var(--paper);background:var(--paper)}
:is(.page-settings,.page-profile,.page-history,.page-archive,.page-blocked,.page-sessions,.page-password,.page-pin,.page-pause,.page-cards,.page-delete) :is(.scroll-page,.page-header,.native-nav){background:var(--paper)}
.page-delete .scroll-page{padding:20px 16px calc(28px + env(safe-area-inset-bottom))}

/* Provider authentication is intentionally unavailable until configured. */
.auth-providers{display:grid;gap:10px;margin:20px 0}
.auth-providers .button:disabled{background:color-mix(in srgb,var(--ink) 8%,var(--paper));color:color-mix(in srgb,var(--ink) 48%,var(--paper));border:1px solid color-mix(in srgb,var(--ink) 15%,var(--paper));opacity:1;cursor:default}
.auth-providers p{font-size:12px;margin:0;text-align:center}
.email-auth summary{list-style:none;cursor:pointer;gap:8px}
.email-auth summary::-webkit-details-marker{display:none}
.email-auth[open] summary{margin-bottom:18px}

/* Compact account verification, matching registration code entry. */
.account-confirmation{padding:24px 20px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px;min-width:0}
.account-confirmation-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:18px;background:var(--paper);color:var(--ink)}
.account-confirmation-icon svg{width:26px;height:26px}
.account-confirmation h2{margin:0;font-size:1.25rem;line-height:1.25}
.account-confirmation p{margin:0;font-size:1rem;line-height:1.4}
.account-confirmation-email{overflow-wrap:anywhere;font-weight:600;max-width:100%}
.account-confirmation .button{width:100%}
.account-code-entry{width:100%;display:flex;flex-direction:column;gap:16px}
.account-code-entry[hidden]{display:none}
.account-confirmation .verification-code{box-sizing:border-box;width:100%;min-width:0;padding:16px;border:0;border-radius:16px;text-align:center;font-size:1.75rem;letter-spacing:2px;font-variant-numeric:tabular-nums;background:var(--paper);color:var(--ink)}
.account-confirmation .text-button{min-height:44px}
.account-confirmation .text-button:disabled{opacity:.4;cursor:default}
.account-code-status{color:var(--muted)}

.provider-heading{display:flex;align-items:center;gap:12px;font-size:1.375rem;line-height:1.3;letter-spacing:0}
.provider-heading>img,.provider-heading>svg{width:28px;height:28px;flex-shrink:0}
.provider-heading>span{min-width:0}
.provider-completion-form .consent{display:flex;align-items:center;gap:12px;text-align:left}
.provider-completion-form .consent>input[type=checkbox]{appearance:auto;-webkit-appearance:auto;display:block;flex:0 0 22px;width:22px;height:22px;min-height:22px;margin:0;padding:0;align-self:center}
.provider-completion-form .consent>span{flex:1;min-width:0;margin:0;line-height:1.4}

.account-confirmation .account-code-button{background:var(--ink);color:var(--on-ink);border-radius:999px;min-height:52px;width:100%}
.account-confirmation .account-code-button:disabled{opacity:.4;cursor:default}

/* Consent switches keep one consistent track/thumb geometry. */
.welcome-consent input.switch{width:51px;min-width:51px;height:31px;min-height:31px;padding:0;flex:0 0 51px}
.welcome-consent input.switch::before{width:25px;height:25px;left:3px;top:3px;border-radius:50%;transform:translateX(0)}
.welcome-consent input.switch:checked::before{transform:translateX(20px)}

.auth-providers>.button{border:1px solid var(--ink)}
.auth-providers>.button:disabled{border:1px solid var(--ink)}

/* Secondary provider caption stays within the existing button bounds. */
.provider-coming-label{position:relative;display:inline-block;transform:translateY(-5px)}
.provider-coming-label small{position:absolute;left:0;right:0;top:100%;font-size:11px;line-height:12px;font-style:italic;font-weight:400;color:inherit;white-space:nowrap}

/* Shared provider outlines and theme-aware colors, including unavailable providers. */
.auth-providers>.button,.auth-providers>.button:disabled{box-sizing:border-box;min-height:56px;border:1px solid var(--ink);border-radius:999px;background:var(--surface);color:var(--ink);gap:12px;opacity:1;font-size:1rem;font-weight:600;box-shadow:none}
.auth-providers>.button:disabled{color:var(--muted);cursor:default}
.auth-providers>.button>svg,.auth-providers>.button>img{width:20px;height:20px;flex-shrink:0}

.ban-countdown{padding:24px;border-radius:24px;background:var(--paper);display:flex;flex-direction:column;gap:10px;text-align:center;margin:20px 0}.ban-remaining{font-size:1.375rem;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.4}.ban-countdown>.muted{font-size:.875rem}

/* Keep the age heading aligned like the distance heading. */
.age-control > .horizontal{align-items:center;gap:12px}
.age-control #age-label{font-size:inherit;text-align:right;white-space:nowrap}
.age-control{margin-bottom:12px}

/* Exact shared answers: text emphasis only, with contrast in both themes. */
.partner-common{color:#16723D;font-weight:600}
:root[data-theme=dark] .partner-common{color:#79DCA0}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .partner-common{color:#79DCA0}}

/* Reaction ownership and profile-only introduction count. */
.reaction-badge{cursor:pointer}
.reaction-person{display:flex;align-items:center;gap:12px;padding:12px 0}
.reaction-person+.reaction-person{border-top:1px solid var(--line)}
.reaction-person .avatar{width:40px;height:40px;font-size:18px;flex:0 0 40px}
.reaction-name{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.reaction-name strong{font-size:1rem;font-weight:600;overflow-wrap:anywhere}
.reaction-name small{color:var(--muted);font-size:.75rem}
.person-emoji{font-size:28px;flex-shrink:0}
.page-profile .counted-textarea{position:relative;width:100%}
.page-profile .about-field .counted-textarea textarea{padding-bottom:24px;width:100%;box-sizing:border-box}
.character-count{position:absolute;right:0;bottom:0;color:var(--muted);opacity:.7;font-size:.6875rem;line-height:16px;pointer-events:none;font-variant-numeric:tabular-nums}

.sheet-body .confirmation-highlight{text-align:center;font-weight:650;font-size:1.125rem;line-height:1.4;color:var(--ink);margin:0 0 18px;overflow-wrap:anywhere}

.daily-shared-points{display:flex;flex-wrap:nowrap;gap:6px;width:100%;min-width:0}.daily-shared-point{display:inline-flex;flex:0 1 auto;align-items:center;gap:4px;min-width:0;padding:7px 8px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--ink);font-size:.75rem;line-height:1.25;font-weight:600;white-space:nowrap;overflow:hidden}.daily-shared-point>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.daily-shared-point .icon{width:14px;height:14px}

/* Reli Pro: account benefits, never a recurring subscription. */
.brand-pro{align-self:flex-start;margin:0 0 0 3px;font-size:11px;line-height:1.1;font-weight:700;letter-spacing:0;color:var(--ink)}
.pro-label{display:inline-flex;align-items:center;justify-content:center;flex:none;font-size:10px;line-height:1.2;font-weight:700;letter-spacing:.7px;border:1px solid var(--line);border-radius:6px;padding:4px 7px;background:var(--lime);color:var(--ink)}
.pro-home-offer{border:1px solid var(--line);border-radius:20px;background:var(--surface);padding:20px;display:flex;flex-direction:column;gap:12px}
.pro-offer-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.pro-offer-heading small{color:var(--muted);font-size:12px}.pro-home-offer h2{font-size:20px;line-height:1.25;margin:0}.pro-home-offer p{font-size:14px;line-height:1.5;color:var(--muted);margin:0}.pro-offer-link{display:flex;align-items:center;gap:8px;border:0;border-top:1px solid var(--line);padding:14px 0 0;background:transparent;color:var(--ink);font-size:14px;text-align:left}.pro-offer-link>span{flex:1}.pro-offer-link>strong{white-space:nowrap;font-size:13px}.pro-offer-link>.icon{width:18px;height:18px}
.pro-page-intro{display:flex;flex-direction:column;align-items:flex-start;gap:16px}.pro-page-intro h1{font-size:30px;line-height:1.15;margin:0}.pro-page-intro p{color:var(--muted);line-height:1.5;margin:0}.pro-feature-list{display:flex;flex-direction:column;background:var(--surface);border-radius:18px;padding:0 16px}.pro-feature{display:flex;align-items:flex-start;gap:12px;padding:18px 0}.pro-feature+.pro-feature{border-top:1px solid var(--line)}.pro-feature>.icon{flex:none;margin-top:2px;color:var(--ink)}.pro-feature h2{margin:0 0 6px;font-size:16px;line-height:1.3}.pro-feature p{font-size:14px;line-height:1.5;color:var(--muted);margin:0}.pro-purchase{display:flex;flex-direction:column;gap:16px;padding:20px;border-radius:18px;background:var(--lime)}.pro-price{display:flex;flex-direction:column;gap:5px}.pro-price strong{font-size:32px;line-height:1.2}.pro-price span{font-size:13px}.pro-purchase p,.pro-purchase small{margin:0;font-size:13px;line-height:1.5}.pro-purchase small{text-align:center}.pro-consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.5}.pro-consent input{width:19px;height:19px;flex:none;margin:2px 0 0;accent-color:var(--ink)}.pro-consent a{text-decoration:underline}.pro-checkout{min-height:300px}.pro-checkout[hidden],.pro-purchase[hidden]{display:none}.pro-locked-setting{gap:10px;width:100%;text-align:left}.pro-locked-setting>span{flex:1}.pro-locked-setting>.icon{width:16px;height:16px}.partner-reason>p{margin:0}.pro-detail-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:16px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font-size:14px}.pro-detail-button>.icon{width:14px;height:14px}.helper-pro-invite{display:flex;align-items:center;gap:10px;width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);text-align:left;font-size:13px}.helper-pro-invite>span{flex:1}.helper-pro-invite>.icon{width:16px;height:16px}.pro-report-content{display:flex;flex-direction:column;gap:24px}.pro-report-content h3{font-size:18px;line-height:1.3;margin:0 0 8px}.pro-report-content p,.pro-report-content li{line-height:1.55;font-size:15px}.pro-report-content ul{padding-left:20px}.pro-report-content li+li{margin-top:12px}.page-pro .button:disabled{opacity:.5}
@media(max-width:350px){.pro-offer-link{flex-wrap:wrap}.pro-page-intro h1{font-size:26px}}

.page-pro .scroll-page{display:flex;flex-direction:column;gap:24px}

/* A restrained Reli-green upgrade invitation, separate from the partner card. */
.pro-home-offer{--pro-bg:#193f35;--pro-fg:#f5f8ee;--pro-soft:#daedba;position:relative;isolation:isolate;overflow:hidden;background:var(--pro-bg);color:var(--pro-fg);border:1px solid #8da77355;border-radius:24px;padding:22px;gap:20px;box-shadow:0 8px 24px #193f3510}
.pro-home-offer:before{content:'';position:absolute;z-index:-1;pointer-events:none;width:200px;height:200px;right:-106px;top:-105px;border-radius:50%;border:1px solid #dcecaf35;box-shadow:0 0 0 32px #dcecaf08,0 0 0 64px #dcecaf05}
.pro-offer-brand{display:flex;align-items:center;gap:8px;color:var(--pro-soft)}.pro-offer-brand .native-mark{width:27px;height:27px;flex:none;background:currentColor}.pro-offer-brand>span:last-child{display:flex;align-items:flex-start;font-size:25px;font-weight:650;line-height:1;letter-spacing:-1px}.pro-offer-brand sup{font-size:10px;line-height:1.1;letter-spacing:0;margin:1px 0 0 3px;font-weight:600}.pro-offer-heading{align-items:center}.pro-offer-heading>small{color:var(--pro-fg);opacity:.72;font-size:11px;text-align:right}
.pro-offer-copy{display:flex;flex-direction:column;gap:8px}.pro-home-offer h2{font-size:24px;line-height:1.2;font-weight:600;color:var(--pro-fg);letter-spacing:-.6px}.pro-home-offer p{font-size:14px;line-height:1.5;color:var(--pro-fg);opacity:.78}
.pro-offer-benefits{display:flex;flex-direction:column;gap:10px}.pro-offer-benefits>span{display:flex;align-items:center;gap:9px;font-size:13px;line-height:1.4;color:var(--pro-fg)}.pro-offer-benefits .icon{width:16px;height:16px;flex:none;color:var(--pro-soft)}
.pro-offer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #dcecaf25;padding-top:17px}.pro-offer-price{display:flex;flex-direction:column;gap:3px}.pro-offer-price strong{font-size:20px;line-height:1.2;font-weight:600;white-space:nowrap;letter-spacing:-.4px}.pro-offer-price small{font-size:11px;color:var(--pro-fg);opacity:.65}.pro-home-offer .pro-offer-link{display:inline-flex;flex:none;align-items:center;justify-content:center;gap:10px;margin:0;padding:12px 15px;border:0;border-radius:999px;background:var(--pro-soft);color:var(--pro-bg);font-size:13px;line-height:1.2;font-weight:600;text-align:center}.pro-home-offer .pro-offer-link>span{flex:none}.pro-home-offer .pro-offer-link>.icon{width:16px;height:16px;flex:none}
html[data-theme=dark] .pro-home-offer{--pro-bg:#17392e;--pro-fg:#eef5e9;--pro-soft:#c9dfa9;box-shadow:none;border-color:#b4cf9050}
@media(prefers-color-scheme:dark){html[data-theme=system] .pro-home-offer{--pro-bg:#17392e;--pro-fg:#eef5e9;--pro-soft:#c9dfa9;box-shadow:none;border-color:#b4cf9050}}
@media(max-width:350px){.pro-home-offer{padding:18px;gap:18px}.pro-offer-brand>span:last-child{font-size:23px}.pro-offer-heading>small{font-size:10px;max-width:90px}.pro-home-offer .pro-offer-link{padding:12px;font-size:12px}.pro-offer-price strong{font-size:18px}.pro-offer-bottom{gap:8px}}
.pro-offer-brand>span:last-child{font-size:calc(25px * var(--scale,1))}.pro-offer-brand .native-mark{width:calc(27px * var(--scale,1));height:calc(27px * var(--scale,1))}.pro-offer-brand sup{font-size:calc(10px * var(--scale,1))}.pro-offer-heading>small{font-size:calc(11px * var(--scale,1));max-width:110px}.pro-home-offer h2{font-size:calc(24px * var(--scale,1))}.pro-home-offer p{font-size:calc(14px * var(--scale,1))}.pro-offer-benefits>span{font-size:calc(13px * var(--scale,1));min-width:0}.pro-offer-benefits>span>span{min-width:0}.pro-offer-benefits .icon{width:calc(16px * var(--scale,1));height:calc(16px * var(--scale,1))}.pro-offer-price strong{font-size:calc(20px * var(--scale,1))}.pro-offer-price small{font-size:calc(11px * var(--scale,1))}.pro-home-offer .pro-offer-link{font-size:calc(13px * var(--scale,1))}.pro-offer-bottom{flex-wrap:wrap}.pro-home-offer .pro-offer-link{flex:1 1 110px}.pro-offer-price{flex:1 0 auto}
@media(max-width:350px){.pro-offer-brand>span:last-child{font-size:calc(23px * var(--scale,1))}.pro-offer-heading>small{font-size:calc(10px * var(--scale,1));max-width:90px}.pro-offer-price strong{font-size:calc(18px * var(--scale,1))}.pro-home-offer .pro-offer-link{font-size:calc(12px * var(--scale,1))}}
.pro-home-offer .pro-offer-link{flex-wrap:nowrap;flex:1 0 auto}.pro-home-offer .pro-offer-link>span{white-space:nowrap}

/* One Pro visual language throughout the installed Reli. */
.pro-home-offer,.pro-page-intro,.pro-purchase,.helper-pro-invite,.pro-detail-button{--pro-bg:#193f35;--pro-fg:#f5f8ee;--pro-soft:#daedba}
html[data-theme=dark] :is(.pro-home-offer,.pro-page-intro,.pro-purchase,.helper-pro-invite,.pro-detail-button){--pro-bg:#17392e;--pro-fg:#eef5e9;--pro-soft:#c9dfa9}
@media(prefers-color-scheme:dark){html[data-theme=system] :is(.pro-home-offer,.pro-page-intro,.pro-purchase,.helper-pro-invite,.pro-detail-button){--pro-bg:#17392e;--pro-fg:#eef5e9;--pro-soft:#c9dfa9}}
.pro-label{border-radius:999px;background:#193f35;color:#daedba;border-color:#8da77355;font-size:calc(10px * var(--scale,1));line-height:1.2;padding:5px 9px}
html[data-theme=dark] .pro-label{background:#284d3b;color:#d9edb8;border-color:#92b87566}
@media(prefers-color-scheme:dark){html[data-theme=system] .pro-label{background:#284d3b;color:#d9edb8;border-color:#92b87566}}
.pro-page-intro{position:relative;isolation:isolate;overflow:hidden;background:var(--pro-bg);color:var(--pro-fg);border:1px solid #8da77355;border-radius:24px;padding:24px;gap:18px}.pro-page-intro:before,.pro-purchase:before,.helper-pro-invite:before{content:'';position:absolute;pointer-events:none;z-index:-1;width:200px;height:200px;right:-110px;top:-130px;border:1px solid #dcecaf30;border-radius:50%;box-shadow:0 0 0 30px #dcecaf07,0 0 0 60px #dcecaf04}.pro-page-intro h1{font-size:calc(28px * var(--scale,1));font-weight:600;line-height:1.2;letter-spacing:-.6px;color:var(--pro-fg)}.pro-page-intro p{font-size:calc(14px * var(--scale,1));line-height:1.55;color:var(--pro-fg);opacity:.8}
.pro-feature-list{border:1px solid var(--line);border-radius:24px;padding:4px 18px}.pro-feature{gap:12px;padding:18px 0}.pro-feature>div{min-width:0}.pro-feature-icon{width:36px;height:36px;flex:none;display:grid;place-items:center;background:var(--lime);border-radius:12px;color:var(--ink)}.pro-feature-icon>.icon{width:20px;height:20px}.pro-feature h2{font-size:calc(15px * var(--scale,1));font-weight:600;line-height:1.35}.pro-feature p{font-size:calc(13px * var(--scale,1));line-height:1.55}
.pro-purchase{position:relative;isolation:isolate;overflow:hidden;background:var(--pro-bg);color:var(--pro-fg);border:1px solid #8da77355;border-radius:24px;padding:24px;gap:18px}.pro-price strong{font-size:calc(32px * var(--scale,1));font-weight:600;letter-spacing:-.8px}.pro-price span{font-size:calc(12px * var(--scale,1));opacity:.8}.pro-purchase>p,.pro-purchase>small{color:var(--pro-fg);font-size:calc(13px * var(--scale,1));line-height:1.5;opacity:.8}.pro-purchase .button{background:var(--pro-soft);color:var(--pro-bg);border:0;border-radius:999px;font-size:calc(15px * var(--scale,1));font-weight:600}.page-pro .pro-purchase .button:disabled{opacity:.45}.pro-consent{font-size:calc(13px * var(--scale,1));color:var(--pro-fg)}.pro-consent input{accent-color:var(--pro-soft)}
.helper-pro-invite{position:relative;isolation:isolate;overflow:hidden;gap:12px;background:var(--pro-bg);color:var(--pro-fg);border:1px solid #8da77355;border-radius:24px;padding:16px 18px;font-size:calc(13px * var(--scale,1));line-height:1.4;min-height:62px}.helper-pro-invite>span{min-width:0}.helper-pro-invite .pro-label,.pro-detail-button .pro-label{background:var(--pro-soft);color:var(--pro-bg);border:none;font-size:calc(9px * var(--scale,1));padding:5px 8px}.helper-pro-invite>.icon{color:var(--pro-soft);width:18px;height:18px;flex:none}
.pro-detail-button{gap:10px;background:var(--pro-bg);color:var(--pro-fg);border:1px solid #8da77355;border-radius:999px;padding:14px 16px;font-size:calc(13px * var(--scale,1));line-height:1.4;flex-wrap:wrap}.pro-detail-button>.icon{color:var(--pro-soft)}.pro-locked-setting .pro-label{margin-left:4px}.pro-locked-setting>.icon{opacity:.6}
.pro-report-content section{padding:0 0 20px;border-bottom:1px solid var(--line)}.pro-report-content section:last-child{padding-bottom:0;border-bottom:0}.pro-report-content h3{font-size:calc(17px * var(--scale,1));font-weight:600}.pro-report-content p,.pro-report-content li{font-size:calc(14px * var(--scale,1));line-height:1.6}
@media(max-width:350px){.pro-page-intro,.pro-purchase{padding:20px}.pro-page-intro h1{font-size:calc(25px * var(--scale,1))}.pro-feature-list{padding:2px 14px}.pro-feature{gap:10px}.pro-feature-icon{width:30px;height:30px;border-radius:10px}.pro-feature-icon>.icon{width:17px;height:17px}.helper-pro-invite{padding:15px 14px;gap:9px}}

.avatar{position:relative;overflow:visible}.avatar-pro{position:absolute;top:10%;right:calc(5% + 2px);transform:translate(35%,-60%);z-index:1;padding:2px 5px;border:2px solid var(--surface);border-radius:10px;background:#193f35;color:#e1efbd;font-size:10px!important;line-height:12px;font-weight:700;letter-spacing:.1px;white-space:nowrap}.avatar .online{width:13px;height:13px;z-index:1;right:14.64466%;bottom:14.64466%;transform:translate(42%,42%)}

.avatar-initial{display:inline-block;line-height:1}

.page-chat .chat-profile-row>.identity{text-align:left}.page-chat .chat-profile-row .identity>strong,.page-chat .chat-profile-row .identity>.location,.page-chat #chat-presence{margin-left:0;padding-left:0}

/* Payment information follows the Pro card colors in every theme. */
.pro-consent a{color:inherit;text-underline-offset:3px;text-decoration-thickness:1px}.pro-payment-info{display:flex;flex-direction:column;gap:10px;color:var(--pro-fg);font-size:calc(12px * var(--scale,1));line-height:1.5;text-align:center}.pro-payment-provider{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;column-gap:10px;row-gap:5px}.pro-payment-provider a{display:inline-flex;align-items:center;flex:none;padding:2px 0}.pro-payment-provider img{display:block;width:48px;height:20px;object-fit:contain}.pro-purchase .pro-invoice-note{color:var(--pro-fg);font-size:calc(12px * var(--scale,1));line-height:1.55;opacity:.82;margin:0}

/* Same left-anchored attachment menu as Android, without a visible heading. */
.photo-options-menu .conversation-menu-item{line-height:22px}
/* Photo frames follow the actual rendered image width, including portrait images. */
.page-chat .message-row>.photo-bubble{width:fit-content;max-width:min(260px,calc(100% - 35px));flex-direction:column;align-items:flex-start;justify-content:flex-start}
.page-chat .message-row.mine>.photo-bubble{align-items:flex-end}
.page-chat .photo-bubble>[data-action="view-photo"]{display:block;padding:0;max-width:100%;line-height:0}
.page-chat .photo-bubble .message-photo{width:auto;max-width:100%;max-height:320px}

/* Shared GIF picker recipe: compact search, two columns, Reli surfaces and GIPHY attribution. */
.sheet.gif-picker-sheet{height:min(calc(var(--app-height)*.8),720px);max-height:90dvh;background:var(--paper);padding:0;border-radius:26px 26px 0 0}
.gif-picker-sheet .sheet-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:14px 16px;background:var(--paper)}
.gif-picker-sheet .sheet-header .back{justify-self:start}.gif-picker-sheet .sheet-header h2{font-size:18px;text-align:center;margin:0}
.gif-picker-sheet .sheet-body{padding:0;display:flex;flex:1;min-height:0;max-height:none;overflow:hidden}.gif-picker{width:100%;min-height:0;display:flex;flex-direction:column;padding:0 16px}
.gif-search-field{display:flex;align-items:center;gap:10px;padding:0 14px;background:var(--surface);border-radius:16px;min-height:48px;margin:0 0 12px}.gif-search-field>.icon{width:20px;height:20px;color:var(--muted)}
.gif-search-field input{border:0!important;background:transparent!important;border-radius:0!important;min-width:0;padding:12px 0!important;outline:none!important;min-height:48px!important}
.gif-results{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.gif-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}
.gif-tile{position:relative;display:block;padding:0;overflow:hidden;border-radius:14px;background:var(--surface);width:100%}.gif-tile img{display:block;width:100%;height:100%;object-fit:cover}.gif-tile:disabled{opacity:.6}
.gif-creator{position:absolute;left:0;right:0;bottom:0;padding:5px 7px;font-size:10px;color:white;background:linear-gradient(transparent,#0009);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.gif-status{padding:14px;font-size:14px}.gif-more{margin:12px 0}.gif-powered{display:flex;align-items:center;justify-content:center;padding:12px 0 calc(12px + env(safe-area-inset-bottom))}.gif-powered img{width:140px;height:25px;object-fit:contain;background:black;border-radius:4px}
.gif-message{max-width:100%;width:fit-content;display:flex;flex-direction:column;align-items:center}.gif-attribution{display:block;max-width:260px;font-size:10px;color:var(--muted);text-align:center;padding:4px 0;text-decoration:none}

.sheet.gif-picker-sheet[open]{display:flex;flex-direction:column}

.gif-grid{display:block;position:relative}.gif-creator{background:rgba(0,0,0,.45)}

/* Keep the timestamp outside the zoomable image, on a permanent dark footer. */
.photo-sheet .sheet-body{flex-direction:column;align-items:stretch;background:#000}
.photo-viewport{flex:1;height:auto;background:#000}
.photo-sent-at{display:block;flex:none;width:100%;text-align:center;color:#fff;background:#000;padding:14px 24px calc(24px + env(safe-area-inset-bottom));font-size:12px;font-weight:400;line-height:1.4;pointer-events:none}
/* Anchor to the visible viewport rather than Safari's keyboard-covered layout viewport. */
.sheet.gif-picker-sheet{position:fixed;inset:auto 0 auto;margin:0 auto;max-height:var(--app-height);}
.gif-picker-sheet .sheet-header,.gif-search-field,.gif-powered{flex-shrink:0}
.gif-keyboard-open .sheet-header{padding-top:8px;padding-bottom:8px}
.gif-keyboard-open .gif-powered{padding:6px 0}
.gif-picker-sheet .gif-search{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.gif-attribution{width:100%;text-align:left;overflow-wrap:anywhere}
.mine .gif-attribution{text-align:right}


/* Reactions anchor to the GIF pixels, excluding its mandatory attribution. */
.gif-media{position:relative;width:100%;display:block}
.gif-media>.message-gif{display:block;width:100%!important;height:auto}
.has-gif-reactions>.gif-attribution{padding-top:14px}

/* Profile-only disclosure controls, no effect on registration or partner layout. */
.profile-visibility-legend{padding:14px 16px;margin:0 0 20px;background:var(--surface);border-radius:16px;color:var(--ink)}
.profile-visibility-legend p{margin:0 0 9px;font-weight:600}.profile-visibility-legend>div{display:flex;align-items:center;gap:9px;margin-bottom:9px}.profile-visibility-legend small{color:var(--muted);line-height:1.45;display:block}
.profile-visibility-dot{width:28px;height:28px;min-width:28px;padding:0;border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;flex:none;box-shadow:none;cursor:pointer}
.profile-visibility-dot::after{content:"";display:block;width:12px;height:12px;border-radius:50%;background:#c83e4a;box-shadow:0 0 0 2px color-mix(in srgb,#c83e4a 12%,transparent)}
.profile-visibility-dot.visible::after{background:#23804d;box-shadow:0 0 0 2px color-mix(in srgb,#23804d 12%,transparent)}
.profile-visibility-dot.pro::after{background:linear-gradient(135deg,#c83e4a 50%,#23804d 50%)}
.profile-visibility-dot.fixed{cursor:default}.profile-visible-field{position:relative}.profile-visible-field>.profile-visibility-dot{position:absolute;right:8px;top:5px}
.page-profile .setting-group>.field.profile-visible-field{padding-right:46px}
.page-profile .setting-group>.field>.profile-visibility-dot{flex:none;min-width:28px;width:28px;height:28px}
.page-profile .form-row.profile-visible-field>.field>span:first-child,.profile-visible-field.card-preview>small{padding-right:28px}
#profile-town-control{position:relative}#profile-town-control>.profile-town-dot{position:absolute;right:8px;top:5px;z-index:1}
#profile-town-control>.settlement-picker{padding-right:46px}
.page-profile .profile-location-visibility{padding:0 16px 14px;margin:0;font-size:.78rem;line-height:1.45}

html[data-theme="dark"] .profile-visibility-dot.visible::after{background:#6fcf91}html[data-theme="dark"] .profile-visibility-dot.hidden::after{background:#f37c88}html[data-theme="dark"] .profile-visibility-dot.pro::after{background:linear-gradient(135deg,#f37c88 50%,#6fcf91 50%)}

@media(prefers-color-scheme:dark){html:not([data-theme="light"]) .profile-visibility-dot.visible::after{background:#6fcf91}html:not([data-theme="light"]) .profile-visibility-dot.hidden::after{background:#f37c88}html:not([data-theme="light"]) .profile-visibility-dot.pro::after{background:linear-gradient(135deg,#f37c88 50%,#6fcf91 50%)}}

/* All three required partner preferences remain visible together. */
.answer-choices.partner-gender-choices{flex-direction:column;overflow:visible}
.answer-choices.partner-gender-choices>.choice-button{width:100%;white-space:normal;text-align:center}

/* Fixed visibility indicators for basic profile data. */
.page-profile .profile-identity-visibility{padding-right:46px}
.profile-identity-visibility>.profile-visibility-dot{position:absolute;right:8px;top:5px}
.page-profile .identity-field>.profile-age-visibility{margin:8px 0 0;font-size:.78rem;line-height:1.45;color:var(--muted)}

/* Keep unbroken message previews inside the existing two-line list layout. */
.conversation p{overflow-wrap:anywhere}
