:root{font-family:Arial,Helvetica,sans-serif;color:#493c47;background:#faf6f8;--plum:#865775;--line:#ebdfe7;--muted:#7e707b;--pink:#f2e3ed;--surface:#fffcfd}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a9749d;outline-offset:3px}.demo{text-align:center;font-size:11px;letter-spacing:.04em;padding:9px 8px;background:#efe4ed;color:#6c5468}.shell{--shell-gutter:20px;max-width:560px;margin:auto;padding:0 var(--shell-gutter) 108px}header{display:flex;justify-content:space-between;align-items:center;padding:22px 0 15px}.logo{font-family:Georgia,serif;font-style:italic;font-size:53px;font-weight:bold;line-height:1;text-decoration:none;letter-spacing:-3px;color:var(--plum);position:relative}.avatar{border:0;background:var(--pink);color:var(--plum);border-radius:50%;width:46px;height:46px;font-size:14px;font-weight:bold}h1{font:normal 30px Georgia,serif;letter-spacing:-.8px;margin:13px 0 8px}h2{font-size:18px;margin:0 0 13px}h3{font-size:16px;margin:0 0 5px}p{line-height:1.55}small,.muted{color:var(--muted);font-size:12px}.intro{color:var(--muted);font-size:14px;margin:0 0 23px}.eyebrow{font-size:10px;letter-spacing:.16em;color:var(--plum);text-transform:uppercase}.section-label{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px}.section-label h2{margin:0}.pill{background:#f1e7ee;border-radius:20px;padding:6px 10px;font-size:10px;color:var(--plum)}.card{background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden;margin-bottom:18px}.card-body{padding:18px}.profile-line{display:flex;align-items:center;gap:10px;margin-bottom:14px}.profile-line .avatar{width:38px;height:38px;font-size:12px;display:grid;place-items:center;flex-shrink:0}.profile-line .meta{flex:1}.profile-line strong{font-size:14px;display:block;margin-bottom:3px}.profile-line small{font-size:11px}.art{height:165px;position:relative;background:linear-gradient(175deg,#f0d7c7 0%,#eed2ca 48%,#a5b8bd 49%,#c4d0d1 70%,#e5d8c9 71%);overflow:hidden}.art:before{content:'';position:absolute;width:49px;height:49px;border-radius:50%;background:#fff2d8;top:28px;left:66%;box-shadow:0 0 40px #ffe5cb}.art.two{background:linear-gradient(150deg,#c5c1d5,#ede0d9 55%,#b3b8a5 56%,#8f9d91)}.art.three{background:linear-gradient(120deg,#c0c2d6,#e7c8d4 50%,#b5beca)}.art-label{position:absolute;bottom:12px;left:15px;color:#49454f;background:#ffffffc9;border-radius:20px;padding:6px 10px;font-size:10px}.post-text{font-size:14px;margin:0 0 15px}.actions{display:flex;gap:8px;flex-wrap:wrap}.btn{border:1px solid var(--line);border-radius:11px;background:#fff;padding:11px 13px;color:#684f61;font-size:12px;min-height:42px}.btn.primary{background:var(--plum);color:white;border-color:var(--plum)}.btn.on{background:var(--pink);border-color:#b78ba9}.btn.danger{color:#934e61}.btn.wide{width:100%}.locked{background:#f4edf3;border-radius:12px;padding:22px 16px;font-size:13px;color:#766071;text-align:center}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.grid .card-body{padding:15px}.grid .art{height:100px}.grid h3{font-size:15px}.grid p{font-size:12px}.grid .actions{display:grid;grid-template-columns:1fr 1fr}.grid .btn{padding:9px 6px;font-size:11px}.field{display:block;font-size:12px;margin:17px 0 7px}input,textarea,select.full{width:100%;padding:13px;background:#fff;border:1px solid #decfda;border-radius:11px;color:inherit}textarea{min-height:105px;resize:vertical}.filters{display:flex;gap:8px;overflow:auto;margin:17px 0}.filters .btn{white-space:nowrap}.empty{padding:30px 16px;text-align:center;border:1px dashed #d6c1cf;border-radius:15px;color:var(--muted);font-size:13px}.room-link{width:100%;background:none;border:0;color:inherit;text-align:left;padding:19px}.room-link p{margin:7px 0 0;font-size:13px;color:var(--muted)}.chat-head{margin-bottom:15px}.people{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.person{font-size:11px;padding:7px 9px;border-radius:15px;background:#efe4ee}.messages{display:flex;flex-direction:column;gap:12px;margin:20px 0}.bubble{max-width:86%;background:#fff;border:1px solid var(--line);padding:12px 14px;border-radius:15px;align-self:flex-start}.bubble.mine{align-self:flex-end;background:#eddfeb}.bubble .by{font-size:10px;color:#805b75;display:block;margin-bottom:5px}.bubble p{font-size:14px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.message-form{display:flex;gap:8px;margin-top:16px}.message-form input{min-width:0}.message-form button{flex-shrink:0}.notice{font-size:12px;line-height:1.55;padding:13px;background:#f1e8ed;border-radius:12px;margin:16px 0}.profile-top{text-align:center;padding:25px 16px;background:linear-gradient(130deg,#eedde6,#e7e1ef)}.profile-top .avatar{width:74px;height:74px;margin:0 auto 14px;display:grid;place-items:center;font:24px Georgia,serif;background:#ffffffaa}.profile-top p{font-size:13px}.settings-row{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);gap:10px}.settings-row div{font-size:13px}.settings-row small{display:block;margin-top:6px}.fine{font-size:11px;color:var(--muted);line-height:1.6}nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(560px,100%);display:flex;background:#fffafdf5;border-top:1px solid var(--line);padding:10px 8px calc(10px + env(safe-area-inset-bottom));backdrop-filter:blur(15px);z-index:5}nav button{flex:1;background:none;border:0;color:#93828f;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:22px;min-height:48px}nav button span{font-size:10px}nav button.active{color:var(--plum);font-weight:bold}dialog{width:min(480px,calc(100% - 28px));max-height:85dvh;border:1px solid var(--line);border-radius:22px;padding:28px 22px;color:inherit;background:var(--surface)}dialog::backdrop{background:#38273677;backdrop-filter:blur(3px)}.story-scene{min-height:280px;border-radius:15px;background:linear-gradient(145deg,#c5c3dc,#ebcdd9,#edddc7);display:flex;align-items:center;justify-content:center;padding:28px;margin:20px 0;font:25px/1.5 Georgia,serif;text-align:center}#toast{pointer-events:none;position:fixed;bottom:100px;left:50%;transform:translateX(-50%);width:max-content;max-width:90%;padding:13px 18px;border-radius:12px;background:#57404f;color:#fff;font-size:13px;display:none;z-index:20}hr{border:0;border-top:1px solid var(--line);margin:20px 0}@media(max-width:350px){.shell{--shell-gutter:12px}.grid{grid-template-columns:1fr}}@media(min-width:800px){.shell{border-left:1px solid var(--line);border-right:1px solid var(--line);min-height:100vh;--shell-gutter:28px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
nav[hidden]{display:none}
.post-photo{display:block;width:100%;max-height:460px;object-fit:contain;background:#efe6ee}.feed-card .post-photo{height:auto;max-height:none}body:not(.inner-page) #main .feed-card .post-photo{aspect-ratio:4/3;object-fit:cover}.subject-check{width:auto;display:inline-block;margin-right:8px}

@media (max-width:600px){input,textarea,select{font-size:16px}.btn{min-height:44px}.shell{--shell-gutter:16px}nav{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}.message-form input{min-width:0}}

/* Chat: fixed viewport shell; only conversation history scrolls. */
body.chat-open{overflow:hidden}body.chat-open nav{display:none}
.chat-view{position:fixed;z-index:8;top:var(--chat-top,0px);left:50%;transform:translateX(-50%);width:min(560px,100%);height:var(--chat-height,100dvh);display:flex;flex-direction:column;background:var(--surface);padding:0 16px;overflow:hidden;border-inline:1px solid var(--line)}
.chat-view .chat-head{flex:none;margin:0;padding:calc(10px + env(safe-area-inset-top,0px)) 0 8px;border-bottom:1px solid var(--line)}
.chat-toolbar{display:flex;justify-content:space-between;gap:8px}.chat-head h1{font-size:23px;margin:9px 0 3px;overflow-wrap:anywhere}.chat-head #chat-sync{margin:0 0 6px;font-size:10px}
.chat-details{font-size:12px}.chat-details summary{cursor:pointer;padding:8px 0;color:var(--plum)}.chat-details[open]{max-height:32dvh;overflow:auto;overscroll-behavior:contain}
.chat-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;padding:0 0 12px;scrollbar-gutter:stable}
.chat-view .messages{margin:14px 0 0}.chat-view .message-form{display:block;flex:none;margin:0;padding:10px 0 calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:var(--surface)}
.sender-label{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.sender-label strong{color:var(--plum)}.message-row{display:flex;gap:8px}.message-row input{flex:1;width:0;min-width:0;font-size:16px}.message-row button{flex:none;min-height:44px}

.chat-jump{position:absolute;right:20px;bottom:115px;z-index:1;box-shadow:0 3px 12px #493c4720;background:var(--pink);min-height:44px}.chat-jump[hidden]{display:none}

/* Stable profile hue and two personal shades, independent of the active account. */
.bubble,.bubble.mine{background:hsl(var(--chat-hue,300) 40% var(--chat-light,94%));border-color:hsl(var(--chat-hue,300) 24% 68%);color:#302a32}
.bubble .by,.bubble small{color:#463b49}.bubble small{display:block;margin-top:7px;font-size:11px}
.message-heading{display:flex;align-items:flex-start;gap:8px;justify-content:space-between}.message-heading .by{flex:1;min-width:0;overflow-wrap:anywhere}
.message-options{position:relative;flex:none;margin:-8px -8px 0 0}.message-options summary{list-style:none;cursor:pointer;display:grid;place-items:center;width:44px;height:44px;color:#463b49;border-radius:9px;font-size:22px;line-height:1}.message-options summary::-webkit-details-marker{display:none}
.message-options summary:focus-visible{outline:3px solid var(--plum);outline-offset:1px}.message-options[open] summary{background:#ffffffa0}
.message-menu{position:absolute;right:0;top:42px;z-index:3;padding:5px;border:1px solid var(--line);border-radius:12px;background:#fffcfd;box-shadow:0 4px 14px #302a3226}.message-menu .btn{white-space:nowrap}

/* Finite colour classes work with style-src self, without inline styles. */
.chat-hue-0{--chat-hue:0}
.chat-hue-1{--chat-hue:1}
.chat-hue-2{--chat-hue:2}
.chat-hue-3{--chat-hue:3}
.chat-hue-4{--chat-hue:4}
.chat-hue-5{--chat-hue:5}
.chat-hue-6{--chat-hue:6}
.chat-hue-7{--chat-hue:7}
.chat-hue-8{--chat-hue:8}
.chat-hue-9{--chat-hue:9}
.chat-hue-10{--chat-hue:10}
.chat-hue-11{--chat-hue:11}
.chat-hue-12{--chat-hue:12}
.chat-hue-13{--chat-hue:13}
.chat-hue-14{--chat-hue:14}
.chat-hue-15{--chat-hue:15}
.chat-hue-16{--chat-hue:16}
.chat-hue-17{--chat-hue:17}
.chat-hue-18{--chat-hue:18}
.chat-hue-19{--chat-hue:19}
.chat-hue-20{--chat-hue:20}
.chat-hue-21{--chat-hue:21}
.chat-hue-22{--chat-hue:22}
.chat-hue-23{--chat-hue:23}
.chat-hue-24{--chat-hue:24}
.chat-hue-25{--chat-hue:25}
.chat-hue-26{--chat-hue:26}
.chat-hue-27{--chat-hue:27}
.chat-hue-28{--chat-hue:28}
.chat-hue-29{--chat-hue:29}
.chat-hue-30{--chat-hue:30}
.chat-hue-31{--chat-hue:31}
.chat-hue-32{--chat-hue:32}
.chat-hue-33{--chat-hue:33}
.chat-hue-34{--chat-hue:34}
.chat-hue-35{--chat-hue:35}
.chat-hue-36{--chat-hue:36}
.chat-hue-37{--chat-hue:37}
.chat-hue-38{--chat-hue:38}
.chat-hue-39{--chat-hue:39}
.chat-hue-40{--chat-hue:40}
.chat-hue-41{--chat-hue:41}
.chat-hue-42{--chat-hue:42}
.chat-hue-43{--chat-hue:43}
.chat-hue-44{--chat-hue:44}
.chat-hue-45{--chat-hue:45}
.chat-hue-46{--chat-hue:46}
.chat-hue-47{--chat-hue:47}
.chat-hue-48{--chat-hue:48}
.chat-hue-49{--chat-hue:49}
.chat-hue-50{--chat-hue:50}
.chat-hue-51{--chat-hue:51}
.chat-hue-52{--chat-hue:52}
.chat-hue-53{--chat-hue:53}
.chat-hue-54{--chat-hue:54}
.chat-hue-55{--chat-hue:55}
.chat-hue-56{--chat-hue:56}
.chat-hue-57{--chat-hue:57}
.chat-hue-58{--chat-hue:58}
.chat-hue-59{--chat-hue:59}
.chat-hue-60{--chat-hue:60}
.chat-hue-61{--chat-hue:61}
.chat-hue-62{--chat-hue:62}
.chat-hue-63{--chat-hue:63}
.chat-hue-64{--chat-hue:64}
.chat-hue-65{--chat-hue:65}
.chat-hue-66{--chat-hue:66}
.chat-hue-67{--chat-hue:67}
.chat-hue-68{--chat-hue:68}
.chat-hue-69{--chat-hue:69}
.chat-hue-70{--chat-hue:70}
.chat-hue-71{--chat-hue:71}
.chat-hue-72{--chat-hue:72}
.chat-hue-73{--chat-hue:73}
.chat-hue-74{--chat-hue:74}
.chat-hue-75{--chat-hue:75}
.chat-hue-76{--chat-hue:76}
.chat-hue-77{--chat-hue:77}
.chat-hue-78{--chat-hue:78}
.chat-hue-79{--chat-hue:79}
.chat-hue-80{--chat-hue:80}
.chat-hue-81{--chat-hue:81}
.chat-hue-82{--chat-hue:82}
.chat-hue-83{--chat-hue:83}
.chat-hue-84{--chat-hue:84}
.chat-hue-85{--chat-hue:85}
.chat-hue-86{--chat-hue:86}
.chat-hue-87{--chat-hue:87}
.chat-hue-88{--chat-hue:88}
.chat-hue-89{--chat-hue:89}
.chat-hue-90{--chat-hue:90}
.chat-hue-91{--chat-hue:91}
.chat-hue-92{--chat-hue:92}
.chat-hue-93{--chat-hue:93}
.chat-hue-94{--chat-hue:94}
.chat-hue-95{--chat-hue:95}
.chat-hue-96{--chat-hue:96}
.chat-hue-97{--chat-hue:97}
.chat-hue-98{--chat-hue:98}
.chat-hue-99{--chat-hue:99}
.chat-hue-100{--chat-hue:100}
.chat-hue-101{--chat-hue:101}
.chat-hue-102{--chat-hue:102}
.chat-hue-103{--chat-hue:103}
.chat-hue-104{--chat-hue:104}
.chat-hue-105{--chat-hue:105}
.chat-hue-106{--chat-hue:106}
.chat-hue-107{--chat-hue:107}
.chat-hue-108{--chat-hue:108}
.chat-hue-109{--chat-hue:109}
.chat-hue-110{--chat-hue:110}
.chat-hue-111{--chat-hue:111}
.chat-hue-112{--chat-hue:112}
.chat-hue-113{--chat-hue:113}
.chat-hue-114{--chat-hue:114}
.chat-hue-115{--chat-hue:115}
.chat-hue-116{--chat-hue:116}
.chat-hue-117{--chat-hue:117}
.chat-hue-118{--chat-hue:118}
.chat-hue-119{--chat-hue:119}
.chat-hue-120{--chat-hue:120}
.chat-hue-121{--chat-hue:121}
.chat-hue-122{--chat-hue:122}
.chat-hue-123{--chat-hue:123}
.chat-hue-124{--chat-hue:124}
.chat-hue-125{--chat-hue:125}
.chat-hue-126{--chat-hue:126}
.chat-hue-127{--chat-hue:127}
.chat-hue-128{--chat-hue:128}
.chat-hue-129{--chat-hue:129}
.chat-hue-130{--chat-hue:130}
.chat-hue-131{--chat-hue:131}
.chat-hue-132{--chat-hue:132}
.chat-hue-133{--chat-hue:133}
.chat-hue-134{--chat-hue:134}
.chat-hue-135{--chat-hue:135}
.chat-hue-136{--chat-hue:136}
.chat-hue-137{--chat-hue:137}
.chat-hue-138{--chat-hue:138}
.chat-hue-139{--chat-hue:139}
.chat-hue-140{--chat-hue:140}
.chat-hue-141{--chat-hue:141}
.chat-hue-142{--chat-hue:142}
.chat-hue-143{--chat-hue:143}
.chat-hue-144{--chat-hue:144}
.chat-hue-145{--chat-hue:145}
.chat-hue-146{--chat-hue:146}
.chat-hue-147{--chat-hue:147}
.chat-hue-148{--chat-hue:148}
.chat-hue-149{--chat-hue:149}
.chat-hue-150{--chat-hue:150}
.chat-hue-151{--chat-hue:151}
.chat-hue-152{--chat-hue:152}
.chat-hue-153{--chat-hue:153}
.chat-hue-154{--chat-hue:154}
.chat-hue-155{--chat-hue:155}
.chat-hue-156{--chat-hue:156}
.chat-hue-157{--chat-hue:157}
.chat-hue-158{--chat-hue:158}
.chat-hue-159{--chat-hue:159}
.chat-hue-160{--chat-hue:160}
.chat-hue-161{--chat-hue:161}
.chat-hue-162{--chat-hue:162}
.chat-hue-163{--chat-hue:163}
.chat-hue-164{--chat-hue:164}
.chat-hue-165{--chat-hue:165}
.chat-hue-166{--chat-hue:166}
.chat-hue-167{--chat-hue:167}
.chat-hue-168{--chat-hue:168}
.chat-hue-169{--chat-hue:169}
.chat-hue-170{--chat-hue:170}
.chat-hue-171{--chat-hue:171}
.chat-hue-172{--chat-hue:172}
.chat-hue-173{--chat-hue:173}
.chat-hue-174{--chat-hue:174}
.chat-hue-175{--chat-hue:175}
.chat-hue-176{--chat-hue:176}
.chat-hue-177{--chat-hue:177}
.chat-hue-178{--chat-hue:178}
.chat-hue-179{--chat-hue:179}
.chat-hue-180{--chat-hue:180}
.chat-hue-181{--chat-hue:181}
.chat-hue-182{--chat-hue:182}
.chat-hue-183{--chat-hue:183}
.chat-hue-184{--chat-hue:184}
.chat-hue-185{--chat-hue:185}
.chat-hue-186{--chat-hue:186}
.chat-hue-187{--chat-hue:187}
.chat-hue-188{--chat-hue:188}
.chat-hue-189{--chat-hue:189}
.chat-hue-190{--chat-hue:190}
.chat-hue-191{--chat-hue:191}
.chat-hue-192{--chat-hue:192}
.chat-hue-193{--chat-hue:193}
.chat-hue-194{--chat-hue:194}
.chat-hue-195{--chat-hue:195}
.chat-hue-196{--chat-hue:196}
.chat-hue-197{--chat-hue:197}
.chat-hue-198{--chat-hue:198}
.chat-hue-199{--chat-hue:199}
.chat-hue-200{--chat-hue:200}
.chat-hue-201{--chat-hue:201}
.chat-hue-202{--chat-hue:202}
.chat-hue-203{--chat-hue:203}
.chat-hue-204{--chat-hue:204}
.chat-hue-205{--chat-hue:205}
.chat-hue-206{--chat-hue:206}
.chat-hue-207{--chat-hue:207}
.chat-hue-208{--chat-hue:208}
.chat-hue-209{--chat-hue:209}
.chat-hue-210{--chat-hue:210}
.chat-hue-211{--chat-hue:211}
.chat-hue-212{--chat-hue:212}
.chat-hue-213{--chat-hue:213}
.chat-hue-214{--chat-hue:214}
.chat-hue-215{--chat-hue:215}
.chat-hue-216{--chat-hue:216}
.chat-hue-217{--chat-hue:217}
.chat-hue-218{--chat-hue:218}
.chat-hue-219{--chat-hue:219}
.chat-hue-220{--chat-hue:220}
.chat-hue-221{--chat-hue:221}
.chat-hue-222{--chat-hue:222}
.chat-hue-223{--chat-hue:223}
.chat-hue-224{--chat-hue:224}
.chat-hue-225{--chat-hue:225}
.chat-hue-226{--chat-hue:226}
.chat-hue-227{--chat-hue:227}
.chat-hue-228{--chat-hue:228}
.chat-hue-229{--chat-hue:229}
.chat-hue-230{--chat-hue:230}
.chat-hue-231{--chat-hue:231}
.chat-hue-232{--chat-hue:232}
.chat-hue-233{--chat-hue:233}
.chat-hue-234{--chat-hue:234}
.chat-hue-235{--chat-hue:235}
.chat-hue-236{--chat-hue:236}
.chat-hue-237{--chat-hue:237}
.chat-hue-238{--chat-hue:238}
.chat-hue-239{--chat-hue:239}
.chat-hue-240{--chat-hue:240}
.chat-hue-241{--chat-hue:241}
.chat-hue-242{--chat-hue:242}
.chat-hue-243{--chat-hue:243}
.chat-hue-244{--chat-hue:244}
.chat-hue-245{--chat-hue:245}
.chat-hue-246{--chat-hue:246}
.chat-hue-247{--chat-hue:247}
.chat-hue-248{--chat-hue:248}
.chat-hue-249{--chat-hue:249}
.chat-hue-250{--chat-hue:250}
.chat-hue-251{--chat-hue:251}
.chat-hue-252{--chat-hue:252}
.chat-hue-253{--chat-hue:253}
.chat-hue-254{--chat-hue:254}
.chat-hue-255{--chat-hue:255}
.chat-hue-256{--chat-hue:256}
.chat-hue-257{--chat-hue:257}
.chat-hue-258{--chat-hue:258}
.chat-hue-259{--chat-hue:259}
.chat-hue-260{--chat-hue:260}
.chat-hue-261{--chat-hue:261}
.chat-hue-262{--chat-hue:262}
.chat-hue-263{--chat-hue:263}
.chat-hue-264{--chat-hue:264}
.chat-hue-265{--chat-hue:265}
.chat-hue-266{--chat-hue:266}
.chat-hue-267{--chat-hue:267}
.chat-hue-268{--chat-hue:268}
.chat-hue-269{--chat-hue:269}
.chat-hue-270{--chat-hue:270}
.chat-hue-271{--chat-hue:271}
.chat-hue-272{--chat-hue:272}
.chat-hue-273{--chat-hue:273}
.chat-hue-274{--chat-hue:274}
.chat-hue-275{--chat-hue:275}
.chat-hue-276{--chat-hue:276}
.chat-hue-277{--chat-hue:277}
.chat-hue-278{--chat-hue:278}
.chat-hue-279{--chat-hue:279}
.chat-hue-280{--chat-hue:280}
.chat-hue-281{--chat-hue:281}
.chat-hue-282{--chat-hue:282}
.chat-hue-283{--chat-hue:283}
.chat-hue-284{--chat-hue:284}
.chat-hue-285{--chat-hue:285}
.chat-hue-286{--chat-hue:286}
.chat-hue-287{--chat-hue:287}
.chat-hue-288{--chat-hue:288}
.chat-hue-289{--chat-hue:289}
.chat-hue-290{--chat-hue:290}
.chat-hue-291{--chat-hue:291}
.chat-hue-292{--chat-hue:292}
.chat-hue-293{--chat-hue:293}
.chat-hue-294{--chat-hue:294}
.chat-hue-295{--chat-hue:295}
.chat-hue-296{--chat-hue:296}
.chat-hue-297{--chat-hue:297}
.chat-hue-298{--chat-hue:298}
.chat-hue-299{--chat-hue:299}
.chat-hue-300{--chat-hue:300}
.chat-hue-301{--chat-hue:301}
.chat-hue-302{--chat-hue:302}
.chat-hue-303{--chat-hue:303}
.chat-hue-304{--chat-hue:304}
.chat-hue-305{--chat-hue:305}
.chat-hue-306{--chat-hue:306}
.chat-hue-307{--chat-hue:307}
.chat-hue-308{--chat-hue:308}
.chat-hue-309{--chat-hue:309}
.chat-hue-310{--chat-hue:310}
.chat-hue-311{--chat-hue:311}
.chat-hue-312{--chat-hue:312}
.chat-hue-313{--chat-hue:313}
.chat-hue-314{--chat-hue:314}
.chat-hue-315{--chat-hue:315}
.chat-hue-316{--chat-hue:316}
.chat-hue-317{--chat-hue:317}
.chat-hue-318{--chat-hue:318}
.chat-hue-319{--chat-hue:319}
.chat-hue-320{--chat-hue:320}
.chat-hue-321{--chat-hue:321}
.chat-hue-322{--chat-hue:322}
.chat-hue-323{--chat-hue:323}
.chat-hue-324{--chat-hue:324}
.chat-hue-325{--chat-hue:325}
.chat-hue-326{--chat-hue:326}
.chat-hue-327{--chat-hue:327}
.chat-hue-328{--chat-hue:328}
.chat-hue-329{--chat-hue:329}
.chat-hue-330{--chat-hue:330}
.chat-hue-331{--chat-hue:331}
.chat-hue-332{--chat-hue:332}
.chat-hue-333{--chat-hue:333}
.chat-hue-334{--chat-hue:334}
.chat-hue-335{--chat-hue:335}
.chat-hue-336{--chat-hue:336}
.chat-hue-337{--chat-hue:337}
.chat-hue-338{--chat-hue:338}
.chat-hue-339{--chat-hue:339}
.chat-hue-340{--chat-hue:340}
.chat-hue-341{--chat-hue:341}
.chat-hue-342{--chat-hue:342}
.chat-hue-343{--chat-hue:343}
.chat-hue-344{--chat-hue:344}
.chat-hue-345{--chat-hue:345}
.chat-hue-346{--chat-hue:346}
.chat-hue-347{--chat-hue:347}
.chat-hue-348{--chat-hue:348}
.chat-hue-349{--chat-hue:349}
.chat-hue-350{--chat-hue:350}
.chat-hue-351{--chat-hue:351}
.chat-hue-352{--chat-hue:352}
.chat-hue-353{--chat-hue:353}
.chat-hue-354{--chat-hue:354}
.chat-hue-355{--chat-hue:355}
.chat-hue-356{--chat-hue:356}
.chat-hue-357{--chat-hue:357}
.chat-hue-358{--chat-hue:358}
.chat-hue-359{--chat-hue:359}
.chat-hue-360{--chat-hue:360}
.chat-tone-0{--chat-light:94%}.chat-tone-1{--chat-light:85%}

/* Quick start for conversations, sized for mobile touch. */
.contact-results{display:grid;gap:10px;margin:16px 0;max-height:42dvh;overflow-y:auto;overscroll-behavior:contain}.contact-choice{display:flex;align-items:center;gap:12px;width:100%;min-height:76px;text-align:left;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:inherit}.contact-choice>span:nth-child(2){flex:1;min-width:0}.contact-choice strong{display:block;overflow-wrap:anywhere}.contact-choice small{display:block;margin-top:5px;color:var(--muted);line-height:1.4}.contact-choice .avatar{flex:none;display:grid;place-items:center}.contact-arrow{color:var(--plum);font-size:24px}#contact-search{font-size:16px}#contact-results .empty{padding:18px}

/* Connections and plans: one action per shared profile, personal chat author unchanged. */
.filter-count{font-size:12px;opacity:.8;margin-left:4px}.connection-match{border:2px solid #b78ea8}.availability-line{display:flex;gap:9px;align-items:flex-start;font-size:14px;line-height:1.5;background:#f7f0f5;padding:12px;border-radius:12px}.availability-line strong{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--plum)}.plan-shortcut{margin:8px 0 2px}.plan-shortcut .btn{padding:9px 14px;font-size:13px}.encounter-card{padding:14px;border:1px solid var(--line);border-radius:14px;margin:10px 0;background:var(--surface);font-size:13px}.encounter-card h3{font-size:16px;margin:12px 0 5px}.encounter-card>p{margin:5px 0 12px}.encounter-confirmed{border-color:#829e92;background:#f1f7f3}.encounter-cancelled{background:#f4f1f3;color:var(--muted)}.plan-confirmations{padding:0;list-style:none;margin:12px 0}.plan-confirmations li{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid var(--line)}.plan-confirmations strong{font-size:12px;white-space:nowrap}.encounter-card .actions .btn{min-height:44px;font-size:12px}.availability-presets .btn{font-size:12px;min-height:44px} .chat-plan-details[open]{max-height:30dvh}.chat-details>summary{min-height:36px}

/* Dock 0.38.4: separated surface, distinct icons and an unmistakable selected page. */
nav.privee-dock{width:min(540px,calc(100% - 24px));bottom:calc(10px + env(safe-area-inset-bottom,0px));padding:7px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;background:#fffcfd;border:1px solid #d9c0d0;border-radius:25px;box-shadow:0 8px 30px #5b354b26,0 2px 6px #5b354b10;backdrop-filter:blur(18px)}
nav.privee-dock button{min-width:0;min-height:70px;border-radius:19px;padding:7px 0 6px;gap:5px;color:#59424f;background:transparent;transition:background .16s,color .16s,box-shadow .16s}
nav.privee-dock .dock-icon{display:grid;place-items:center;width:36px;height:34px;border-radius:12px;flex:none}.dock-icon svg{display:block;width:24px;height:24px}
.dock-inicio{background:#f5e0ea;color:#86516d}.dock-explorar{background:#e9e5f8;color:#66528c}.dock-conexiones{background:#f8e4de;color:#955c53}.dock-chat{background:#dfeee9;color:#456e62}.dock-perfil{background:#eae4ee;color:#6a547b}
nav.privee-dock .dock-label{font-size:11px;line-height:1.2;letter-spacing:0;font-weight:600;white-space:nowrap}
nav.privee-dock button.active{background:#80516f;color:#fff;box-shadow:0 3px 8px #80516f30;font-weight:700}
nav.privee-dock button.active .dock-icon{background:#ffffff1f;color:#fff}nav.privee-dock button.active .dock-label{color:#fff;font-weight:700}
nav.privee-dock button:focus-visible{outline:3px solid #53304a;outline-offset:2px}nav.privee-dock button:active{transform:translateY(1px)}
.shell{padding-bottom:calc(130px + env(safe-area-inset-bottom,0px))}
@media(max-width:350px){nav.privee-dock{width:calc(100% - 16px);gap:2px;padding:6px}nav.privee-dock .dock-label{font-size:10px}nav.privee-dock button{min-height:67px}}
@media(prefers-reduced-motion:reduce){nav.privee-dock button{transition:none}}

.header-actions{display:flex;align-items:center;gap:10px}.options-trigger{display:grid;place-items:center;width:46px;height:46px;border:1px solid #d8c2d1;border-radius:15px;background:#fffcfd;color:#68445c;flex:none}.options-trigger span{font:30px/1 Arial;transform:translateY(-3px)}.header-actions .secondary-session-control{display:none}.options-list{display:grid;gap:10px;margin:18px 0}.option-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;padding:17px 14px;min-height:76px;border-radius:15px}.option-row strong{display:block;font-size:14px;color:#493744}.option-row small{display:block;font-size:12px;line-height:1.5;margin-top:5px;color:#705b69}.option-row>span:last-child{font-size:26px;color:var(--plum)}.help-points{padding-left:20px;font-size:14px;line-height:1.6}.help-points li{margin:8px 0}

.setup-progress{display:flex;gap:8px;list-style:none;padding:0;margin:22px 0;flex-wrap:wrap}.setup-progress li{flex:1;min-width:85px;border:1px solid var(--line);border-radius:12px;padding:10px 8px;font-size:12px;text-align:center;color:var(--muted)}.setup-progress .current{background:#80516f;color:white;border-color:#80516f}.setup-progress .complete{background:#e2eee8;color:#365f50;border-color:#b8d1c5}#partner-code{font-family:monospace;font-size:16px}

.setup-progress[hidden]{display:none}

/* 0.39: quiet surfaces, a bottom-aligned navigation bar, readable content. */
:root{color:#392f38;background:#f8f5f7;--plum:#81536f;--line:#eee6ec;--muted:#70636e;--pink:#f0e4ec;--surface:#fffdfE}
/* viewport-fit=cover puts the document behind the iPhone status bar.
   Reserve its inset in the first normal-flow surface, above both headers.
   Chat hides this banner and already handles its own top safe area. */
.demo{background:#f0e8ee;color:#6e5969;font-size:10px;padding:4px 8px;padding-top:calc(4px + env(safe-area-inset-top,0px));letter-spacing:.02em}
.safe-area-top{height:env(safe-area-inset-top,0px);pointer-events:none}
body.chat-open>.safe-area-top{display:none}
/* Installed iPhone apps can add a native progressive blur at the top edge.
   Keep a fixed color source for WebKit's status-bar sampling. Clipping the
   empty decorative element to text avoids painting a strip over the page.
   This workaround needs confirmation on the actual installed iPhone app. */
.pwa-top-edge{display:none}
@media (display-mode: standalone){
  .pwa-top-edge{
    display:block;position:fixed;inset:0 0 auto;height:11px;z-index:6;
    pointer-events:none;background-color:var(--pwa-status-color);
    -webkit-background-clip:text;background-clip:text;
  }
}
.shell{padding-bottom:calc(94px + env(safe-area-inset-bottom,0px))}
header{padding:19px 0 9px}.logo{font-size:45px;letter-spacing:-2.5px}
.header-actions{gap:6px}.header-actions .avatar{width:38px;height:38px;font-size:12px}.options-trigger{width:42px;height:42px;border:0;background:transparent;border-radius:50%;color:#735669}

h1{font-family:Arial,Helvetica,sans-serif;font-size:26px;line-height:1.2;font-weight:600;letter-spacing:-.6px;margin:12px 0 7px}
h2{font-size:17px;letter-spacing:-.25px}.intro{font-size:14px;margin-bottom:21px;color:var(--muted)}
.card{border:0;background:#fff;border-radius:16px;box-shadow:0 1px 3px #38273509;margin-bottom:14px}.card-body{padding:17px}.profile-line{margin:0;gap:11px}.profile-line strong{font-size:14px;color:#392f38}.profile-line small{color:#70636e;font-size:12px}.profile-line .avatar{background:#f0e6ed;color:#76566d}

.section-label{margin-bottom:13px}.section-label .pill{background:none;padding-right:0;font-size:10px;color:#766873}
.post-header{padding:16px 17px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.feed-card .card-body{padding-top:9px}.feed-card:has(.sample-media) .card-body,.feed-card:has(.post-photo) .card-body{padding-top:16px}.post-text{font-size:15px;line-height:1.6;color:#443641;margin-bottom:15px}.sample-media{margin:0;position:relative;background:#e7e9e5}.sample-media img{display:block;width:100%;height:auto;aspect-ratio:20/11;object-fit:cover}.sample-media figcaption{position:absolute;bottom:8px;left:10px;background:#fffffff0;color:#4c514d;font-size:10px;padding:4px 7px;border-radius:5px}.locked{margin:0 17px;background:#f4eff3;color:#654c5d}
.btn{border-color:#e7dce3;background:#fff;border-radius:10px;min-height:44px;color:#694b60;font-size:12px;padding:10px 12px}.btn.primary{background:var(--plum);border-color:var(--plum)}.btn.on{background:#f0e4ec;border-color:#d1b7c7;color:#65445a}.actions{gap:7px}.feed-card .actions{border-top:1px solid #f0e9ee;padding-top:9px;display:grid;grid-template-columns:auto 1fr auto;gap:3px}.feed-card .actions .btn{background:transparent;border-color:transparent;padding-inline:6px;font-size:12px}.feed-card .actions .btn.on{color:#75405f;background:#f4ecf1}.feed-card .actions .conversation-action{color:#75405f;font-weight:600}.feed-card>.card-body>.btn{color:#7a6b75;border:0;background:#f6f2f5;font-size:11px}
.grid{grid-template-columns:1fr;gap:0}.grid .card-body{padding:17px}.discovery-card .profile-line .avatar{width:48px;height:48px;font-size:15px}.discovery-bio{font-size:14px!important;line-height:1.5;margin:13px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.discovery-card .wide{width:auto;min-width:112px;display:block;margin:12px 0 0 auto;background:#f3ebf0;border-color:transparent}.availability-line{background:transparent;padding:0;gap:7px;color:#71616c;font-size:13px;margin:12px 0}.availability-line strong{display:none}.availability-line>span:first-child{font-size:15px;color:#8a6b7f}
.filters{gap:7px;margin:17px 0}.filters .btn{border-color:transparent;background:transparent;color:#75636f;padding-inline:12px}.filters .btn.on{background:#eee2ea;color:#69435c;border-color:transparent}.connection-match{border:0;box-shadow:inset 3px 0 #a57b96,0 1px 3px #38273509}.empty{border:0;background:#fff;padding:30px 20px;color:#74626f}.room-link{padding:19px 17px}.room-link strong{font-size:15px}.room-link p{margin:8px 0}.room-link small{display:block;margin-top:8px}.room-link p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-link:hover{background:#faf7f9}
.profile-top{background:#efe7ed;border-radius:18px;padding:24px 18px 18px}.profile-top .notice{background:transparent;padding:5px;margin:6px 0;font-size:13px}.profile-top .notice p{margin:4px 0}.profile-top .avatar{margin-bottom:10px}.profile-top h1{font-family:Georgia,serif;font-size:28px}.profile-top .pill{display:inline-block;margin-top:10px}.profile-bio{margin:3px 0 8px;font-size:14px}.profile-location{font-size:12px;color:#796573;margin:0 0 14px}.edit-section{margin:12px 0;background:#fff;border-radius:13px;padding:0 15px}.edit-section>summary{font-size:14px;font-weight:600;cursor:pointer;min-height:56px;padding:19px 0;color:#604456}.edit-section[open]{padding-bottom:16px}.edit-section .field:first-child{margin-top:2px}.notice{background:#f1ebef;color:#685560}.profile-top .notice{color:#51404d}
nav.privee-dock{bottom:0;width:min(560px,100%);padding:6px 10px calc(6px + env(safe-area-inset-bottom,0px));gap:0;border:0;border-top:1px solid #e9e0e6;border-radius:0;box-shadow:none;background:#fffdfef7;backdrop-filter:blur(18px)}
nav.privee-dock button{min-height:58px;padding:4px 0;gap:4px;border-radius:0;color:#7c6b77;background:none;box-shadow:none;transition:color .16s}
nav.privee-dock .dock-icon{width:42px;height:29px;border-radius:13px;background:none;color:inherit}.dock-icon svg{width:23px;height:23px}nav.privee-dock .dock-label{font-size:10px;font-weight:400;color:inherit}
nav.privee-dock button.active{background:none;box-shadow:none;color:#754462;font-weight:600}nav.privee-dock button.active .dock-icon{background:#efe1e9;color:#754462}nav.privee-dock button.active .dock-label{color:#754462;font-weight:700}
nav.privee-dock button:focus-visible{outline:2px solid var(--plum);outline-offset:-2px;border-radius:8px}
#toast{bottom:calc(82px + env(safe-area-inset-bottom,0px))}body.chat-open #toast{bottom:calc(110px + env(safe-area-inset-bottom,0px))}.chat-view{border-color:var(--line)}.chat-head h1{font-family:Arial,Helvetica,sans-serif;font-size:21px}.chat-details summary{font-size:12px}.message-options summary{font-size:20px}
@media(max-width:350px){nav.privee-dock{width:100%;padding-inline:4px;gap:0}nav.privee-dock button{min-height:58px}.feed-card .actions .btn{font-size:11px;padding-inline:3px}}
@media(min-width:800px){.shell{border:0}.demo{max-width:560px;margin:auto}}

/* 0.39.1: restrained depth and editorial hierarchy, retaining the quiet dock. */
:root{background:#f5f0f3;--surface:#fffdfE}
body{background:radial-gradient(ellipse 460px 300px at 50% 70px,#eadce6a8,transparent 85%),#f5f0f3;min-height:100dvh}
header{padding-top:24px;padding-bottom:12px}.logo{color:#7c496a;text-shadow:0 2px 0 #ffffffb3}.header-actions .avatar{background:linear-gradient(145deg,#f7eef3,#e5d4e0);box-shadow:inset 0 1px 0 #fff,0 3px 8px #72516b12}

#main>h1{font-family:Georgia,'Times New Roman',serif;font-size:34px;font-weight:400;letter-spacing:-1.1px;color:#513a4a;margin:16px 0 7px;line-height:1.15}
.intro{color:#75616f;margin-bottom:24px}.section-label h2{font-size:17px;font-weight:600;color:#513b4a}.section-label{margin-top:4px}
.card{border-radius:19px;background:linear-gradient(155deg,#fff 70%,#fffcfe);box-shadow:0 5px 18px -9px #6e3d5a30,0 1px 3px #62425a08,inset 0 1px 0 #fff;margin-bottom:18px}
.post-header{padding:18px 18px 13px}.profile-line .avatar{background:linear-gradient(140deg,#f6edf3,#e8d9e4);box-shadow:inset 0 1px 0 #ffffffcc;color:#80536f}.profile-line strong{font-weight:600;color:#4b3443}.post-text{color:#493641;line-height:1.65}.feed-card .card-body{padding-inline:18px;padding-bottom:17px}
.feed-card:has(.post-header>.pill){background:radial-gradient(ellipse at 100% 0%,#ead6e56b,transparent 70%),linear-gradient(145deg,#fff,#faf3f8)}
.feed-card:has(.post-header>.pill) .post-text{font-family:Georgia,'Times New Roman',serif;font-size:20px;line-height:1.45;color:#65455b;margin-top:4px;margin-bottom:18px}
.post-header>.pill{background:#e9dbe5;color:#75516a;font-size:10px;letter-spacing:.03em}


.sample-media{margin:0 8px;border-radius:12px;overflow:hidden}.sample-media img{aspect-ratio:20/11}.sample-media figcaption{font-size:9px;background:#ffffffe6;color:#515250}.feed-card:has(.sample-media) .card-body{padding-top:17px}
.btn.primary{background:linear-gradient(135deg,#926180,#80506f);box-shadow:0 3px 8px #80516f18;border-color:transparent}.btn.on{background:#eee0e9;border-color:#d4bacb}.discovery-card .wide{background:#f0e4ed;color:#76506b;border-color:transparent}.discovery-card .profile-line .avatar{border-radius:17px;background:linear-gradient(135deg,#efe0ec,#e4d6e4);box-shadow:inset 0 1px 0 #fff,0 3px 8px #76536a10}.discovery-card .card-body{padding:19px}.discovery-card .availability-line{border-top:1px solid #f0e8ee;padding-top:11px;margin-top:14px}
.connection-match{box-shadow:inset 3px 0 #ae829f,0 5px 18px -9px #6e3d5a30}.empty{box-shadow:0 5px 18px -9px #6e3d5a20}.room-link{border-radius:19px}.room-link>strong{font-weight:600}
.profile-top{background:radial-gradient(ellipse at 80% 10%,#f9f0f7,transparent 70%),linear-gradient(135deg,#e9d9e5,#eee4ec);box-shadow:inset 0 1px 0 #fff,0 7px 22px -14px #6e3d5a50;padding-top:27px;padding-bottom:23px}.profile-top .avatar{background:#ffffffb3;box-shadow:0 4px 12px #78556a10}.profile-top h1{color:#61445a}.profile-top .pill{background:#ffffff8c;color:#76566b}.edit-section{box-shadow:0 3px 13px -8px #6e3d5a26}.profile-bio{margin-top:9px}
nav.privee-dock{background:#fffdfefa;border-top-color:#e9dde5;box-shadow:none}nav.privee-dock button.active .dock-icon{background:linear-gradient(140deg,#f3e8ef,#ead9e4)}
.story-scene{background:radial-gradient(ellipse at 90% 0%,#f6e5ef,transparent 70%),#eee4ed;color:#66485d}

/* 0.39.2: keep separate touch areas between adjacent action blocks. */
.connection-card .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.connection-card .actions>.btn{flex:1 1 auto;min-width:0;white-space:normal;overflow-wrap:anywhere}
.connection-card .actions+.btn.wide{display:block;margin-top:12px}
.chat-start{display:block;margin-bottom:18px}

/* 0.40: shared intentions, private profile visibility, progressive setup preview. */
.looking-section{margin:20px 0 25px;padding:17px;background:#fff;border-radius:15px;box-shadow:0 3px 13px -9px #6e3d5a26}.looking-section h2{font-size:16px;margin:0 0 12px}.looking-section h3{font-size:12px;margin:16px 0 7px;color:var(--muted);font-weight:400}.looking-section p{font-size:13px;margin:7px 0}.looking-tags{display:flex;flex-wrap:wrap;gap:6px}.looking-tags>span{padding:6px 9px;border-radius:9px;background:#f1e8ef;color:#725069;font-size:11px;line-height:1.4;overflow-wrap:anywhere}.looking-compact{margin-top:12px}.looking-compact>span{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}.looking-compact .looking-tags>span{font-size:10px;background:#f6f0f4}.preference-field{border:0;padding:0;margin:24px 0}.preference-field legend{font-size:14px;font-weight:600;margin-bottom:8px}.preference-choice{display:flex;align-items:center;gap:11px;min-height:46px;padding:8px 0;font-size:13px;cursor:pointer;line-height:1.4}.preference-choice input{flex:none;width:20px;height:20px;padding:0;margin:0;accent-color:var(--plum)}.preference-choice:has(input:checked){color:#784661}.search-preferences{padding:14px 16px;background:#fff;border-radius:13px;margin:0 0 12px}.search-preferences summary{font-size:12px;color:var(--plum);cursor:pointer;min-height:24px;line-height:24px}.search-preferences .btn{margin-top:12px}.search-preferences select{font-size:14px}.setup-demo-entry{margin:20px 0;padding:16px;border:1px dashed #d4becd;border-radius:13px}.setup-demo-entry p{font-size:12px;color:var(--muted)}.setup-preview-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0 20px}.setup-preview-bar>span{font-size:10px;color:var(--muted)}.setup-preview-bar .btn{font-size:11px}.setup-preview-bar~.btn.wide,.setup-preview-bar~.notice .btn.wide{margin:12px 0}.setup-preview-bar~form .btn,.setup-preview-bar~.notice .btn{margin-top:12px}#setup-accept-form{margin:18px 0}#setup-error{font-size:13px;color:#8b3d5a}.setup-preview-bar~.card .pill{display:inline-block}.setup-preview-bar~.card p{font-size:14px}.setup-preview-bar~.card .looking-compact p{font-size:12px}

nav.privee-dock[hidden]{display:none}

/* 0.41: conversation tools are in the header's ellipsis menu. */
.chat-view .chat-head{padding-bottom:7px}.chat-head #chat-sync{margin-bottom:3px}.participant-list{list-style:none;padding:0;margin:16px 0 22px}.participant-list li{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.participant-list .person{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;flex:none;font-size:12px}.participant-list strong{font-size:14px}.participant-list small{display:block;margin-top:4px;font-size:12px;color:var(--muted)}.chat-menu-back{display:block;margin-top:18px}#dialog-content>.actions{gap:8px;margin-top:16px}#dialog-content .options-list{gap:8px}.chat-view .chat-head h1{margin-top:8px}

/* 0.43: clearer hierarchy, lighter actions and compact conversation surfaces. */
body{background:radial-gradient(ellipse 500px 360px at 50% -80px,#e7d1e1b0,transparent 90%),#f3edf2}
#main>h1{font-size:31px;margin-top:15px}.intro{font-size:13px;line-height:1.5;margin-bottom:20px}
.card{background:#fff;border-radius:20px;box-shadow:0 8px 24px -13px #613b5c4d,0 1px 3px #57324b0a;border:0}
.profile-line .avatar{width:48px;height:48px;font-size:15px;background:linear-gradient(140deg,#eadbea,#d9c6dd);color:#673e62;box-shadow:inset 0 1px 0 #ffffffcc,0 4px 10px #60455c12}.profile-line strong{font-size:16px}.profile-line small{font-size:12px}.discovery-card .profile-line .avatar{width:54px;height:54px;border-radius:19px}.discovery-card .wide{background:#f4edf3}
.connection-card .card-body{padding:20px}.connection-identity{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;background:none;padding:0;text-align:left;color:inherit;gap:8px;min-height:52px}.connection-identity .profile-line{margin:0;min-width:0}.connection-identity>.profile-line .meta{min-width:0}.connection-identity>span{font-size:25px;color:#9b8296}.connection-status{display:inline-block;font-size:11px;color:#7b526f;background:#f5edf3;border-radius:8px;padding:7px 9px;margin:15px 0 0}.connection-status.mutual{background:#e7f2ed;color:#346b58}.connection-card .availability-line{margin:13px 0;font-size:12px}.connection-card .actions{border-top:1px solid #f1eaf0;padding-top:14px;gap:8px;margin-top:15px}.connection-card .actions>.btn{background:transparent;border-color:transparent;padding:10px 5px;font-size:11px;flex:1 1 100px;min-height:44px}.connection-card .actions>.btn.on{background:#f3e8f0;color:#70435f}.connection-card .actions>.conversation-action{flex-basis:100%;background:linear-gradient(135deg,#895777,#754461);color:white;font-size:13px;border-radius:12px;min-height:44px}.connection-match{box-shadow:0 8px 24px -13px #613b5c4d,inset 3px 0 #8fb5a4}
.room-link{display:flex;gap:13px;align-items:center;padding:18px;min-height:100px}.room-avatar{display:grid;place-items:center;width:49px;height:49px;border-radius:17px;background:linear-gradient(140deg,#ebdeeb,#d9c8df);color:#734b6c;font-weight:600;font-size:14px;flex:none;box-shadow:inset 0 1px 0 #fff}.room-copy{min-width:0;flex:1}.room-copy strong{font-size:15px}.room-copy p{font-size:12px;margin:7px 0;color:#6e5d69}.room-copy small{font-size:10px;margin-top:8px;color:#8c7b87}.room-chevron{font-size:25px;color:#9b8296}.chat-start{min-height:45px;border-radius:13px;font-size:13px;margin-bottom:20px}
.messages{gap:10px}.bubble{border:0;border-radius:16px;padding:11px 13px;box-shadow:0 2px 5px #42313e09;max-width:87%}.bubble p{font-size:14px;line-height:1.5}.bubble .by{font-size:10px;font-weight:600}.bubble small{font-size:10px;display:block;margin-top:6px}.chat-head{background:#fff}.message-options summary{min-width:32px;min-height:32px}.chat-view .messages{padding:12px 0}.message-form input{background:#f8f4f7;border-color:#e6dce3}.message-form .primary{box-shadow:none}
@media(max-width:360px){.connection-card .card-body{padding:16px}.room-link{padding:15px;gap:10px}.room-avatar{width:43px;height:43px}.connection-card .actions>.btn{font-size:11px}}

/* 0.44: muted turquoise accents; plum remains the principal action colour. */
:root{--teal:#286a68;--teal-soft:#e4f2ef;--teal-line:#c4dfda}
.availability-line{color:var(--teal)}
.connection-card .availability-line{display:flex;align-items:center;gap:7px;background:#eff7f5;border-radius:9px;padding:9px 10px;margin:13px 0 0}
.connection-card .availability-line>span:first-child{color:var(--teal)}
.connection-status{background:var(--teal-soft);color:var(--teal)}
.connection-status.mutual{background:#d9eeea;color:#205f5d}
.connection-match{box-shadow:0 8px 24px -13px #613b5c4d,inset 3px 0 #70aaa4}
.connection-card .actions>.btn.on{background:var(--teal-soft);color:var(--teal)}
.connection-card .actions>.conversation-action{background:linear-gradient(135deg,#895777,#754461);color:#fff}
.discovery-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(112px,42%);align-items:start;gap:8px}
.discovery-heading .profile-line{min-height:54px;margin:0}
.discovery-heading .avatar{flex:none}
.discovery-heading .meta{min-width:0;overflow-wrap:anywhere}
.discovery-details{display:grid;justify-items:center;gap:4px;text-align:center;overflow-wrap:anywhere}
.discovery-details>.wide{margin:0}
.discovery-details .availability-line{justify-content:center;margin:0;padding:0;border:0;color:var(--teal)}
.discovery-details .availability-line>[aria-hidden]{display:none}
.discovery-card .looking-compact .looking-tags>span{background:#edf6f3;color:#356663}
.profile-top>.pill{background:#e4f2efd9;color:var(--teal)}



/* 0.45: approximate 65/35 mauve–turquoise visual balance, excluding chat identity colours. */
:root{--teal:#256c69;--teal-soft:#d8eeea;--teal-line:#a5d0c9}
body{background:radial-gradient(ellipse 380px 440px at 100% 360px,#d9eeea95,transparent 85%),radial-gradient(ellipse 500px 350px at 0% 0%,#e7d1e1b0,transparent 90%),#f3edf2}
body.chat-open{background:#f3edf2}


.discovery-card .profile-line .avatar,.connection-card .profile-line .avatar{background:linear-gradient(140deg,#e1f4ef,#acd6cc);color:#28645f;box-shadow:inset 0 1px 0 #fff,0 4px 10px #37675a14}
.discovery-card .wide{background:#d7eee7;color:#245f59;border-color:#b6d9cf}
.discovery-card .looking-compact .looking-tags>span{background:#dcefe9;color:#28655c}
.connection-card .availability-line{background:#dcefe9;color:#28655c}.connection-status{background:#cde8e1;color:#245f59}
.connection-card .actions>.btn.on{background:#cde8e1;color:#245f59}.connection-card .actions>.conversation-action{background:linear-gradient(135deg,#895777,#754461);color:#fff}
.profile-top{background:linear-gradient(125deg,#e7d6e3 0%,#eee3eb 60%,#c9e6de 100%)}
.filters .btn.on{background:#d5ece5;color:#245f59;border-color:transparent}
nav.privee-dock .dock-explorar,nav.privee-dock .dock-conexiones{color:#388779}
nav.privee-dock button.active .dock-explorar,nav.privee-dock button.active .dock-conexiones{background:#cfe9e0;color:#246658}
nav.privee-dock button.active:has(.dock-explorar) .dock-label,nav.privee-dock button.active:has(.dock-conexiones) .dock-label{color:#246658}
.section-label>.pill{background:#d9eee6;color:#2d655a}
.room-avatar{background:linear-gradient(140deg,#dff1eb,#b5dacf);color:#2c655a}

/* 0.46: equal visual weight for mauve and turquoise; chat identity colours unchanged. */
:root{--teal:#216e69;--teal-soft:#d5eee8;--teal-line:#9ecfc3}
body{background:radial-gradient(ellipse 430px 650px at 100% 240px,#cfe9e1b3,transparent 90%),radial-gradient(ellipse 430px 650px at 0% 100px,#e7d1e1b3,transparent 90%),#f2eff1}
body.chat-open{background:#f3edf2}
.logo{color:#7c496a}.eyebrow,.section-label h2{color:#286c63}

.discovery-card .profile-line .avatar,.connection-card .profile-line .avatar,.room-avatar{background:linear-gradient(140deg,#d7f0e6,#97ccbb);color:#235f53}
.discovery-card .wide{background:#eee3ee;color:#493c47;border-color:#e7dce5;box-shadow:0 3px 9px #493c4710}
.connection-card .actions>.conversation-action,.chat-start{background:linear-gradient(135deg,#3d8a79,#286f61);border-color:transparent;color:#fff;box-shadow:0 3px 9px #286f611a}
.discovery-card .looking-compact .looking-tags>span{background:#f0e5ef;color:#704c68}
.connection-card .availability-line{background:#d5eee3;color:#245f52}.connection-status{background:#eee1eb;color:#764a68}.connection-status.mutual{background:#c3e5d7;color:#235e50}
.filters .btn.on{background:#dfcfe0;color:#65405e}
.profile-top{background:linear-gradient(125deg,#e3cfe0 0%,#eee4ec 45%,#c1e3d4 100%)}.profile-top>.pill{background:#cae8dc;color:#235f52}
nav.privee-dock{background:linear-gradient(100deg,#fffcfe 30%,#edf8f3);border-top-color:#d7e3de}
nav.privee-dock .dock-icon{color:inherit}nav.privee-dock button.active .dock-icon{background:#c4e5d8;color:#246450}
nav.privee-dock button.active .dock-label,nav.privee-dock button.active:has(.dock-explorar) .dock-label,nav.privee-dock button.active:has(.dock-conexiones) .dock-label{color:#246450}
nav.privee-dock button.active .dock-explorar,nav.privee-dock button.active .dock-conexiones{background:#c4e5d8;color:#246450}
.section-label>.pill{background:#eddfeb;color:#754d68}

/* 0.47: full-screen conversation, keyboard-aware height and private photo preview. */
nav.privee-dock[hidden]{display:none}body.chat-open .shell>header,body.chat-open>.demo{display:none}
.chat-view{height:var(--chat-height,100dvh);top:var(--chat-top,0px);background:#fffcfe}.chat-scroll{min-height:0;flex:1}.message-row{display:flex;align-items:center;gap:8px}.chat-attach{flex:none;min-width:44px;min-height:44px;padding:0;font-size:25px;background:#d5eee8;border:0;color:#216e69}.message-row input{min-width:0;flex:1}.chat-photo-open{display:block;background:none;border:0;padding:0;margin:8px 0 0;max-width:100%;border-radius:10px;overflow:hidden}.chat-photo{display:block;width:100%;height:auto;max-height:260px;object-fit:contain}.chat-photo-full,#chat-photo-preview{display:block;max-width:100%;max-height:55dvh;height:auto;margin:12px auto;object-fit:contain;border-radius:12px}#chat-photo-preview[hidden]{display:none}.photo-consent{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.5;margin:17px 0}.photo-consent input{width:20px;height:20px;flex:none;accent-color:#286f61}

/* Reply context stays inside the existing mobile composer. */
.message-quote{margin:0 0 8px;padding:8px 10px;border-left:3px solid #298c89;border-radius:8px;background:rgba(49,158,151,.1);font-size:.85em;overflow-wrap:anywhere}
.message-quote p,.reply-preview p{margin:3px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.reply-preview{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;margin-bottom:7px;border-left:3px solid #298c89;background:#edf8f5;border-radius:8px;color:#244345;font-size:.85rem}
.reply-preview[hidden]{display:none}
.reply-preview>div{flex:1;min-width:0}
.reply-preview p{max-height:4.5em;overflow:auto}
.reply-cancel{flex-shrink:0;font-size:.8rem;min-height:36px}

.message-reactions{display:flex;flex-wrap:wrap;gap:5px;margin:7px 0}
.reaction-pill{border:1px solid #b5d5ce;border-radius:18px;padding:4px 9px;min-height:32px;color:#304b49;background:#fff;font-size:14px;cursor:pointer}
.reaction-pill.mine{background:#d8f2e9;border-color:#247a75}

/* Presentation profile */
.presentation-hero{
  --portrait-size:clamp(72px,25vw,112px);
  display:flex;align-items:center;gap:16px;margin:0;padding:clamp(19px,5vw,34px);
  border-radius:24px;border:1px solid #d6e9e1;color:#284a43;
  background:linear-gradient(to bottom right,#ddf1e9,#faf8fa 52%,#eedfea);
}
.presentation-hero .profile-portrait{
  display:grid;place-items:center;flex:none;
  width:var(--portrait-size);height:var(--portrait-size);
  border-radius:18px;font-size:20px;
}
.presentation-hero button.profile-portrait { padding: 0; overflow: hidden; }
.presentation-hero .profile-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.presentation-hero h1,.presentation-hero h2{
  margin:3px 0 0;font-family:Georgia,serif;font-size:clamp(26px,6vw,38px);line-height:1.12;color:#294a43;overflow-wrap:anywhere
}
.presentation-hero p{margin:5px 0 0;font-size:13px;color:#3d5e54}
.presentation-hero .portrait-pending { font-weight: 600; color: var(--plum); }
.presentation-hero .portrait-review { margin-top: 8px; }
.presentation-label{font-size:11px;font-weight:700;letter-spacing:.11em;text-transform:uppercase}
.presentation-sections{display:grid;gap:12px;margin:12px 0 20px}
.presentation-sections>section{
  margin:0;padding:clamp(14px,3.5vw,22px);background:#fffcfe;border:1px solid #ebdfe7;
  border-radius:18px;box-shadow:0 7px 20px -17px #68445c65;min-width:0
}
.presentation-sections h2{font-size:17px;line-height:1.25;margin:0;color:#4b3644}
.presentation-bio{margin:9px 0 0;font-size:15px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.presentation-person{font-size:13px;line-height:1.45;margin:10px 0 0;padding:7px 0 7px 11px;border-left:2px solid #a8d9c9;white-space:pre-wrap;overflow-wrap:anywhere}
.presentation-sections>.presentation-about{
  padding:clamp(14px,4vw,21px);
  background:linear-gradient(to bottom right,#ddf1e9,#faf8fa 52%,#eedfea);
  border-color:#d2e5da;
  box-shadow:0 12px 24px -20px #67475c88;
}
.presentation-about>h2{font-family:Georgia,serif;font-size:clamp(21px,5vw,27px);color:#44323f}
.presentation-about>.presentation-bio{font-size:15px;line-height:1.45;color:#342b33}
.presentation-about .looking-section{
  margin:12px 0 0;padding:11px 0 0;border:0;border-top:1px solid #67857945;
  border-radius:0;background:transparent;box-shadow:none;color:#28463e;
}
.presentation-about .looking-section h2{color:#28463e}
.presentation-about .looking-section h3{margin:5px 0 0;color:#456057}
.presentation-about .looking-field:last-child summary{padding-bottom:0}
.presentation-sections .looking-tags{margin-top:10px}
.presentation-sections .looking-tags>span{background:#e9d9e7;color:#59364f;font-weight:600}
.looking-field summary{display:flex;align-items:center;list-style:none;cursor:pointer;min-height:44px;padding:3px 0;box-sizing:border-box}
.looking-field summary>span:not(.looking-tags){background:#e9d9e7;color:#59364f;border-radius:9px;padding:5px 9px;overflow-wrap:anywhere}
.looking-field summary::-webkit-details-marker{display:none}
.looking-field summary .looking-tags{margin:0}
.looking-field summary:focus-visible{outline:2px solid #356663;outline-offset:2px}
.looking-field form{display:grid;gap:8px;margin:0 0 12px}
.looking-field .preference-choice{background:#f3eaf2;color:#59364f}
.individual-preferences {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0 0 0 12px;
  border: 0;
}
.individual-preferences legend { margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.looking-field form:not(:has(input[value="individual"]:checked)) .individual-preferences { display: none; }
.looking-field input{accent-color:#784b6c}
.looking-status:empty{display:none}
.presentation-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.presentation-section-heading .btn{min-height:44px}
.presentation-sections .own-publications{padding:0;background:transparent;border:0;box-shadow:none}
.presentation-publications .feed-card{margin-top:12px}
.presentation-sections .presentation-gallery{padding:0;background:transparent;border:0;box-shadow:none}
.gallery-add{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;color:#56404f;cursor:pointer}
.gallery-add span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#eee4eb;font-size:22px;line-height:1}
.gallery-frame{position:relative;min-width:0}
.gallery-frame>.gallery-add{position:absolute;z-index:1;inset:0 auto auto 0}
.gallery-frame>.gallery-add span{box-shadow:0 1px 5px #30253233}
.gallery-empty{display:flex;align-items:center;gap:8px}
.gallery-empty>.gallery-add{flex:none}
.gallery-empty>.presentation-empty{margin:0}
.presentation-empty{margin:10px 0 0;color:#665763;font-size:13px;line-height:1.45}
.gallery-slides{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin-top:12px;border-radius:12px}
.gallery-image{position:relative;display:block;flex:0 0 100%;min-width:0;padding:0;border:0;overflow:hidden;aspect-ratio:2.1;max-height:240px;background:#e4f2eb;scroll-snap-align:start;scroll-snap-stop:always}
.gallery-image:focus-visible{outline-offset:-3px;z-index:1}
.gallery-image img{display:block;width:100%;height:100%;object-fit:cover}
.gallery-count{position:absolute;inset:8px 8px auto auto;display:grid;place-items:center;min-height:28px;padding:3px 8px;border-radius:99px;background:#19151bbf;color:#fff;font-size:12px}
.gallery-pending{position:absolute;inset:auto 0 0;padding:4px;background:#fffcf4ec;color:#574122;font-size:10px;line-height:1.2}
.gallery-full{display:block;margin:10px 0;width:100%;max-height:65dvh;object-fit:contain;border-radius:12px;background:#f3ebf0}
.profile-visitor .presentation-safety{margin-top:16px;padding-top:10px;border-top:1px solid #ebdfe7}
@media(max-width:360px){.presentation-hero{gap:11px}}

/* Single-screen post composer */
.post-composer-fields{border:0;margin:0;padding:0;min-width:0}
.post-composer-fields textarea{min-height:100px}
.composer-photo-field{margin:12px 0;padding:12px;background:#eef7f4;border:1px solid #d8ebe5;border-radius:14px}
.composer-photo-field>.field{margin-top:0}
.composer-photo-field input[type=file]{max-width:100%;font-size:13px}
.composer-preview{display:block;width:100%;max-height:40dvh;object-fit:contain;margin-top:10px;border-radius:10px;background:#fcf9fb}
.composer-change-photo{display:inline-grid;place-items:center;min-height:44px;cursor:pointer}
.composer-status{margin:10px 0;color:#325e54;font-size:13px;line-height:1.4}
.composer-status:empty{display:none}
#dialog:has(.compact-post-composer,.compact-upload) .dialog-footer { display: none; }
.compact-composer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
.compact-composer-header h2, .compact-composer-header p { margin: 0; }
.compact-composer-header p { margin-top: 3px; }
.compact-composer-close.btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 23px;
}
.compact-post-composer #composer-text {
  min-height: 104px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  resize: vertical;
}
.compact-post-composer .composer-photo-field[hidden],
.compact-post-composer #composer-additions[hidden] { display: none; }
.upload-additions {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--inset-gradient);
}
.upload-additions[hidden], .upload-start[hidden], [data-upload-review][hidden] { display: none; }
.upload-start { margin-top: 14px; }
#composer-additions summary { min-height: 44px; line-height: 44px; }
#composer-additions .composer-tags { margin-top: 3px; }
.composer-media-options { display: flex; gap: 8px; }
.composer-media-choice.btn { flex: 1; min-height: 44px; font-size: inherit; font-weight: 700; color: var(--teal); background: var(--teal-soft); border-color: var(--teal-line); }
.composer-media-choice span { margin-inline-end: 4px; }
.post-video { display: block; width: 100%; max-height: 65dvh; background: #201921; }
.post-video[hidden] { display: none; }
#composer-video-preview { border-radius: 12px; margin-bottom: 8px; }
.compact-discard.btn { margin-top: 4px; padding-inline: 0; border: 0; background: transparent; color: var(--muted); }
.compact-composer-actions { justify-content: space-between; }
.compact-composer-add.btn { border-color: var(--teal-line); background: var(--teal-soft); color: var(--teal); }
.composer-attachments { display: flex; gap: 6px; flex-wrap: wrap; }
.composer-attachments:empty { display: none; }
.composer-attachment.btn { border-radius: 999px; padding-inline: 10px; }
@media (max-width: 600px) {
  #dialog:has(.compact-post-composer,.compact-upload) { inset: auto 0 max(10px, env(safe-area-inset-bottom)); margin: 0 auto; }
}

/* Feed actions */
#main:focus { outline: none; }
.feed-card:has(.post-options[open]){position:relative;z-index:2;overflow:visible}
.post-options{position:relative;align-self:flex-start;flex:none;margin:-4px -4px 0 auto}
.post-options summary{list-style:none;display:grid;place-items:center;width:44px;height:44px;cursor:pointer;color:#6d5264;border-radius:10px;font-size:24px;line-height:1}
.post-options summary::-webkit-details-marker{display:none}
.post-options summary:focus-visible{outline:3px solid var(--plum);outline-offset:1px}
.post-options[open] summary{background:#f3ebf1}
.post-menu{position:absolute;right:0;top:100%;display:grid;z-index:3;min-width:162px;padding:4px;background:#fffcfd;border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 14px #302a3226}
.post-menu .btn{white-space:nowrap;text-align:left;border-color:transparent;background:transparent}
.post-menu .post-option-danger{color:#8b354e}

/* Inicio del piloto compartido */
.notice-count{display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:#c0e6db;color:#20574d;font-size:12px;font-weight:700}
.notice-list{display:grid;gap:8px}
.content-notice.btn{display:grid;gap:4px;text-align:left;padding:12px 16px}
.content-notice span{font-size:.85em}


/* Compact story cards share one place per profile. */
.stories { display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; padding: 6px 5px 18px; }
.stories > :is(.story,.own-story-card) {
  flex: 0 0 86px;
  min-width: 0;
}
.own-story-card { position: relative; }
.own-story-card .story { display: block; width: 100%; }
.story {
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: start;
  font-size: 11px;
  line-height: 1.4;
}
.story-cover {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 0.88;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--portrait-gradient);
  color: var(--portrait-text);
  font: 22px Georgia, serif;
}
.story-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.priority-story .story-cover { border-color: var(--teal-line); }
.story.add .story-cover { background: var(--teal-soft); color: var(--teal); border-color: var(--teal-line); font: 28px Arial, sans-serif; }
.story-add-shortcut {
  position: absolute;
  inset: 0 0 auto auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.story-add-shortcut span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--teal-line);
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font: 22px/1 Arial, sans-serif;
}
.story-name { display: block; margin: 5px 2px 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.story-priority-label { display: block; margin-inline: 2px; color: var(--teal); font-weight: 700; }
.story-count {
  position: absolute;
  inset: auto 0 0 auto;
  padding: 3px 6px;
  border-start-start-radius: 7px;
  background: #19151bdb;
  color: #fff;
  font: 700 10px/1.2 Arial, sans-serif;
}
.story-count[hidden] { display: none; }
.composer-tags { margin-top: 14px; }
.composer-tags summary { cursor: pointer; color: var(--plum); }
.composer-tag-results { max-height: 180px; overflow-y: auto; margin-top: 6px; }
.composer-tag-results label[hidden] { display: none; }
.post-music-preview { margin-top: 8px; }
.post-music-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--plum);
  font-size: 13px;
}
.post-music-button [aria-hidden] { font-size: 17px; }
.post-music-button[aria-pressed="true"] { border-color: var(--plum); background: var(--pink); }
.shared-photo-viewer .story-toolbar .post-music-button { margin: 0; background: #201921d9; color: #fff; border-color: #fff5; }
.shared-photo-viewer .story-toolbar .post-music-button[aria-pressed="true"] { background: var(--plum); }
#dialog:has(.full-post) {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
}
#dialog:has(.full-post) #dialog-content { flex: 1; }
.full-post { max-width: 560px; margin-inline: auto; }
.full-post [data-action="openFullPost"] { display: none; }
.post-profile-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-block: 6px; font-size: 12px; }
.post-profile-tags .profile-tag { min-height: 34px; padding: 5px 9px; border-radius: 999px; }
.story-unseen .story-count {
  inset: 0 auto auto 0;
  border-radius: 0 0 7px 0;
  background: var(--plum);
  color: var(--surface);
}
.priority-card{box-shadow:inset 0 0 0 1px #a6d4c9,0 8px 18px #56857815}
.priority-label{padding:4px 8px;border-radius:999px;background:#e0f3ed;color:#245d52;font-size:11px;font-weight:700}

/* The crescent replaces the acute accent on the first e of Privée. */
.logo-line{display:block;white-space:nowrap}
.logo-accent{position:relative}
.logo-accent .moon{
  position:absolute;
  inset:.08em auto auto 70%;
  width:.2em;
  height:.2em;
  border-radius:50%;
  box-shadow:-.08em .04em 0 .02em #a57d98;
  transform:translateX(-50%);
}
.logo-sw{margin-left:3px;letter-spacing:normal;text-shadow:none}
.logo-s,.logo-w{display:inline-block;color:var(--teal);line-height:1}
.logo-w{font-size:.72em;font-size:calc(1em * (1ex / 1cap));margin-left:.06em}
@supports (background-clip:text){
  .logo-s,.logo-w{background-image:linear-gradient(180deg,#216e69 20%,#31847c 43%,#67aea2 48%,#378980 57%,#216e69 83%);background-clip:text;color:transparent}
}
@media (forced-colors:active){
  .logo-s,.logo-w{background:none;color:CanvasText}
}
.logo-tagline{display:block;margin-top:-3px;color:#5a5260;font:600 10px/1.25 Arial,Helvetica,sans-serif;letter-spacing:normal;text-shadow:none;text-align:center}

/* Account controls on Inicio and Perfil. */
.shell {
  position: relative;
  --options-size: 50px;
  --shortcut-size: 44px;
  --shortcut-gap: 5px;
  --options-top: 12px;
}
.shell > header .header-actions {
  position: absolute;
  z-index: 2;
  top: var(--options-top);
  inset-inline-end: calc(var(--shell-gutter) + var(--options-top));
}
body:not(.inner-page) .shell > header {
  align-items: flex-start;
  gap: 12px;
  padding-top: var(--options-top);
}
body:not(.inner-page) .shell > header .header-actions { position: static; flex: none; }
.shell > header .logo { min-width: 0; margin-top: 12px; }
.profile-options { display: grid; justify-items: center; gap: 5px; }
body.inner-page .shell > header { padding: 0; }
body.inner-page .shell:not(:has(#main > .presentation-hero)) > header,
body.inner-page .shell > header .logo { display: none; }
body.inner-page:not(.chat-open) #main { display: flow-root; }
#main > .chat-start { margin-top: var(--options-top); }
body.inner-page #main > .presentation-hero {
  padding-inline-end: calc(var(--options-size) + 17px);
}
.chat-toolbar { align-items: center; }
@media (max-width: 355px) {
  .shell > header .logo { font-size: 42px; }
}
.options-trigger {
  width:var(--options-size);height:var(--options-size);border:1px solid #fffcfd;border-radius:50%;
  background:linear-gradient(to bottom right,#c5e7d9,#e7d1e2);
  color:#714461;box-shadow:0 3px 9px #72516b22;
}
.options-trigger span { font:700 15px/1 Arial,Helvetica,sans-serif; transform:none; }
.shell > header .header-actions:has(.notice-bell:not([hidden])) { align-items: flex-start; }
.header-activity { display: none; }
.header-activity:has(> button:not([hidden])) { display: grid; justify-items: center; }
.header-activity.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, var(--shortcut-size));
  grid-auto-rows: var(--shortcut-size);
  gap: var(--shortcut-gap);
}
.home-shortcuts + .profile-options { display: none; }
body.inner-page .shell > header .header-actions { gap: var(--shortcut-gap); }
.notice-bell,
.home-shortcuts > button,
body.inner-page .profile-options .options-trigger {
  --shortcut-fill: var(--inset-gradient);
  --shortcut-border: var(--line);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  flex: none;
  width: var(--shortcut-size);
  height: var(--shortcut-size);
  min-width: 0;
  margin: 0;
  padding: 0 3px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--plum);
  box-shadow: none;
  font-weight: 700;
  line-height: 1;
}
.notice-bell::before,
.home-shortcuts > button::before,
body.inner-page .profile-options .options-trigger::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 3px;
  border: 1px solid var(--shortcut-border);
  border-radius: 9px;
  background: var(--shortcut-fill);
}
.header-activity > button[hidden], .notice-bell .notice-count[hidden] { display: none; }
.notice-bell svg { width: 18px; height: 18px; }
.notice-bell .notice-count {
  position: absolute;
  inset: -1px 0 auto auto;
  min-width: 19px;
  height: 19px;
  padding-inline: 4px;
  font-size: 11px;
}
.home-shortcuts .header-profile,
body.inner-page .profile-options .options-trigger { --shortcut-fill: var(--portrait-gradient); }
.home-shortcuts .header-compose {
  --shortcut-fill: var(--teal-soft);
  --shortcut-border: var(--teal-line);
  color: var(--teal);
  font-size: 22px;
}
.home-shortcuts .header-personal { padding-inline: 1px; }
.home-shortcuts .header-personal > span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 11px;
}
.home-shortcuts > button:focus-visible,
body.inner-page .header-actions :is(.notice-bell,.options-trigger):focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: -2px;
}
body.inner-page .shell:has(.notice-bell:not([hidden])) #main > .presentation-hero {
  padding-inline-end: calc(2 * var(--shortcut-size) + var(--shortcut-gap) + var(--options-top) + 8px);
}
body:not(.inner-page) .shell:has(.notice-bell:not([hidden])) > header .logo {
  font-size: clamp(32px, calc((100vw - 165px) / 4.8), 45px);
}

/* A full-width vertical start matches iOS's flat status-bar color. Keep that
   color through its safe area, then blend downwards without a horizontal seam.
   Interior surfaces retain their diagonal gradient. */
:root {
  --page-gradient: linear-gradient(to bottom, var(--pwa-status-color) 0px, var(--pwa-status-color) env(safe-area-inset-top,0px), #f3eff2 48%, #d7eee4);
  --pwa-status-color: #e9d9e6;
  --inset-gradient: linear-gradient(to bottom right, #ddf1e9, #faf8fa 52%, #eedfea);
  --card-gradient: linear-gradient(to bottom right, #edf8f2, #fffdfe 48%, #f6edf4);
  --portrait-gradient: linear-gradient(to bottom right, #c5e7d9, #e7d1e2);
  --portrait-text: #316b5c;
  --portrait-rim: #fffcfd;
  --interest-rim: #ad789d;
  --favorite-rim: #419e94;
  background-image: var(--page-gradient);
  background-attachment: fixed;
}
body, body.chat-open { background: none; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--page-gradient);
}
:root :is(.presentation-hero,.profile-top,.presentation-sections>.presentation-about,.story-screen-body,.card.connection-card,nav.privee-dock) {
  background-image: var(--inset-gradient);
}
:root .card:is(.feed-card,.discovery-card) {
  background-image: var(--card-gradient);
}
:root :is(.room-avatar,.options-trigger) {
  background-image: var(--portrait-gradient);
}

/* Un borde reservado evita que cambie el tamaño al marcar una relación. */
:root :is(.profile-line .profile-portrait,.presentation-hero .profile-portrait,.room-avatar.profile-portrait,.card.connection-card) {
  --rim: linear-gradient(var(--portrait-rim), var(--portrait-rim));
  border: 2px solid transparent;
}
:root :is(.profile-line .profile-portrait,.presentation-hero .profile-portrait,.room-avatar.profile-portrait) {
  background: var(--portrait-gradient) padding-box, var(--rim) border-box;
  color: var(--portrait-text);
  box-shadow: 0 3px 9px #72516b22;
}
.profile-line .profile-portrait { border-radius: 14px; }
:root .card.connection-card {
  --rim: linear-gradient(transparent, transparent);
  background: var(--inset-gradient) padding-box, var(--rim) border-box;
}
:root :is(.profile-portrait,.card.connection-card).portrait-interest {
  --rim: linear-gradient(var(--interest-rim), var(--interest-rim));
}
:root :is(.profile-portrait,.card.connection-card).portrait-favorite {
  --rim: linear-gradient(var(--favorite-rim), var(--favorite-rim));
}
:root :is(.profile-portrait,.card.connection-card).portrait-interest.portrait-favorite {
  --rim: linear-gradient(to bottom right, var(--favorite-rim) 43%, var(--interest-rim) 57%);
}

.feed-card .post-actions {
  grid-template-columns: minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr);
  gap: 6px;
}
.feed-card .post-actions .btn {
  min-width: 0;
  overflow-wrap: anywhere;
  background: var(--surface);
  border-color: var(--line);
}
.feed-card .post-own-actions { grid-template-columns: repeat(2,minmax(0,1fr)); gap:6px; }
.post-comments { margin-top:12px; padding-top:10px; border-top:1px solid var(--line); }
.post-comments ul { display:grid; gap:8px; margin:0 0 12px; padding:0; list-style:none; }
.post-comments li p { margin:4px 0; overflow-wrap:anywhere; white-space:pre-wrap; }
.post-comment-form textarea { display:block; width:100%; margin:0 0 8px; }
.message-row, .post-comment-form { position: relative; }
.gif-picker { display: inline-block; flex: none; }
.gif-picker summary {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 42px;
  padding-inline: 5px;
  border-radius: 10px;
  color: var(--portrait-text);
  background: var(--inset-gradient);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.gif-picker summary::-webkit-details-marker { display: none; }
.gif-choices {
  position: absolute;
  z-index: 3;
  inset: auto 0 calc(100% + 6px) auto;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  width: min(272px,100%);
  gap: 4px;
  padding: 6px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 6px 20px #38273636;
}
.gif-picker:not([open]) .gif-choices { display: none; }
.gif-choices button {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 1px;
  min-width: 0;
  padding: 2px 0 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--plum);
  font-size: 11px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.gif-choices img { display: block; width: 100%; height: 52px; object-fit: contain; }
.reply-gif { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.reply-gif { margin-block: 4px; }
.comment-status:empty { display:none; }
.feed-card .post-actions .conversation-action {
  grid-column: 3;
  grid-row: 1 / span 2;
  background: linear-gradient(135deg,#926180,#80506f);
  color: #fff;
  border-color: #a77497;
}
.actions > .btn[data-action="favorite"][aria-pressed="true"],
.feed-card .actions > .btn[data-action="interest"][aria-pressed="true"] {
  background: #f0e4ec;
  border-color: #a77497;
  color: #693c5c;
}
.relation-icon {
  display: inline-block;
  width: 1em;
  text-align: center;
}
.option-row > .appearance-state:last-child { color: var(--muted); font-size: 12px; }

:root[data-theme="dark"] {
  color-scheme: dark;
  color: #f1e8ef;
  background: #26202b;
  background-image: var(--page-gradient);
  background-attachment: fixed;
  --surface: #2b242e;
  --line: #574653;
  --muted: #c7b8c4;
  --plum: #e2acd3;
  --pink: #493244;
  --teal: #9adbd1;
  --teal-soft: #23443f;
  --teal-line: #4d756f;
  --dark-field: #231e28;
  --page-gradient: linear-gradient(to bottom, var(--pwa-status-color) 0px, var(--pwa-status-color) env(safe-area-inset-top,0px), #26202b 48%, #1c3b35);
  --pwa-status-color: #3d2b3e;
  --inset-gradient: linear-gradient(to bottom right, #203c39, var(--surface) 52%, #38273a);
  --card-gradient: linear-gradient(to bottom right, #293a35, var(--surface) 48%, #382a37);
  --portrait-gradient: linear-gradient(to bottom right, #36564f, #51364d);
  --portrait-text: #f1e0eb;
  --portrait-rim: #d5c0d0;
}
[data-theme="dark"] :is(.card,.chat-view,.chat-view .message-form,.chat-head,.message-menu,.post-menu,.edit-section,dialog,.empty,.room-link) {
  background-color: var(--surface);
  color: inherit;
  border-color: var(--line);
}
[data-theme="dark"] :is(.presentation-hero,.profile-top,.presentation-sections>section:not(.presentation-gallery),.story-screen-body) {
  background-color: var(--surface);
  color: inherit;
  border-color: var(--teal-line);
}
[data-theme="dark"] :is(h1,h2,h3,#main>h1,.section-label h2,.profile-line strong,.option-row strong,.post-text,.presentation-about>.presentation-bio,.presentation-about .looking-section,.room-link p,.contact-choice,.logo,.options-trigger) {
  color: #f1e8ef;
}
[data-theme="dark"] :is(.fine,.intro,.story,.logo-tagline,.presentation-empty,.presentation-hero p,.looking-section h3,.profile-line small,.option-row small,.option-row>span:last-child,.room-link small,.composer-byline,.composer-meta) {
  color: var(--muted);
}
[data-theme="dark"] :is(.btn,.feed-card .actions .btn,.contact-choice,.encounter-card,.notice,.locked,.search-preferences,.reply-preview,.message-quote,.composer-preview,.composer-photo-field,.post-options[open] summary,.message-options[open] summary):not(:where(.discovery-details>.wide)) {
  background: #382e3a;
  color: #f1e8ef;
  border-color: var(--line);
}
[data-theme="dark"] :is(.btn.primary,.feed-card .actions .conversation-action,.connection-card .actions>.conversation-action) {
  background: linear-gradient(135deg,#805476,#684364);
  color: #fff3fc;
  border-color: #ab789e;
}
.chat-view .chat-head .chat-toolbar > .btn {
  background: var(--pink);
  border-color: var(--line);
  color: var(--plum);
}
.chat-view .chat-head .chat-toolbar > .btn[data-action="videoCall"] {
  background: var(--teal-soft);
  border-color: var(--teal-line);
  color: var(--teal);
  font-weight: 700;
}
[data-theme="dark"] :is(.btn.on,.feed-card .actions .btn.on,.connection-card .actions>.btn.on,.actions>.btn[data-action="favorite"][aria-pressed="true"]) {
  background: var(--pink);
  color: #f5c7e8;
  border-color: #a67599;
}
[data-theme="dark"] :is(.looking-section,.availability-line,.connection-card .availability-line,.connection-status,.priority-label,.pill) {
  background-color: var(--teal-soft);
  color: var(--teal);
  border-color: var(--teal-line);
}
[data-theme="dark"] .presentation-about .looking-section { background: transparent; }
[data-theme="dark"] :is(.looking-tags>span,.discovery-card .looking-compact .looking-tags>span,.looking-field summary>span:not(.looking-tags),.looking-field .preference-choice,.gallery-add span) {
  background: var(--pink);
  color: #f5c7e8;
}
[data-theme="dark"] :is(input,textarea,select,.message-form input) {
  background: var(--dark-field);
  color: #f1e8ef;
  border-color: var(--line);
}
[data-theme="dark"] :is(input,textarea)::placeholder { color: var(--muted); }
[data-theme="dark"] :is(.gallery-add,.post-options summary,.message-options summary) { color: var(--plum); }
[data-theme="dark"] :is(.room-avatar,.options-trigger) { color: var(--portrait-text); }
[data-theme="dark"] nav.privee-dock { border-color: var(--line); }
[data-theme="dark"] nav.privee-dock :is(.dock-icon,.dock-label) { color: var(--muted); }
[data-theme="dark"] nav.privee-dock button.active :is(.dock-icon,.dock-label) { color: #b3e6da; }
[data-theme="dark"] nav.privee-dock button.active .dock-icon { background: #345c54; }

#dialog {
  padding: 0;
  overflow: hidden;
  background-image: var(--card-gradient);
}
#dialog[open] {
  display: flex;
  flex-direction: column;
}
#dialog-content {
  min-height: 0;
  overflow: auto;
  padding: 20px 22px 12px;
}
.account-actions { display: grid; gap: 8px; }
.account-actions:empty { display: none; }
.settings-row + .account-actions { margin-top: 8px; }
.account-actions > button:focus-visible { outline-offset: -4px; }
.dialog-footer {
  flex: none;
  display: flex;
  justify-content: center;
  padding: 8px 22px 14px;
  border-top: 1px solid var(--line);
}
.dialog-footer .btn { min-width: 110px; }

/* Keep image taps and gestures on the surrounding app control. */
img {
  pointer-events: none;
  -webkit-user-drag: none;
}
:where(img, button:has(> img), .story-cover, .story-viewer-photo) {
  -webkit-touch-callout: none;
}

body:has(#dialog[open] .story-viewer, #gallery-viewer[open]) { overflow: hidden; }
#dialog:has(.story-viewer), #gallery-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}
#dialog:has(.story-viewer) #dialog-content { flex: 1; padding: 0; overflow: hidden; }
#dialog:has(.story-viewer) .dialog-footer { display: none; }
#dialog :is(.story-viewer,.story-text,.story-caption) { touch-action: pan-y pinch-zoom; }
#dialog .story-viewer:has(.story-chat),
#dialog .story-viewer:has(.story-chat) :is(.story-text,.story-caption):not(.story-scrollable) {
  touch-action: pinch-zoom;
}
.story-viewer {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--inset-gradient);
  translate: var(--media-chat-lift, none);
}
.media-chat-preview {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  background: var(--page-gradient);
  pointer-events: none;
}
dialog:has(> .media-chat-preview) .story-viewer { will-change: translate; }
.media-chat-loading {
  position: absolute;
  inset: 50% 0 auto;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  animation: media-chat-loading-in 140ms 320ms both;
}
@keyframes media-chat-loading-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.media-chat-preview-footer {
  width: min(100%, 560px);
  margin-inline: auto;
  padding: 8px 14px max(10px, env(safe-area-inset-bottom));
  background: var(--card-gradient);
  color: var(--muted);
}
.media-chat-preview-footer small { display: block; padding: 0 4px 4px; font-weight: 700; }
.media-chat-preview-footer span {
  display: block;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
#dialog.media-chat-reveal, #gallery-viewer.media-chat-reveal { background: transparent; }
:is(#dialog:has(.story-viewer),#gallery-viewer)::backdrop { backdrop-filter: none; }
:is(#dialog,#gallery-viewer).media-chat-reveal::backdrop { background: transparent; backdrop-filter: none; }
.story-viewer-photo { background: #19151b; color: #fff; }
.story-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.story-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));
}
.story-viewer-photo .story-toolbar { background: linear-gradient(#000d, transparent); }
.story-toolbar:has(.story-options[open]) { z-index: 3; }
.gallery-viewer-slides {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: auto hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-viewer-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.gallery-viewer-slide .story-photo { object-fit: contain; }
.photo-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; }
.photo-open>img { max-width: 100%; }
.photo-open:has(>img[hidden]), .photo-open:has(>img:not([src])) { display: none; }
.photo-open:focus-visible { outline-offset: -4px; }
.gallery-viewer-slides { touch-action: pan-x pinch-zoom; }
.gallery-interactions, .shared-photo-viewer>.story-interactions { margin-top: auto; }
.shared-photo-viewer:has(.story-chat) { touch-action: pinch-zoom; }
#gallery-viewer .shared-photo-viewer .story-photo { object-fit: contain; height: 100%; }
.gallery-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.gallery-toolbar .story-back { justify-self: start; }
.gallery-position { text-align: center; }
.photo-reaction-total { align-self: center; margin-inline-start: auto; padding-inline: 8px; font-size: 12px; }
.gallery-position .photo-reaction-total { padding: 0; }
.gallery-options { justify-self: end; }
.gallery-pagination { display: flex; align-items: center; min-height: 44px; font-size: 13px; }
.gallery-pagination button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
}
.gallery-pagination button[aria-disabled="true"] { opacity: .35; cursor: default; }
.story-back, .story-options summary {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 700;
}
.story-author { flex: 1; min-width: 0; align-self: center; }
.story-author :is(strong,span) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-author span { font-size: 12px; }
.story-options { position: relative; }
.story-options summary { position: relative; z-index: 1; width: 44px; list-style: none; font-size: 24px; }
.story-options summary::-webkit-details-marker { display: none; }
.story-menu-dismiss {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
.story-menu {
  position: absolute;
  z-index: 1;
  inset-inline-end: 0;
  top: 100%;
  display: grid;
  gap: 4px;
  width: min(230px, calc(100vw - 32px));
  max-height: 65dvh;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.story-options:not([open]) :is(.story-menu,.story-menu-dismiss) { display: none; }
.story-menu .btn { border-color: transparent; background: transparent; text-align: start; }
.story-menu :is(.fine,.notice) { margin: 4px 8px; color: var(--muted); }
.story-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: auto;
  padding: 16px 24px max(20px, env(safe-area-inset-bottom));
  text-align: center;
  font: 25px/1.5 Georgia, serif;
}
.story-text p { margin: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.story-caption {
  position: relative;
  margin-top: auto;
  max-height: 50dvh;
  overflow: auto;
  padding: 16px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: linear-gradient(transparent, #000e 24%);
  overflow-wrap: anywhere;
}
.story-caption:empty { display: none; }
.story-caption p { margin: 0; white-space: pre-wrap; }
.story-caption .profile-tag { background: #19151bd9; color: #fff; border-color: #fff5; }
.story-caption .notice { margin: 8px 0 0; padding: 0; background: transparent; color: inherit; }
.story-caption .notice .btn { margin-top: 8px; }
.story-step {
  position: absolute;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #19151bbf;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}
.story-step-previous { inset-inline-start: max(8px, env(safe-area-inset-left)); }
.story-step-next { inset-inline-end: max(8px, env(safe-area-inset-right)); }
.story-viewer:has(.story-step) .story-text { padding-inline: 56px; }
.story-viewer:has(.story-interactions) { --story-footer: calc(48px + env(safe-area-inset-bottom, 0px)); }
.story-viewer:has(.story-reactions) { --story-footer: calc(64px + env(safe-area-inset-bottom, 0px)); }
.story-viewer:has(.story-interactions) .story-photo { height: calc(100% - var(--story-footer)); }
.story-viewer:has(.story-interactions) .story-caption { padding-bottom: 8px; }
.story-viewer-photo:has(.story-caption:empty) .story-interactions { margin-top: auto; }
.story-interactions {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--story-footer);
  padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left));
  gap: clamp(0px, 1vw, 8px);
}
.story-interactions button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 22px;
}
/* The same translucent dock on the feed, in chat and in media viewers. */
:is(.floating-reactions,.story-reactions) {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px #3d264528;
}
.story-reactions {
  display: flex;
  flex: 0 1 auto;
  justify-content: center;
  min-width: 0;
  padding: 0 3px;
}
.story-reactions button {
  position: relative;
  width: clamp(26px, 9vw, 44px);
  flex: 0 1 auto;
  min-width: 0;
  font-size: clamp(18px, 5.5vw, 24px);
  border-radius: 50%;
}
.story-reactions[data-count="7"] button { width: clamp(26px, 8.2vw, 44px); }
:is(.story-reactions,.floating-reactions) button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: calc(100% - 6px);
  max-width: 38px;
  aspect-ratio: 1;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  background: linear-gradient(135deg, var(--favorite-rim), var(--interest-rim)) border-box;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.story-interactions .story-chat { width: 67px; flex: none; align-content: center; gap: 1px; }
.story-interactions > .gif-picker { color: var(--plum); }
.story-interactions .gif-picker summary { min-width: 40px; min-height: 44px; }
.story-interactions .gif-choices { inset-inline: 0; margin-inline: auto; }
.story-interactions .gif-choices button {
  width: auto;
  height: auto;
  min-width: 0;
  color: var(--plum);
  font-size: 11px;
  padding: 2px 0 4px;
}
.story-chat svg { width: 18px; height: 18px; opacity: .65; }
.story-chat span { font-size: 10px; font-weight: 600; line-height: 1.15; opacity: .88; }
.story-reaction-count { padding-inline: 6px; font-size: 14px; }
.story-interactions .story-views {
  width: auto;
  min-width: 58px;
  padding-inline: 6px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}
.story-viewer-list { list-style: none; padding: 0; }
.story-viewer-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.story-feedback {
  position: absolute;
  inset: auto 8px var(--story-footer);
  margin: 0;
  padding: 8px;
  border-radius: 8px;
  background: #19151b;
  color: #fff;
  text-align: center;
  font-size: 12px;
}
.story-feedback:empty { display: none; }
.story-viewer:has(.story-interactions .gif-picker[open]) .story-feedback {
  z-index: 4;
  inset: calc(56px + env(safe-area-inset-top, 0px)) 8px auto;
}

.actions:has(.floating-reactions) { position: relative; }
.floating-reactions {
  position: absolute;
  z-index: 2;
  inset: auto 0 calc(100% + 4px);
  display: flex;
  justify-content: center;
  gap: clamp(0px, 1.5vw, 10px);
}
.floating-reactions:not(.chat-reaction-picker) {
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 4px;
}
.floating-reactions button {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  padding: 2px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 28px;
  filter: drop-shadow(0 2px 4px #21152866);
}

.chat-reaction-picker {
  position: fixed;
  z-index: 26;
  inset: auto;
  width: min(326px, calc(100vw - 16px));
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  padding: 3px;
}
.chat-reaction-picker button {
  min-width: 0;
  min-height: 44px;
  padding: 0;
  font-size: 23px;
  filter: none;
}
.chat-reaction-picker button:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: -2px;
  border-radius: 50%;
}

.composer-preview[hidden] { display: none; }
.story-crop { min-width: 0; margin: 10px 0; padding: 8px; border: 1px solid var(--line); }
.story-crop[hidden] { display: none; }
.story-crop canvas { display: block; width: auto; height: 35dvh; max-width: 100%; margin: 0 auto; touch-action: none; cursor: grab; }
.story-crop canvas:active { cursor: grabbing; }
.story-crop canvas:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
.story-crop .fine { margin: 8px 0 0; text-align: center; }
#dialog .story-photo { object-fit: cover; height: 100%; }
.story-viewer-photo .story-interactions { background: linear-gradient(transparent, #19151bee 40%); }

/* Fit the entire enlarged photograph between the controls in either orientation. */
#gallery-viewer .story-viewer-photo {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
}
#gallery-viewer .story-viewer-photo > .story-toolbar { grid-row: 1; }
#gallery-viewer .story-viewer-photo > :is(.story-photo, .gallery-viewer-slides) {
  grid-row: 2;
  position: relative;
  inset: auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}
#gallery-viewer .story-viewer-photo .story-photo {
  object-fit: contain;
  object-position: center;
  height: 100%;
  max-height: 100%;
}
#gallery-viewer .story-viewer-photo > .gallery-interactions {
  grid-row: 3;
  min-width: 0;
  margin-top: 0;
}

/* Photos and calls in the private chat. */
.chat-photo-sources, .video-call-picker {
  display: grid;
  gap: 8px;
}
.chat-photo-sources { grid-template-columns: 1fr 1fr; }
.chat-photo-sources[hidden] { display: none; }
.chat-photo-sources .btn { display: grid; place-items: center; min-height: 44px; cursor: pointer; }
.chat-photo-sources label:has(+input:focus-visible) { outline: 2px solid var(--plum); outline-offset: 2px; }
#chat-photo-preview { max-height: 32dvh; object-fit: contain; margin: 8px auto; }
.chat-photo-people { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0 0; border: 0; }
.chat-photo-people legend { margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.chat-photo-people label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
  cursor: pointer;
}
.chat-photo-people input { width: 16px; height: 16px; margin: 0; accent-color: var(--plum); }
.chat-photo-change { margin-top: 6px; }
#chat-photo-status:empty { display: none; }
.video-call-dialog { padding: 20px; }
.video-call-dialog h2 { margin: 0; overflow-wrap: anywhere; }
.video-call-status { margin-block: 8px 12px; }
.video-call-dialog[open]:has(.video-call-media:not([hidden])) {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template: auto minmax(0, 1fr) auto / minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #201921;
  color: #fff;
}
.video-call-media {
  position: absolute;
  inset: 0;
}
.video-call-media[hidden], .video-call-media[hidden]+.video-call-local, .video-call-dialog [hidden] { display: none; }
.video-call-remote { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-call-play {
  position: absolute;
  z-index: 1;
  bottom: calc(86px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid #fff4;
  border-radius: 999px;
  background: #201921e8;
  color: #fff;
}
.video-call-dialog:has(.video-call-media:not([hidden])) .video-call-heading {
  position: relative;
  z-index: 1;
  grid-row: 1;
  padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left));
  background: linear-gradient(#000c, transparent);
}
.video-call-camera-status {
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border-radius: 9px;
  background: #442e43e8;
  color: #fff;
  font-size: 14px;
}
.video-call-local {
  position: relative;
  z-index: 1;
  grid-row: 2;
  align-self: end;
  justify-self: end;
  margin: 0 max(14px, env(safe-area-inset-right)) 8px 0;
  width: min(clamp(76px, 24vw, 150px), 25dvh);
  aspect-ratio: 3/4;
  border: 1px solid #fff5;
  border-radius: 14px;
  background: #201921;
  object-fit: cover;
  transform: scaleX(-1);
}
.video-call-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; margin-top: 14px; }
.video-call-actions svg { display: none; }
.video-call-actions [aria-pressed="false"] .video-call-off { display: none; }
.video-call-dialog:has(.video-call-media:not([hidden])) .video-call-actions {
  position: relative;
  z-index: 1;
  grid-row: 3;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 12px max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: linear-gradient(transparent, #000c);
}
.video-call-dialog:has(.video-call-media:not([hidden])) .video-call-actions button:not([hidden]) {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  min-height: 0;
  padding: 0;
  border: 1px solid #fff5;
  border-radius: 50%;
  background: #d5eee8;
  color: #205c55;
}
.video-call-dialog:has(.video-call-media:not([hidden])) .video-call-actions button[aria-pressed="true"]:not([hidden]) {
  background: #61405a;
  color: #fff;
  border-color: #bc8eb1;
}
.video-call-dialog:has(.video-call-media:not([hidden])) .video-call-actions button[data-video="end"]:not([hidden]) {
  background: #884b69;
  color: #fff;
}
.video-call-dialog:has(.video-call-media:not([hidden])) .video-call-actions [data-video="end"] span { display: none; }
.video-call-dialog:has(.video-call-media:not([hidden])) .video-call-actions svg { display: block; width: 23px; height: 23px; }

/* Voice notes */
.message-row:has(.chat-mic) { gap: 5px; }
.message-row .chat-mic.btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--teal);
}
.chat-voice { display: block; width: 270px; max-width: 100%; min-width: 0; margin: 8px 0; }
.chat-voice-message { width: 270px; max-width: 100%; margin-top: 8px; }
.chat-voice-caption { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; }
.chat-voice-caption time { font-variant-numeric: tabular-nums; }
.chat-voice-message .chat-voice { margin-top: 4px; }
.chat-voice[hidden], .voice-note button[hidden] { display: none; }
.voice-note output { display: block; margin: 8px 0; font-variant-numeric: tabular-nums; }
.voice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Panel interno. Comparte la paleta y las tarjetas del piloto. */
.internal-shell { max-width: 720px; padding-top: env(safe-area-inset-top, 0px); padding-bottom: 38px; }
.internal-header { gap: 12px; }
.internal-header .logo { flex: 0 1 225px; }
.internal-header .btn { flex: none; }
.internal-search { display: flex; gap: 8px; margin: 18px 0 10px; }
.internal-search input { flex: 1; min-width: 0; }
.internal-accounts, .internal-audit { list-style: none; padding: 0; }
.internal-accounts .card { margin-bottom: 8px; }
.internal-account-link { color: inherit; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; overflow-wrap: anywhere; }
.internal-account-link > span:first-child { min-width: 0; flex: 1 1 150px; }
.internal-account-link > .pill, .internal-badges { max-width: 100%; white-space: normal; }
.internal-account-link:focus-visible { outline-offset: -3px; }
.internal-account-link small, .internal-audit small { display: block; margin-top: 4px; }
.internal-badges { flex: 0 0 auto; display: grid; justify-items: end; gap: 4px; }
.internal-recent { background: var(--inset-gradient, #ddf0e8); }
.internal-facts { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px 12px; overflow-wrap: anywhere; }
.internal-facts dt { color: var(--muted); }
.internal-facts dd { margin: 0; }
.internal-email, .internal-audit { overflow-wrap: anywhere; }
.internal-back { color: var(--plum); }
.internal-operation { padding: 12px 0; border-top: 1px solid var(--line); }
.internal-operation summary { color: var(--plum); cursor: pointer; padding: 5px 0; }
.internal-operation input { margin: 6px 0 3px; }
.internal-operation select { width: 100%; margin: 6px 0 3px; min-height: 44px; }
.premium-control { margin: 16px 0; }
.premium-control-compact { margin: 0; padding: 0 16px 14px; border-top: 1px solid var(--line); }
.premium-switch { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; cursor: pointer; }
.premium-switch > span:first-child { flex: 1; font-weight: 700; }
.premium-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.premium-switch-track { flex: 0 0 48px; height: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--pink); display: inline-flex; padding: 3px; align-items: center; }
.premium-switch-track::after { content: ''; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 4px #0002; }
.premium-switch input:checked + .premium-switch-track { background: var(--teal); }
.premium-switch input:checked + .premium-switch-track::after { transform: translateX(20px); }
.premium-switch input:focus-visible + .premium-switch-track { outline: 3px solid var(--plum); outline-offset: 3px; }
.premium-switch input:disabled + .premium-switch-track { opacity: .45; }
.premium-switch strong { min-width: 88px; font-size: 13px; }
.premium-badge-on { background: var(--inset-gradient, #ddf0e8); color: var(--teal); font-weight: 700; }
.premium-control .internal-action-status { margin: 6px 0; }
.internal-action-status:empty { display: none; }
.internal-audit li + li { border-top: 1px solid var(--line); padding-top: 10px; }
.internal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.internal-tabs a { display: inline-grid; align-items: center; text-decoration: none; }
.internal-tabs [aria-current="page"] { background: var(--inset-gradient, var(--pink)); font-weight: 700; }
.internal-plan-filters { flex-wrap: wrap; overflow: visible; white-space: normal; gap: 8px; }
.internal-plan-filters a { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; text-decoration: none; white-space: normal; background: var(--surface); border: 1px solid var(--line); }
.internal-plan-filters a.btn { background: var(--surface); border: 1px solid var(--line); }
.internal-plan-filters a.btn[aria-current="page"] { background: var(--inset-gradient, var(--pink)); border-color: var(--teal); color: var(--teal); font-weight: 700; }
.internal-report-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.internal-reported-media { display: block; max-width: 100%; max-height: 360px; margin: 12px 0; border-radius: 12px; }
.internal-related-accounts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.internal-related-accounts a { display: inline-grid; align-items: center; }

.registration-intro{max-width:34rem;margin:0 auto;padding-bottom:1rem}
.registration-points{display:grid;gap:1rem;margin:1.5rem 0;padding:1.25rem;border:1px solid var(--line);border-radius:22px;background:var(--inset-gradient,linear-gradient(135deg,rgba(211,239,233,.45),rgba(241,226,237,.4)))}
.registration-points strong{color:var(--teal)}
.registration-points p{margin:.3rem 0 0;line-height:1.5}
.registration-details{margin:1rem 0 1.5rem;padding:1rem;border:1px solid var(--line);border-radius:16px}
.registration-details summary{font-weight:650;color:var(--plum);cursor:pointer}
.registration-details p{font-size:.94rem;line-height:1.6}
#registration-notice-form .preference-choice{align-items:flex-start;margin:1rem 0;line-height:1.5}
#registration-notice-form input[type=checkbox]{flex:0 0 auto;width:1.25rem;height:1.25rem;margin-top:.18rem;accent-color:var(--plum)}
#registration-notice-form button:disabled{cursor:not-allowed}
#account-flow-form~.btn,#registration-notice-form+.btn{margin-top:.65rem}

/* A single compact form contains credentials and the personal registration notice. */
.shell:has(.auth-panel) :is(.header-actions,.header-activity){display:none}
header .header-activity button[hidden]{display:none}
.auth-panel{max-width:440px;margin:0 auto 28px;padding:22px;border:1px solid var(--line);border-radius:24px;background:var(--card-gradient,var(--surface));box-shadow:0 8px 28px #45334308}
.auth-panel h1{font:600 29px/1.16 Georgia,serif;margin:19px 0 8px;letter-spacing:-.4px}
.auth-panel>.intro{font-size:14px;line-height:1.5;margin:0 0 20px;color:var(--muted)}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;border-radius:13px;background:var(--inset-gradient,var(--pink));border:1px solid var(--line)}
.auth-tabs button{min-height:42px;padding:9px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-family:inherit;font-size:14px;font-weight:600;line-height:1.2;cursor:pointer}
.auth-tabs button[aria-pressed=true]{color:var(--teal,var(--plum));background:var(--surface);box-shadow:0 2px 8px #4130420c}
.auth-panel .field{font-size:13px;font-weight:600;margin:14px 0 7px}
.auth-panel input:not([type=checkbox]){font-size:16px;min-height:48px;margin:0;border-radius:13px}
.auth-password{position:relative}
.auth-password input{padding-right:84px}
.auth-password-toggle{position:absolute;right:4px;top:3px;bottom:3px;min-width:72px;padding:8px;border:0;border-radius:10px;background:transparent;color:var(--plum);font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;cursor:pointer}
.auth-panel .auth-password-hint{font-size:12px;margin:7px 0 0}
.auth-panel .auth-notice{margin:16px 0 10px;padding:12px;border-radius:13px;background:var(--inset-gradient,var(--pink))}
.auth-notice summary{font-size:13px;min-height:20px;line-height:1.5}
.auth-notice p{font-size:13px}
.auth-consent{padding:0;margin:0 0 14px;border:0;min-width:0}
.auth-consent label{display:flex;align-items:flex-start;gap:10px;padding:9px 0;font-size:13px;line-height:1.45;cursor:pointer}
.auth-consent input[type=checkbox]{flex:none;width:19px;height:19px;margin:0;accent-color:var(--plum)}
.auth-panel :is(#account-error,#login-error){font-size:13px;line-height:1.5;margin:12px 0}
.auth-panel :is(#account-error,#login-error):empty{margin:0}
.auth-panel .primary{margin-top:14px;min-height:48px;border-radius:13px;font-size:14px}
.auth-secondary{text-align:center;margin:12px 0 0}
.auth-invitation-label{display:inline-block;margin:0 0 16px;padding:7px 12px;border:1px solid var(--line);border-radius:10px;background:var(--inset-gradient,var(--pink));color:var(--teal,var(--plum));font-size:12px;font-weight:700;letter-spacing:.02em}
.auth-invitation-profile{display:grid;gap:5px;margin:0 0 20px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--inset-gradient,var(--pink));overflow-wrap:anywhere}
.auth-invitation-profile span{font-size:13px;line-height:1.5;color:var(--muted)}
.auth-invitation-profile strong{font-size:20px;line-height:1.3;color:var(--ink)}
.auth-invitation-choices{display:grid;gap:10px;margin:16px 0}
.auth-invitation-choices .btn{margin:0}
.partner-share-dialog{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.partner-share-dialog :is(h2,p,.field,.btn,.edit-section){margin:0}
.partner-share-field{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.partner-share-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.partner-share-destinations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.partner-share-dialog .btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;white-space:normal;text-align:center;overflow-wrap:anywhere;text-decoration:none}
.partner-share-dialog input{min-width:0;max-width:100%;margin:0;font-size:16px}
.partner-share-code{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:14px}
.auth-panel .auth-invitation-hint{font-size:12px;line-height:1.5;margin:8px 0;color:var(--muted)}
.auth-panel .auth-link{min-height:40px;width:auto;margin:0;padding:8px 5px;border:0;background:transparent;box-shadow:none;color:var(--plum);font-size:13px;text-decoration:underline;text-underline-offset:3px}
.auth-help{padding:13px 0 0;margin-top:10px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.auth-help summary{cursor:pointer;min-height:30px;line-height:1.6}
.auth-help .auth-link{display:block}
.auth-account-controls .wide{margin-top:8px;font-size:13px}
.auth-mail-icon{display:grid;place-items:center;width:52px;height:52px;margin:0 0 12px;border-radius:17px;background:var(--teal-soft,var(--pink));color:var(--teal,var(--plum));font-size:28px}
.auth-access-status{padding:16px;border:1px solid var(--line);border-radius:17px;background:var(--inset-gradient,var(--pink))}
.auth-access-status h2{font-family:inherit;font-size:18px;font-weight:600;line-height:1.35;margin:12px 0 8px}
.auth-access-status p{font-size:14px;line-height:1.55;margin:0}
.auth-status-label{display:inline-block;font-size:11px;font-weight:600;padding:5px 9px;border-radius:7px;color:var(--plum);background:var(--surface)}
@media(max-width:350px){.auth-panel{padding:16px;border-radius:20px}.auth-panel h1{font-size:27px}.auth-consent label{font-size:12px}.auth-panel>.intro{margin-bottom:16px}}

/* The profile reuses published posts as either readable cards or a photo mosaic. */
.presentation-sections .profile-content-section{padding:0;background:transparent;border:0;box-shadow:none;min-width:0}
.profile-content-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:5px;margin:0 0 16px;border:1px solid var(--line);border-radius:17px;background:var(--inset-gradient,var(--surface))}
.profile-content-tab{min-height:46px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-weight:650;padding:9px 8px;cursor:pointer}
.profile-content-tab.active{background:var(--surface);color:var(--teal,var(--plum));box-shadow:0 2px 8px #493c4710}
.profile-content-section [role=tabpanel]{min-width:0;outline:none}
.profile-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;min-width:0}
.profile-photo-tile{position:relative;display:block;aspect-ratio:1;min-width:0;width:100%;padding:0;border:1px solid var(--line);border-radius:11px;overflow:hidden;background:var(--pink);cursor:pointer}
.profile-photo-tile img{display:block;width:100%;height:100%;object-fit:cover;transition:opacity .15s ease}
.profile-photo-tile:active img{opacity:.82}
.profile-photo-mark{position:absolute;right:5px;bottom:5px;display:grid;place-items:center;width:23px;height:23px;border-radius:8px;background:#302532bd;color:#fff;font-size:14px;pointer-events:none}
.profile-content-empty{grid-column:1/-1;padding:20px 12px;text-align:center;border:1px dashed var(--line);border-radius:14px;line-height:1.6}
.profile-content-status:empty{display:none}
.profile-content-section [data-profile-more]:not(:empty){margin-top:14px}
.profile-content-section [data-profile-items]>.feed-card:first-child{margin-top:0}
@media(prefers-reduced-motion:reduce){.profile-photo-tile img{transition:none}}

/* Compact identity and one editable presentation section. */
.presentation-hero{--portrait-size:clamp(72px,20vw,80px);gap:12px;padding:12px;min-height:calc(var(--portrait-size) + 24px);border-radius:20px}
.presentation-identity-copy{flex:1;min-width:0}
.presentation-hero .presentation-label{display:block;font-size:10px;line-height:1.2;letter-spacing:.08em}
.presentation-hero h1,.presentation-hero h2{font-size:clamp(20px,5.5vw,26px);line-height:1.12;margin:4px 0 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
body.inner-page #main>.presentation-hero{padding-inline-end:calc(var(--options-size) + 16px)}
body.inner-page .shell:has(.notice-bell:not([hidden])) #main>.presentation-hero{padding-inline-end:calc(2 * var(--shortcut-size) + var(--shortcut-gap) + var(--options-top) + 4px)}
.presentation-sections>.presentation-about{padding:14px;border-radius:19px}
.profile-about-heading h2{font-family:Arial,Helvetica,sans-serif;font-size:17px;line-height:1.3;font-weight:700}
.profile-summary-bio{margin-top:7px}
.profile-summary-bio>.looking-field>summary{display:flex;align-items:flex-start;gap:9px;min-height:40px;padding:3px 0}
.profile-summary-bio>.looking-field>summary>.profile-bio-copy{flex:1;padding:0;background:transparent;color:inherit;border-radius:0;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.profile-summary-bio>.looking-field>summary>.profile-edit-mark{flex:none;padding:0;background:transparent;color:var(--plum);font-size:19px;line-height:1.5}
.profile-summary-bio textarea{margin-top:6px;min-height:100px;width:100%}
.profile-summary-bio .fine{margin:0}
.presentation-about>.presentation-bio{margin:8px 0 10px;font-size:14px;line-height:1.5}
.profile-summary-tags{display:flex;flex-wrap:wrap;align-items:flex-start;gap:7px;margin:10px 0 0;min-width:0}
.profile-summary-chip{display:inline-flex;align-items:center;max-width:100%;min-height:34px;padding:6px 10px;border-radius:10px;background:var(--pink);color:var(--plum);font-size:12px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.profile-summary-tags>.looking-field{max-width:100%;min-width:0}
.profile-summary-tags>.looking-field>summary{display:flex;flex-wrap:wrap;gap:5px;min-height:34px;padding:0}
.profile-summary-tags .looking-field[open]{flex-basis:100%;width:100%}
.profile-summary-tags .looking-field[open]>summary{margin-bottom:8px}
.profile-summary-tags .looking-field form{padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.profile-summary-tags .preference-choice{padding:5px 0;min-height:42px;background:transparent}
.presentation-about>.presentation-gallery{margin-top:15px;padding-top:13px;border-top:1px solid var(--line)}
.presentation-about .gallery-slides{margin-top:0}
[data-theme="dark"] .profile-summary-chip{background:var(--pink);color:#f0dcec}
[data-theme="dark"] .profile-summary-bio>.looking-field>summary>.profile-bio-copy{background:transparent;color:inherit}
[data-theme="dark"] .profile-summary-bio>.looking-field>summary>.profile-edit-mark{background:transparent;color:var(--plum)}
[data-theme="dark"] .profile-summary-tags .preference-choice{background:transparent}
.internal-storage-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.internal-storage-card{display:flex;flex-direction:column;gap:12px;min-width:0}
.internal-storage-card h2,.internal-storage-card p{margin:0}
.internal-storage-card meter{width:100%;height:16px;accent-color:var(--teal,#2e7773)}
.internal-storage-warning{color:var(--plum,#714364);font-weight:600}

.push-controls{display:grid;gap:12px;margin-top:20px}
.notification-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;text-align:left;background:var(--inset-gradient,var(--surface));border-radius:18px}
.notification-toggle strong,.notification-toggle small{display:block}.notification-toggle small{font-size:13px;color:var(--muted);margin-top:3px}
.notification-switch{flex:none;width:46px;height:28px;padding:3px;border-radius:18px;background:var(--muted);transition:background .15s ease}
.notification-switch:before{content:"";display:block;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .15s ease}
.notification-toggle[aria-checked="true"] .notification-switch{background:var(--teal,#286d66)}.notification-toggle[aria-checked="true"] .notification-switch:before{transform:translateX(18px)}
@media(prefers-reduced-motion:reduce){.notification-switch,.notification-switch:before{transition:none}}

/* Shared photo framing, with a large workspace independent of the upload form. */
.story-crop { border: 0; padding: 0; }
.story-crop .photo-crop-stage { display: grid; place-items: center; min-width: 0; }
.story-crop canvas { height: auto; width: auto; max-width: 100%; max-height: 42dvh; border-radius: 12px; }
.story-crop > .btn { margin-top: 10px; }
.photo-crop-editor {
 position: fixed; inset: 0; margin: 0; box-sizing: border-box;
 width: 100%; height: 100dvh; max-width: none; max-height: none;
 padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
 border: 0; border-radius: 0; background: var(--card-gradient); color: inherit; overflow: hidden;
}
.photo-crop-editor[open] { display: flex; flex-direction: column; gap: 12px; }
.photo-crop-editor::backdrop { background: #201921b3; }
.photo-crop-editor header, .photo-crop-editor footer { padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; }
.photo-crop-editor h2 { margin: 0; font-size: 21px; }
.photo-crop-editor .crop-cancel { min-width: 44px; min-height: 44px; padding: 0 8px; font-size: 16px; flex: none; }
.photo-crop-editor .story-crop { display: flex; flex-direction: column; flex: 1; min-height: 0; margin: 0; }
.photo-crop-editor .photo-crop-stage { flex: 1; min-height: 0; overflow: hidden; }
.photo-crop-editor .story-crop canvas { max-height: none; max-width: none; border-radius: 12px; }
.photo-crop-editor .fine { margin: 10px 0 0; font-size: 13px; }
.photo-crop-editor footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.photo-crop-editor footer .btn { min-height: 48px; }
.photo-crop-editor .crop-reset { grid-column: 1 / -1; min-height: 44px; padding: 4px 8px; border: 0; background: transparent; }
body:has(.photo-crop-editor[open]) { overflow: hidden; }

/* Focus belongs to the tabs and photo buttons, not the entire photo mosaic. */
.post-photo-carousel{touch-action:pan-y pinch-zoom}
.post-photo-carousel:has(.story-chat){touch-action:pinch-zoom}
.post-photo-position{position:absolute;z-index:1;top:calc(62px + env(safe-area-inset-top,0px));right:max(14px,env(safe-area-inset-right));border-radius:18px;background:#19151bbf;color:#fff;padding:7px 11px;font-size:14px;pointer-events:none}
.post-photo-carousel .story-step:disabled{visibility:hidden}
@media(prefers-reduced-motion:no-preference){
 .post-photo-carousel[data-photo-direction=next]>.story-photo{animation:post-photo-next 180ms ease-out}
 .post-photo-carousel[data-photo-direction=previous]>.story-photo{animation:post-photo-previous 180ms ease-out}
}
@keyframes post-photo-next{from{translate:8% 0;opacity:.5}to{translate:0 0;opacity:1}}
@keyframes post-photo-previous{from{translate:-8% 0;opacity:.5}to{translate:0 0;opacity:1}}

/* Keep native story video controls clear of the caption and conversation dock. */
#dialog .story-viewer-video>.story-video{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#19151b}
.story-viewer-video>.story-toolbar{order:-1;flex-shrink:0}
.story-viewer-video>.story-caption{margin-top:auto;max-height:22dvh;flex-shrink:0}
.story-viewer-video>.story-interactions{flex-shrink:0}
.story-video-toggle{flex:none;min-width:44px;height:44px;border:1px solid #fff5;border-radius:50%;background:#19151bbf;color:#fff;font-size:20px;cursor:pointer}
.story-video-mark{position:absolute;inset-inline-start:7px;top:7px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#19151bbf;color:#fff;font:13px Arial,sans-serif;pointer-events:none}

/* Stories progress without requiring repeated navigation or play gestures. */
.story-progress{position:relative;z-index:2;order:-2;display:flex;flex-shrink:0;gap:4px;height:3px;margin:max(6px,env(safe-area-inset-top)) 12px 0;min-height:3px}
.story-progress-segment{position:relative;flex:1;overflow:hidden;border-radius:3px;background:#ffffff50}
.story-progress-segment::after{content:'';position:absolute;inset:0 auto 0 0;width:0;background:#fff}
.story-progress-segment.complete::after{width:100%}
.story-progress-segment.current::after{width:var(--story-progress,0%)}
.story-playback-toggle,.story-sound-toggle{flex:none;min-width:44px;height:44px;border:1px solid #fff5;border-radius:50%;background:#19151bbf;color:#fff;font-size:20px;cursor:pointer}
.story-viewer:not(.story-viewer-photo) .story-progress-segment{background:var(--line)}
.story-viewer:not(.story-viewer-photo) .story-progress-segment::after{background:var(--plum)}
.story-viewer:not(.story-viewer-photo) .story-playback-toggle{background:var(--surface);color:var(--plum);border-color:var(--line)}
