/* Qubool's original mobile product experience. Desktop remains intentionally spacious. */
.mobile-app-nav,.mobile-card-summary,.mobile-card-actions,.sheet-grabber{display:none}
body.sheet-open{overflow:hidden;overscroll-behavior:none}
.discovery-learning[hidden]{display:none}
.app-sheet,.filter-panel{overscroll-behavior:contain}
.app-sheet:focus,.filter-panel:focus{outline:none}
body.member-app:has(#onboarding.active) .topbar,
body.member-app:has(#profile-editor.active) .topbar{justify-content:flex-end}
body.member-app:has(#onboarding.active) .topbar .brand,
body.member-app:has(#profile-editor.active) .topbar .brand,
body.member-app:has(#onboarding.active) .topbar .nav,
body.member-app:has(#profile-editor.active) .topbar .nav,
body.member-app:has(#onboarding.active) .account-actions>:not(#accountButton),
body.member-app:has(#profile-editor.active) .account-actions>:not(#accountButton),
body.member-app:has(#onboarding.active) .mobile-app-nav,
body.member-app:has(#profile-editor.active) .mobile-app-nav{display:none!important}
body.member-app:has(#onboarding.active) #accountButton.is-authenticated,
body.member-app:has(#profile-editor.active) #accountButton.is-authenticated{display:inline-flex!important;min-height:42px;align-items:center;padding:8px 12px}
.sheet-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.sheet-heading h3{margin:4px 0 0;font:700 28px "Cormorant Garamond",serif}
.sheet-kicker{color:#9f7043;font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase}
.sheet-close{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--muted);font-size:23px;line-height:1;cursor:pointer}
.app-sheet-backdrop{position:fixed;inset:0;z-index:70;background:rgba(37,26,34,.48);backdrop-filter:blur(3px)}
.app-sheet-backdrop[hidden],.app-sheet[hidden]{display:none}
.app-sheet{position:fixed;z-index:80;left:50%;bottom:22px;width:min(560px,calc(100% - 32px));max-height:min(720px,calc(100vh - 44px));overflow:auto;padding:28px;border:1px solid var(--line);border-radius:28px;background:#fff;box-shadow:0 30px 90px rgba(47,29,41,.3);transform:translateX(-50%)}
.sort-options{display:grid;gap:9px}
.sort-options button{display:flex;align-items:center;justify-content:space-between;gap:15px;width:100%;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff;text-align:left;cursor:pointer}
.sort-options button:hover,.sort-options button.selected{border-color:#9b607c;background:#f8eef3}
.sort-options span{display:grid;gap:4px}.sort-options b{font-size:14px}.sort-options small{color:var(--muted)}
.sort-options i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#75405f;color:#fff;font-style:normal;opacity:0}
.sort-options button.selected i{opacity:1}
.member-report-form{display:grid;gap:15px}.member-report-form label{display:grid;gap:7px;font-size:13px;font-weight:700}
.member-report-form select,.member-report-form textarea{width:100%;padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--paper);font:inherit}.member-report-form textarea{resize:vertical}
.discovery-learning{display:grid;grid-template-columns:1fr auto;gap:8px 14px;margin:-12px 0 22px;padding:16px 18px;border:1px solid #e3d6dc;border-radius:18px;background:linear-gradient(135deg,#fff,#f6edf2);box-shadow:0 12px 28px rgba(81,48,67,.07)}
.discovery-learning strong{font-size:13px}.discovery-learning span{grid-column:1;color:var(--muted);font-size:11px}.discovery-learning b{grid-row:1/3;grid-column:2;align-self:center;color:#75405f;font-size:12px}
.learning-track{grid-column:1/-1;height:6px;overflow:hidden;border-radius:99px;background:#eadfe5}.learning-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#75405f,#c18aa8)}
.card-position{display:none;position:absolute;z-index:2;top:16px;left:62px;padding:8px 11px;border-radius:99px;background:rgba(41,28,37,.7);color:#fff;font:700 10px "DM Sans",sans-serif;backdrop-filter:blur(8px)}
.match-card .card-photo:after{content:"";display:none;position:absolute;inset:auto 0 0;height:55%;background:linear-gradient(transparent,rgba(34,23,31,.82));pointer-events:none}
.member-story{width:min(1080px,100%);margin:auto}
.member-story-grid{display:grid;grid-template-columns:minmax(300px,.82fr) minmax(0,1.18fr);gap:34px;align-items:start}
.member-hero{position:sticky;top:112px;overflow:hidden;min-height:670px;border-radius:34px;background:linear-gradient(145deg,#dcc9d1,#856176);box-shadow:0 24px 70px rgba(57,35,49,.16)}
.member-hero-photo{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font:700 120px "Cormorant Garamond",serif}
.member-hero-photo img{width:100%;height:100%;object-fit:cover}.member-hero-photo.is-blurred img{filter:blur(20px);transform:scale(1.12)}
.member-hero:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,rgba(34,22,31,.94))}
.member-hero-copy{position:absolute;z-index:2;left:26px;right:26px;bottom:28px;color:#fff}.member-hero-copy h2{margin:7px 0 4px;font-size:46px;line-height:1}.member-hero-copy p{margin:0;color:rgba(255,255,255,.78);line-height:1.5}
.member-status-row{display:flex;flex-wrap:wrap;gap:7px}.member-status-row span{padding:7px 10px;border:1px solid rgba(255,255,255,.25);border-radius:99px;background:rgba(43,28,38,.65);font-size:10px;font-weight:700;backdrop-filter:blur(8px)}
.member-content{display:grid;gap:15px}.member-section{padding:24px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 9px 28px rgba(68,44,58,.04)}
.member-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.member-section h3{font-size:28px}.member-section-heading>span{display:grid;place-items:center;min-width:52px;height:52px;border-radius:17px;background:#f3e7ed;color:#75405f;font-size:22px}
.member-section>p{margin:0;color:var(--muted);line-height:1.72;white-space:pre-line}
.member-chip-row{display:flex;flex-wrap:wrap;gap:8px}.member-chip{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid #eadfe3;border-radius:999px;background:#f8f4f5;color:#3c3038;font-size:12px;font-weight:650}.member-chip i{font-style:normal}
.member-chip.faith{border-color:#e4d2b9;background:#fbf5eb}.member-chip.intent{border-color:#d9d4e9;background:#f4f2fb}.member-chip.shared{border-color:#d7e6dc;background:#f1f8f3}.member-chip.priority{border-color:#ead9c9;background:#fff8ef}
.protected-photo-placeholder{display:grid;place-items:center;gap:8px;text-align:center}.protected-photo-placeholder b{display:grid;place-items:center;width:96px;height:96px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(255,255,255,.14);font:700 48px "Cormorant Garamond",serif}.protected-photo-placeholder small{padding:7px 10px;border-radius:99px;background:rgba(45,29,39,.65);color:#fff;font:700 10px "DM Sans",sans-serif;letter-spacing:.04em}
.compatibility-card{background:linear-gradient(145deg,#352630,#4d3443);color:#fff;border:0}.compatibility-card .member-section-heading>span{background:#bd8b55;color:#fff}.compatibility-card p{color:#e3d6dc}.compatibility-card .compatibility-list span{color:#fff}.compatibility-card .difference-list{border-color:rgba(255,255,255,.15)}.compatibility-card .difference-list span{color:#d8c8d1}
.compatibility-score{font:700 35px "DM Sans",sans-serif}.member-utility-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.member-utility-actions button{display:grid;place-items:center;gap:6px;min-height:76px;padding:10px 6px;border:1px solid var(--line);border-radius:16px;background:#fff;font-size:11px;font-weight:700;cursor:pointer}.member-utility-actions button span{font-size:20px}.member-utility-actions .danger{color:#943e4b}
.member-interest-area .introduction-box,.member-interest-area .connection-state{margin:0;border:0;padding:0}.member-interest-area .introduction-box .button,.member-interest-area .connection-state .button{justify-self:stretch}
.member-sticky-actions{position:sticky;z-index:12;bottom:16px;display:grid;grid-template-columns:52px 1fr;gap:10px;padding:10px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.94);box-shadow:0 18px 48px rgba(50,31,43,.18);backdrop-filter:blur(14px)}
.member-sticky-actions button{min-height:50px;border-radius:16px}.member-sticky-actions .dismiss{border:1px solid var(--line);background:#fff;font-size:23px;cursor:pointer}.member-sticky-actions .primary{border:0;background:linear-gradient(135deg,#784761,#61364e);color:#fff;font-weight:800;cursor:pointer}

@media(min-width:761px){
  .filter-panel[role="dialog"]{position:fixed;z-index:80;top:50%;left:50%;width:min(760px,calc(100% - 40px));max-height:calc(100vh - 60px);overflow:auto;margin:0;padding:28px;transform:translate(-50%,-50%);box-shadow:0 0 0 100vmax rgba(37,26,34,.48),0 30px 90px rgba(47,29,41,.3)}
}

@media(max-width:760px){
  html{overscroll-behavior-y:none}
  body.member-app{min-height:100dvh;padding-bottom:calc(76px + env(safe-area-inset-bottom));overflow-x:hidden;overscroll-behavior-y:none;background:#f8f4f3}
  body.member-app>main{min-height:0}
  body.member-app .view{min-height:0}
  body.member-app .view:not(.active){display:none!important}
  body.member-app .topbar{height:64px;padding:0 13px;background:rgba(255,255,255,.96)}
  body.member-app .brand{gap:7px;font-size:20px}body.member-app .brand-logo{width:34px;height:34px}
  body.member-app .account-actions{gap:5px}body.member-app #familyButton{display:none}body.member-app .notification-button{width:35px;height:35px}
  body.member-app .avatar{width:35px;height:35px}body.member-app .sign-in-button.is-authenticated{padding:7px 4px;font-size:10px}
  .mobile-app-nav{position:fixed!important;z-index:65;inset:auto 0 0;display:flex;justify-content:space-around;width:100%;max-width:100vw;height:calc(68px + env(safe-area-inset-bottom));padding:6px 20px env(safe-area-inset-bottom);border-top:1px solid #eadfe3;background:#fff;box-shadow:0 -8px 28px rgba(62,39,52,.08);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden;contain:layout paint}
  .mobile-app-nav[hidden]{display:none}.mobile-app-nav button{position:relative;display:grid;place-items:center;align-content:center;gap:2px;min-width:78px;border:0;background:none;color:#9a9197;font-size:10px;font-weight:700;cursor:pointer}.mobile-app-nav svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.mobile-app-nav button.active{color:#75405f}.mobile-app-nav button.active:before{content:"";position:absolute;top:0;width:28px;height:3px;border-radius:0 0 5px 5px;background:#75405f}.mobile-app-nav b{position:absolute;top:2px;right:14px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:99px;background:#b94f78;color:#fff;font-size:8px}.mobile-app-nav b[hidden]{display:none}
  .discover-view{padding:14px 12px 20px;background:#f8f4f3}.discover-heading{align-items:center!important;flex-direction:row!important;gap:10px;margin-bottom:12px}.discover-heading .eyebrow,.discover-heading p{display:none}.discover-heading h2{margin:0;font:700 30px "DM Sans",sans-serif;letter-spacing:-.04em}.discover-actions{justify-content:flex-end;width:auto!important;gap:6px}.discover-actions .filter-button{flex:0!important;padding:9px 11px;font-size:10px}.discover-actions .filter-button span{padding:2px 5px}
  .discovery-learning{margin:0 0 10px;padding:12px 14px;border-radius:15px}.discovery-learning span{font-size:10px}
  .match-grid{display:block}.match-card{display:none;position:relative;width:100%;height:calc(100svh - 220px);min-height:350px;max-height:690px;border:0;border-radius:25px;background:#3d2c37;box-shadow:0 18px 45px rgba(58,35,49,.2);transform:none!important}.discover-view:has(.discovery-learning:not([hidden])) .match-card{height:calc(100svh - 318px)}.match-card.mobile-current{display:block}.match-card .card-photo{height:100%;border-radius:inherit}.match-card .card-photo:after{display:block;height:72%;background:linear-gradient(transparent 20%,rgba(34,22,31,.96))}.match-card .card-body{display:none}.match-card .save-profile-button,.match-card .card-score,.match-card .verified-chip{display:none}.card-position{display:block}
  .mobile-card-summary{position:absolute;z-index:3;left:20px;right:20px;bottom:92px;display:block;color:#fff}.mobile-card-summary h3{margin:8px 0 4px;font:700 34px "DM Sans",sans-serif;letter-spacing:-.035em}.mobile-card-summary>p{margin:0 0 12px;color:rgba(255,255,255,.8);font-size:12px}.mobile-card-summary .member-chip-row{max-height:70px;overflow:hidden}.mobile-card-summary .member-chip{padding:7px 9px;border-color:rgba(255,255,255,.2);background:rgba(42,27,37,.68);color:#fff;font-size:10px;backdrop-filter:blur(7px)}.mobile-card-summary .member-chip.shared{background:rgba(81,69,120,.76)}
  .mobile-card-actions{position:absolute;z-index:4;left:16px;right:16px;bottom:15px;display:grid;grid-template-columns:54px 54px minmax(0,1fr);gap:9px}.mobile-card-actions button{min-width:0;min-height:54px;padding:8px;border:0;border-radius:17px;box-shadow:0 8px 25px rgba(28,18,24,.23);font-family:"DM Sans",sans-serif;line-height:1.15;cursor:pointer}.mobile-card-actions .skip{background:#211b1f;color:#fff;font-size:26px}.mobile-card-actions .save{background:#fff;color:#75405f;font-size:22px}.mobile-card-actions .interest{overflow:hidden;background:linear-gradient(135deg,#a8698a,#75405f);color:#fff;font-size:12px;font-weight:800}.mobile-card-actions small{display:block;margin-top:3px;color:rgba(255,255,255,.72);font-size:8px;font-weight:600}
  .filter-panel{position:fixed;z-index:80;left:0;right:0;bottom:0;max-height:88svh;overflow:auto;margin:0;padding:24px 18px calc(22px + env(safe-area-inset-bottom));border-radius:26px 26px 0 0;box-shadow:0 -24px 70px rgba(45,28,39,.25)}.filter-panel .sheet-heading{display:flex}.filter-grid{grid-template-columns:1fr 1fr}.filter-grid label:nth-child(3),.filter-grid .verified-filter{grid-column:1/-1}.filter-actions{position:sticky;bottom:0;margin:18px -3px -3px;padding:12px 3px 3px;background:linear-gradient(transparent,#fff 24%)}
  .app-sheet{left:0;bottom:0;width:100%;max-height:88svh;padding:12px 18px calc(22px + env(safe-area-inset-bottom));border:0;border-radius:26px 26px 0 0;transform:none}.sheet-grabber{display:block;width:44px;height:5px;margin:0 auto 18px;border-radius:99px;background:#ded6da}
  #match.page-view{padding:0 0 16px;background:#f7f3f2}.member-story>.back-link{position:fixed;z-index:40;top:76px;left:14px;display:grid;place-items:center;width:42px;height:42px;padding:0;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:0 6px 20px rgba(36,23,31,.18);font-size:0}.member-story>.back-link:after{content:"←";font-size:20px}.member-story-grid{display:block}.member-hero{position:relative;top:auto;min-height:69svh;border-radius:0 0 28px 28px}.member-hero-copy{left:20px;right:20px;bottom:24px}.member-hero-copy h2{font:700 38px "DM Sans",sans-serif;letter-spacing:-.035em}.member-content{gap:11px;padding:12px}.member-section{padding:20px;border-radius:19px}.member-section h3{font:700 25px "DM Sans",sans-serif;letter-spacing:-.025em}.member-section-heading>span{min-width:46px;height:46px}.member-utility-actions{grid-template-columns:repeat(4,1fr)}.member-utility-actions button{min-height:70px}.member-sticky-actions{bottom:calc(75px + env(safe-area-inset-bottom));margin:0 12px}
  #profile.page-view{padding:14px 12px 22px;background:#f8f4f3}
  #profile .profile-header{align-items:center;gap:14px;padding:21px 18px;border-radius:24px;box-shadow:0 18px 42px rgba(52,32,45,.16)}
  #profile .profile-avatar{flex:0 0 76px;width:76px;height:76px;border:3px solid rgba(255,255,255,.72);font-size:29px}
  #profile .profile-header>div:nth-child(2){flex:1;min-width:0}
  #profile .profile-header .eyebrow{color:#d6a76f;font-size:9px}
  #profile .profile-header h2{overflow:hidden;margin:3px 0 1px;font:700 29px "DM Sans",sans-serif;letter-spacing:-.035em;text-overflow:ellipsis;white-space:nowrap}
  #profile .profile-header p{overflow:hidden;margin:0;color:#dfd1d8;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
  #profile .profile-edit-button{min-height:38px;margin-top:11px;padding:8px 13px;background:#fff;font-size:11px}
  #profile .completion{display:flex;flex:0 0 100%;align-items:center;justify-content:space-between;width:100%;margin:2px 0 0;padding-top:15px;border-top:1px solid rgba(255,255,255,.15);text-align:left}
  #profile .completion strong{font:700 24px "DM Sans",sans-serif}
  #profile .completion span{color:#dfd1d8;font-size:11px}
  #profile .settings-grid{display:block;overflow:hidden;margin-top:12px;border:1px solid var(--line);border-radius:21px;background:#fff;box-shadow:0 12px 32px rgba(66,42,56,.06)}
  #profile .setting-card{padding:17px 18px;border:0;border-bottom:1px solid #eee6e8;border-radius:0;background:#fff;box-shadow:none}
  #profile .setting-card:last-child{border-bottom:0}
  #profile .setting-card h3{margin:0 0 5px;font:700 16px "DM Sans",sans-serif;letter-spacing:-.015em}
  #profile .setting-card p{margin:0 0 8px;color:#837981;font-size:11px;line-height:1.5}
  #profile .setting-card .back-link{width:100%;min-height:36px;padding:5px 0;color:#75405f;text-align:left;font-size:12px}
  #interests.page-view{padding:16px 12px 22px;background:#f8f4f3}
  #interests .page-heading{display:block;margin-bottom:13px}
  #interests .page-heading .eyebrow{font-size:9px}
  #interests .page-heading h2{margin:4px 0 2px;font:700 29px "DM Sans",sans-serif;letter-spacing:-.035em}
  #interests .page-heading p{margin:0;color:#887d84;font-size:11px}
  #interests .tabs{position:sticky;z-index:16;top:70px;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:0 0 12px;padding:4px;border:1px solid #e9dfe3;border-radius:16px;background:rgba(239,231,234,.94);box-shadow:0 8px 22px rgba(65,42,55,.06);backdrop-filter:blur(14px)}
  #interests .tabs button{min-width:0;min-height:42px;padding:8px 4px;border:0;border-radius:12px;color:#8a7e85;font-size:11px;white-space:nowrap}
  #interests .tabs .active{border:0;background:#fff;color:#75405f;box-shadow:0 5px 14px rgba(68,43,57,.09)}
  #interests .tabs b{padding:2px 5px;background:#eadde3;font-size:9px}
  #interests .interest-list{gap:10px}
  #interests .interest-card{position:relative;display:grid;grid-template-columns:62px minmax(0,1fr);gap:12px;padding:16px;border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(68,44,58,.05)}
  #interests .interest-avatar{width:62px;height:62px;flex-basis:62px;border:2px solid #f0e2e8}
  #interests .interest-copy{display:grid;grid-template-columns:1fr;gap:5px;min-width:0}
  #interests .interest-copy>div:first-child{padding-right:65px}
  #interests .interest-copy .eyebrow{font-size:8px;letter-spacing:.13em}
  #interests .interest-copy h3{overflow:hidden;margin:2px 0 0;font:700 18px "DM Sans",sans-serif;letter-spacing:-.02em;text-overflow:ellipsis;white-space:nowrap}
  #interests .interest-copy p{margin:2px 0;color:#857b82;font-size:10px;line-height:1.45}
  #interests .interest-score{position:absolute;top:16px;right:15px;padding:6px 8px;font-size:9px}
  #interests .interest-copy blockquote{margin:8px 0 3px;padding:11px 12px;border-left:0;border-radius:13px;background:#f7f1f3;color:#665a62;font-size:11px}
  #interests .interest-copy>small{font-size:9px}
  #interests .interest-copy .interest-actions{display:flex;align-items:center;flex-direction:row;gap:7px;margin-top:7px}
  #interests .interest-actions .button{flex:1;width:auto;min-height:42px;padding:9px 11px;font-size:10px}
  #interests .interest-actions .photo-delete{margin-left:auto}
  #interests .empty-state{margin-top:14px;border-radius:22px;background:#fff}
  .messages-view{padding-bottom:0}.messages-shell{height:calc(100svh - 132px)}.chat-panel{inset:64px 0 calc(68px + env(safe-area-inset-bottom));height:auto}
  .toast{bottom:calc(82px + env(safe-area-inset-bottom));max-width:calc(100% - 30px);text-align:center}
}

@media(max-width:390px){
  body.member-app .brand span{display:none}.discover-actions .filter-button{padding:9px 8px}
  .filter-grid{grid-template-columns:1fr}.filter-grid label:nth-child(3),.filter-grid .verified-filter{grid-column:auto}
}
