/* Couleurs de la référence. Les dimensions historiques du site PC restent dans app.css. */
:root{--ink:#191442;--muted:#777194;--coral:#ff4e8b;--orange:#ff9662;--lilac:#a94dff;--mint:#22d736;--paper:#fff8f5;--line:#eee9f4;--shadow:0 18px 48px #ae6be81a;--eclat-gradient:linear-gradient(110deg,#ff995f 0%,#ff4f92 48%,#a64fff 100%)}
html{background:#fcf5f2}body{background:linear-gradient(145deg,#fdf6f1,#fff3f5 55%,#faf5ff)}
.ambient-one{background:#ffe4d5}.ambient-two{background:#eedbff}.tabs{background:#fff;border-color:#f0eaf5}
.tab{color:var(--ink)}.tab.active{background:var(--eclat-gradient);color:#fff;box-shadow:0 5px 16px #e45cff26}
.premium-pill{background:var(--eclat-gradient);color:#fff}.premium-tag{color:#8d40ef}.member-id{background:#f1e8ff;color:#6836b6}
.wordmark{font-size:34px;letter-spacing:-1.7px}.brand-heart-sparkle{width:52px;height:48px;vertical-align:-9px}
@media(max-width:560px){.wordmark{font-size:31px}.brand-heart-sparkle{width:44px;height:40px;vertical-align:-7px}}
@media(min-width:701px){.wordmark{font-size:38px;letter-spacing:-1.9px}.wordmark .brand-heart-sparkle{width:64px;height:58px;vertical-align:-11px}}
.btn-primary,.btn-coral,.round-action.like,.premium-cta-blue{background:linear-gradient(105deg,#29126a,#af24bc 47%,#ff4a86 75%,#ff9b76);color:#fff}
.btn-soft{background:#fff;color:var(--ink)}.btn-lilac,.profile-view-tab.active{background:#f4efff;color:var(--ink)}
.side-card,.panel-card,.auth-card,.mini-profile,.review-card{background:#fff;border-color:var(--line)}
.field input,.field textarea,.field select{border-color:#e7e1ee;color:var(--ink)}.field input:focus,.field textarea:focus,.field select:focus{border-color:#ba65ff;box-shadow:0 0 0 3px #a94dff16}
.filter-actions .btn-primary{background:linear-gradient(105deg,#29126a,#ad24b9 47%,#ff4887 75%,#ff9b76)}
.filter-actions .btn-soft{background:#f7f2ff}.dot{color:#ff4c86}.hello{color:var(--ink)}
.profile-stage,.profile-image,.profile-image.empty{background:linear-gradient(145deg,#ead9ff,#ffcec7)}
.profile-edit-banner,.premium-hero,.profile-preview-hint{background:linear-gradient(115deg,#ffe0ba,#ffd1dc 55%,#e9d7ff)}
.ui-icon{display:inline-block;width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:-.12em}
.icon-home{fill:currentColor;stroke-width:1.2}.tab .ui-icon{width:1em;height:1em}.tab-bell .ui-icon{width:1.15em;height:1.15em}
.tab-story-badge{position:absolute;right:1px;top:-7px;min-width:17px;height:17px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#ff4e8b;color:white;font:700 9px system-ui;border:1px solid #fff}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#moment-stories{margin:20px 0 18px;min-width:0}.moment-heading{display:flex;align-items:center;gap:10px;margin-bottom:15px}.moment-heading h2{margin:0;font-size:19px;letter-spacing:-.04em}
.moment-subtitle{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}.moment-subtitle i{width:7px;height:7px;border-radius:50%;background:#22d736;flex:none}
.moment-all{margin-left:auto;border:0;background:none;color:var(--ink);font:600 11px system-ui;cursor:pointer;white-space:nowrap}.moment-all span{font-size:20px;margin-left:6px}
.moment-strip{display:flex;align-items:flex-start;gap:14px;overflow-x:auto;overscroll-behavior-x:contain;padding:14px 3px 8px;scrollbar-width:thin;scrollbar-color:#e9d7fa transparent}
.moment-person{flex:0 0 77px;width:77px;padding:0;border:0;background:none;color:var(--ink);font:700 11px system-ui;cursor:pointer;text-align:center}
.moment-ring{position:relative;display:block;width:76px;height:76px;border-radius:50%;background:transparent;padding:3px;box-shadow:0 0 0 1px #fff;transform:rotate(var(--story-tilt,0deg))}
.moment-ring::before{content:"";position:absolute;inset:0;background:var(--eclat-gradient);-webkit-mask:var(--story-mask,none) center/100% 100% no-repeat;mask:var(--story-mask,none) center/100% 100% no-repeat;z-index:0}.moment-ring img{position:relative;z-index:1;display:block;width:100%;height:100%;border:2px solid white;-webkit-mask:var(--story-mask,none) center/100% 100% no-repeat;mask:var(--story-mask,none) center/100% 100% no-repeat;object-fit:cover}.moment-live-dot{position:absolute;z-index:2;right:1px;bottom:4px;width:13px;height:13px;background:#22d736;border:2px solid white;border-radius:50%}
.moment-add .moment-ring{display:flex;align-items:center;justify-content:center;border:2px solid #fff;background:var(--eclat-gradient);box-shadow:0 0 0 2px #ffa9bf;color:#fff}.moment-add .moment-ring::before{content:none}.moment-add .ui-icon{position:relative;z-index:1;width:33px;height:33px;stroke-width:1.8}
.moment-name{display:block;margin-top:7px;line-height:1.08;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.moment-add .moment-name{white-space:normal}.moment-add .moment-ring{border-radius:50%;transform:none}.moment-empty{margin:19px 5px;color:var(--muted);font-size:12px;line-height:1.5}
.moment-more .moment-ring{display:flex;align-items:center;justify-content:center;background:#f4eaff;color:#8145ba}.moment-more .ui-icon{width:24px;height:24px}
.profile-story-ring{position:absolute;z-index:3;left:auto;right:18px;top:18px;transform:none;width:108px;height:108px;display:block;padding:4px;border:0;border-radius:50%;background:transparent;box-shadow:0 4px 18px #19144240;cursor:pointer}
.profile-story-ring::before{content:"";position:absolute;inset:0;background:var(--eclat-gradient);-webkit-mask:var(--story-mask,none) center/100% 100% no-repeat;mask:var(--story-mask,none) center/100% 100% no-repeat;z-index:0}.profile-story-ring img{position:relative;z-index:1;width:100%;height:100%;object-fit:cover;border:3px solid #fff;-webkit-mask:var(--story-mask,none) center/100% 100% no-repeat;mask:var(--story-mask,none) center/100% 100% no-repeat;display:block}.profile-story-ring>span{position:absolute;z-index:2;bottom:7px;left:50%;transform:translateX(-50%);padding:5px 10px;background:white;border-radius:999px;color:var(--ink);font:750 10px system-ui;white-space:nowrap;box-shadow:0 3px 10px #19144220}
.mini-profile{position:relative}.mini-profile .profile-story-ring{top:102px;width:82px;height:82px}
.profile-story-ring:focus-visible,.moment-person:focus-visible,.story-actions button:focus-visible,.tab:focus-visible{outline:3px solid #a94dff;outline-offset:4px}
.story-feed-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:25px 0 15px}.story-feed-title h2{margin:0 0 7px;font-size:24px;letter-spacing:-.04em}.story-feed-title p{margin:0}
.story-feed-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.story-feed-card{min-width:0;border:1px solid var(--line);border-radius:24px;background:#fff;overflow:hidden;box-shadow:var(--shadow)}
.story-feed-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:15px}.story-author{display:flex;align-items:center;gap:10px;min-width:0;padding:0;border:0;background:none;color:var(--ink);text-align:left;font-family:inherit;cursor:pointer}
.story-author img{flex:none;width:42px;height:42px;border-radius:50%;object-fit:cover;background:#f1e8ff}.story-author strong{display:block;font-size:13px}.story-author small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.story-author>span{min-width:0;overflow-wrap:anywhere}
.story-author-rank{display:inline-flex;align-items:center;justify-content:center;gap:2px;height:21px;margin-left:7px;padding:2px 6px;border:1px solid #fff3c4;border-radius:999px;background:linear-gradient(145deg,#fff3ad 0%,#e2b746 45%,#bd841a 100%);color:#65440a;box-shadow:inset 0 1px 1px #fff9d9,0 2px 5px #5e421c55;vertical-align:2px;font:800 10px/1 system-ui,sans-serif;white-space:nowrap}.story-author-rank .ui-icon{width:12px;height:12px;stroke-width:2.3;filter:drop-shadow(0 1px 0 #fff7d2)}.story-author-rank[data-rank="2"]{border-color:#f8faff;background:linear-gradient(145deg,#fff 0%,#e1e5eb 38%,#b5bdc9 72%,#8792a2 100%);color:#434c5a;box-shadow:inset 0 1px 1px #fff,0 2px 6px #3f48555e}.story-author-rank[data-rank="2"] .ui-icon{filter:drop-shadow(0 1px 0 #fff)}.story-author-rank[data-rank="3"]{border-color:#ffe9d4;background:linear-gradient(145deg,#ffe5c7 0%,#d99a5c 50%,#a96432 100%);color:#58351b}
.story-replay{flex:none;border:0;border-radius:999px;padding:8px 9px;background:#f6f0ff;color:var(--ink);font:650 10px system-ui;cursor:pointer}
.story-feed-media{display:block;width:100%;height:420px;object-fit:contain;background:#191442}.story-image-open{display:block;width:100%;padding:0;border:0;background:none;cursor:default}
.story-actions{display:flex;align-items:center;gap:8px;padding:12px 14px}.story-actions button,.story-like-count{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:999px;padding:9px 13px;color:var(--ink);background:#f7f2ff;font:700 11px system-ui;cursor:pointer}.story-actions .ui-icon{width:18px;height:18px}.story-actions .story-match{margin-left:auto;color:#ff4e8b;background:#fff0f5}.story-actions .is-liked{color:#a03dcc;background:#f0e2ff}.story-match.is-liked .ui-icon{fill:#ff4e8b;stroke:#ff4e8b}.story-actions button:disabled{opacity:.7;cursor:default}.story-actions .story-delete{margin-left:auto;font-size:10px;color:#ad345e;background:#fff0f5}.story-private-hint{padding:0 15px;font-size:10px;line-height:1.5;color:var(--muted);margin:0 0 14px}
#story-feed-more,#story-notification-more{text-align:center;margin:20px 0}.story-modal{width:min(760px,calc(100% - 24px));padding:22px}.story-modal .modal-close{position:relative;z-index:2;margin-left:9px}
.story-steps{display:flex;gap:5px;padding:3px 42px 12px 0}.story-steps button{flex:1;height:4px;border:0;border-radius:999px;background:#e9def2;padding:0;cursor:pointer}.story-steps button.active{background:var(--eclat-gradient)}
.story-view-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px}.story-view-frame{position:relative;overflow:hidden;border-radius:17px;background:#191442;cursor:default;touch-action:pan-y}.story-large-media{display:block;width:100%;height:min(60vh,620px);object-fit:contain;background:#191442;cursor:default}.story-view-frame[data-transition="next"] .story-large-media{animation:story-enter-next 180ms ease-out}.story-view-frame[data-transition="previous"] .story-large-media{animation:story-enter-previous 180ms ease-out}@keyframes story-enter-next{from{opacity:.55;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}@keyframes story-enter-previous{from{opacity:.55;transform:translateX(-12px)}to{opacity:1;transform:translateX(0)}}
.story-view-navigation{display:flex;justify-content:space-between;gap:8px;margin:13px 0 4px}.story-view-navigation .btn{font-size:11px;padding:10px 14px}.story-modal .story-actions{padding-left:0;padding-right:0}.story-modal .story-private-hint{padding-left:0}
.story-upload-preview{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:15px;background:#191442;margin:12px 0}.story-quota{border-radius:13px;background:#f4eaff;color:#65329a;padding:12px;font-size:13px;font-weight:750}
.story-upload-frame,.story-view-frame{position:relative}.story-caption-overlay{position:absolute;z-index:2;left:12px;right:12px;bottom:14px;margin:0;padding:10px 13px;border-radius:13px;background:#191442b8;color:#fff;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;backdrop-filter:blur(5px);pointer-events:none}.story-upload-frame .story-caption-overlay{bottom:20px}.story-feed-caption{margin:0;padding:12px 15px 0;color:var(--ink);font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.story-camera-launch{display:none}.story-live-camera{margin:10px 0 14px;padding:10px;border:1px solid var(--line);border-radius:16px;background:#fcf9ff}.story-live-camera[hidden]{display:none}.story-camera-preview{display:block;width:100%;max-height:420px;aspect-ratio:16/9;object-fit:contain;border-radius:12px;background:#191442}.story-camera-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding-top:9px}.story-camera-controls .form-note{flex:1 1 180px}.story-camera-status{font-size:11px;font-weight:750;color:#a32849}
.story-private-comments{margin:12px 0;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fcf9ff}.story-private-comments h3{margin:0 0 7px;font-size:15px}.story-private-comment{padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}.story-private-comment p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0;line-height:1.5}.story-private-comment strong{font-size:11px}
.story-notifications{margin:25px 0}.story-notifications h2{font-size:24px;margin:0 0 8px}.story-notification{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid var(--line);border-radius:18px;background:#fff;margin:10px 0}.story-notification.unread{background:#fdf7ff;border-color:#ead7f7}.story-notification>div{min-width:0;flex:1;font-size:13px}.story-notification p{font-size:12px;margin:4px 0 8px}.story-notification small{color:var(--muted);font-size:10px}.story-notification blockquote{margin:10px 0;border-left:3px solid #cf86ff;padding:7px 10px;background:white;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.5}
.story-notice-avatar,.story-notice-poster{padding:0;border:0;background:none;cursor:pointer;flex:none}.story-notice-avatar img{width:42px;height:42px;object-fit:cover;border-radius:50%}.story-notice-poster img{width:52px;height:62px;object-fit:cover;border-radius:9px}.story-notifications .empty-icon>.ui-icon{width:32px;height:32px}
@media(max-width:700px), (pointer:coarse){
  .story-camera-launch{display:inline-flex;margin:0 0 10px}
  .tabs{border-radius:24px;gap:0;padding:3px;background:#fff;justify-content:space-between;margin-top:0}.tab{flex:1 1 0;flex-direction:column;justify-content:center;gap:5px;padding:9px 3px;font-size:11px;min-width:0;white-space:nowrap;border-radius:21px}.tab .ui-icon{width:19px;height:19px}.tab-bell{flex:0 0 39px}.tab-bell .ui-icon{width:21px;height:21px}.tab-story-badge{top:2px;right:3px}
  .moment-heading{gap:7px;flex-wrap:wrap}.moment-heading h2{font-size:18px}.moment-subtitle{font-size:10px}.moment-all{font-size:10px;padding:0}.moment-strip{gap:8px}.moment-person{flex-basis:77px;width:77px;font-size:11px}.moment-ring{width:76px;height:76px}.moment-add .ui-icon{width:33px;height:33px}.moment-live-dot{width:13px;height:13px}.moment-empty{font-size:11px;margin-top:12px;min-width:170px}
  .story-feed-grid{grid-template-columns:minmax(0,1fr);gap:16px}.story-feed-title{align-items:flex-start}.story-feed-title h2{font-size:20px}.story-feed-title .btn{font-size:10px;padding:11px}.story-feed-media{height:min(100vw,470px)}
  .story-modal{padding:17px;max-height:92dvh}.story-large-media{height:55dvh}.story-author strong{font-size:12px}.story-view-header{gap:6px}.story-view-navigation .btn{font-size:10px;padding:9px 11px}.story-actions{padding:11px;gap:5px}.story-actions button,.story-like-count{padding:8px 10px;font-size:10px}.story-actions .ui-icon{width:17px;height:17px}.story-actions .story-delete{padding:8px;font-size:9px}.story-private-hint{font-size:9px}.profile-story-ring{width:100px;height:100px}.story-notification{padding:12px;gap:9px}
}
@media(max-width:360px){.tab{font-size:10px}.tab-bell{flex-basis:32px}.moment-subtitle{font-size:9px}.moment-heading{gap:5px}.moment-heading h2{font-size:16px}.story-actions button{padding:8px}.story-actions .story-delete{font-size:8px}}

.story-view-navigation .btn[disabled]{cursor:default}
@media(prefers-reduced-motion:reduce){.story-view-frame .story-large-media{animation:none}}
@media(min-width:701px){.story-modal{width:min(720px,calc(100% - 24px));max-height:96vh}}
.moment-person[data-top-rank] .moment-ring{box-shadow:0 0 0 1.5px #d6a12a,0 2px 8px #a9792538}
.moment-person[data-top-rank] .moment-ring::before{background:linear-gradient(135deg,#fff2a8 0%,#d6a12a 42%,#ffe98b 72%,#c88b13 100%)}
.moment-rank-badge{position:absolute;z-index:4;top:-11px;left:50%;width:31px;height:21px;display:flex;align-items:center;justify-content:center;gap:2px;border:1px solid #fff7d2;border-radius:999px;background:linear-gradient(145deg,#fff3ad 0%,#e2b746 45%,#bd841a 100%);color:#65440a;box-shadow:inset 0 1px 1px #fff9d9,0 2px 5px #5e421c66;transform:translateX(-50%) rotate(calc(-1 * var(--story-tilt,0deg)));font:800 9px/1 system-ui,sans-serif}
.moment-rank-badge .ui-icon{width:11px;height:11px;stroke-width:2.4;filter:drop-shadow(0 1px 0 #fff7d2)}
.moment-person[data-top-rank="2"] .moment-rank-badge{border-color:#f8faff;background:linear-gradient(145deg,#fff 0%,#e1e5eb 38%,#b5bdc9 72%,#8792a2 100%);color:#434c5a;box-shadow:inset 0 1px 1px #fff,0 2px 6px #3f48555e}
.moment-person[data-top-rank="2"] .moment-rank-badge .ui-icon{filter:drop-shadow(0 1px 0 #fff)}
.moment-person[data-top-rank="3"] .moment-rank-badge{background:linear-gradient(145deg,#ffe5c7 0%,#d99a5c 50%,#a96432 100%);color:#58351b}

/* Filter controls: tighter labels and a compact sliders heading. */
.discovery-filter>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:16px;line-height:1.25}
.discovery-filter .filter-heading{display:inline-flex;align-items:center;gap:9px;min-width:0}
.discovery-filter .filter-heading-icon{display:inline-flex;align-items:center;justify-content:center;color:#32156f;flex:0 0 auto}
.discovery-filter .filter-heading-icon .ui-icon{width:17px;height:17px}
.discovery-filter .field input,.discovery-filter .field select{font-size:13px;line-height:1.35}

/* Desktop discovery profile dialog. */
body.profile-overlay-open{overflow:hidden}
.desktop-profile-overlay{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:28px;background:rgba(25,17,44,.42)}
.desktop-profile-shell{position:relative;width:min(560px,calc(100vw - 176px));max-height:calc(100vh - 56px)}
.desktop-profile-pane{max-height:calc(100vh - 56px);overflow:auto;border:1px solid #ffffffb8;border-radius:24px;background:#fff;box-shadow:0 28px 90px #130b2b55;overscroll-behavior:contain}
.desktop-profile-stage{position:relative;height:290px;min-height:290px!important;overflow:hidden;border-radius:23px 23px 0 0;background:#1c1745}
.desktop-profile-photo-open{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.desktop-profile-stage .profile-image{position:absolute;inset:0;width:100%;height:100%;min-height:0;object-fit:cover}
.desktop-profile-stage .profile-story-badge,.desktop-profile-stage .story-profile-badge{z-index:2}
.desktop-profile-stage .profile-gradient{z-index:1}
.desktop-profile-stage .profile-info{z-index:2;right:16px!important;bottom:14px;max-height:none!important;overflow:visible!important}
.desktop-profile-stage .profile-info h2{font-size:24px}
.desktop-profile-detail-card{border:0;border-radius:0 0 23px 23px;box-shadow:none;padding:19px 22px 22px;max-height:calc(100vh - 360px);overflow-y:auto}
.desktop-profile-detail-card>h3{margin:8px 0}
.desktop-profile-detail-card .profile-detail-actions{margin-top:16px}
.desktop-profile-close,.desktop-profile-arrow{position:absolute;z-index:3;display:grid;place-items:center;border:1px solid #ffffff55;color:#fff;background:#1b1535c9;box-shadow:0 5px 18px #17102d38;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);cursor:pointer}
.desktop-profile-close{top:12px;right:12px;width:40px;height:40px;border-radius:50%;font-size:25px;line-height:1}
.desktop-profile-arrow{top:50%;width:48px;height:48px;border-radius:50%;transform:translateY(-50%)}
.desktop-profile-arrow-prev{left:-68px}
.desktop-profile-arrow-next{right:-68px}
.desktop-profile-arrow svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.desktop-profile-close:hover,.desktop-profile-arrow:hover{background:#32156f}
.desktop-profile-photo-zoom{position:fixed;inset:0;z-index:1300;display:grid;place-items:center;padding:35px;background:#090713e8;cursor:zoom-out}
.desktop-profile-photo-zoom img{display:block;max-width:min(92vw,1500px);max-height:92vh;width:auto;height:auto;object-fit:contain;border-radius:8px;box-shadow:0 20px 80px #0008}
.desktop-profile-photo-zoom-close{position:absolute;top:18px;right:22px;width:44px;height:44px;border:0;border-radius:50%;background:#ffffffeb;color:#1b1535;font-size:28px;cursor:pointer}
@media(max-width:900px) and (min-width:701px){.desktop-profile-shell{width:min(520px,calc(100vw - 150px))}.desktop-profile-arrow-prev{left:-58px}.desktop-profile-arrow-next{right:-58px}}
@media(max-width:700px){.desktop-profile-overlay{display:none}}

/* Profile card proportions and easy photo enlargement across touch and desktop. */
.desktop-profile-stage{height:360px;min-height:360px!important}
.desktop-profile-stage .profile-gradient,.desktop-profile-stage .profile-info{pointer-events:none}
.desktop-profile-stage .desktop-profile-photo-open{cursor:zoom-in;touch-action:manipulation}
.desktop-profile-detail-card{max-height:calc(100vh - 430px)}
.desktop-profile-photo-zoom{padding:20px;background:rgba(14,10,25,.68);cursor:zoom-out}
.desktop-profile-photo-zoom img{max-width:min(84vw,1000px);max-height:82vh;padding:7px;border:1px solid #ffffffb8;border-radius:18px;background:#fff;box-shadow:0 20px 70px #0008;cursor:default}

@media(max-width:700px){
  .desktop-profile-overlay{display:grid;place-items:center;padding:max(8px,env(safe-area-inset-top)) 7px max(8px,env(safe-area-inset-bottom));}
  .desktop-profile-shell{width:100%;height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);max-height:none;}
  .desktop-profile-pane{width:100%;height:100%;max-height:100%;border-radius:20px;}
  .desktop-profile-stage{height:40dvh;min-height:275px!important;max-height:370px;border-radius:19px 19px 0 0;}
  .desktop-profile-stage .profile-image{height:100%;}
  .desktop-profile-stage .profile-story-ring{right:12px;top:12px;width:82px;height:82px;}
  .desktop-profile-stage .profile-info{left:16px;right:16px!important;bottom:12px;}
  .desktop-profile-stage .profile-info h2{font-size:21px;}
  .desktop-profile-detail-card{max-height:none;padding:15px 17px 20px;border-radius:0 0 19px 19px;overflow:visible;}
  .desktop-profile-detail-card .profile-detail-actions{gap:8px;flex-wrap:wrap;}
  .desktop-profile-close{top:8px;right:8px;width:38px;height:38px;}
  .desktop-profile-arrow{top:clamp(145px,22dvh,235px);width:48px;height:96px;border-radius:999px;transform:none;}
  .desktop-profile-arrow-prev{left:3px;}
  .desktop-profile-arrow-next{right:3px;}
  .desktop-profile-arrow svg{width:20px;height:20px;}
  .desktop-profile-photo-zoom{padding:16px;}
  .desktop-profile-photo-zoom img{max-width:92vw;max-height:78vh;padding:5px;border-radius:14px;}
}

/* Keep profile cards at a stable maximum size while showing the whole photo. */
.desktop-profile-shell{width:min(500px,calc(100vw - 176px));height:min(820px,calc(100vh - 56px));max-height:none}
.desktop-profile-pane{height:100%;max-height:none;display:flex;flex-direction:column}
.desktop-profile-stage{height:390px;min-height:390px!important;flex:0 0 390px}
.desktop-profile-photo-open .profile-image-backdrop{z-index:0;object-fit:cover;filter:blur(18px) brightness(.68);transform:scale(1.09);opacity:.85}
.desktop-profile-photo-open .profile-image:not(.profile-image-backdrop){z-index:1;object-fit:contain}
.desktop-profile-stage .profile-story-ring{left:14px;right:auto;top:14px}
.desktop-profile-stage .profile-info{bottom:8px}
.desktop-profile-detail-card{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto}
.desktop-profile-arrow{width:44px;height:84px;border-radius:999px;background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.48);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.desktop-profile-arrow svg{width:25px;height:25px;stroke-width:2.4}
.desktop-profile-arrow:hover{background:rgba(255,255,255,.25)}
.desktop-profile-photo-zoom img{max-width:min(80vw,940px);max-height:78vh}

@media(max-width:700px){
  .desktop-profile-shell{width:100%;height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px)}
  .desktop-profile-pane{height:100%;max-height:none}
  .desktop-profile-stage{height:min(40dvh,370px);min-height:275px!important;max-height:370px;flex:0 0 min(40dvh,370px)}
  .desktop-profile-stage .profile-story-ring{left:10px;right:auto;top:10px;width:82px;height:82px}
  .desktop-profile-stage .profile-info{left:54px;right:54px!important;bottom:7px;padding:0}
  .desktop-profile-stage .profile-info h2{font-size:19px;line-height:1.15}
  .desktop-profile-stage .profile-detail-meta{font-size:12px;gap:8px}
  .desktop-profile-detail-card{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto}
  .desktop-profile-arrow{top:clamp(180px,29dvh,280px);width:42px;height:84px;border-radius:999px;background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.52)}
  .desktop-profile-arrow-prev{left:3px}
  .desktop-profile-arrow-next{right:3px}
  .desktop-profile-arrow svg{width:25px;height:25px;stroke-width:2.5}
  .desktop-profile-photo-zoom img{max-width:86vw;max-height:72vh}
}

/* Match the filter bar to the member navigation and align the logout action with Premium. */
.discovery-filter>summary{box-sizing:border-box;height:54px;padding:5px 22px;line-height:1}
.top-right .btn[data-action="logout"]{padding:10px 15px;font-size:11px;line-height:normal;min-height:0}
@media(max-width:700px){.discovery-filter>summary{height:52px;padding:5px 16px}}

/* Keep profile identity on the image, content at the top, actions anchored below. */
.desktop-profile-detail-card{display:flex;flex-direction:column;}
.desktop-profile-detail-card>.badge{align-self:flex-start;margin-bottom:10px}
.desktop-profile-detail-card .profile-detail-section{margin-top:0}
.desktop-profile-detail-card .profile-detail-section h4{margin:10px 0 5px}
.desktop-profile-detail-card .profile-detail-actions{margin-top:auto!important;position:sticky;bottom:0;padding-top:12px;background:#fff}
.desktop-profile-stage .profile-story-ring{left:14px;right:auto;top:14px;width:68px;height:68px;padding:3px}
.desktop-profile-stage .profile-story-ring>span{bottom:3px;padding:3px 6px;font-size:7px}
@media(max-width:700px){
  .desktop-profile-stage .profile-story-ring{left:10px;right:auto;top:10px;width:58px;height:58px;padding:2px}
  .desktop-profile-stage .profile-story-ring img{border-width:2px}
  .desktop-profile-stage .profile-story-ring>span{bottom:2px;padding:2px 5px;font-size:6px}
  .desktop-profile-stage .profile-info{left:54px;right:54px!important;bottom:4px!important;padding:0}
}

/* Discovery filter height matches the member navigation bar on desktop and mobile. */
.discovery-filter{box-sizing:border-box;height:54px;padding:0!important;overflow:hidden}
.discovery-filter[open]{height:auto;min-height:54px}
.discovery-filter>summary{box-sizing:border-box;height:52px;padding:5px 22px;line-height:1}
@media(max-width:700px){.discovery-filter>summary{height:52px;padding:5px 16px}}

/* Match list names open the same profile dialog as the avatar and chat header. */
.match-name-open{appearance:none;border:0;padding:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;line-height:inherit;text-align:left;cursor:pointer}
.match-name-open:hover{text-decoration:underline;text-underline-offset:3px}

/* On match profiles the story stays at the top right, opposite the close control. */
.profile-from-matches .desktop-profile-close{left:12px;right:auto}
.profile-from-matches .desktop-profile-stage .profile-story-ring{left:auto;right:14px;top:14px}
@media(max-width:700px){
  .profile-from-matches .desktop-profile-close{left:8px;right:auto}
  .profile-from-matches .desktop-profile-stage .profile-story-ring{left:auto;right:10px;top:10px;width:68px;height:68px}
  .profile-from-matches .desktop-profile-stage .profile-story-ring>span{font-size:7px}
}

/* Slightly enlarge the Éclat mark only on narrow iPhone browsers without changing layout. */

@media(max-width:700px){.desktop-profile-stage .profile-story-ring{width:68px;height:68px}.desktop-profile-stage .profile-story-ring>span{font-size:7px}}
@media(max-width:700px){@media(max-width:560px){.wordmark .site-logo{transform:scale(1.08);transform-origin:center}}}

/* Ajustements d’affichage demandés le 9 octobre 2026 */
.hello{font-size:21px}
.premium-offer-panel{margin:-30px;padding:30px;border-radius:24px;background:linear-gradient(120deg,#ffe3c5 0%,#ffd0d3 48%,#e4d2ff 100%);min-height:100%;box-shadow:inset 0 1px 0 #fff9}
.premium-offer-panel h2{margin-top:14px}
.premium-offer-panel .subtext{color:#625879}
.premium-offer-panel .perks{gap:10px}
.premium-offer-panel .perk{background:#fff9;border:1px solid #fff9;border-radius:16px;box-shadow:0 5px 18px #6a47700b;padding:14px}
.premium-offer-panel .form-note{color:#645d77}
.premium-offer-panel .premium-plan{background:#fffdfbe8;border-color:#ffffffd9}
@media(min-width:701px){.story-modal{width:min(650px,calc(100% - 24px))}}
@media(max-width:700px){.story-large-media{height:55svh;height:min(55svh,620px)}}
@media(max-width:700px){@media(max-width:560px){.wordmark .site-logo{transform:scale(1.16);transform-origin:center}}}
/* Lecteur story : image plus haute, contrôles latéraux */
@media(min-width:701px){
  .story-modal{width:min(620px,calc(100% - 24px));position:relative;overflow:visible}
  .story-modal .story-large-media{height:calc(min(60vh,620px) + 50px)}
  .story-modal .story-view-navigation{display:contents}
  .story-modal .story-view-arrow{top:50%;width:44px;height:84px;border-radius:999px;background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.48);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);transform:translateY(-50%)}
  .story-modal .story-view-arrow svg{width:25px;height:25px;stroke-width:2.5}
  .story-modal .story-view-arrow-prev{left:-58px}
  .story-modal .story-view-arrow-next{right:-58px}
  .story-modal .story-view-arrow:hover{background:rgba(255,255,255,.25)}
  .story-modal .story-view-arrow:disabled{opacity:.35;cursor:default}
  .story-modal #story-private-area{max-height:20vh;overflow:auto}
}
@media(min-width:701px) and (max-width:820px){
  .story-modal .story-view-arrow-prev{left:7px}
  .story-modal .story-view-arrow-next{right:7px}
}
@media(max-width:700px){
  .story-modal .story-view-navigation{display:none}
  .story-modal{max-height:98dvh;padding:14px}
  .story-modal .story-large-media{height:min(72svh,calc(100dvh - 220px),760px);background:transparent}
  .story-modal .story-view-frame{background:#191442}
  .story-modal .story-view-frame{cursor:pointer}
}
/* Lecteur desktop : garder le scroll natif réactif et limiter le recalcul du flou. */
@media(min-width:701px){
  #modal.story-modal{overscroll-behavior:contain;scroll-behavior:auto;scrollbar-width:thin}
  #modal.story-modal::backdrop{background:rgba(25,17,44,.38);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
}
/* Sur ordinateur, le commentaire reste dans le flux de la story et prolonge
   le cadre vers le bas, sans créer une seconde zone avec son propre scroll. */
@media(min-width:701px){
  .story-modal #story-private-area{max-height:none;overflow:visible}
  .story-modal .story-private-comments{margin:8px 0 4px;padding:12px 14px}
  .story-modal #story-comment .field{margin:10px 0}
  .story-modal #story-comment textarea{min-height:76px;resize:none}
}
/* Défilement plus léger dans la fenêtre de formule Premium */
#modal:has(.premium-offer-panel){overscroll-behavior:contain;scroll-behavior:auto;scrollbar-gutter:stable}
#modal:has(.premium-offer-panel)::backdrop{background:rgba(25,17,44,.58);backdrop-filter:none;-webkit-backdrop-filter:none}
.premium-offer-panel .perk{box-shadow:none}
.story-sound-toggle{position:absolute;z-index:4;right:13px;bottom:13px;width:42px;height:42px;display:grid;place-items:center;padding:0;border:1px solid #ffffff80;border-radius:50%;background:#19144258;color:#fff;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 3px 16px #19144230;cursor:pointer;touch-action:manipulation}.story-sound-toggle .ui-icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.story-upload-progress{height:7px;margin:8px 0 14px;border-radius:999px;overflow:hidden;background:#eee7f5}.story-upload-progress[hidden]{display:none}.story-upload-progress>div{width:0;height:100%;border-radius:inherit;background:var(--eclat-gradient);transition:width .12s linear}video::-webkit-media-controls-picture-in-picture-button{display:none}
.story-modal #story-comment textarea{resize:none}
@media(max-width:700px){.story-sound-toggle{width:39px;height:39px;right:11px;bottom:11px}}

/* Remove the circular halo around story thumbnails; keep the masked story edge and ranking crown. */
.moment-ring,.moment-person[data-top-rank] .moment-ring{box-shadow:none}
.story-notice-name{display:block;padding:0;border:0;background:transparent;color:var(--ink);font:inherit;font-weight:800;text-align:left;cursor:pointer}.story-notice-name:hover{text-decoration:underline;text-underline-offset:2px}
@media(min-width:701px) and (hover:hover){
  .match-row .match-name-open{color:#111;font-size:13px;font-weight:700;text-decoration:none;transition:font-weight .06s ease-out}
  .match-row .match-name-open:hover,.match-row .match-name-open:focus-visible{color:#111;font-size:13px;font-weight:800;text-decoration:none;text-decoration-line:none}
}
/* Let the browser keep desktop video on its native media layer; forced transforms can
   interfere with smooth decoding on some GPU and driver combinations. */
@media(min-width:701px){
  .story-view-frame:has(video.story-large-media) .story-large-media{animation:none!important;transform:none;backface-visibility:visible;will-change:auto}
  /* Keep the dimmed story backdrop simple on desktop to protect video playback. */
  #modal.story-modal::backdrop{background:rgba(25,17,44,.52);backdrop-filter:none;-webkit-backdrop-filter:none}
}
#modal.story-modal::backdrop{background:rgba(25,17,44,.52);backdrop-filter:none;-webkit-backdrop-filter:none}
@media(max-width:700px){
  .desktop-profile-overlay{backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
  #modal.story-modal::backdrop{backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
}

/* Fill the side gutters with a softened copy of the media; keep the author avatar on top. */
.story-modal .story-view-frame .story-media-backdrop{position:absolute;z-index:0;inset:-36px;display:block;width:calc(100% + 72px);height:calc(100% + 72px);object-fit:cover;pointer-events:none}
.story-modal .story-view-frame .story-large-media{position:relative;z-index:1;background:transparent}
.story-modal .story-view-frame 
.story-view-frame .story-video-poster{position:absolute;z-index:1;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;transition:opacity .12s ease-out}
.story-modal .story-view-frame video.story-video-media{z-index:2;opacity:0;transition:opacity .12s ease-out}
.story-modal .story-view-frame video.story-video-media.is-playing{opacity:1}
.story-modal .story-view-frame:has(video.story-video-media.is-playing) .story-video-poster{opacity:0}
.story-feed-media-frame{position:relative;isolation:isolate;height:420px;overflow:hidden;background:radial-gradient(ellipse at center,#554879 0%,#302650 58%,#191442 100%)}
.story-feed-media-frame .story-media-backdrop{position:absolute;z-index:0;inset:-36px;width:calc(100% + 72px);height:calc(100% + 72px);object-fit:cover;pointer-events:none}
.story-feed-media-frame .story-backdrop-source,.story-feed-media-frame .story-image-open,.story-feed-media-frame .story-feed-media{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;background:transparent}
.story-feed-media-frame .story-image-open{display:block;padding:0;border:0;background:transparent}
.story-feed-media-frame .story-video-poster{position:absolute;z-index:1;inset:0;pointer-events:none;background:transparent}
.story-feed-media-frame video.story-feed-video{z-index:2;opacity:0;transition:opacity .12s ease-out}
.story-feed-media-frame video.story-feed-video.is-playing{opacity:1}
.story-feed-media-frame:has(video.story-feed-video.is-playing) .story-video-poster{opacity:0}
.story-feed-media-frame .story-feed-media{height:100%}
@media(max-width:700px){.story-feed-media-frame{height:min(100vw,470px)}}

/* Use the browser compositor for the gutter blur; iOS WebKit may ignore canvas ctx.filter. */
.story-modal .story-view-frame .story-media-backdrop,
.story-feed-media-frame .story-media-backdrop{
  -webkit-filter:blur(24px) brightness(.62) saturate(1.04);
  filter:blur(24px) brightness(.62) saturate(1.04);
  transform:scale(1.02);
}

/* Desktop member feed videos stay paused until explicitly started. */
@media(min-width:701px){
  .story-feed-media-frame{content-visibility:auto;contain-intrinsic-size:auto 420px}
  .story-feed-play{position:absolute;z-index:4;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:64px;height:64px;padding:0;border:1px solid #ffffffbd;border-radius:50%;background:#1914429c;color:#fff;box-shadow:0 5px 22px #120d2b55;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);cursor:pointer;transition:background .16s ease,transform .16s ease}
  .story-feed-play:hover{background:#191442d1;transform:translate(-50%,-50%) scale(1.07)}
  .story-feed-play svg{width:27px;height:27px;fill:currentColor;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
  .story-feed-play.is-ended{background:#191442b8}
  .story-feed-play.is-ended{display:flex;align-items:center;justify-content:center;gap:8px;width:auto;min-width:116px;height:52px;padding:0 16px;border-radius:999px;font:700 13px system-ui,sans-serif}
  .story-feed-play.is-ended svg{fill:none;stroke:currentColor;stroke-width:2.1}
  .story-feed-play[hidden]{display:none!important}
  .story-feed-sound-toggle{position:absolute;z-index:5;right:12px;bottom:12px;display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #ffffffbd;border-radius:50%;background:#191442a8;color:#fff;box-shadow:0 4px 16px #120d2b55;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);cursor:pointer;transition:background .16s ease,transform .16s ease}
  .story-feed-sound-toggle:hover{background:#191442df;transform:scale(1.06)}
  .story-feed-sound-toggle .ui-icon{width:21px;height:21px}
}
/* Fil Actualité : catégories, compteurs et commentaires privés en ligne. */
.story-feed-filters{display:flex;gap:8px;overflow-x:auto;padding:2px 1px 12px;margin:0 0 8px;scrollbar-width:none}
.story-feed-filters::-webkit-scrollbar{display:none}
.feed-filter{flex:0 0 auto;border:1px solid #ece5f2;border-radius:999px;background:#fff;color:#504663;padding:9px 14px;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer;box-shadow:0 3px 12px #51354a0b;transition:transform .16s,background .16s,color .16s}
.feed-filter:hover{transform:translateY(-1px)}
.feed-filter.active{border-color:transparent;background:linear-gradient(110deg,#ff947d,#ef55ad 58%,#a45ae7);color:#fff;box-shadow:0 5px 15px #d75da638}
.feed-filter .ui-icon{width:14px;height:14px;vertical-align:-3px;margin-right:3px;stroke-width:2.1}
.feed-filter .icon-star{fill:#191442;stroke:#191442}
.feed-filter.active .icon-star{fill:#fff;stroke:#fff}
.feed-filter .icon-location{fill:#f4e8ff;stroke:#7046a6}
.feed-filter.active .icon-location{fill:#fff4fa;stroke:#fff}
.story-feed-card[hidden]{display:none!important}
.story-feed-private-count{display:inline-flex;align-items:center;gap:5px;color:#625771;font-size:11px;font-weight:700;white-space:nowrap}
.story-feed-private-count .ui-icon{width:17px;height:17px;stroke-width:1.8}
.story-feed-comment,.story-view-comment{display:flex;align-items:center;gap:8px;min-width:0;margin:10px 0 0;padding:5px 6px 5px 5px;border:1px solid #eee6f3;border-radius:999px;background:linear-gradient(105deg,#fffaf8,#f5efff)}
.story-feed-comment>img,.story-view-comment>img{width:29px;height:29px;flex:0 0 29px;object-fit:cover;border-radius:50%;background:#eee5f8}
.story-feed-comment>input,.story-view-comment>input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#282342;font:inherit;font-size:12px;padding:6px 2px}
.story-feed-comment>input::placeholder,.story-view-comment>input::placeholder{color:#93899d}
.story-feed-comment>button,.story-view-comment>button{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border:0;border-radius:50%;background:linear-gradient(140deg,#ff8e83,#e955ae 58%,#9c5be6);color:#fff;cursor:pointer;box-shadow:0 3px 9px #c654a33a}
.story-feed-comment>button:disabled,.story-view-comment>button:disabled{opacity:.55;cursor:wait}
.story-feed-comment>button .ui-icon,.story-view-comment>button .ui-icon{width:15px;height:15px;stroke-width:2}
.story-feed-comment>.story-feed-private-count,.story-view-comment>.story-feed-private-count{padding:0 4px}
.story-modal .story-view-comment{margin:4px 0 12px}
.story-modal .story-private-hint{margin-top:4px}
.feed-filter-empty{grid-column:1/-1}
@media(max-width:700px){#member-content .story-feed-title>[data-story-action="publish"]{display:none}}
@media(max-width:560px){.story-feed-filters{gap:6px}.feed-filter{padding:8px 11px;font-size:11px}.story-feed-comment,.story-view-comment{gap:6px}.story-feed-comment>.story-feed-private-count,.story-view-comment>.story-feed-private-count{font-size:10px}}

/* Android only: make the story comment composer more compact and prevent
   mobile text autosizing from enlarging its placeholder and controls. */
@media(max-width:700px){
}

/* Stories mobiles : media plus court pour laisser les commandes visibles sans défilement. */
@media(max-width:700px){.story-modal .story-large-media{height:calc(min(72svh,calc(100dvh - 220px),760px) - 38px)!important;min-height:220px}}

/* Android : éclats plus compacts pour afficher davantage de membres, et
   commentaire légèrement agrandi après le réglage trop réduit précédent. */
@media(max-width:700px){
}

/* Keep desktop story navigation and sizing unchanged; center clips inside the
   same media box used by photos, preserving their original proportions. */
@media(min-width:701px){
  /* Keep the existing desktop story stage dimensions, but size the video
     against that stage instead of its intrinsic metadata dimensions. */
  .story-modal .story-view-frame:has(>video.story-video-media){height:calc(min(60vh,620px) + 50px);box-sizing:border-box}
  .story-modal .story-view-frame>video.story-video-media{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:contain;object-position:center}
}
/* On iPhone, center the clip in the same fixed media height used by photos. */
@media(max-width:700px){
  .story-modal .story-view-frame:has(video.story-video-media){height:calc(min(72svh,calc(100dvh - 220px),760px) - 38px);min-height:220px}
  .story-modal .story-view-frame>video.story-large-media{position:absolute;inset:0;width:100%;height:100%!important;min-height:0;object-fit:contain;object-position:center}
}

/* Android alone gets the fixed dialog and full-frame video treatment. */
@media(max-width:700px){
  .is-android .story-modal .story-view-frame:has(video.story-video-media){
    background:#191442;
    isolation:isolate;
  }
  .is-android .story-modal .story-view-frame:has(video.story-video-media)>.story-media-backdrop{display:none}
  .is-android .story-modal .story-view-frame video.story-video-media{
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    max-width:none;
    object-fit:cover;
    object-position:center;
    background:#191442;
    animation:none!important;
    transform:none!important;
    transition:none;
    backface-visibility:visible;
    will-change:auto;
  }
  .is-android .story-modal .story-view-frame .story-video-poster{
    object-fit:cover;
    object-position:center;
    transition:none;
  }
}


/* Profile photo gallery: compact count hint and navigable full-screen viewer. */
.profile-photo-count{display:inline-flex;align-items:center;gap:5px;margin-left:5px;padding:5px 9px;border:1px solid #ffffffb8;border-radius:999px;background:#fff4ff;color:#35204f;font-family:inherit;font-size:11px;line-height:1.2;font-weight:700;white-space:nowrap;cursor:pointer;box-shadow:0 3px 12px #21152c26}
.profile-photo-count:hover{background:#ffe4ee;transform:translateY(-1px)}
.profile-gallery-arrow{position:absolute;z-index:2;top:50%;display:grid;place-items:center;width:52px;height:68px;transform:translateY(-50%);border:1px solid #ffffffa8;border-radius:999px;background:#21152caa;color:#fff;font-family:inherit;font-size:42px;line-height:1;font-weight:400;cursor:pointer;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}

/* iPhone: match Android's compact story tiles without shrinking labels or crowns. */
@media(max-width:700px){
  @media(max-width:700px){
    .moment-strip{gap:7px}
    .moment-person{flex-basis:66px;width:66px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
    .moment-ring{width:64px;height:64px}
    .moment-add .ui-icon{width:29px;height:29px}
    .moment-live-dot{width:11px;height:11px}

    .hello{font-size:23px}
    .hello small{font-size:12px}
    .match-row{gap:9px;padding:11px}
    .match-row .avatar{width:54px;height:54px}
    .match-row b{font-size:14px}
    .match-row .match-name-open{font-size:14px!important}
    .match-row small{font-size:11px}
  }
}
.profile-gallery-prev{left:max(18px,calc((100vw - 1000px)/2 - 72px))}.profile-gallery-next{right:max(18px,calc((100vw - 1000px)/2 - 72px))}
.profile-gallery-count{position:absolute;z-index:2;left:50%;bottom:max(18px,env(safe-area-inset-bottom));transform:translateX(-50%);padding:8px 13px;border:1px solid #ffffff99;border-radius:999px;background:#21152cbd;color:#fff;font-size:14px;font-weight:750;letter-spacing:.03em;box-shadow:0 4px 18px #0005}
.desktop-profile-photo-zoom-close{z-index:3}
.profile-extra-photo-list{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}
.profile-extra-photo{display:flex;align-items:center;gap:9px;padding:8px;border:1px solid #ffffffc9;border-radius:15px;background:#ffffffa8}
.profile-extra-photo img{width:64px;height:74px;object-fit:cover;border-radius:10px}
.profile-extra-photos-card form{margin-top:10px}
.desktop-profile-photo-open{position:relative}
.profile-detail-stage .profile-image[data-action="profile-photo-enlarge"],.profile-own-preview-image[data-action="profile-photo-enlarge"]{cursor:zoom-in}
@media(max-width:700px){.profile-gallery-arrow{width:44px;height:58px;font-size:36px}.profile-gallery-prev{left:10px}.profile-gallery-next{right:10px}.profile-gallery-count{bottom:max(14px,env(safe-area-inset-bottom))}.profile-photo-count{font-size:10px;padding:4px 7px}}
.profile-info .profile-photo-count{pointer-events:auto}
.profile-own-stage .profile-gradient{pointer-events:none}
.profile-own-preview-image[data-action="profile-photo-enlarge"]{z-index:1;pointer-events:auto}
/* Galerie profil : flèches centrées par rapport à la photo et rapprochées de son bord. */
.desktop-profile-photo-zoom{grid-template-columns:1fr;grid-template-rows:1fr;overflow:hidden}
.profile-gallery-stage{position:relative;display:inline-flex;align-items:center;justify-content:center;max-width:calc(100vw - 150px);max-height:86vh;cursor:default}
.profile-gallery-stage>img{max-width:100%!important;max-height:86vh!important}
.profile-gallery-stage .profile-gallery-arrow{top:50%;transform:translateY(-50%)}
.profile-gallery-stage .profile-gallery-prev{left:-58px;right:auto}
.profile-gallery-stage .profile-gallery-next{left:auto;right:-58px}
.profile-gallery-count{bottom:max(18px,env(safe-area-inset-bottom))}
@media(max-width:700px){.profile-gallery-stage{max-width:calc(100vw - 106px);max-height:80vh}.profile-gallery-stage>img{max-height:80vh!important}.profile-gallery-stage .profile-gallery-prev{left:-48px}.profile-gallery-stage .profile-gallery-next{right:-48px}.profile-gallery-stage .profile-gallery-arrow{width:40px;height:54px;font-size:32px}}
/* Galerie de profil : le fond reste la page assombrie; seul un halo coloré entoure le liseré. */
.profile-gallery-stage{position:relative;isolation:isolate;overflow:visible}
.profile-gallery-halo{position:absolute;z-index:0;inset:-9px;border-radius:22px;background:linear-gradient(135deg,var(--gallery-halo-a,#ff8b83),var(--gallery-halo-b,#d744ff) 55%,var(--gallery-halo-c,#ffb16e));filter:blur(18px);-webkit-filter:blur(18px);opacity:0;transform:translateZ(0);pointer-events:none;transition:opacity .16s ease;will-change:opacity}
.profile-gallery-halo.is-ready{opacity:.72}
.profile-gallery-main{position:relative;z-index:1;display:block;max-width:100%!important;max-height:86vh!important;object-fit:contain;border-radius:12px;border:1px solid #fff!important;padding:2px!important;background:transparent!important;box-shadow:0 12px 42px #0004}
.profile-gallery-arrow{z-index:3;display:grid;place-items:center;padding:0;line-height:0}
.profile-gallery-arrow svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:700px){.profile-gallery-main{max-height:80vh!important}.profile-gallery-halo{inset:-8px;border-radius:18px;filter:blur(16px);-webkit-filter:blur(16px)}.profile-gallery-arrow svg{width:20px;height:20px}}

/* Aperçu de profil : les côtés reprennent la photo, comme dans le lecteur de story. */
.desktop-profile-stage .desktop-profile-photo-open{position:absolute!important;inset:0!important;z-index:0;overflow:hidden;background:transparent!important}
.desktop-profile-stage .desktop-profile-photo-open .profile-image-backdrop{position:absolute!important;inset:0!important;z-index:0!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;max-width:none!important;max-height:none!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;object-fit:cover!important;transform:scale(1.14)!important;-webkit-filter:blur(24px) brightness(.62) saturate(1.04)!important;filter:blur(24px) brightness(.62) saturate(1.04)!important;opacity:1!important}
.desktop-profile-stage .desktop-profile-photo-open .profile-image:not(.profile-image-backdrop){position:absolute!important;inset:0!important;z-index:1!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;object-fit:contain!important}

/* Sur iPhone, les éclats gagnent juste un peu de largeur, sans toucher aux noms ni aux couronnes. */
@media(max-width:700px){
  @media(max-width:700px){
    .moment-strip{gap:7px}
    .moment-person{flex-basis:73px;width:73px}
    .moment-ring{width:71px;height:71px}
  }
}

/* The story dot turns neutral after every story from that member has been viewed. */
.moment-live-dot.is-viewed{background:#9692a3!important;border-color:#fff!important;box-shadow:0 1px 5px #1b153540}

/* Thin white edge and a subtle color-matched glow, without duplicating the photo behind it. */
.desktop-profile-photo-zoom .profile-gallery-main{padding:2px!important;border:1px solid #fff!important;background:transparent!important}

/* Pictogrammes des catégories du fil Actualité. */
.feed-filter .icon-mosaic,.feed-filter .icon-play,.feed-filter .icon-instantphoto{color:#000;stroke:#000;stroke-linecap:round;stroke-linejoin:round}
.feed-filter .icon-play{fill:#000}
.feed-filter .icon-mosaic,.feed-filter .icon-instantphoto{fill:none}
/* iPhone : cinq emplacements entiers (ajout et quatre membres).
   Seules les images s'ajustent ; les noms et couronnes conservent leur taille. */
@media(max-width:700px){
  @media(max-width:700px){
    .moment-strip{gap:7px}
    .moment-person{flex:0 0 calc((100% - 28px)/5);width:calc((100% - 28px)/5);min-width:0}
    .moment-ring{width:min(76px,calc(100% - 2px));height:auto;aspect-ratio:1;margin-inline:auto}
  }
}
/* Même disposition de profil depuis tous les menus. */
.desktop-profile-overlay .desktop-profile-close{left:auto;right:12px}
.desktop-profile-overlay .desktop-profile-stage .profile-story-ring{left:14px;right:auto;top:14px}
@media(max-width:700px){
 .desktop-profile-overlay .desktop-profile-close{left:auto;right:8px}
 .desktop-profile-overlay .desktop-profile-stage .profile-story-ring{left:10px;right:auto;top:10px}
}

/* Palettes des commandes, selon le genre du compte connecté. */
html[data-member-palette="man"]{
 --eclat-gradient:linear-gradient(100deg,#2866d8 0%,#467ce5 30%,#7869ed 50%,#9955f5 70%,#a64fff 100%);
 --member-action-gradient:var(--eclat-gradient);
 --member-soft-gradient:linear-gradient(100deg,#9ebcf2 0%,#aac8f7 30%,#c1bafa 50%,#d4b1fb 70%,#dfb9ff 100%);
 --member-accent:#6267d8;--member-soft:#eee7ff;--member-outline:#b18aea;
}
html[data-member-palette="nonbinary"]{
 --eclat-gradient:linear-gradient(100deg,#fff430 0%,#fff430 38%,#d9a780 50%,#9c59d1 62%,#9c59d1 100%);
 --member-action-gradient:var(--eclat-gradient);
 --member-soft-gradient:linear-gradient(100deg,#fff8a3 0%,#fff8a3 38%,#edcfcc 50%,#d1abea 62%,#d1abea 100%);
 --member-accent:#9c59d1;--member-soft:#f2e7fa;--member-outline:#bd87df;
}
html[data-member-palette="man"],html[data-member-palette="nonbinary"]{--coral:var(--member-accent)}
html:is([data-member-palette="man"],[data-member-palette="nonbinary"]) :is(.btn-primary,.btn-coral,.round-action.like,.premium-cta-blue,.profile-photo-manager-card .btn-primary){background:var(--member-action-gradient);color:#fff}
html:is([data-member-palette="man"],[data-member-palette="nonbinary"]) :is(.feed-filter.active,.story-feed-comment>button,.story-view-comment>button,.profile-photo-manager-add-card>span,.admin-block-chip,.admin-report-subnav>button.active){background:var(--eclat-gradient);color:#fff}
html:is([data-member-palette="man"],[data-member-palette="nonbinary"]) :is(.profile-edit-banner,.premium-hero,.profile-preview-hint,.premium-offer-panel,.status-panel,.photo-upload-card){background:var(--member-soft-gradient)}
html:is([data-member-palette="man"],[data-member-palette="nonbinary"]) :is(.btn-lilac,.profile-view-tab.active,.filter-actions .btn-soft){background:var(--member-soft)}
html:is([data-member-palette="man"],[data-member-palette="nonbinary"]) :is(.field input:focus,.field textarea:focus,.field select:focus){border-color:var(--member-accent)}
html:is([data-member-palette="man"],[data-member-palette="nonbinary"]) :is(input[type="checkbox"],input[type="radio"]){accent-color:var(--member-accent)}
html:is([data-member-palette="man"],[data-member-palette="nonbinary"]) .moment-add .moment-ring{box-shadow:0 0 0 2px var(--member-outline)}
/* Le top 3 conserve la dorure commune définie plus haut, quelle que soit la palette. */

html[data-member-palette="nonbinary"] :is(.tab.active,.premium-pill,.btn-primary,.btn-coral,.round-action.like,.premium-cta-blue,.feed-filter.active,.moment-add .moment-ring,.story-feed-comment>button,.story-view-comment>button,.profile-photo-manager-add-card>span){color:#19112e}

/* Trois commandes principales : dégradés plus profonds, sans changer leurs dimensions. */
html[data-member-palette="man"]{
 --member-featured-gradient:linear-gradient(105deg,#251064 0%,#344ac1 28%,#7045dc 52%,#a64fff 78%,#c48bff 100%);
}
html[data-member-palette="nonbinary"]{
 --member-featured-gradient:linear-gradient(105deg,#35105e 0%,#71319c 28%,#9c59d1 52%,#c391ba 72%,#fff430 100%);
}
html:is([data-member-palette="man"],[data-member-palette="nonbinary"]) :is(
 #profile-form>button.btn-primary,
 .profile-preview-hint>button[data-profile-view="preview"],
 .story-feed-title>button[data-story-action="publish"]
){
 background:var(--member-featured-gradient);
 color:#fff;
 text-shadow:0 1px 2px #21123866;
}

/* Le plus du bouton Ajouter un éclat est blanc, comme son libellé. */
.story-feed-title>button[data-story-action="publish"] .ui-icon.icon-plus{
 color:#fff;stroke:#fff;opacity:1;
}
/* Une indication légère sous la rangée, sans modifier les éclats. */
#moment-stories .moment-strip{scrollbar-width:none;scroll-behavior:auto}
#moment-stories .moment-strip::-webkit-scrollbar{display:none}
.moment-scroll-hint{display:flex;align-items:center;justify-content:center;gap:14px;width:min(460px,100%);margin:2px auto 0;height:27px;color:#71618c}
.moment-scroll-hint[hidden]{display:none}
.moment-scroll-direction{display:flex;align-items:center;justify-content:space-between;flex:1;max-width:175px;min-width:0;height:27px;user-select:none;-webkit-user-select:none;touch-action:auto;transition:opacity .15s ease}
.moment-scroll-direction svg{display:block;width:14px;height:14px;flex:0 0 14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;opacity:var(--arrow-opacity)}
.moment-scroll-direction[data-moment-direction="-1"]{flex-direction:row-reverse}
.moment-scroll-direction.is-unavailable{opacity:0;pointer-events:none}
.moment-scroll-label{flex:none;font:500 10px/1.2 system-ui,sans-serif;letter-spacing:.04em}
.moment-scroll-hint.is-interactive .moment-scroll-direction{cursor:pointer;touch-action:none}
.moment-scroll-direction:focus-visible{outline:2px solid var(--coral);outline-offset:2px;border-radius:8px}
@media(max-width:700px){.moment-scroll-hint{gap:10px;width:100%;height:23px}.moment-scroll-direction{height:23px}.moment-scroll-label{font-size:9px}}
@media(prefers-reduced-motion:reduce){.moment-scroll-direction{transition:none}}

/* Les catégories suivent directement la ligne Glisser, sans titre intermédiaire. */
.shell:has(>#member-content>.story-feed-toolbar)>#moment-stories{margin-bottom:6px}
.story-feed-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}
.story-feed-toolbar>.story-feed-filters{min-width:0;max-width:100%;margin:0;padding-bottom:4px}
.story-feed-toolbar>.story-feed-title{flex:none;margin:0}
@media(max-width:700px){
 .story-feed-toolbar{display:block}
 .story-feed-toolbar>.story-feed-title{display:none}
}

@media(hover:hover) and (pointer:fine){
 #moment-stories .moment-strip,#moment-stories .moment-strip .moment-person{cursor:pointer;user-select:none;-webkit-user-select:none}
 #moment-stories .moment-strip.is-grabbing,#moment-stories .moment-strip.is-grabbing *{cursor:grabbing}
 #moment-stories .moment-strip img{-webkit-user-drag:none;user-select:none}
}
.city-distance{white-space:nowrap;font:inherit}

/* Masquage immédiat aux extrémités : aucun changement de hauteur ni d'espacement. */
.moment-scroll-direction.is-unavailable{transition:none}

/* Règles mobiles communes : mêmes dimensions à largeur d'écran égale. */
@media(max-width:700px){
 html{--mobile-member-name:14px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
 .member-tabs{height:56px;min-height:56px;padding:3px 4px;gap:2px;border-radius:24px;align-items:center}
 .member-tabs .tab{height:48px;min-height:0;flex:1 1 0;min-width:0;flex-direction:column;justify-content:center;gap:4px;padding:7px 2px;font-size:10px;line-height:1.15;border-radius:21px}
 .member-tabs .tab .ui-icon{width:19px;height:19px;flex-shrink:0}
 .member-tabs .tab-search,.member-tabs .tab-bell{flex:0 0 31px;min-width:0;padding:7px 2px}
 .member-tabs .tab-search .ui-icon,.member-tabs .tab-bell .ui-icon{width:16px;height:16px}
 .discovery-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 13px}
 .discovery-filter .field{min-width:0;margin:9px 0}
 .discovery-filter .field input,.discovery-filter .field select{width:100%;min-width:0;font-size:14px;padding:13px 14px}
 .discovery-filter .field label{font-size:11px}
 .discovery-filter h3{font-size:15px}
 .hello{font-size:23px}
 .hello small{font-size:12px}
 .match-row{gap:9px;padding:11px}
 .match-row .avatar{width:54px;height:54px}
 .match-row b,.story-feed-header .story-author strong{font-size:var(--mobile-member-name)}
 .match-row .match-name-open{font-size:var(--mobile-member-name)!important}
 .match-row small{font-size:11px}
 .story-feed-header .story-author small{font-size:12px;line-height:1.35}
 .moment-strip{gap:7px}
 .moment-person{flex:0 0 calc((100% - 28px)/5);width:calc((100% - 28px)/5);min-width:0;font-size:11px}
 .moment-ring{width:min(76px,calc(100% - 2px));height:auto;aspect-ratio:1;margin-inline:auto}
 .moment-add .ui-icon{width:29px;height:29px}
 .moment-live-dot{width:11px;height:11px}
}

/* Référence mobile commune iPhone / Android : menu et Quitter à 11px.
   Annulation : supprimer ce bloc. Icônes et dimensions des boutons conservées. */
@media(max-width:700px){
 @media(max-width:700px){
  .member-tabs .tab{font-size:11px}
  #top-right .btn[data-action="logout"]{font-size:11px}
 }
}
/* Articles du fil : petite séparation blanche, sans modifier les stories ouvertes. */
.story-feed-card > [data-story-actions] .story-actions{padding-bottom:4px}
.story-feed-card > .story-feed-comment{margin-top:2px;padding-top:3px;padding-bottom:3px}
/* Réserver Glisser sur PC et mobile, même sans débordement. */
#moment-stories .moment-scroll-hint[hidden]{display:flex;visibility:hidden;pointer-events:none}
/* Mobile : rapprocher légèrement le titre des éclats, sans toucher leurs dimensions. */
@media (pointer:coarse){#moment-stories .moment-heading{margin-bottom:9px}}

/* Texte du partage dans Actualité uniquement ; la légende sur les stories est inchangée. */
.story-feed-card .story-feed-caption{margin:10px 12px 0;padding:10px 12px;border:1px solid #eee6f3;border-radius:14px;background:linear-gradient(105deg,#fffaf8,#f5efff)}

/* Public profile identity: compact genre badge follows the age, in the member's own palette. */
.gender-badge{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:1.6em;height:1.6em;margin-left:.35em;padding:0 .25em;border:1px solid #ffffffa6;border-radius:999px;color:#fff;font-family:inherit;font-size:.64em;font-weight:800;line-height:1;vertical-align:.12em;white-space:nowrap;box-shadow:0 2px 5px #21152c26;text-shadow:0 1px 2px #24123c80;letter-spacing:0}
.gender-badge-woman{background:linear-gradient(110deg,#ff995f 0%,#ff4f92 48%,#a64fff 100%)}
.gender-badge-man{background:linear-gradient(100deg,#2866d8 0%,#467ce5 30%,#7869ed 50%,#9955f5 70%,#a64fff 100%)}
.gender-badge-nonbinary{min-width:2.15em;background:linear-gradient(100deg,#fff430 0%,#fff430 38%,#d9a780 50%,#9c59d1 62%,#9c59d1 100%)}
.profile-location-icon{display:inline-flex;align-items:center;vertical-align:-.15em;margin-right:.28em;color:inherit}
.profile-location-icon .ui-icon{display:block;width:1em;height:1em;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.profile-photo-count,.profile-edit-photo-count{display:inline-flex;align-items:center;gap:5px}
.profile-photo-count .icon-photostack,.profile-edit-photo-count .icon-photostack{display:block;width:1.25em;height:1.25em;flex:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round;fill:none}
.profile-edit-photo-count .icon-photostack>rect{fill:#35263e}

/* Choix personnel de palette, indépendant du genre et des préférences. */
.interface-theme-settings{margin:22px 0 18px;padding:18px;border:1px solid #ded5e9;border-radius:20px;min-width:0}
.interface-theme-settings legend{font-weight:800;padding:0 7px;font-size:17px}
.interface-theme-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0}
.interface-theme-choice{position:relative;display:flex;align-items:center;flex-direction:column;gap:9px;padding:12px 6px;border:2px solid #e9e1ee;border-radius:15px;cursor:pointer;text-align:center;font-size:12px;font-weight:750;background:#fff}
.interface-theme-choice input{position:absolute;opacity:0;width:1px;height:1px;padding:0}
.interface-theme-choice:has(input:checked){border-color:#7760c8;background:#f7f3ff}
.interface-theme-choice:has(input:focus-visible){outline:3px solid #7760c8;outline-offset:3px}
.interface-theme-swatch{position:relative;display:block;width:44px;height:44px;border-radius:12px;background:var(--theme-preview-gradient);box-shadow:0 3px 12px #3c225926}
.interface-theme-choice:has(input:checked) .interface-theme-swatch::after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:24px;text-shadow:0 1px 4px #21152c}
[data-theme="pink"]{--theme-preview-gradient:linear-gradient(105deg,#29126a,#af24bc 47%,#ff4a86 75%,#ff9b76);--theme-preview-soft:linear-gradient(120deg,#ffe3c5,#ffd0d3 48%,#e4d2ff)}
[data-theme="blue"]{--theme-preview-gradient:linear-gradient(100deg,#2866d8,#7869ed 50%,#a64fff);--theme-preview-soft:linear-gradient(100deg,#9ebcf2,#c1bafa 50%,#dfb9ff)}
[data-theme="nonbinary"]{--theme-preview-gradient:linear-gradient(105deg,#35105e,#9c59d1 52%,#fff430);--theme-preview-soft:linear-gradient(100deg,#fff8a3 38%,#edcfcc 50%,#d1abea 70%)}
.interface-theme-preview{padding:17px;border:1px solid #ffffffc9;border-radius:18px;background:var(--theme-preview-soft);color:#21152c}
.interface-theme-preview-header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.interface-theme-preview-header>span{font-size:11px;background:#fff9;border-radius:999px;padding:4px 9px}
.interface-theme-preview p{margin:15px 0 12px;font-size:14px;font-weight:750}
.interface-theme-preview-tabs{display:flex;gap:13px;align-items:center;padding:9px;background:#fff9;border-radius:12px;font-size:11px}
.interface-theme-preview-tabs>span:first-child{background:var(--theme-preview-gradient);color:#fff;border-radius:9px;padding:7px}
.interface-theme-preview-button{display:inline-block;background:var(--theme-preview-gradient);color:#fff;padding:10px 14px;border-radius:999px;font-size:12px;font-weight:800;margin-top:15px}
/* Le parcours natif Google Play reprend la présentation Premium du site. */
.play-premium-modal{box-sizing:border-box;width:min(530px,calc(100% - 24px));max-height:88vh;padding:30px;font-family:inherit}
.play-premium-modal .premium-offer-panel{box-sizing:border-box}
.play-premium-modal .modal-close{position:relative;z-index:1}
.play-premium-modal::backdrop{background:rgba(25,17,44,.58);backdrop-filter:none}
.play-premium-modal [data-plans]{min-height:20px}
.play-premium-modal .premium-plan input{width:auto;flex:0 0 auto}
.premium-plan:has(input:checked){outline:2px solid var(--member-accent,#9455c6);outline-offset:1px}
.play-premium-restore{margin-top:10px}
.play-premium-status{min-height:1.5em}
@media(max-width:420px){.interface-theme-settings{padding:14px}.interface-theme-choices{gap:7px}.play-premium-modal{padding:24px}.play-premium-modal .premium-offer-panel{margin:-24px;padding:24px}}

/* Lisibilité ciblée du profil et des préférences — 5 novembre 2026. */
.preferences-field legend{font-size:13px}
.preferences-field .checkline{font-size:13px}
.preferences-field .form-note{font-size:12px}
.preferences-field .checkline input[type="checkbox"]{width:18px;height:18px;flex:0 0 18px;margin-top:1px}
.profile-edit-page .form-note{font-size:12px}
.interface-theme-settings>.form-note{font-size:12px}
.profile-edit-page .side-column .side-card>p{font-size:13px}

/* Profil : informations et actions alignées, mobile et ordinateur. */
.profile-edit-page .profile-edit-heading .subtext{font-size:13px}
.profile-privacy-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;align-items:stretch}
.profile-privacy-actions>.btn{display:flex;align-items:center;justify-content:center;min-width:0;padding:11px 8px;font-size:11px;line-height:1.3;text-align:center;white-space:normal;overflow-wrap:normal;text-decoration:none}
.profile-edit-page .profile-delete-account{margin-top:12px;border:1px solid #ce5260;background:#fff;color:#a92b3d;font-size:12px}
.profile-edit-page .profile-delete-account:hover{background:#fff1f3}
.profile-premium-card>.premium-tag{display:block;font-size:15px;line-height:1.35}
.profile-premium-card .premium-until{display:block;white-space:nowrap;margin-top:3px}
#email-compose [data-mail-page]:disabled{cursor:default;transform:none}
.email-search-row{display:flex;gap:8px;margin:12px 0}.email-search-row input{min-width:0;flex:1}.email-search-row .btn{flex:0 0 auto}
.email-recipient{align-items:center}.email-recipient span{min-width:0}.email-recipient small{display:block;color:var(--muted);font-size:11px}
.email-send-state{font-size:12px;color:var(--muted)}
@media(max-width:380px){.profile-privacy-actions>.btn{font-size:10px;padding-left:5px;padding-right:5px}}

/* Encadrement individuel des envois, sans hauteur imposée. */
.email-history-card{position:relative;border:1px solid #ded5e9;border-radius:15px;padding:16px;margin-top:14px;overflow-wrap:anywhere}
.email-history-card>h3{padding-right:32px}
.email-history-remove{position:absolute;top:10px;right:10px;width:28px;height:28px;display:grid;place-items:center;padding:0;border:1px solid #ded5e9;border-radius:50%;background:#fff;color:var(--muted);font:20px/1 system-ui;cursor:pointer}
.email-history-remove:hover{background:#fff1f3;border-color:#ce5260;color:#a92b3d}
.email-history-remove:focus-visible{outline:2px solid #7760c8;outline-offset:2px}
.email-history-remove:disabled{opacity:.5;cursor:default}

.admin-report-reply-card{position:relative}
.admin-report-reply-card>.badge{margin-right:25px}
.admin-reply-remove{position:absolute;right:12px;top:12px;display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid #ded5e9;border-radius:50%;background:white;color:var(--muted);font:20px/1 system-ui;cursor:pointer}
.admin-reply-remove:hover{border-color:#ce5260;background:#fff1f3;color:#a92b3d}
.admin-reply-remove:focus-visible{outline:2px solid #7760c8;outline-offset:2px}

/* Conversations : action d’ouverture visible et texte compact. */
.match-row{padding-bottom:16px;scroll-margin-top:18px}
.match-row>.match-person-summary{min-width:0;flex:1 1 0;overflow:hidden}
.match-row .match-person-summary>b{min-width:0}
.match-row .match-name-open{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.match-row .match-person-summary>small{display:block;max-width:100%;overflow:hidden;text-overflow:clip;white-space:nowrap;overflow-wrap:normal;mask-image:linear-gradient(90deg,#000 calc(100% - 22px),transparent);-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 22px),transparent)}
.match-row>.match-avatar-open,.match-row>.match-delete-button{flex:0 0 auto}
.match-expand{position:absolute;bottom:1px;left:50%;display:grid;place-items:center;width:48px;height:22px;margin-left:-24px;padding:0;border:0;border-radius:0;background:transparent;color:#7150a7;box-shadow:none;cursor:pointer;overflow:visible;appearance:none;-webkit-appearance:none;-webkit-tap-highlight-color:transparent;filter:drop-shadow(0 2px 1px #51337538);transition:transform .14s ease}
.match-expand svg{display:block;width:36px;height:11px;fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;overflow:visible;filter:none;transform-origin:center;transition:transform .16s ease}
.match-expand[aria-expanded="true"] svg{transform:rotate(180deg)}
.match-expand:active{transform:translateY(1px);box-shadow:none}
.match-expand:focus-visible{outline:2px solid #7760c8;outline-offset:2px;border-radius:8px}
@media(hover:hover){.match-row:hover>.match-expand{transform:translateY(1px);box-shadow:none}}
@media(prefers-reduced-motion:reduce){.match-expand,.match-expand svg{transition:none}.match-expand:active,.match-row:hover>.match-expand{transform:none}}

/* Inscription : étape de préférences et choix explicite sans précochage. */
#register-form [hidden],.registration-final-actions>[hidden]{display:none!important}
.registration-final-actions{display:flex;gap:10px;align-items:center;margin-top:10px}
.registration-final-actions>.btn[type="submit"]{flex:1}
[data-preferences-heading]{outline:none}
.preferences-choice-dialog{max-width:540px;width:calc(100% - 32px);max-height:calc(100dvh - 40px);overflow:auto;padding:26px;border:1px solid #ded5e9;border-radius:22px;color:var(--ink);background:#fffafc;box-shadow:0 18px 60px #31223c33}
.preferences-choice-dialog::backdrop{background:#21152c77}
.preferences-choice-dialog h2{margin:0 0 14px;font-size:22px}
.preferences-choice-dialog p{font-size:15px;line-height:1.55}
.preferences-choice-actions{display:grid;gap:12px;margin-top:22px}
.preferences-choice-actions>.btn{width:100%;white-space:normal;line-height:1.4}

.push-invitation{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 18px;margin:12px 0;border:1px solid var(--line,#e8def4);border-radius:18px;background:#fff}.push-invitation p{margin:4px 0 0}#push-preferences .btn{margin-top:6px}

/* Reveal only complete story images. Keep the existing directional cue. */
.story-modal .story-view-frame img.story-large-media{opacity:0;animation:none}
.story-modal .story-view-frame[data-photo-ready="true"] img.story-large-media{opacity:1;animation:story-photo-slide 180ms ease-out}
.story-modal .story-view-frame[data-photo-ready="true"][data-photo-motion="fade"] img.story-large-media{animation-name:story-photo-reveal}
.story-view-frame[data-transition="next"]{--story-photo-offset:12px}
.story-view-frame[data-transition="previous"]{--story-photo-offset:-12px}
@keyframes story-photo-slide{
  from{transform:translateX(var(--story-photo-offset,0))}
  to{transform:translateX(0)}
}
@keyframes story-photo-reveal{
  from{opacity:0;transform:translateX(var(--story-photo-offset,0))}
  to{opacity:1;transform:translateX(0)}
}
.story-modal .story-view-frame .story-media-backdrop{opacity:0;transition:opacity .19s ease-out}
.story-modal .story-view-frame:is([data-photo-ready="true"],[data-poster-ready="true"]) .story-media-backdrop{opacity:1}
.story-modal .story-view-frame .story-video-poster{opacity:0}
.story-modal .story-view-frame[data-poster-ready="true"]:not(:has(video.story-video-media.is-playing)) .story-video-poster{opacity:1}
.story-photo-status:not([hidden]){position:absolute;z-index:3;inset:0;display:grid;place-items:center;padding:20px;color:#fff;text-align:center;pointer-events:none}
@media(prefers-reduced-motion:reduce){
  .story-modal .story-view-frame[data-photo-ready="true"] img.story-large-media,.story-modal .story-view-frame[data-photo-ready="true"][data-photo-motion="fade"] img.story-large-media{animation:none}
  .story-modal .story-view-frame .story-media-backdrop{transition:none}
}

.story-feed-toolbar>.story-feed-filters{position:relative;overflow:visible}
.story-nearby>summary{display:block;list-style:none;cursor:pointer;white-space:nowrap}
.story-nearby>summary::-webkit-details-marker{display:none}
.story-nearby-form{position:absolute;top:100%;left:0;z-index:8;width:min(350px,calc(100vw - 44px));padding:12px;display:grid;gap:7px;border:1px solid #e9def2;border-radius:16px;background:#fff;box-shadow:0 12px 30px #30174124;color:var(--ink)}
.story-nearby-form label{font-size:12px;font-weight:750}
.story-nearby-form input{box-sizing:border-box;min-width:0;width:100%;padding:7px 8px;border:1px solid #e5dbef;border-radius:9px;background:#fff;color:inherit;font:inherit;font-size:16px}
.story-nearby-suggestions:not([hidden]){display:grid;max-height:145px;overflow:auto}
.story-nearby-suggestions button,.story-nearby-reset{padding:6px 8px;border:0;border-radius:7px;background:#f5effa;color:#563477;text-align:left;font:inherit;font-size:12px;cursor:pointer}
.story-nearby-suggestions button+button{margin-top:2px}
.story-nearby-distance{display:grid;grid-template-columns:32px 61px 32px auto;align-items:center;gap:5px}
.story-nearby-distance [data-story-radius-step]{min-height:32px;padding:0;border:0;border-radius:9px;background:#f1e8fb;color:#613782;font-weight:800;cursor:pointer}
.story-nearby-distance .btn{padding:8px 11px;font-size:12px}
.push-profile-card{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:10px 0;padding:12px;border:1px solid #e9def2;border-radius:14px;background:#fff}
.push-profile-card h3,.push-profile-card p{margin:0}
.push-profile-card h3 .ui-icon{width:16px;height:16px;vertical-align:-2px}
.push-profile-card p{font-size:12px;color:var(--muted)}
.push-profile-actions{display:flex;flex-wrap:wrap;gap:5px}
.push-profile-actions .btn{padding:7px 11px;font-size:12px}

/* Mobile story layout only; loading, gestures and image animations stay unchanged. */
@media(max-width:700px){
  .story-modal{--story-safe-top:env(safe-area-inset-top,0px);--story-safe-bottom:env(safe-area-inset-bottom,0px)}
  .story-native-insets .story-modal{--story-safe-top:0px;--story-safe-bottom:0px}
  dialog.modal.story-modal{position:fixed;inset:0;box-sizing:border-box;width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:#fff;color:var(--ink)}
  html.story-view-open,html.story-view-open body{overflow:hidden;overscroll-behavior:none;background:#fff;color-scheme:light}
  .story-modal .story-view-comment>input{color-scheme:light}
  .story-modal .modal-close{-webkit-tap-highlight-color:transparent}
  .story-modal .modal-close:focus:not(:focus-visible){outline:none}
  .story-modal::backdrop{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}
  .story-modal #modal-content{position:relative;display:grid;grid-template-rows:minmax(0,1fr) calc(61px + max(0px,var(--story-safe-bottom) - 8px));height:100%;min-height:0;isolation:isolate}
  .story-modal>form[method="dialog"]{position:absolute;z-index:12;top:calc(var(--story-safe-top) + 27px);right:12px;margin:0}
  .story-modal .modal-close{position:static;float:none;display:grid;place-items:center;margin:0;width:34px;height:34px;padding:0;border:1px solid #ffffff50;background:#17141c66;color:#fff;font-size:27px;line-height:1}
  .story-modal .story-steps{position:absolute;z-index:8;top:var(--story-safe-top);left:0;right:0;display:flex;gap:4px;margin:0;padding:12px 10px 8px;background:transparent}
  .story-modal .story-steps button{height:3px;min-width:0;min-height:0;border-radius:4px;background:#ffffff65}
  .story-modal .story-steps button.active{background:var(--eclat-gradient)}
  .story-modal .story-view-header{position:absolute;z-index:7;top:calc(var(--story-safe-top) + 24px);bottom:auto;left:0;right:0;height:fit-content;align-self:start;margin:0;padding:5px 58px 10px 12px;background:transparent;pointer-events:none}
  .story-modal .story-view-header .story-author{max-width:100%;min-width:0;color:#fff;pointer-events:auto;text-align:left}
  .story-modal .story-view-header .story-author img{width:38px;height:38px;border:1px solid #ffffff99}
  .story-modal .story-view-header .story-author>span{min-width:0;overflow:hidden}
  .story-modal .story-view-header .story-author strong{display:flex;align-items:center;gap:6px;font-size:14px;line-height:1.3;overflow-wrap:anywhere;text-shadow:0 1px 5px #0008}
  .story-modal .story-view-header .story-author small{color:#fff;font-size:11px;line-height:1.3;margin-top:3px;text-shadow:0 1px 4px #000a}
  .story-modal .story-view-header .story-author small:not(.story-view-location){display:none}
  .story-modal .story-view-header .story-author-rank{flex-shrink:0}
  .story-modal .story-view-frame,.is-android .story-modal .story-view-frame:has(video.story-video-media){grid-row:1;position:relative;width:100%;height:100%;min-height:0;border-radius:0;overflow:hidden;background:#fff}
  .story-modal .story-view-frame img.story-large-media,.story-modal .story-view-frame video.story-large-media,.story-modal .story-view-frame .story-video-poster{position:absolute;inset:0;display:block;width:100%;height:100%!important;min-height:0;max-height:none;max-width:none;object-fit:cover;object-position:center}
  .story-modal .story-view-frame>.story-media-backdrop{display:none}
  /* Cadrage 1.0.24, sauf le 4:3 qui conserve le réglage du dernier essai. */
  .story-modal .story-view-frame img.story-large-media{object-fit:cover;scale:1;transform-origin:center}
  .story-modal .story-view-frame img.story-large-media[data-story-photo-format="four-three"]{object-fit:contain;scale:1.1025}
  .story-modal .story-view-frame:has(>img[data-story-photo-format="four-three"])>.story-media-backdrop{display:block}
  .story-modal .story-view-frame img.story-large-media,.story-modal .story-view-frame video.story-large-media{filter:none;-webkit-filter:none;mix-blend-mode:normal}
  .story-modal .story-caption-overlay{left:50%;right:auto;bottom:14px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);max-height:24%;overflow:auto;text-align:left;pointer-events:none}
  .story-modal .story-view-navigation,.story-modal>.story-private-hint,.story-modal #modal-content>.story-private-hint{display:none}
  .story-modal .story-view-footer{position:absolute;top:var(--story-composer-top,auto);bottom:0;left:0;right:0;z-index:8;display:flex;align-items:center;gap:6px;height:calc(61px + max(0px,var(--story-safe-bottom) - 8px));min-height:61px;padding:13px 10px calc(3px + max(0px,var(--story-safe-bottom) - 8px));background:#fff}
  .story-modal .story-view-comment{display:flex;flex:1;align-items:center;gap:6px;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:none}
  .story-modal .story-view-comment>img,.story-modal .story-view-comment>.story-feed-private-count{display:none}
  .story-modal .story-view-comment>input{flex:1;width:0;min-width:0;height:43px;padding:10px 13px;border:1px solid #d7cde2;border-radius:24px;background:#fff;color:var(--ink);font-size:16px;line-height:1.2}
  .story-modal .story-view-comment>input::placeholder{color:#82798d;opacity:1}
  .story-modal .story-view-footer [data-story-actions]{flex:none;min-width:0}
  .story-modal .story-view-footer .story-actions{display:flex;align-items:center;gap:3px;margin:0;padding:0}
  .story-modal .story-view-footer .story-actions button{display:inline-flex;align-items:center;justify-content:center;gap:2px;min-width:35px;min-height:43px;margin:0;padding:4px;border:0;border-radius:16px;background:transparent;color:var(--ink);font-size:10px;box-shadow:none}
  .story-modal .story-view-footer .story-actions .story-match{order:1;border-radius:999px;color:#ff4e8b;background:linear-gradient(135deg,#fff0f5,#f0e2ff);box-shadow:inset 0 0 0 1px #f1e4f3}
  .story-modal .story-view-footer .story-actions .story-thumb.is-liked{color:#a03dcc}
  .story-modal .story-view-footer .story-actions .ui-icon{flex:none;width:26px;height:26px}
  .story-modal .story-view-footer .story-actions button:disabled{opacity:.65;cursor:default}
  .story-modal .story-view-comment>button[type="submit"]{flex:none;width:36px;height:36px;margin:0;padding:8px;background:var(--eclat-gradient);color:#fff;box-shadow:0 2px 10px #0003}
  .story-modal .story-view-footer .story-sound-toggle{position:static;flex:none;width:30px;height:36px;margin:0;padding:4px;border:0;background:transparent;box-shadow:none;color:var(--ink);backdrop-filter:none;-webkit-backdrop-filter:none}
  .story-modal .story-view-comment>.story-keyboard-dismiss{display:none}
  .story-modal.story-composing .story-view-footer{bottom:auto;height:65px;min-height:65px;padding:9px 10px;background:transparent}
  .story-modal.story-composing .story-view-comment{gap:4px;padding:3px 5px;border:1px solid #ffffffa6;border-radius:28px;background:#17141c50;backdrop-filter:blur(17px);-webkit-backdrop-filter:blur(17px)}
  .story-modal.story-composing .story-view-comment>input{border:0;padding-left:5px;background:transparent;color:#fff}
  .story-modal.story-composing .story-view-comment>input::placeholder{color:#ffffffe6}
  .story-modal.story-composing .story-view-comment>.story-keyboard-dismiss{color:#fff!important}
  .story-modal.story-composing .story-view-footer [data-story-actions],.story-modal.story-composing .story-sound-toggle{display:none}
  .story-modal.story-composing .story-view-comment>.story-keyboard-dismiss{display:grid;flex:0 0 28px;width:28px;height:36px;margin:0;padding:5px;border:0;background:transparent;box-shadow:none;color:var(--ink)}
  .story-keyboard-dismiss svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .story-modal #story-private-area:empty{display:none}
  .story-modal #story-private-area:not(:empty){position:absolute;z-index:10;left:8px;right:8px;bottom:calc(74px + env(safe-area-inset-bottom,0px));max-height:55%;overflow:auto;border-radius:18px;background:#fff;color:var(--ink);box-shadow:0 -8px 30px #0004}
}
/* Thème non binaire : libellés noirs sur toutes les commandes colorées. */
html[data-member-palette="nonbinary"] :is(.tab.active,.premium-pill,.btn-primary,.btn-coral,.round-action.like,.premium-cta-blue,.feed-filter.active,.moment-add .moment-ring,.story-feed-comment>button,.story-view-comment>button,.profile-photo-manager-add-card>span,.admin-block-chip,.admin-report-subnav>button.active,#profile-form>button.btn-primary,.profile-preview-hint>button[data-profile-view="preview"],.story-feed-title>button[data-story-action="publish"]){color:#111;text-shadow:none}
html[data-member-palette="nonbinary"] .story-feed-title>button[data-story-action="publish"] .ui-icon.icon-plus{color:#111;stroke:currentColor}
.interface-theme-preview[data-theme="nonbinary"] :is(.interface-theme-preview-button,.interface-theme-preview-tabs>span:first-child){color:#111;text-shadow:none}
.interface-theme-choice:has(input:checked) .interface-theme-swatch[data-theme="nonbinary"]::after{color:#111;text-shadow:none}

/* Le clavier ne doit redimensionner ni animer le média. */
@media(max-width:700px){
  html.story-input-open,html.story-input-open body{background:transparent!important}
  #modal.story-modal::backdrop{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
  .story-modal.story-composing{background:transparent}
  .story-modal .story-view-frame{transition:none!important}
  .story-modal .story-view-frame[data-keyboard-used] .story-large-media{animation:none!important;transition:none!important}
}

/* Aucun conteneur défilant autour du champ mobile : seul le champ suit le clavier. */
@media(max-width:700px){
  dialog.modal.story-modal{overflow:clip;scroll-behavior:auto!important;overflow-anchor:none}
  .story-modal #modal-content{overflow:clip;scroll-behavior:auto!important;overflow-anchor:none}
  .story-modal .story-view-frame{position:absolute;top:0;left:0;right:0;height:calc(100% - 61px - max(0px,var(--story-safe-bottom) - 8px));grid-row:auto;flex:none;overflow-anchor:none}
  .story-modal .story-view-footer{transition:none!important;animation:none!important;overflow-anchor:none}
}

@media(max-width:700px){
  html.story-input-open{background-image:var(--story-keyboard-image,none)!important;background-size:var(--story-keyboard-size,cover)!important;background-position:var(--story-keyboard-position,center)!important;background-repeat:no-repeat!important}
}
