:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:dark;--ink:#f5f5f5;--muted:#a8a8a8;--paper:#121212;--back:#080808;--line:#292929;--blue:#1769aa;--accent:#80caff;--coral:#ff6b88;--shadow:0 12px 38px #0003;color:var(--ink);background:var(--back);font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #efb529;outline-offset:3px}button{color:inherit}a{color:var(--accent)}[hidden]{display:none!important}.web-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px max(18px,calc((100vw - 660px)/2));background:var(--paper);border-bottom:1px solid var(--line)}.web-header a{text-decoration:none;white-space:nowrap;font-size:.85rem}.web-header strong{font-size:1.2rem}#app{max-width:660px;margin:auto}#content{padding:14px 14px 0}.intro{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 4px 20px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.65rem;font-weight:750;color:var(--muted);margin:0 0 7px}.intro h1{font-size:1.55rem;letter-spacing:-.035em;margin:0}.intro p{margin:7px 0 0;color:var(--muted);font-size:.85rem;line-height:1.5}.icon-button{border:0;background:transparent;border-radius:50%;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:1.55rem;flex-shrink:0}.icon-button svg{width:24px;height:24px}.card{background:var(--paper);border:1px solid var(--line);border-radius:22px;overflow:hidden;margin:0 0 18px;box-shadow:var(--shadow)}.post-head{display:flex;align-items:center;gap:11px;padding:14px 13px}.author{display:flex;align-items:center;gap:10px;padding:0;border:0;background:none;text-align:left;min-width:0;flex:1}.author-name{font-size:.9rem;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:230px}.post-date{font-size:.72rem;color:var(--muted);margin-top:4px}.avatar{width:42px;height:42px;flex-shrink:0;border-radius:50%;background:linear-gradient(135deg,#273844,#383038);color:#e4f1fa;display:grid;place-items:center;font-size:1rem;font-weight:750;object-fit:cover;border:2px solid var(--paper)}.avatar.large{width:88px;height:88px;font-size:2rem;box-shadow:0 0 0 2px var(--line);margin:0 auto 16px}.media-strip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;background:#080808}.media-strip::-webkit-scrollbar{display:none}.media-item{flex:0 0 100%;width:100%;scroll-snap-align:center;position:relative;aspect-ratio:4/5;display:flex;align-items:center;justify-content:center;background:#080808}.media-item img,.media-item video{width:100%;height:100%;object-fit:contain}.media-gallery{position:relative}.media-pagination{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:5px;padding:7px 9px;border-radius:20px;background:rgba(0,0,0,.3);pointer-events:none}.media-dot{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:rgba(255,255,255,.45);box-shadow:0 1px 2px #0003}.media-dot.active{background:#fff;transform:scale(1.2)}.showing-video .media-pagination{bottom:56px}.post-actions{display:flex;align-items:center;gap:14px;padding:10px 16px 2px}.action{display:inline-flex;gap:7px;align-items:center;border:0;background:none;padding:6px 0;min-height:42px;font-size:.8rem;font-weight:650}.action svg{width:23px;height:23px}.action.liked{color:var(--coral)}.caption{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9rem;line-height:1.55;margin:5px 16px 18px}.caption strong{font-weight:750}.bottom-space{height:92px}
#paging{text-align:center;padding:4px 16px}.primary,.secondary,.danger{border:0;border-radius:14px;padding:13px 18px;min-height:46px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;gap:8px}.primary{background:var(--blue);color:#fff}.secondary{background:var(--back);color:var(--ink);border:1px solid var(--line)}.danger{background:#3b1e29;color:#ffb5c4}.full{width:100%}.button-row{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}.button-row>*{flex:1}.empty,.loading{text-align:center;padding:50px 20px;color:var(--muted);line-height:1.65}.empty h1,.empty h2{color:var(--ink);font-size:1.35rem;line-height:1.3}.empty .empty-icon{width:74px;height:74px;margin:auto;border-radius:24px;display:grid;place-items:center;background:#20262c;color:var(--accent)}.empty .empty-icon svg{width:34px;height:34px}.empty p{font-size:.9rem}.error{background:#3b1e29;color:#ffb5c4;padding:12px 14px;border-radius:12px;margin:14px 0;line-height:1.5;font-size:.88rem}.notice{padding:14px;border-radius:14px;background:var(--back);font-size:.82rem;line-height:1.6;color:var(--muted)}.profile-header{text-align:center;padding:25px 15px 18px;background:var(--paper);border:1px solid var(--line);border-radius:22px;margin-bottom:18px}.profile-header h1{font-size:1.45rem;margin:0 0 8px;overflow-wrap:anywhere}.profile-header .bio{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;font-size:.9rem;margin:12px 0;color:var(--muted)}.profile-count{font-size:.8rem;color:var(--muted)}.profile-header .button-row{justify-content:center}.profile-header .button-row>*{flex:0 1 auto}.profile-back{margin:0 0 14px}.comment{padding:15px 0;border-bottom:1px solid var(--line)}.comment .post-head{padding:0}.comment p{padding-left:52px;margin:10px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font-size:.9rem}.comment-form{position:sticky;bottom:0;padding:14px 0 0;background:var(--paper);margin-top:12px}.comment-form textarea{min-height:80px}.comment-form .primary{margin-top:10px}.count{color:var(--muted);font-size:.72rem;text-align:right;margin:6px 0 12px}.field-label{display:block;margin:16px 0 8px;font-size:.85rem;font-weight:650}textarea,input[type=text]{width:100%;border:1px solid var(--line);background:var(--back);color:var(--ink);border-radius:14px;padding:13px;resize:vertical;line-height:1.5}textarea{min-height:125px}input[type=file]{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.upload-choice{display:flex;gap:10px}.upload-choice label{flex:1;cursor:pointer;min-height:84px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:var(--back);border:1px dashed #575757;border-radius:16px;font-weight:650;font-size:.83rem}.upload-choice svg{width:27px;height:27px;color:var(--accent)}.previews{display:flex;gap:8px;overflow-x:auto;margin:14px 0}.preview{position:relative;flex:0 0 110px}.preview img,.preview video{width:110px;height:130px;object-fit:cover;border-radius:12px;background:var(--back)}.preview button{position:absolute;right:4px;top:4px;width:30px;height:30px;min-height:30px;min-width:30px;border:0;border-radius:50%;background:#171717db;color:#fff;font-size:1.1rem}.progress{width:100%;height:8px;accent-color:var(--blue)}#toast{position:fixed;left:50%;bottom:calc(91px + env(safe-area-inset-bottom));transform:translateX(-50%);max-width:calc(100% - 30px);background:#303030;color:#fff;z-index:30;border-radius:14px;padding:12px 18px;font-size:.85rem;box-shadow:var(--shadow)}dialog{padding:0 20px 22px;border:0;outline:0;border-radius:26px;width:calc(100% - 22px);max-width:620px;max-height:calc(92dvh - env(safe-area-inset-top));overflow-y:auto;background:var(--paper);color:var(--ink);box-shadow:0 20px 80px #0008}dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}.modal-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--paper);padding:15px 0 9px}.modal-head h2{font-size:1.15rem;margin:0;letter-spacing:-.02em}.modal-head .icon-button{margin-right:-8px}.menu-stack{display:grid;gap:10px;margin-top:10px}.menu-stack button{justify-content:flex-start;text-align:left}.rules{font-size:.9rem;line-height:1.6;padding-left:22px}.rule-check{display:flex;align-items:flex-start;gap:10px;font-size:.9rem;line-height:1.5;margin:18px 0}.rule-check input{width:22px;height:22px;flex-shrink:0;accent-color:var(--blue)}.report-card{padding:18px}.report-card h2{font-size:1rem;margin:0 0 10px}.report-card p{font-size:.85rem;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}.report-card .media-item{aspect-ratio:1/1}.report-card .meta{font-size:.75rem;color:var(--muted)}.media-strip.fullscreen .media-item{aspect-ratio:auto;height:65dvh}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:700px){#content{padding-top:24px}.card{margin-bottom:25px}.media-item{aspect-ratio:1/1}dialog{padding:0 26px 28px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

:root{--bottom-inset:env(safe-area-inset-bottom,0px);--side-inset:env(safe-area-inset-right,0px);--web-header-space:68px}
body.embedded{--bottom-inset:0px;--side-inset:0px;--web-header-space:0px}
.moments-toolbar{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;min-height:58px;padding:4px 12px;background:var(--back);border-bottom:1px solid var(--line)}
.moments-toolbar h1{font-size:1.2rem;text-align:center;letter-spacing:-.025em;margin:0}
.moments-toolbar svg,.bottom-nav svg,.chat-send svg,.empty>svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.toolbar-end{width:48px;height:44px}.compose[hidden]{display:block!important;visibility:hidden}
.bottom-nav{position:fixed;z-index:7;left:50%;bottom:calc(6px + var(--bottom-inset));transform:translateX(-50%);width:min(360px,calc(100% - 24px - var(--side-inset)));height:60px;display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:5px;border:1px solid #ffffff26;border-radius:34px;background:#181818f5;color:#fff;box-shadow:0 4px 18px #0003;backdrop-filter:blur(14px)}
.nav-button{position:relative;display:flex;align-items:center;justify-content:center;min-height:48px;border:0;border-radius:28px;background:transparent;color:inherit;padding:0}
.nav-button.active{background:#ffffff24}.nav-button.active#feed-tab svg{fill:currentColor}.nav-button.active#feed-tab svg path{stroke-width:1}
#nav-profile-icon{display:flex;align-items:center;justify-content:center}.nav-button .avatar{width:28px;height:28px;border:0}.nav-button.active .avatar{outline:2px solid currentColor;outline-offset:3px}
.nav-badge,.unread-count{background:#d94d69;color:#fff;border-radius:16px;font-weight:700;font-size:.67rem;line-height:19px;min-width:19px;padding:0 5px;text-align:center}.nav-badge{position:absolute;top:3px;left:calc(50% + 8px);border:2px solid #181818;line-height:16px;min-width:20px}
.section-heading{display:flex;align-items:center;gap:8px;justify-content:space-between;margin:0 0 12px}.section-heading h1{font-size:1.25rem;flex:1;margin:0}
.person-row{display:flex;align-items:center;width:100%;gap:10px;border:0;background:transparent;color:var(--ink);padding:14px 2px;text-align:left;border-radius:12px;min-width:0}.person-row:active{background:var(--line)}
.person-details{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.person-details strong{font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-preview{font-size:.82rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.unread .message-preview{font-weight:700;color:var(--ink)}
.thread-meta{display:flex;flex-direction:column;gap:7px;align-items:flex-end;max-width:90px}.thread-meta time{font-size:.62rem;color:var(--muted)}.inbox-list>.person-row{border-bottom:1px solid var(--line);border-radius:0}.inbox-more{text-align:center;padding:15px}.recipient-results{padding-top:12px}
.chat-panel{display:flex;flex-direction:column;height:calc(100dvh - 150px - var(--web-header-space) - var(--bottom-inset));min-height:200px}
.chat-heading{display:flex;align-items:center;gap:4px;border-bottom:1px solid var(--line);flex-shrink:0}.chat-heading .person-row{padding:0 0 9px}.chat-heading .avatar{width:34px;height:34px}
.chat-history{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 0}.chat-older{display:block;margin:0 auto 14px;font-size:.75rem}.chat-messages{display:flex;flex-direction:column;gap:10px}.chat-message{display:flex;justify-content:flex-start}.chat-message.mine{justify-content:flex-end}
.chat-bubble{max-width:86%;padding:10px 12px 7px;background:var(--paper);border:1px solid var(--line);border-radius:17px 17px 17px 4px}.mine .chat-bubble{background:var(--blue);border-color:var(--blue);color:#fff;border-radius:17px 17px 4px 17px}.chat-bubble p{font-size:.92rem;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.chat-meta{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:5px;opacity:.8}.chat-meta time{font-size:.62rem}.message-options{font-size:1rem;border:0;background:transparent;color:inherit;min-width:36px;min-height:28px;padding:0}
.chat-status{font-size:.76rem;color:var(--muted);padding:4px 0;flex-shrink:0}.chat-status:empty{display:none}.chat-compose{display:flex;align-items:flex-end;gap:8px;padding-top:8px;flex-shrink:0}.chat-compose textarea{min-height:46px;max-height:110px;resize:none;border-radius:23px;line-height:1.35;padding:12px 15px}.chat-send{display:flex;align-items:center;justify-content:center;width:46px;height:46px;flex-shrink:0;border:0;border-radius:50%;background:var(--blue);color:#fff}.chat-send svg{width:22px;height:22px}
@media(max-height:480px){.chat-panel{height:calc(100dvh - 130px - var(--web-header-space) - var(--bottom-inset));min-height:100px}.moments-toolbar{min-height:44px}.chat-heading{display:none}.bottom-nav{height:54px}.nav-button{min-height:42px}}

.username-status{min-height:24px;font-size:.85rem;color:var(--muted)}.username-status.available{color:#62d68a}
.moments-welcome{padding-top:6px;font-size:.92rem;line-height:1.6;color:var(--muted)}
.moments-welcome p{margin:0 0 16px}.moments-welcome p:last-child{margin-bottom:0}
.moments-welcome .welcome-lead{font-size:1rem;color:var(--ink)}
.moments-welcome h3{font-size:1.05rem;line-height:1.35;margin:24px 0 10px;color:var(--ink)}
.moments-welcome~.username-status:empty{display:none}

/* Profile editing: one rhythm for the photo, identity and description fields. */
.profile-editor{display:grid;gap:24px;padding-top:12px}
.profile-photo{display:flex;align-items:center;gap:22px;padding:4px 0 24px;border-bottom:1px solid var(--line)}
.profile-photo-preview{flex:0 0 88px}.profile-photo-preview .avatar.large{margin:0}
.profile-photo-actions{display:grid;gap:4px;justify-items:start;min-width:0}
.profile-photo-actions .upload-choice{display:grid;gap:8px}
.profile-photo-actions .upload-choice label{min-height:44px;padding:10px 14px;flex-direction:row;gap:8px;border:1px solid var(--line);border-radius:12px;background:var(--back);font-size:.85rem}
.profile-photo-actions .upload-choice svg{width:20px;height:20px}
.profile-photo-actions .upload-choice label:focus-within{outline:3px solid #efb529;outline-offset:3px}
.profile-photo-actions .upload-choice label.disabled{opacity:.5;cursor:default}
.profile-photo-remove{min-height:44px;padding:8px 14px;border:0;border-radius:12px;background:transparent;color:var(--coral);font-size:.82rem}
.profile-username{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--back)}
.profile-username-text{display:grid;gap:6px;flex:1;min-width:0}
.profile-field-title{font-size:.84rem;font-weight:650;line-height:1.4}
.profile-username-text .profile-field-title{font-size:.75rem;font-weight:500;color:var(--muted)}
.profile-username-value{font-size:.94rem;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
.profile-name-change{flex-shrink:0;min-height:44px;padding:10px 12px;background:var(--paper);border-radius:11px;font-size:.8rem}
.profile-field-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.profile-bio-count{font-size:.72rem;line-height:1.4;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.profile-about textarea{display:block;min-height:132px;resize:vertical;font-size:.94rem}
.profile-editor-footer{padding-top:18px;border-top:1px solid var(--line)}
.profile-editor-footer .primary{min-height:48px}
@media(max-width:350px){.profile-photo{gap:16px}.profile-username{padding:12px;gap:8px}.profile-name-change{padding:10px}}

.following-intro{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:2px 0 18px}
.following-intro p{margin:0;font-size:.83rem;color:var(--muted);line-height:1.5;flex:1}.following-intro .secondary{flex-shrink:0;font-size:.78rem;padding:10px 12px}
.profile-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:20px 0 18px;padding:10px 0;border-block:1px solid var(--line)}
.profile-stat{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-height:56px;padding:6px;border:0;border-radius:10px;background:transparent;color:var(--ink)}
.profile-stat+ .profile-stat{border-left:1px solid var(--line);border-radius:0}.profile-stat strong{font-size:1.12rem;line-height:1.2}.profile-stat span{font-size:.75rem;color:var(--muted)}
.profile-header .profile-actions{margin-top:0}.profile-header .profile-actions>*{flex:1;min-width:0}
.profile-options{display:flex;justify-content:center;flex-wrap:wrap;gap:4px 16px;margin-top:10px}.profile-option{min-height:44px;padding:10px 4px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:.75rem}
.follow-toggle{white-space:nowrap;font-size:.82rem;min-height:44px;padding:10px 14px}
.follow-person{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line)}.follow-person .person-row{flex:1;min-width:0}.follow-person .follow-toggle{flex-shrink:0;font-size:.75rem;padding:10px 12px}
.follow-more{margin-top:16px}.follow-people .loading{padding:24px 12px}
@media(max-width:350px){.following-intro{align-items:stretch;flex-direction:column;gap:10px}.follow-person{gap:6px}.follow-person .avatar{width:34px;height:34px}.follow-person .follow-toggle{padding:9px;font-size:.7rem}.follow-person .person-details strong{font-size:.8rem}}

/* Keep form hints readable in the always-dark Moments interface. */
textarea::placeholder,input::placeholder{color:var(--muted);opacity:1}

@media(max-width:350px){.profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-stat:nth-child(3){border-left:0}.profile-stat:nth-child(n+3){border-top:1px solid var(--line)}}

.media-preparing{display:flex;align-items:center;justify-content:center;gap:12px;padding:18px 12px;margin-top:14px;border:1px solid var(--line);border-radius:14px;background:var(--back);color:var(--ink);font-size:.88rem;line-height:1.5}
.media-spinner{display:block;flex:0 0 24px;width:24px;height:24px;border:3px solid #33424e;border-top-color:var(--accent);border-radius:50%;animation:media-spin .8s linear infinite}
.upload-choice label.disabled{opacity:.5;cursor:default}
@keyframes media-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.media-spinner{animation:none}}

/* Profiles show one cover per post; the complete card opens above the grid. */
.profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
.profile-tile{position:relative;display:block;min-width:0;width:100%;aspect-ratio:1;padding:0;border:0;border-radius:0;overflow:hidden;background:var(--paper)}
.profile-tile>img,.profile-tile>video{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.profile-tile:focus-visible{outline-offset:-4px}
.profile-tile-badge{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:27px;height:27px;border-radius:7px;background:#0007;color:#fff;pointer-events:none}
.profile-tile-badge svg{width:19px;height:19px;filter:drop-shadow(0 1px 2px #0006)}
#post-detail{width:100%;max-width:660px;height:100dvh;max-height:100dvh;margin:0 auto;padding:0 0 env(safe-area-inset-bottom);border-radius:0;overscroll-behavior:contain;background:var(--back)}
.post-detail-heading{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:16px;padding:10px 14px;background:var(--paper);border-bottom:1px solid var(--line)}
.post-detail-heading h2{font-size:1.05rem;margin:0}.post-detail-heading button{padding:8px 12px;font-size:.85rem}
#post-detail-content .card{margin:0;border:0;border-radius:0;box-shadow:none}

/* Profile-only privacy controls. */
.profile-header{position:relative}.profile-settings{position:absolute;right:12px;top:12px;color:var(--ink)}
.profile-message svg{width:20px;height:20px}.profile-message:disabled{opacity:.45;cursor:default}
.profile-settings-panel{display:grid;gap:20px;padding-top:12px}.settings-heading{font-size:.9rem;margin:0;color:var(--muted)}
.settings-toggle{display:grid;grid-template-columns:minmax(0,1fr) 48px;align-items:center;gap:12px 18px;border:1px solid var(--line);border-radius:16px;padding:18px;background:var(--back);cursor:pointer}
.settings-toggle-text{display:contents;font-size:.9rem;line-height:1.5}.settings-hint{grid-column:1 / -1;grid-row:2;font-size:.8rem;font-weight:400;color:var(--muted)}
.settings-toggle input{grid-column:2;grid-row:1;margin:0;appearance:none;flex:0 0 48px;width:48px;height:28px;border:1px solid var(--line);border-radius:20px;background:#555;position:relative;cursor:pointer}
.settings-toggle input::after{content:'';position:absolute;width:20px;height:20px;left:3px;top:3px;background:white;border-radius:50%;transition:transform .15s}
.settings-toggle input:checked{background:var(--blue)}.settings-toggle input:checked::after{transform:translateX(20px)}
.settings-toggle input:focus-visible{outline:3px solid var(--accent);outline-offset:4px}.settings-toggle input:disabled{opacity:.5;cursor:wait}
.chat-permission{margin:6px 0;flex-shrink:0}.chat-compose textarea:disabled{opacity:.65}

.settings-danger{border-top:1px solid #3e272b;padding-top:20px;margin-top:8px;display:grid;gap:12px}.settings-danger .settings-hint{margin:0;line-height:1.55}.suspended-list{display:grid;gap:12px}.suspended-person{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px}.suspended-person strong{overflow-wrap:anywhere;min-width:0}.suspended-person button{flex-shrink:0}

.moments-toolbar[hidden],.bottom-nav[hidden]{display:none!important}

/* Comments are a separate bottom sheet so reporting never discards a draft. */
body.comments-open{overflow:hidden}
dialog.comments-sheet{position:fixed;inset:auto 0 var(--comments-bottom,0);margin:0 auto;padding:0;width:100%;max-width:620px;height:var(--comments-height,83dvh);max-height:none;border-radius:24px 24px 0 0;background:#171717;overflow:hidden;box-shadow:0 -14px 70px #0006}
dialog.comments-sheet[open]{display:flex;flex-direction:column;animation:comments-rise .22s ease-out}
dialog.comments-sheet::backdrop{background:#0006;backdrop-filter:none}
.comments-heading{position:relative;flex:none;min-height:79px;border-bottom:1px solid #ffffff12;text-align:center;touch-action:none;user-select:none}
.comments-grabber{width:36px;height:4px;border-radius:8px;background:#5d5d5d;margin:11px auto 15px}
.comments-heading h2{font-size:16px;line-height:22px;margin:0 50px 14px;font-weight:750}
.comments-count{font-size:12px;color:var(--muted);font-weight:500;margin-left:8px}
.comments-close{position:absolute;right:8px;top:25px;background:none;border:0;color:#aaa;width:44px;height:44px;padding:0;font-size:27px;border-radius:50%}
.comments-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 16px 20px;scrollbar-width:thin}
.comment-thread{margin:0 0 14px}.comment-row{display:flex;align-items:flex-start;gap:11px;padding:9px 0;min-width:0}.comment-row.comment-reply{margin-left:43px;gap:9px}
.comment-avatar{padding:0;border:0;background:none;flex:none;border-radius:50%;min-height:36px}.comment-avatar .avatar{width:34px;height:34px;font-size:14px}.comment-reply .comment-avatar .avatar{width:28px;height:28px;font-size:12px}
.comment-content{flex:1;min-width:0;padding-top:1px}.comment-copy{font-size:14px;line-height:1.5;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#f1f1f1}
.comment-name{display:inline;background:none;padding:0;border:0;color:#fff;font:inherit;font-weight:700;text-align:left;overflow-wrap:anywhere;min-height:0}
.comment-meta{display:flex;align-items:center;flex-wrap:wrap;gap:0 14px;min-height:32px;font-size:11px;color:#929292;line-height:1.4}
.comment-text-button,.comment-options{background:none;border:0;padding:8px 0;color:#aaa;font-size:11px;font-weight:650;min-height:32px}.comment-options{font-size:17px;padding:2px 6px;min-width:32px;margin-left:-8px}
.comment-heart{flex:none;width:32px;min-height:44px;padding:6px 0 0;border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:4px;color:#aaa;font-size:10px}.comment-heart svg{width:16px;height:16px}.comment-heart.liked{color:#ff527a}.comment-heart:disabled{opacity:.5}
.comment-thread-toggle{display:flex;align-items:center;gap:12px;margin:0 0 0 45px;padding:6px 0;background:none;border:0;color:#a5a5a5;font-size:11px;font-weight:650;min-height:36px;text-align:left}.comment-thread-toggle::before{content:'';width:24px;height:1px;background:#555;flex:none}
.comments-more{display:block;margin:10px auto;padding:12px 15px;border:0;background:#252525;border-radius:22px;font-size:12px;color:#ddd}
.comments-empty{text-align:center;padding:40px 15px;color:var(--muted)}.comments-empty svg{width:38px;height:38px;color:#ddd}.comments-empty h3{font-size:18px;color:#f5f5f5;margin:17px 0 8px}.comments-empty p{font-size:13px;margin:0}
.comments-footer{flex:none;background:#171717;border-top:1px solid #ffffff12;padding:0 14px calc(12px + env(safe-area-inset-bottom));position:relative}.embedded .comments-footer{padding-bottom:12px}
.comment-emojis{display:flex;justify-content:space-between;padding:4px 0}.comment-emoji{border:0;background:none;padding:8px 4px;min-width:40px;min-height:44px;font-size:23px;line-height:1}
.comment-composer{display:flex;align-items:center;gap:9px}.comment-composer>.avatar{flex:none;width:32px;height:32px;font-size:14px}
.comment-composer textarea{flex:1;min-width:0;width:auto;min-height:44px;max-height:108px;margin:0;resize:none;background:#242424;border:1px solid #383838;border-radius:23px;padding:11px 14px;color:#f4f4f4;font-size:16px;line-height:21px;box-sizing:border-box}
.comment-composer textarea::placeholder{color:#939393}.comment-composer textarea:focus{border-color:#6d9fc8;outline:0}
.comment-send{flex:none;width:40px;height:40px;border:0;border-radius:50%;padding:10px;background:#80caff;color:#0a2438}.comment-send svg{width:20px;height:20px}.comment-send:disabled{background:#303030;color:#727272;opacity:1}
.comment-reply-target{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 6px 40px;color:#bbb;font-size:12px;overflow-wrap:anywhere}.comment-cancel{flex:none;width:36px;height:32px;background:none;border:0;color:#aaa;font-size:23px;padding:0}
.comment-status{font-size:12px;line-height:1.4;color:#ffb1b1;margin:4px 0 10px}.comment-reply-target[hidden],.comment-status[hidden]{display:none}
.comments-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@keyframes comments-rise{from{transform:translateY(35px);opacity:.4}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){dialog.comments-sheet[open]{animation:none}}
@media(max-width:350px){.comments-list{padding-left:12px;padding-right:10px}.comment-row{gap:8px}.comment-row.comment-reply{margin-left:34px}.comment-thread-toggle{margin-left:36px}.comments-footer{padding-left:10px;padding-right:10px}.comment-composer{gap:6px}}

.comment-send.sending svg{display:none}.comment-send.sending::after{content:'';display:block;width:16px;height:16px;border:2px solid #666;border-top-color:#80caff;border-radius:50%;animation:comment-sending .7s linear infinite}
@keyframes comment-sending{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.comment-send.sending::after{animation:none}}

/* A compact visual control inside a comfortable, consistently centered hit area. */
button.close-button{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:radial-gradient(circle at center,#ffffff10 0 14px,transparent 14.5px);color:#b7bdc4;line-height:1;box-shadow:none;appearance:none;-webkit-appearance:none}
button.close-button svg{display:block;flex:none;width:18px;height:18px;stroke-width:1.8;pointer-events:none}
button.close-button:active{background:radial-gradient(circle at center,#ffffff26 0 14px,transparent 14.5px);color:#fff}
button.close-button:focus-visible{outline:2px solid var(--accent);outline-offset:-7px}
.modal-head .close-button{margin-right:-6px}
button.comments-close{position:absolute;right:8px;top:25px}
.preview button.close-button{position:absolute;right:0;top:0;background:radial-gradient(circle at center,#171717db 0 14px,transparent 14.5px);color:#f5f5f5}
#modal-title:focus,#comments-title:focus{outline:none}
@media(hover:hover){button.close-button:hover{background:radial-gradient(circle at center,#ffffff1c 0 14px,transparent 14.5px);color:#fff}.preview button.close-button:hover{background:radial-gradient(circle at center,#171717 0 14px,transparent 14.5px)}}

#moderation-tab{position:relative}
#reports-badge{top:1px;left:auto;right:0;pointer-events:none}
.report-card.push-highlight{outline:2px solid var(--accent);outline-offset:-2px}

/* Private moderation receipts, visually separate from personal conversations. */
.report-results-entry{border:1px solid var(--line);border-radius:16px;margin:4px 0 20px;padding:16px;gap:14px}
.report-results-entry>svg{width:28px;height:28px;flex:none;color:#80caff}
.report-result .person-details{gap:6px}.result-new{color:#80caff;font-size:12px;flex:none}
.report-result-detail{padding:6px 0 12px;line-height:1.65}.report-result-detail .meta{margin:12px 0}

.profile-stats{grid-template-columns:repeat(var(--stat-columns,4),minmax(0,1fr))}
.private-profile-label{display:inline-block;margin-top:10px;padding:5px 12px;border:1px solid var(--line);border-radius:20px;color:#80caff;font-size:.78rem}
.private-stat strong{font-size:.8rem;color:var(--muted)}.private-profile-notice{padding-top:24px}
.profile-settings-panel .settings-toggle{margin-bottom:0}.follow-requests-entry{margin-top:14px}
.follow-request{padding:8px 0 18px;border-bottom:1px solid var(--line)}.follow-request .button-row{display:flex;padding-left:0;gap:10px}.follow-request .button-row>button{flex:1}
.follow-person:has(.follower-remove){flex-wrap:wrap;padding:8px 0}.follow-person:has(.follower-remove)>.person-row{flex-basis:100%;padding-bottom:0}.follow-person .follower-remove{font-size:.75rem;padding:10px 12px}
@media(max-width:350px){.profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Activity heart and private activity history. */
.moments-toolbar{grid-template-columns:88px minmax(0,1fr) 88px}
.moments-toolbar h1{font-size:clamp(1rem,4vw,1.2rem)}
.toolbar-end{width:88px;display:flex;justify-content:flex-end;align-items:center;gap:0}
.toolbar-end .icon-button{position:relative;width:44px;min-width:44px;padding:8px}
#compose{justify-self:start}
#activity-tab.has-news{color:var(--coral)}
#activity-tab.has-news svg{fill:var(--coral)}
.activity-panel{padding-top:6px}.activity-list{display:grid;gap:6px}
.activity-row{position:relative;display:flex;align-items:center;gap:11px;width:100%;padding:15px 9px;border:0;border-radius:15px;text-align:left;background:transparent;color:var(--ink)}
.activity-row.unread{background:#18242d}.activity-row:active{background:#26323a}
.activity-row .avatar{width:40px;height:40px}.activity-copy{display:grid;gap:5px;min-width:0;flex:1}
.activity-line{font-size:.86rem;line-height:1.5;overflow-wrap:anywhere}.activity-line strong{font-weight:750}
.activity-excerpt{font-size:.8rem;line-height:1.45;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.activity-time{font-size:.69rem;color:var(--muted)}.activity-preview{width:44px;height:50px;border-radius:8px;object-fit:cover;flex-shrink:0}
.activity-symbol{display:grid;place-items:center;width:36px;height:40px;flex-shrink:0;color:var(--accent)}.activity-symbol svg{width:23px;height:23px}
.activity-new{position:absolute;right:3px;top:8px;width:7px;height:7px;border-radius:50%;background:var(--accent)}
.activity-more{padding-top:14px}.activity-status{font-size:.8rem;color:var(--muted);line-height:1.5}.activity-status:empty{display:none}
.activity-empty{text-align:center;padding:45px 15px;color:var(--muted);line-height:1.6}.activity-empty>svg{width:44px;height:44px;color:var(--coral)}.activity-empty h3{color:var(--ink);font-size:1.05rem}
.comment-highlight{background:#19303e;border-radius:12px;box-shadow:0 0 0 6px #19303e}

.suspension-card{margin:18px 12px;padding:24px;line-height:1.55}.suspension-card h1{font-size:1.35rem;line-height:1.3;margin:0 0 18px}.suspension-card h2{font-size:1.1rem;margin:24px 0 10px}
.notice-reason { white-space: pre-wrap; overflow-wrap: anywhere; }
#deletion-reason { width: 100%; margin-top: 8px; }

/* Shared posts use authorized image/poster endpoints, never a playing video. */
.shared-post{display:flex;align-items:stretch;width:100%;min-width:0;text-align:left;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);overflow:hidden;padding:0;gap:12px}.shared-post-media{display:flex;align-items:center;justify-content:center;position:relative;flex:0 0 76px;min-height:88px;background:#080808}.shared-post-media img{position:absolute;width:100%;height:100%;object-fit:cover}.shared-post-media>svg{width:28px;height:28px;color:var(--muted)}.shared-post-text{display:flex;flex-direction:column;justify-content:center;gap:5px;padding:12px 12px 12px 0;min-width:0}.shared-post-text strong{font-size:.86rem;overflow-wrap:anywhere}.shared-caption{font-size:.8rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;color:var(--muted)}.shared-video{position:absolute;right:5px;bottom:5px;display:flex;padding:3px;border-radius:5px;background:#000a;color:#fff}.shared-video svg{width:17px;height:17px}.chat-bubble:has(.shared-post){width:min(260px,86%);padding:5px 5px 7px}.chat-bubble .shared-post{flex-direction:column;gap:0}.chat-bubble .shared-post-media{flex-basis:auto;height:150px}.chat-bubble .shared-post-text{padding:11px}.chat-bubble .chat-meta{padding:0 5px}.shared-post.unavailable{display:flex;align-items:center;gap:10px;padding:18px 12px;color:var(--muted);font-size:.85rem}.shared-post.unavailable>svg{width:24px;height:24px;flex-shrink:0}.share-recipients{max-height:34dvh;min-height:80px;overflow-y:auto;margin:12px 0}.share-selected{width:22px;height:22px;flex-shrink:0;border-radius:50%;border:1.5px solid var(--muted)}.share-recipients [aria-pressed=true] .share-selected{background:var(--accent);border-color:var(--accent);box-shadow:inset 0 0 0 4px var(--paper)}.share-status{font-size:.85rem;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}.share-status:empty{display:none}.post-actions .action{min-width:40px}

.share-note{display:block;min-height:84px;max-height:160px;resize:vertical;margin:0 0 14px}.chat-bubble p.shared-message-note{padding:10px 7px 3px}

.share-count{font-size:.78rem;color:var(--muted);margin:10px 0 7px}.share-selection{display:flex;flex-wrap:wrap;gap:7px;max-height:116px;overflow-y:auto}.share-selection:empty{display:none}.share-recipient-chip{display:inline-flex;align-items:center;gap:9px;max-width:100%;min-height:36px;border:1px solid #416d8b;border-radius:20px;padding:7px 12px;background:#132c3d;color:#c4e7ff;font-size:.82rem}.share-recipient-chip>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.share-chip-close{font-size:1.15rem;line-height:1}.share-status p{margin:8px 0}.share-success{color:#9bd5b6}.share-failure{color:#ffb5c4}.share-send+.secondary{margin-top:10px}

/* Direct media in private chats. */
.chat-attach{width:42px;height:46px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:transparent;border:0;color:var(--text);padding:8px}.chat-attach svg{width:25px;height:25px}.chat-attach:disabled{opacity:.45}.chat-compose textarea{min-width:0}.chat-bubble:has(.chat-media){padding:6px;max-width:100%}.chat-media{width:min(66vw,310px);border-radius:16px;overflow:hidden}.chat-media .media-item{aspect-ratio:1/1;max-height:360px}.chat-media .media-item img,.chat-media .media-item video{object-fit:contain;background:#111}.chat-bubble:has(.chat-media) .chat-meta{padding:2px 8px}.chat-media-send{margin-top:14px}

/* Compact private voice recording and playback, including reported messages. */
.voice-player{display:grid;grid-template-columns:42px minmax(0,1fr) 36px;gap:10px;align-items:center;width:100%;min-width:0;padding:12px 0;color:var(--text,#f5f5f5)}
.voice-player audio{display:none}.voice-play{width:42px;height:42px;display:grid;place-items:center;border:0;border-radius:50%;background:#80caff;color:#091722;padding:10px}.voice-play svg{width:22px;height:22px;pointer-events:none}.voice-controls{min-width:0;display:flex;flex-direction:column;gap:6px}.voice-seek{width:100%;min-width:0;padding:0;height:20px;accent-color:#80caff}.voice-time{font-size:12px;font-variant-numeric:tabular-nums;color:#bed4e2}.voice-speed{padding:7px 0;border:0;background:transparent;color:inherit;font-size:13px}.voice-error{grid-column:1/-1;font-size:12px;color:#ffb7b7}.voice-error:empty{display:none}.chat-bubble:has(.voice-player){width:280px;max-width:100%}.chat-media.voice-player{aspect-ratio:auto;max-height:none}.chat-microphone{flex-shrink:0}.chat-compose textarea{min-width:0}.voice-player[hidden]{display:none}
/* Voice recording stays in the composer; the microphone retains pointer capture. */
.chat-compose{position:relative}.chat-microphone{touch-action:none;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
.voice-inline{flex:1;min-width:0;display:flex;align-items:center;gap:8px;min-height:46px}.voice-inline[hidden],.voice-inline-send[hidden],.voice-lock-hint[hidden],.voice-inline-info[hidden],.voice-inline-preview[hidden]{display:none}
.voice-active>textarea,.voice-active>.chat-attach:not(.chat-microphone),.voice-active>.chat-send:not(.voice-inline-send){display:none}
.voice-inline-discard{width:38px;height:46px;flex-shrink:0;display:grid;place-items:center;padding:8px;border:0;background:none;color:#ff9b9b}.voice-inline-discard svg{width:23px;height:23px}
.voice-inline-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}.voice-inline-time{font-size:17px;line-height:1.2;font-weight:650;font-variant-numeric:tabular-nums;color:var(--text)}.voice-inline-time.recording:before{content:'';display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#ff7474;animation:voice-pulse 1.3s ease-in-out infinite}.voice-inline-hint{color:var(--muted);font-size:11px;line-height:1.3}
.chat-microphone.voice-recording{color:#80caff;background:#173344;border-radius:50%}.chat-microphone.voice-locked{background:#1d4055}
.voice-lock-hint{position:absolute;right:54px;bottom:calc(100% + 10px);width:42px;height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#80caff;background:#172c3c;border:1px solid #81caff40;border-radius:24px;pointer-events:none;transform:translateY(calc(var(--lock-progress,0) * -14px))}.voice-lock-hint svg{width:20px;height:20px}.voice-lock-hint span{font-size:22px;line-height:1}
.voice-inline-preview{min-width:0;flex:1}.voice-inline-preview .voice-player{grid-template-columns:34px minmax(0,1fr) 30px;gap:6px;padding:0}.voice-inline-preview .voice-play{width:34px;height:34px;padding:8px}.voice-inline-preview .voice-play svg{width:18px;height:18px}.voice-inline-preview .voice-controls{gap:0}.voice-inline-preview .voice-time{font-size:10px}.voice-inline-preview .voice-speed{font-size:11px}.voice-has-preview>.chat-microphone{display:none}.voice-feedback{color:#ffb7b7;line-height:1.4}.voice-waiting svg{display:none}.voice-waiting:after{content:'';width:18px;height:18px;border:2px solid #ffffff55;border-top-color:#fff;border-radius:50%;animation:voice-spin .7s linear infinite}
@keyframes voice-pulse{50%{opacity:.4}}@keyframes voice-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.voice-inline-time.recording:before{animation:none}}

.voice-inline-hint{display:flex;align-items:center;gap:4px}.voice-inline-hint svg{width:12px;height:12px;flex-shrink:0;color:#80caff}

/* Live microphone levels, shared by iOS and Flutter. */
.voice-inline-top{display:flex;align-items:center;gap:10px;min-width:0;width:100%;height:24px}.voice-inline-time{flex-shrink:0}.voice-wave{display:flex;align-items:center;gap:2px;flex:1;min-width:0;max-width:180px;height:24px;overflow:hidden;direction:ltr}.voice-wave span{flex:1;min-width:1px;max-width:4px;height:24px;border-radius:3px;background:#80caff;transform:scaleY(calc(.08 + var(--voice-level,0) * .92));transition:transform 100ms linear;pointer-events:none}.voice-wave[hidden]{display:none}@media(prefers-reduced-motion:reduce){.voice-wave span{transition:none}}

/* Private-chat replies: compact context above the composer and in each bubble. */
.chat-history{overflow-x:hidden}.chat-message{position:relative}.chat-bubble{position:relative;min-width:0;transition:transform .18s ease-out}.reply-dragging .chat-bubble{transition:none;user-select:none;-webkit-user-select:none}
.reply-swipe-hint{position:absolute;left:8px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#223b4d;color:#91d3ff;opacity:0;pointer-events:none}.reply-swipe-hint svg{width:19px;height:19px}.reply-ready .reply-swipe-hint{background:#80caff;color:#091722}
.message-reply{display:grid;place-items:center;min-width:30px;min-height:30px}.message-reply svg{width:17px;height:17px;pointer-events:none}.message-reply:disabled{opacity:.35}
.message-quote{display:flex;align-items:center;gap:9px;width:100%;min-width:0;padding:8px 10px;margin:0 0 8px;border:0;border-left:3px solid #80caff;border-radius:4px 9px 9px 4px;background:#ffffff0d;color:inherit;text-align:left;overflow:hidden}.mine .message-quote{background:#00000024;border-left-color:#c1e6ff}.message-quote>svg{width:21px;height:21px;flex-shrink:0;color:#a6d9ff}.message-quote-text{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.message-quote-text strong{font-size:.75rem;color:#a6d9ff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mine .message-quote-text strong{color:#e0f3ff}.message-quote-text>span{font-size:.77rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap;opacity:.85}.message-quote-thumbnail{width:38px;height:38px;object-fit:cover;border-radius:5px;flex-shrink:0}.message-quote.unavailable{opacity:.7}.chat-bubble:has(>.message-quote){min-width:min(210px,75vw)}
.chat-reply-compose{display:flex;align-items:center;gap:8px;flex-shrink:0;padding:10px 0 2px;border-top:1px solid var(--line)}.chat-reply-compose[hidden]{display:none}.chat-reply-content{flex:1;min-width:0}.chat-reply-label{font-size:.7rem;color:var(--muted);display:block;margin-bottom:4px}.chat-reply-compose .message-quote{margin:0;padding:5px 9px}.chat-reply-compose .message-quote-text>span{-webkit-line-clamp:1}.chat-reply-cancel{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border:0;border-radius:50%;background:#ffffff0d;color:var(--ink);padding:10px}.chat-reply-cancel svg{width:14px;height:14px}.chat-reply-cancel:disabled{opacity:.35}
.reply-highlight .chat-bubble{animation:reply-highlight 1.6s ease-out}@keyframes reply-highlight{0%,30%{box-shadow:0 0 0 3px #80caff}100%{box-shadow:0 0 0 3px transparent}}@media(prefers-reduced-motion:reduce){.chat-bubble{transition:none}.reply-highlight .chat-bubble{animation:none;outline:2px solid #80caff}}

.chat-latest{align-self:center;flex-shrink:0;font-size:.75rem;margin:5px 0}.chat-latest[hidden]{display:none}

.chat-bubble:not(:has(.media-item:nth-child(2))),.chat-meta,.chat-bubble>p{touch-action:pan-y pinch-zoom}

/* Private message hearts. Controls update independently of media playback. */
.message-heart{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:30px;min-height:30px;border-radius:15px}.message-heart svg{width:17px;height:17px;pointer-events:none}.message-heart-count{font-size:.7rem;font-weight:700;pointer-events:none}.message-heart.has-hearts{color:#ff82a3;background:#301b29;padding:0 7px}.message-heart.hearted-by-me{box-shadow:inset 0 0 0 1px #ff82a36b}.message-heart:disabled{opacity:.45}.message-heart-pop{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:2;animation:message-heart-pop .7s ease-out both}.message-heart-pop svg{width:66px;height:66px;fill:#ff628e;color:#ff628e;filter:drop-shadow(0 3px 8px #0008)}.chat-bubble .media-item img{touch-action:pan-x pan-y pinch-zoom}
@keyframes message-heart-pop{0%{opacity:0;transform:scale(.45) rotate(-12deg)}30%{opacity:1;transform:scale(1.12) rotate(0)}60%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}
@media(prefers-reduced-motion:reduce){.message-heart-pop{animation:none;opacity:.85}}

.profile-avatar{display:block;width:88px;height:88px;margin:0 auto 16px;padding:0;border:0;border-radius:50%;background:none}.profile-avatar .avatar.large{margin:0}.profile-photo-stage{overflow:hidden;border-radius:16px;background:#080808;touch-action:none;user-select:none;-webkit-user-select:none}.profile-photo-full{display:block;width:100%;height:auto;max-height:60dvh;object-fit:contain;transform-origin:center;will-change:transform;pointer-events:none;-webkit-touch-callout:none}.profile-photo-controls{display:flex;align-items:center;justify-content:center;gap:12px;padding-top:8px}.profile-photo-reset{min-width:68px;min-height:44px;background:transparent;border:0;border-radius:12px;color:var(--muted);font-size:.8rem;font-variant-numeric:tabular-nums}.profile-photo-viewer.zoomed .profile-photo-stage{cursor:grab}.profile-photo-viewer.zoomed .profile-photo-stage:active{cursor:grabbing}

/* Android's photo surface fills the WebView; Flutter hides its header while open. */
#modal.profile-photo-edge-to-edge{position:fixed;inset:0;margin:0;padding:0;width:100%;height:100dvh;max-width:none;max-height:none;border-radius:0;overflow:hidden;background:#080808;box-shadow:none}
#modal.profile-photo-edge-to-edge .modal-head{position:absolute;inset:0 0 auto;z-index:2;padding:calc(10px + env(safe-area-inset-top)) 16px 24px;background:linear-gradient(#0009,transparent);pointer-events:none}
#modal.profile-photo-edge-to-edge .modal-head h2{font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#modal.profile-photo-edge-to-edge .modal-head button{pointer-events:auto}
#modal.profile-photo-edge-to-edge #modal-content,#modal.profile-photo-edge-to-edge .profile-photo-viewer{width:100%;height:100%}
#modal.profile-photo-edge-to-edge .profile-photo-stage{width:100%;height:100%;border-radius:0}
#modal.profile-photo-edge-to-edge .profile-photo-full{width:100%;height:100%;max-height:none}
#modal.profile-photo-edge-to-edge .profile-photo-controls{position:absolute;z-index:2;inset:auto 0 0;padding:20px 12px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#0009);pointer-events:none}
#modal.profile-photo-edge-to-edge .profile-photo-controls button{pointer-events:auto}

/* Post photos share the full-screen pinch surface on iOS and Android. */
.post-photo-gallery,.post-photo-surface{position:relative;width:100%;height:100%}
.post-photo-navigation{position:absolute;z-index:3;bottom:calc(66px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:14px;padding:0 7px;border-radius:24px;background:#080808b8;white-space:nowrap}
.post-photo-navigation[hidden]{display:none}.post-photo-navigation .icon-button{width:44px;height:44px;font-size:30px;line-height:1}.post-photo-position{font-size:.8rem;font-variant-numeric:tabular-nums;color:#f3f3f3;min-width:80px;text-align:center}
.post-photo-loading,.post-photo-error{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;text-align:center;color:#ddd}.post-photo-loading{pointer-events:none}.post-photo-loading:before{content:'';width:26px;height:26px;border:2px solid #ffffff33;border-top-color:#80caff;border-radius:50%;animation:voice-spin .8s linear infinite}
.post-photo-video{display:block;width:100%;height:100%;object-fit:contain}.post-photo-gallery.showing-video .post-photo-navigation{bottom:auto;top:calc(68px + env(safe-area-inset-top))}
#modal.post-photo-modal .profile-photo-controls{padding-top:72px}
.profile-photo-viewer.photo-returning .profile-photo-full{transition:transform .18s ease-out}
@media(prefers-reduced-motion:reduce){.profile-photo-viewer.photo-returning .profile-photo-full{transition:none}}

.profile-logout{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}

/* Enabled only by the standalone app; shares its native app-bar state. */
.moments-scroll-chrome .bottom-nav{transform:translate(-50%,0);opacity:1;transition:transform .24s cubic-bezier(.215,.61,.355,1),opacity .24s cubic-bezier(.215,.61,.355,1)}
.moments-scroll-chrome.moments-scroll-chrome-hidden .bottom-nav{transform:translate(-50%,calc(100% + 32px + var(--bottom-inset,0px)));opacity:0;pointer-events:none}
.moments-scroll-chrome.moments-scroll-chrome-reduced .bottom-nav{transition:none}
@media(prefers-reduced-motion:reduce){.moments-scroll-chrome .bottom-nav{transition:none}}

/* Shared iOS/Android community collections and meetups. */
.community-content{display:flex;flex-direction:column;gap:14px;min-width:0}.community-content form{display:flex;flex-direction:column;gap:16px}.community-field{display:flex;flex-direction:column;gap:8px;font-weight:600}.community-field input,.community-field textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%;font:inherit}.community-item{padding:16px;border:1px solid #303030;border-radius:16px;overflow-wrap:anywhere}.community-item h3{margin:0 0 10px}.community-item .button-row{flex-wrap:wrap}.community-album-post{min-width:0}.community-content .card{width:100%;box-sizing:border-box;min-width:0}.bookmark-action{margin-left:auto;font-size:26px}.bookmark-action[aria-pressed="true"]{color:#81d8ec}

.community-entry{padding:12px 0}.community-item details{margin:12px 0}.community-item summary{cursor:pointer;min-height:44px;display:flex;align-items:center}

.album-member-results{display:flex;flex-direction:column;gap:8px;max-height:38dvh;overflow-y:auto}.album-member-result{display:flex;align-items:center;gap:10px;min-height:64px;padding:10px;background:#202a30;border:1px solid #47616f;border-radius:12px}.album-member-result .avatar{width:36px;height:36px;flex:0 0 36px}.album-member-name{flex:1;min-width:0;overflow-wrap:anywhere;color:#f5f5f5}.album-member-add{flex-shrink:0;padding:10px;font-size:.8rem;min-height:44px}.album-search-status{margin:0;color:var(--muted);font-size:.85rem}.album-member-results:empty{display:none}

.community-field select{width:100%;box-sizing:border-box;min-height:48px;padding:12px;border:1px solid #47616f;border-radius:10px;background:#172127;color:#f5f5f5;font:inherit;color-scheme:dark}

.album-area-tools,.album-area-filters{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.album-area-filters button{flex:1}.album-area-filters [aria-pressed=true]{background:#1769aa;color:#fff;border-color:#81d8ec}.album-area-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:14px;margin:18px 0}.album-area-card{display:grid;grid-template-columns:40px minmax(0,1fr);gap:6px 12px;min-height:108px;text-align:left;background:#172127;border:1px solid #47616f;border-radius:16px;padding:18px;color:#f5f5f5}.album-area-symbol{grid-row:1/4;font-size:30px;color:#81d8ec}.album-area-title{font-size:1.05rem;overflow-wrap:anywhere}.album-area-meta{font-size:.8rem;color:#81d8ec}.album-area-description{font-size:.85rem;overflow-wrap:anywhere;color:#ccc}.album-linked-posts{display:flex;flex-direction:column;gap:14px}#section-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.album-area-tools~.community-field input[type=search]{width:100%;min-height:48px;padding:12px;border:1px solid #47616f;border-radius:10px;background:#172127;color:#f5f5f5;font:inherit;box-sizing:border-box}.album-area-symbol svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.7}

.album-area-cover{grid-column:1/-1;width:100%;height:140px;object-fit:cover;border-radius:10px;margin-bottom:6px}.album-option-cover{display:block;width:100%;max-height:240px;object-fit:cover;border-radius:12px}
.album-area-card:has(.album-area-cover) .album-area-cover{grid-row:1;grid-column:1/-1}.album-area-card:has(.album-area-cover) .album-area-symbol{grid-row:2/5;grid-column:1}.album-area-card:has(.album-area-cover) .album-area-title{grid-row:2;grid-column:2}.album-area-card:has(.album-area-cover) .album-area-meta{grid-row:3;grid-column:2}.album-area-card:has(.album-area-cover) .album-area-description{grid-row:4;grid-column:2}

.album-creator-badge{display:inline-flex;flex-shrink:0;border:1px solid #47616f;background:#173b4a;color:#b9ecff;border-radius:20px;padding:4px 7px;font-size:.65rem;font-weight:700}.post-head:has(.album-creator-badge){gap:6px}.post-head:has(.album-creator-badge)>:first-child{min-width:0;flex:1}

.admin-name-badge{display:inline-block;margin-left:6px;padding:2px 5px;border:1px solid #60657c;border-radius:6px;background:#282c40;color:#dfe2ff;font-size:.62rem;font-weight:700;line-height:1.3;vertical-align:middle;white-space:nowrap}.author-name{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.author-name .admin-name-badge{margin-left:0}.profile-header h1 .admin-name-badge{font-size:.65rem}

.mod-name-badge{background:#123d33;color:#b6f1dc;border-color:#40715f}.moderator-audit-entry{padding:14px;margin:12px 0;border:1px solid #47616f;border-radius:12px;overflow-wrap:anywhere}.moderator-audit-entry h3{font-size:1rem;margin:0 0 8px}.moderator-audit-entry button{margin:4px}

.toolbar-start{display:flex;align-items:center;width:88px}.toolbar-start .icon-button{flex:0 0 44px}#search-toggle[aria-pressed=true]{background:#ffffff24;border-radius:50%}.global-search-field{display:flex;flex-direction:column;gap:8px;font-size:.9rem;font-weight:600;margin:16px 0 10px}.global-search-field input{box-sizing:border-box;width:100%;min-height:48px;padding:12px;border:1px solid #47616f;border-radius:12px;background:#172127;color:#f5f5f5;font:inherit;font-size:16px}.global-search-filters{display:flex;gap:6px;flex-wrap:wrap}.global-search-filters button{flex:1;padding:9px 7px;font-size:.8rem}.global-search-filters [aria-pressed=true]{background:#1769aa;color:#fff;border-color:#81d8ec}.global-search-status,.global-search-empty{font-size:.85rem;color:var(--muted);margin:14px 0;overflow-wrap:anywhere}.global-search-group{display:flex;flex-direction:column;gap:10px;margin:20px 0}.global-search-group h2{font-size:1.05rem;margin:0}.global-search-card{display:block;width:100%;padding:14px;border:1px solid #47616f;border-radius:14px;background:#172127;color:#f5f5f5;text-align:left;overflow-wrap:anywhere;box-sizing:border-box}.global-search-card p{margin:8px 0}.search-person{display:flex;align-items:center;gap:10px}.search-person .avatar{width:36px;height:36px;flex:0 0 36px}.search-person strong{min-width:0;flex:1}.global-search-arrow{font-size:24px;color:#81d8ec}.global-search-meta{font-size:.8rem;color:#b3cad6}.global-search-album-cover{width:100%;height:120px;object-fit:cover;border-radius:8px;margin-bottom:10px}
.moments-toolbar{grid-template-columns:88px minmax(0,1fr) max-content;column-gap:4px}.toolbar-end{width:auto;min-width:44px}

.friend-invitation{display:grid;gap:14px}.friend-invitation .invitation-code{width:100%;box-sizing:border-box;text-align:center;font-size:2rem;font-weight:700;letter-spacing:.18em;padding:16px;border:1px solid #81d8ec;border-radius:12px;background:#172127;color:#fff;min-width:0}

/* Profile actions: two primary choices, then a quiet list of destinations. */
.profile-header .profile-own-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 16px}.profile-header .profile-own-actions>button{width:100%;min-height:46px;padding:11px 8px;font-size:.82rem;line-height:1.3;border-radius:12px;box-sizing:border-box}.profile-shortcuts{display:grid;border:1px solid var(--line);border-radius:14px;overflow:hidden;text-align:left}.profile-shortcut{display:flex;align-items:center;gap:12px;width:100%;min-height:50px;padding:12px 14px;background:transparent;color:var(--ink);border:0;text-align:left;font-size:.84rem;font-weight:550;line-height:1.4;box-sizing:border-box}.profile-shortcut+.profile-shortcut{border-top:1px solid var(--line)}.profile-shortcut>svg{width:19px;height:19px;flex:0 0 19px;color:var(--muted)}.profile-shortcut-label{flex:1;min-width:0;overflow-wrap:anywhere}.profile-shortcut-arrow{font-size:22px;line-height:1;color:var(--muted)}.profile-shortcut:hover{background:#ffffff08}.profile-shortcut:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}.profile-admin{margin-top:20px;text-align:left}.profile-admin h2{font-size:.7rem;letter-spacing:.07em;text-transform:uppercase;font-weight:600;color:var(--muted);margin:0 0 9px;padding-left:2px}.profile-shortcut-danger,.profile-shortcut-danger>svg{color:#ffb5c4}
.profile-header .profile-own-actions>button{white-space:nowrap;font-size:.8rem;padding-inline:6px}

html:has(#app){overscroll-behavior-y:contain}.feed-pull-refresh{position:fixed;left:50%;transform:translateX(-50%);z-index:6;display:flex;align-items:center;gap:10px;max-width:calc(100% - 28px);padding:12px 16px;border:1px solid var(--line);border-radius:24px;background:var(--paper);color:var(--ink);box-shadow:0 4px 18px #0005;font-size:.78rem;white-space:nowrap;pointer-events:none}.feed-pull-refresh[hidden]{display:none}.feed-pull-spinner{width:18px;height:18px;box-sizing:border-box;border:2px solid #81d8ec44;border-top-color:#81d8ec;border-right-color:#81d8ec;border-radius:50%;flex-shrink:0}.is-refreshing .feed-pull-spinner{animation:feed-refresh-spin .75s linear infinite}@keyframes feed-refresh-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.is-refreshing .feed-pull-spinner{animation:none}}

.suspension-select,.suspension-days{width:100%;box-sizing:border-box;min-height:46px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--back);color:var(--ink);font:inherit}.suspension-days[hidden]{display:none}.suspended-person-info{display:grid;gap:6px;min-width:0}.suspended-person-info strong{overflow-wrap:anywhere}.suspended-person-info .meta{line-height:1.5}
label[for="suspension-days"][hidden]{display:none}
