/* Qiluo mobile web — shared, restrained visual system. */
:root{--green:#3a3e44;--ink:#26282c;--muted:#929693;color-scheme:light}body{color:var(--ink);background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}button:disabled{opacity:.45;cursor:wait}svg{width:24px;height:24px;flex-shrink:0;vertical-align:middle}a{text-decoration:none}.site-header{max-width:900px;padding:18px 24px;gap:16px;background:var(--bg)}.site-header .brand{font-size:25px;letter-spacing:4px;font-weight:700}.site-header [data-search-open]{margin-left:auto;font-size:13px;padding:7px 18px;background:var(--q-surface);border:1px solid var(--line);border-radius:22px}.brand-note{font-size:12px!important}main{max-width:900px;padding:0 24px 110px}h1{font-size:23px;font-weight:650;letter-spacing:-.5px}h2{font-size:18px;font-weight:600}h3{font-size:16px}.page-heading,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.page-heading{margin:10px 0 20px}.page-heading h1{margin:0}.page-heading button,.section-heading small{color:var(--muted);font-size:12px}.section-heading h2{margin:0}.feed-tabs{display:flex;align-items:center;gap:25px;margin:12px 0 20px}.feed-tabs h1{margin:0;font-size:21px}.feed-tabs button{color:var(--muted);font-size:15px}.feed-tabs span{margin-left:auto;color:var(--muted);font-size:12px}.grid{display:block;columns:2;column-gap:12px}.feed-card{break-inside:avoid;display:inline-block;width:100%;margin:0 0 12px;padding:0;border:0;border-radius:12px;overflow:hidden;box-shadow:none;background:var(--q-surface)}.cover-button{display:block;padding:0;width:100%;border:0}.feed-photo{display:block;width:100%;max-height:none;aspect-ratio:auto;object-fit:contain;border-radius:0}.feed-card:nth-child(3n) .feed-photo{aspect-ratio:auto}.feed-copy{padding:12px}.feed-card button.title{line-height:1.55;font-weight:600;letter-spacing:0}.feed-card .excerpt{font-size:14px;line-height:1.85;color:#4d4f53;margin:8px 0;-webkit-line-clamp:7}.feed-card .meta{flex-wrap:nowrap;gap:5px}.meta>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.mini-avatar{width:20px;height:20px;font-size:10px;background:#edf0eb;color:#67696d;display:inline-grid;place-items:center;border-radius:50%;flex-shrink:0}.likes{margin-left:auto;white-space:nowrap}.nav{z-index:10;max-width:900px;margin:auto;background:#fffffff5;border-color:var(--line);backdrop-filter:blur(12px);padding:9px 12px max(9px,env(safe-area-inset-bottom));gap:0;justify-content:space-around}.nav button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;color:#97999d;font-size:11px;min-width:48px;padding:0;line-height:1.2}.nav button span{font-size:11px;display:block}.nav button.active{color:var(--green);font-weight:600}:is(.nav,.flight-compose-dock) .publish{align-self:center;min-width:46px;width:46px;height:40px;min-height:40px;border-radius:13px;background:var(--green);color:white;padding:0}.nav .publish{background:transparent;color:var(--green);box-shadow:inset 0 0 0 1.6px var(--green)}:is(.nav,.flight-compose-dock) .publish svg{width:26px;height:26px;display:block}.primary{background:var(--green);color:#fff;border:0;border-radius:22px;padding:10px 21px;font-size:14px;display:inline-block}.secondary{font-size:13px;border:1px solid var(--line);padding:8px 15px;border-radius:20px;background:var(--q-surface)}.group-buttons{flex-wrap:wrap;gap:10px}.group-buttons button{font-size:13px;white-space:nowrap}.card{box-shadow:none}.empty{padding:44px 20px;background:transparent}.empty h2{font-size:18px;color:var(--ink)}.empty p{font-size:13px}.joined-section{padding:20px;background:var(--q-surface);border-radius:16px}.joined-strip{display:flex;gap:18px;overflow-x:auto;padding:20px 0 4px;scrollbar-width:none;scroll-snap-type:x proximity}.joined-strip::-webkit-scrollbar{display:none}.joined-strip>button{width:56px;flex:0 0 56px;padding:0;display:flex;flex-direction:column;align-items:center;gap:9px;scroll-snap-align:start;font-size:11px;line-height:1.4}.joined-strip>button>span:last-child{width:64px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.group-avatar{width:48px;height:48px;display:inline-grid;place-items:center;border-radius:50%;font-size:19px;font-weight:500;flex-shrink:0;border:0}.add-group{background:#f5f6f4;border:1px dashed #d0d2d6;color:#919397}.square-heading{margin:30px 0 12px}.group-square{background:var(--q-surface);border-radius:16px;padding:0 16px}.group-row{display:flex;gap:13px;align-items:center;padding:20px 0;border-bottom:1px solid var(--line)}.group-row:last-child{border:0}.group-row>div{flex:1;min-width:0}.group-name{font-size:15px;font-weight:600;text-align:left;padding:0}.group-row p{font-size:12px;color:#838589;margin:5px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.group-row small{font-size:10px;color:#a1a3a7}.join-pill{white-space:nowrap;padding:5px 13px;border:1px solid #e0e2e6;border-radius:18px;font-size:12px;color:var(--green)}.group-intro{padding:0 0 14px}.group-intro p{font-size:14px;color:#77797d}.notice-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);background:var(--q-surface);border-radius:16px;padding:24px 8px;margin-bottom:20px}.notice-shortcuts button{display:grid;justify-items:center;gap:11px;font-size:12px}.notice-shortcuts button>span{display:grid;place-items:center;position:relative;width:48px;height:48px;background:#f0f3ef;border-radius:16px;color:#696b6f}.notice-shortcuts b,.conversation>b{border-radius:12px;background:var(--green);color:white;min-width:18px;font-size:10px;padding:1px 5px}.notice-shortcuts b{position:absolute;right:-8px;top:-5px}.conversation-list{background:var(--q-surface);border-radius:16px;padding:0 16px}.conversation{display:flex;gap:13px;text-align:left;align-items:center;border-bottom:1px solid var(--line);width:100%;padding:19px 0}.conversation:last-child{border:0}.conversation>span:not(.avatar){flex:1;min-width:0}.conversation strong{font-size:14px;font-weight:550}.conversation small{display:block;font-size:12px;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:4px}.avatar{width:36px;height:36px;border-radius:50%;display:inline-grid;place-items:center;flex-shrink:0;background:#edf0eb;color:#696b6f;font-size:14px}.notice-row{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}.notice-row button{color:var(--green);font-size:12px}.chat-thread{display:flex;flex-direction:column;gap:12px;min-height:35vh;padding-bottom:25px}.chat-bubble{align-self:flex-start;background:var(--q-surface);padding:10px 15px;max-width:80%;border-radius:14px;margin:0;white-space:pre-wrap}.chat-bubble.outgoing{align-self:flex-end;background:#eaecf0}.profile-hero{background:linear-gradient(180deg,#e8eaee 0%,#eff2ed 40%,#f6f7f5 100%);border:0;border-radius:18px;padding:24px;text-align:left;box-shadow:none}.profile-avatar{width:60px;height:60px;font-size:24px;display:grid;place-items:center;background:var(--q-surface);border-radius:50%;margin:0}.profile-hero h1{margin:15px 0 5px}.profile-hero p{font-size:13px;color:#808286}.profile-hero .group-buttons{margin-top:20px}.profile-hero .group-buttons a{font-size:12px}.badge{font-size:10px;background:#eef0f4;font-weight:400;padding:3px 7px}dialog{background:var(--bg);border:0;box-shadow:0 20px 100px #24262a30}dialog::backdrop{background:#1c1e2266;backdrop-filter:blur(3px)}dialog>header{background:inherit;padding:0 12px 0 4px;height:44px;min-height:44px;border:0;box-shadow:none;flex-direction:row-reverse;justify-content:flex-end;gap:4px}dialog>header h2{font-size:17px;font-weight:550;line-height:1.4;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}dialog>header button{padding:4px;display:grid;place-items:center;border:0;min-width:36px;min-height:36px;background:none}#dialog-body{padding:4px 16px 20px}label{font-size:13px}input,select,textarea{font-size:15px;border-color:var(--line);border-radius:10px;background:var(--q-surface);box-shadow:none}textarea{min-height:130px}input:focus,textarea:focus,select:focus{outline:1px solid #afb1b5;outline-offset:1px}input[type=checkbox]{accent-color:var(--green)}.notice{background:#eff1f5;color:#6e7074;border:0;border-radius:10px;font-size:12px}.body-text{font-size:15px;line-height:1.95}.note-detail>header{border-bottom:0}.note-author{display:flex;align-items:center;gap:10px;padding:5px 18px 16px}.note-author>button{font-size:14px;font-weight:550;padding:0}.more-menu{margin-left:auto;position:relative}.more-menu summary{list-style:none;cursor:pointer;padding:5px}.more-menu summary::-webkit-details-marker{display:none}.more-menu>div{position:absolute;right:0;top:38px;width:150px;background:var(--q-surface);box-shadow:0 4px 24px #1f212520;border-radius:12px;padding:8px}.more-menu button{display:block;padding:10px;width:100%;font-size:13px;text-align:left;white-space:nowrap}.post-photos{gap:0;scroll-snap-type:x mandatory;scrollbar-width:none;background:#f4f5f2}.post-photos figure{margin:0;position:relative;flex:0 0 100%;scroll-snap-align:start}.post-photos img{display:block;width:100%;max-width:100%;max-height:66dvh;object-fit:contain;border-radius:0}.post-photos figcaption{position:absolute;bottom:12px;right:15px;border-radius:20px;padding:2px 9px;background:#0005;color:white;font-size:11px}.note-meta{display:flex;flex-wrap:wrap;color:#9c9ea2;align-items:center}.note-meta button{background:#eff1f5;color:#6f7175;border-radius:15px;padding:4px 10px;font-size:11px}.similar-link{color:#838589;padding:0}.comments-section>h3{border-top:1px solid var(--line);margin-top:10px}.comment{display:flex;border:0}.comment .avatar{width:30px;height:30px;font-size:12px}.comment-copy{flex:1;min-width:0}.comment-copy strong{font-size:12px;color:#8e9094;font-weight:400}.comment-copy p{font-size:14px}.comment-copy button,.comment-menu summary{font-size:11px;color:#95979b;padding:0;margin-right:15px}.comment-menu{display:inline-block}.comment-menu summary{cursor:pointer;list-style:none}.empty-comments{padding:20px 8px 30px;color:#a1a3a7;font-size:12px;text-align:center}.note-bottom{position:sticky;bottom:0;display:flex;align-items:center;gap:13px;background:#fffffff5;backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:12px 18px max(12px,env(safe-area-inset-bottom));margin-bottom:-90px;z-index:4}.note-bottom form{display:flex;align-items:center;flex:1;min-width:0;position:relative;margin:0;background:#f3f5f2;border-radius:22px}.note-bottom input{border:0;background:transparent;min-width:0;width:100%;padding:11px 12px;font-size:13px}.note-bottom form>button{font-size:12px;color:var(--green);white-space:nowrap;padding:9px 10px 9px 0}.note-bottom .form-error:not(:empty){position:absolute;bottom:100%;padding:10px;background:var(--q-surface);border:1px solid var(--line);border-radius:8px;font-size:12px;min-width:230px}.icon-action{padding:0;display:flex;align-items:center;gap:4px;min-height:40px}.icon-action small{font-size:11px}.is-liked{color:#d65c66}.is-liked svg{fill:currentColor}.is-saved{color:var(--green)}.is-saved svg{fill:#dddfe3}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.login-prompt{height:auto!important;max-width:340px!important;border-radius:20px!important;padding:28px!important;margin:auto!important;text-align:center}.login-prompt>button{display:block;margin:18px auto 0;font-size:13px;color:#8a8c90}#status{font-size:13px;max-width:calc(100vw - 40px);width:max-content;text-align:center;bottom:95px;background:#35373bef;border-radius:22px;box-shadow:0 3px 20px #0001}.photo-picker{background:#eef2ec;border:1px dashed #cfd1d5;border-radius:12px;font-size:14px}.compose-title input,.compose-body textarea{background:transparent;border:0;padding:12px 0}.compose-title input{font-weight:600}.compose-body textarea{min-height:180px}.compose-emoji{display:flex;gap:12px}.form-error{font-size:12px}details>summary{cursor:pointer}.group-intro details>button{display:block;padding:7px}
@media(max-width:650px){.site-header{padding:15px 18px}.site-header .brand{font-size:24px}.site-header .brand-note{display:none}main{padding:0 14px 100px}.feed-tabs{padding:0 4px}.feed-tabs span{display:none}.feed-tabs h1{font-size:20px}.grid{column-gap:10px}.feed-card{margin-bottom:10px}.feed-copy{padding:10px}.feed-card button.title{font-size:14px}.joined-section{padding:18px 15px}.joined-strip{gap:17px}.page-heading{padding:0 4px}.group-row{gap:11px}.group-row .group-avatar{width:43px;height:43px;font-size:17px}.group-name{font-size:14px}.group-square{padding:0 14px}.join-pill{padding:5px 11px}.note-detail{overflow:auto}.note-detail #dialog-body{flex-direction:column}.note-bottom{margin-top:auto}.note-detail .post-photos{flex-shrink:0}.group-buttons{gap:8px}.profile-hero{padding:22px 18px}.row{flex-wrap:wrap}.note-bottom form{flex-wrap:nowrap}.chat-thread+form input{flex:1}.chat-thread+form .form-error{width:100%}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}.profile-tabs button{position:relative;color:#989a9e;font-size:15px}.profile-tabs .active{color:var(--green);font-weight:600}.profile-tabs .active:after{content:'';position:absolute;bottom:0;left:0;width:24px;height:2px;background:var(--green)}.profile-tabs small{display:block;font-weight:400;color:#a6a8ac}.profile-stats{display:flex;gap:25px;font-size:11px;color:#95979b;margin:22px 0}.profile-stats b{font-size:17px;color:#45474b;font-weight:600;margin-right:3px}.profile-hero{position:relative;overflow:hidden;isolation:isolate}.profile-content{position:relative;z-index:1}.profile-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.with-background:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#f6f7f522 0%,#f6f7f566 22%,#f6f7f5c9 52%,#f6f7f5f5 80%,#f6f7f5 100%);z-index:-1}.profile-top{display:flex;justify-content:space-between;align-items:center}.profile-face{width:62px;height:62px;position:relative;overflow:hidden;border:2px solid #ffffffcc;font-size:23px}.profile-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.profile-note{position:relative;break-inside:avoid;display:inline-block;width:100%;margin:0 0 12px}.profile-note .feed-card{margin:0}.post-state{display:block;font-size:10px;color:#94969a;padding:5px 10px}.pin-label{position:absolute;left:9px;top:9px;background:#3a3e44db;color:white;border-radius:5px;padding:2px 7px;font-size:10px;z-index:1}.load-more{display:block;margin:20px auto;font-size:13px;color:#7f8185}.settings-list{display:grid;gap:0;background:var(--q-surface);border-radius:14px;overflow:hidden}.settings-list a,.settings-list button{padding:14px 16px;border-bottom:1px solid var(--line);text-align:left;font-size:15px}.joined-strip.fade-right{mask-image:linear-gradient(to right,#000 88%,transparent)}.joined-strip.fade-left{mask-image:linear-gradient(to right,transparent,#000 12%)}.joined-strip.fade-left.fade-right{mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent)}
.site-header .brand,.site-header .brand-note{font-family:inherit}.feed-card .feed-photo{height:auto}.feed-tabs{border:0}.excerpt-button{display:block;text-align:left;padding:0;width:100%;white-space:pre-wrap}.comment .profile-face{width:30px;height:30px;font-size:12px}.note-detail #dialog-body{padding-bottom:0}.note-detail .note-bottom{margin-bottom:0}.note-detail .comments-section{padding-bottom:12px}.note-bottom{flex-shrink:0}
/* Batch 27: equal navigation columns place the publish control at viewport centre. */
.nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;justify-items:center;column-gap:0;padding-left:12px;padding-right:12px}
.nav>button{min-width:0;width:100%;justify-self:center}
:is(.nav,.flight-compose-dock)>.publish{grid-column:3;grid-row:1;justify-self:center;width:46px;min-width:46px;margin:0;display:grid;place-items:center;line-height:1}
.nav>[data-view="home"]{grid-column:1;grid-row:1}.nav>[data-view="groups"]{grid-column:2;grid-row:1}.nav>[data-view="message"]{grid-column:4;grid-row:1}.nav>[data-view="me"]{grid-column:5;grid-row:1}
.group-logo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 10px;padding:24px 12px;background:white;border-radius:16px}
.group-tile{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;padding:0;border:0;background:transparent}
.group-tile .group-avatar{width:48px;height:48px;border-radius:15px;font-size:20px;background:#ebedf1;color:#5c5e62}
.group-tile:nth-child(3n+2) .group-avatar{background:#f0f0eb;color:#747867}.group-tile:nth-child(3n) .group-avatar{background:#e9eeee;color:#6f7175}
.group-tile-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;max-width:100%;text-align:center}
.group-logo-grid>.empty{grid-column:1/-1}.group-introduction{text-align:center;padding:4px 0 12px}.group-introduction>.group-avatar{width:64px;height:64px;border-radius:20px;font-size:25px}.group-introduction h1{margin:12px 0 6px;font-size:21px}.group-introduction>p{white-space:pre-wrap;line-height:1.7;font-size:15px;color:#7b7d81;margin:12px 0}.intro-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:16px}.intro-actions>p{flex-basis:100%;margin:0 0 8px}
@media(min-width:650px){.group-logo-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:30px 20px;padding:30px 20px}.group-tile .group-avatar{width:56px;height:56px}}
@media(max-width:340px){.group-logo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Batch 27 fix 2: direct profile photo editing and aligned tabs. */
.profile-hero:not(.with-background){background:linear-gradient(180deg,#3a3e44 0%,#5c5e62 12%,#929498 25%,#ccced2 38%,#e6e8ec 54%,#f1f4ef 74%,#f6f7f5 100%)}
.own-profile .profile-background-edit{position:absolute;inset:0;z-index:0;width:100%;height:100%;padding:0;border:0;background:transparent;border-radius:inherit;cursor:pointer}
.profile-background-edit span{position:absolute;top:24px;right:62px;padding:4px 10px;border-radius:20px;background:#32343866;color:#fff;font-size:11px;line-height:24px}
.own-profile .profile-content{pointer-events:none}
.own-profile .profile-content button,.own-profile .profile-content a{pointer-events:auto}
.profile-avatar-edit{display:inline-flex;padding:0;border:0;background:transparent;border-radius:50%;line-height:1}
.own-profile [data-profile-settings]{color:#fff;background:#32343844;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;padding:0}
.profile-avatar-edit:focus-visible,.profile-background-edit:focus-visible{outline:none;outline-offset:-4px}
.profile-tabs{display:flex}
.profile-tabs button{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:3px;line-height:22px;white-space:nowrap}
.profile-tabs small{font-size:10px;line-height:16px}

/* Compact note reading: one author header, nearby discussion, persistent action bar. */
.note-detail{height:min(92dvh,900px);overflow:hidden;display:flex;flex-direction:column}
.note-detail:not([open]){display:none}
.note-detail>header{flex:0 0 auto;position:relative;flex-direction:row;padding:8px 14px;min-height:54px;gap:8px}
.note-detail>header>h2{display:none}
.note-detail>header>.note-author{padding:0;flex:1;min-width:0;gap:9px}
.note-author .profile-face{width:32px;height:32px;font-size:13px}
.note-detail #dialog-body{min-height:0;overflow-y:auto;flex:1;display:block;padding:0;background:var(--q-surface)}
.note-detail .post-photos:empty{display:none}
.note-detail .post-photos img{max-height:55dvh}
.note-copy{padding:13px 16px 8px}
.note-copy h1{font-size:18px;line-height:1.45;margin:0 0 6px}
.note-copy p{margin:0 0 8px;line-height:1.7}
.note-copy p:empty{display:none}
.note-meta{gap:8px;font-size:11px}
.similar-link{margin:8px 0 0;font-size:11px}
.comments-section{padding:0 16px 12px}
.comments-section>h3{font-size:14px;margin:4px 0 10px;padding-top:12px}
.comment-invite{width:100%;display:flex;align-items:center;gap:9px;padding:0;margin:0 0 8px;text-align:left}
.comment-invite>span:not(.avatar){flex:1;padding:9px 12px;background:#f3f5f2;border-radius:20px;color:#909296;font-size:12px}
.comment-invite>.avatar{width:28px;height:28px;font-size:12px}
.comment-invite>svg{width:18px;height:18px;color:#909296}
.comments-section .empty-comments{padding:8px 0;margin:0;font-size:11px}
.comment{padding:9px 0;gap:9px}
.comment-copy p{margin:4px 0;line-height:1.65}
.note-detail .note-bottom{margin:0;position:sticky;bottom:0;padding:8px 14px max(8px,env(safe-area-inset-bottom));gap:11px}
.feed-like{display:inline-flex;align-items:center;gap:3px;justify-content:flex-end;min-width:34px;min-height:32px;padding:4px 0;flex-shrink:0}
.feed-like svg{width:17px;height:17px}.feed-like small{font-size:11px}
@media(max-width:650px){.note-detail{height:100dvh;max-height:100dvh}.note-detail #dialog-body{min-height:0;display:block}.note-detail .note-bottom{margin-top:0}}

.feed-tabs [data-hometab]{font-size:18px;padding:5px 0;position:relative}.feed-tabs [data-hometab].selected{color:var(--green);font-weight:650}.feed-tabs [data-hometab].selected:after{content:"";position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:18px;height:2px;background:var(--green);border-radius:2px}

/* Batch 27 fix 5: centered single-row home navigation, compact two-column feed. */
.home-tabs[hidden]{display:none}
.home-view .site-header{position:sticky;top:0;z-index:8;display:grid;grid-template-columns:60px minmax(0,1fr) 60px;align-items:center;gap:0;height:52px;padding:0 12px;background:#f6f7f5f5;backdrop-filter:blur(12px)}
.home-view .site-header .brand{font-size:19px;letter-spacing:2px;justify-self:start}
.home-view .brand-note{display:none}
.home-tabs{display:flex;justify-content:center;align-items:center;height:100%;min-width:0}
.home-tabs button{position:relative;height:100%;padding:0 2px;font-size:17px;color:#97999d;white-space:nowrap}
.home-tabs button.selected{color:var(--green);font-weight:650}
.home-tabs button.selected:after{content:"";position:absolute;bottom:7px;left:50%;transform:translateX(-50%);width:18px;height:2px;border-radius:2px;background:var(--green)}
.home-view .site-header [data-search-open]{justify-self:end;margin:0;padding:0;width:40px;height:40px;display:grid;place-items:center;border:0;background:transparent;border-radius:50%}
.home-view .site-header [data-search-open] svg{width:20px;height:20px}
.home-view .feed-card{border-radius:7px}
.home-view .feed-photo{aspect-ratio:3/4}
.home-view .feed-card:nth-child(3n) .feed-photo{aspect-ratio:auto}
.home-view .feed-card button.title{font-size:14px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-view .feed-card .meta{gap:4px;align-items:center}
.home-view .mini-avatar{width:18px;height:18px;font-size:10px}
.home-view .feed-card .excerpt{margin:4px 0;font-size:14px;line-height:1.65}
@media(min-width:651px){.home-view main{padding-left:12px;padding-right:12px}.home-view .grid{column-gap:10px}.home-view .feed-card{margin-bottom:10px}}
@media(max-width:340px){.home-view .site-header{grid-template-columns:48px minmax(0,1fr) 48px}}

/* Focused note editor: photo strip, writing canvas, quiet setting rows. */
.live-composer{height:min(92dvh,900px);overflow:hidden;background:var(--bg)}
.live-composer>header{border:0;background:var(--bg)}
.live-composer>header h2{font-size:15px;font-weight:500}
.live-composer #dialog-body{padding:0;overflow:hidden}
.note-editor{height:100%;display:flex;flex-direction:column;margin:0}
.editor-content{flex:1;min-height:0;overflow:auto;padding:12px 16px 18px}
.compose-photo-strip,#compose-photos{display:flex;gap:10px;align-items:center}
.compose-photo-strip{overflow-x:auto;padding-bottom:6px;min-height:84px}
#compose-photos:empty{display:none}
.compose-photo{position:relative;width:76px;height:76px;flex:0 0 76px}
.compose-photo img{display:block;width:100%;height:100%;object-fit:cover;border-radius:10px}
.compose-photo button{position:absolute;right:3px;top:3px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#0008;color:#fff;padding:3px}
.compose-photo button svg{width:16px;height:16px}
.compose-photo small{position:absolute;left:4px;bottom:4px;background:#0007;color:white;padding:0 5px;border-radius:4px;font-size:9px}
#add-note-photo{width:76px;height:76px;flex:0 0 76px;border:1px solid #e1e3e7;background:#eef1ec;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#8d8f93}
#add-note-photo[hidden]{display:none}#add-note-photo svg{width:30px;height:30px}#add-note-photo small{font-size:10px}
.note-editor .compose-title,.note-editor .compose-body{margin:0}
.note-editor .compose-title input{width:100%;padding:14px 0 9px;font-size:19px;font-weight:550;line-height:1.5;border:0;background:transparent;border-radius:0}
.note-editor .compose-body textarea{display:block;width:100%;min-height:180px;height:26dvh;max-height:420px;padding:5px 0 12px;font-size:16px;line-height:1.75;border:0;background:transparent;resize:vertical;border-radius:0}
.note-editor input::placeholder,.note-editor textarea::placeholder{color:#a5a7ab}
.topic-picker{padding:8px 0 14px}
.topic-picker summary{display:inline-block;list-style:none;padding:5px 12px;border-radius:18px;background:#eaecf0;font-size:13px;color:#65676b}
.topic-picker summary::-webkit-details-marker{display:none}.topic-picker input{display:block;width:100%;margin-top:10px;font-size:14px}
.editor-options{border-top:1px solid var(--line)}
.note-editor .editor-option{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;margin:0;border-bottom:1px solid var(--line);font-size:14px}
.editor-option>span{display:flex;align-items:center;gap:9px;white-space:nowrap}.editor-option svg{width:19px;height:19px;color:#76787c}
.note-editor .editor-option select{width:auto;max-width:55%;margin:0;border:0;background:transparent;padding:8px 0;font-size:13px;color:#898b8f;text-align:right}
.editor-option input[role=switch]{appearance:none;position:relative;flex:0 0 36px;width:36px;height:22px;border:0;border-radius:20px;background:#d9dbdf;padding:0;margin:0;cursor:pointer}
.editor-option input[role=switch]:before{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--q-surface);transition:transform .15s}
.editor-option input[role=switch]:checked{background:var(--q-toggle-on,#0fa386)}.editor-option input[role=switch]:checked:before{transform:translateX(14px)}
.editor-footer{flex:0 0 auto;display:grid;grid-template-columns:1fr 2.2fr;gap:10px;padding:10px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--bg)}
.editor-footer .form-error{grid-column:1/-1}.editor-footer .form-error:empty{display:none}
.editor-footer button{height:42px;border-radius:24px;font-size:15px}.draft-button{border:1px solid #dbdde1;color:#75777b;background:transparent}
.restore-draft{font-size:12px;color:var(--green);padding:8px 0}
.home-view .feed-card{vertical-align:top}.home-view .grid{line-height:0}.home-view .feed-card{line-height:1.5}
@media(max-width:650px){.live-composer{height:100dvh;max-height:100dvh}.live-composer #dialog-body{padding:0}.editor-content{padding-top:8px}}

/* Batch 27 fix 7: text-only entry, drafts and original cover proportions. */
.live-composer>header h2{display:none}.live-composer>header{height:40px;min-height:40px;padding:2px 10px;justify-content:flex-end}
.live-composer>header button{width:36px;height:36px}.live-composer>header button svg{width:21px;height:21px}
.live-composer #dialog-body{height:calc(100% - 40px)}
.note-editor .compose-title input,.note-editor .compose-body textarea,.note-editor .compose-title input:focus,.note-editor .compose-body textarea:focus,.note-editor .compose-title input:focus-visible,.note-editor .compose-body textarea:focus-visible{outline:none;border:0!important;box-shadow:none!important;-webkit-appearance:none;appearance:none}
.note-editor.text-only .compose-photo-strip{display:none}
.note-editor.text-only .compose-body textarea{min-height:240px;height:38dvh}
.profile-tools{padding:8px 4px 0}.profile-tools button{font-size:12px;padding:5px 13px}
.draft-scope{font-size:12px;color:#8e9094}.draft-list article{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}
.draft-list article>button:first-child{flex:1;text-align:left;min-width:0;padding:0}.draft-list strong{font-size:15px}.draft-list p{font-size:13px;color:#86888c;margin:5px 0;overflow-wrap:anywhere}.draft-list small{font-size:11px;color:#9b9da1}.draft-list article>button:last-child{padding:8px}
.home-view .feed-card .feed-photo,.home-view .feed-card:nth-child(3n) .feed-photo{aspect-ratio:auto;height:auto;max-height:none;object-fit:contain}
:is(.nav,.flight-compose-dock) .publish{-webkit-touch-callout:none;user-select:none;touch-action:manipulation}

/* Round 28: shared compact layout; groups follow the agreed joined/square design. */
html,body{width:100%;min-width:0;margin:0}*,*:before,*:after{box-sizing:border-box}
main,.site-header,.nav{width:100%;max-width:900px;min-width:0}
body.home-view .site-header,body.groups-view .site-header,body.messages-view .site-header{position:sticky;top:0;z-index:8;display:grid;grid-template-columns:52px minmax(0,1fr) 52px;align-items:center;gap:0;height:48px;padding:0 12px;background:#f6f7f5f5;backdrop-filter:blur(12px)}
body:is(.home-view,.groups-view,.messages-view) .site-header .brand{font-size:18px;letter-spacing:2px;justify-self:start}
body:is(.home-view,.groups-view,.messages-view) .brand-note{display:none}
body:is(.home-view,.groups-view,.messages-view) .site-header [data-search-open]{justify-self:end;margin:0;padding:0;width:40px;height:40px;display:grid;place-items:center;border:0;background:transparent;border-radius:50%}
.site-header [data-search-open] svg{width:21px;height:21px}.home-tabs{gap:24px}.home-tabs h1{font-size:17px;font-weight:600;margin:0}
.home-view main{padding:4px 6px 88px}.home-view .grid{columns:2;column-gap:6px;min-width:0;width:100%}
.feed-card,.feed-copy,.feed-card .meta{min-width:0;max-width:100%}.feed-card .meta>span:nth-child(2){min-width:0}
.home-view .feed-copy{padding:6px 8px 4px}.home-view .feed-card .meta{margin-top:3px;line-height:20px}.home-view .feed-like{min-height:28px;padding:2px 0}.home-view .feed-like svg{width:16px;height:16px}
.home-view .feed-card{margin-bottom:6px}.feed-photo{min-width:0;max-width:100%}.cover-button{min-width:0;max-width:100%}
.groups-view main,.messages-view main{padding:0 14px 88px}
.groups-view .joined-section{padding:6px 0 10px;background:transparent;border-radius:0;border-bottom:1px solid var(--line)}
.groups-view .joined-strip{padding:4px 0;gap:16px}
.groups-view .joined-strip>button{width:54px;flex:0 0 54px;gap:6px;font-size:11px}
.groups-view .joined-strip .group-avatar{width:42px;height:42px;font-size:17px;background:#e8eaee}
.groups-view .joined-strip .selected .group-avatar{outline:1.5px solid var(--green);outline-offset:3px}
.groups-view .joined-strip .selected>span:last-child{color:var(--green);font-weight:600}
.group-search{display:flex;align-items:center;gap:8px;height:36px;background:#ebefea;border-radius:20px;margin:8px 0 0;padding:0 12px}
.group-search svg{width:17px;height:17px;color:#909296}.group-search input{width:100%;min-width:0;margin:0!important;padding:0;border:0;background:transparent;font-size:13px;outline:none}
.group-utilities,.message-utilities{display:flex;justify-content:flex-end;gap:16px;padding:8px 0;font-size:11px;color:#909296}
.group-utilities button,.message-utilities button{font-size:11px;padding:2px 0}
.groups-view .group-logo-grid{grid-template-columns:repeat(4,minmax(0,1fr));background:transparent;border-radius:0}
.groups-view .group-tile[hidden]{display:none}.groups-view .group-tile .group-avatar{border-radius:50%;font-size:19px}
.group-feed-toolbar{display:flex;align-items:center;justify-content:space-between;height:32px;font-size:12px;color:#77797d}.group-feed-toolbar button{padding:4px}.group-feed-toolbar svg{width:20px;height:20px}
.group-rule-inline{font-size:12px;color:var(--green);padding:6px 0}
.group-pins button{display:flex;align-items:center;gap:9px;width:100%;text-align:left;padding:8px 0;font-size:13px;border-bottom:1px solid var(--line)}.group-pins span{font-size:10px;padding:1px 5px;border-radius:3px;background:var(--green);color:white}.group-pins b{margin-left:auto;font-weight:400}
.group-post-row{border-bottom:1px solid var(--line)}.group-post-author{display:flex;gap:8px;align-items:center}.group-post-author .profile-face{width:32px;height:32px;font-size:13px}
.group-post-author>button{text-align:left;padding:0}.group-post-author strong{font-weight:550}.group-post-author small{display:block;color:#97999d}.group-post-author .group-post-more{margin-left:auto}
.group-post-copy{display:block;text-align:left}.group-post-copy strong{font-weight:550}.group-post-copy p{white-space:pre-wrap;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
.group-post-photo{display:block;margin-left:40px;padding:0}.group-post-photo img{display:block;max-width:100%;border-radius:6px}
.group-post-actions{display:flex;justify-content:flex-end;margin-top:6px}.group-post-actions svg{width:19px;height:19px}
.messages-view .notice-shortcuts{padding:8px 0 14px;margin:0;border-radius:0;background:transparent;border-bottom:1px solid var(--line)}
.messages-view .notice-shortcuts button{gap:6px;font-size:11px}.messages-view .notice-shortcuts button>span{width:34px;height:34px;border-radius:11px}.messages-view .notice-shortcuts svg{width:20px;height:20px}
.messages-view .conversation-list{padding:0;border-radius:0;background:transparent}.messages-view .conversation{min-height:62px;padding:11px 0;gap:11px}.messages-view .conversation .avatar{width:36px;height:36px}
.messages-view .conversation strong{font-size:14px}.messages-view .conversation small{margin-top:2px;font-size:12px}.messages-view .empty-comments{padding:18px 0;font-size:11px}
@media(max-width:340px){.home-tabs{gap:18px}.home-tabs button{font-size:15px}.groups-view main,.messages-view main{padding-left:12px;padding-right:12px}}

/* Avoid iOS focus zoom on small form text while preserving pinch zoom. */
@media(max-width:650px){input:not([type=checkbox]):not([type=range]),textarea,select,.group-search input,.note-editor .editor-option select,.note-bottom input{font-size:16px}}

/* Batch 28 fix 1: native-feeling photo preview and gesture cropping. */
#dialog.photo-viewer,#dialog.photo-cropper{background:#191a1c;color:#f7f7f7;height:100dvh;max-height:100dvh;overflow:hidden;flex-direction:column;border:0;border-radius:0;padding:0}
#dialog.photo-viewer[open],#dialog.photo-cropper[open]{display:flex}
#dialog:is(.photo-viewer,.photo-cropper)>header{background:transparent;border:0;height:48px;min-height:48px;padding:0 12px;flex:none}
#dialog:is(.photo-viewer,.photo-cropper)>header h2{display:none}
#dialog.photo-cropper>header{display:none}
#dialog:is(.photo-viewer,.photo-cropper) #dialog-body{padding:0 16px;flex:1;min-height:0;display:flex;flex-direction:column;background:transparent;color:inherit;overflow:hidden}
.photo-preview-stage,.gesture-crop-stage{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;overflow:hidden}
.current-photo{width:min(100%,400px);aspect-ratio:1;background:linear-gradient(#3a3e44,#8b8d91);display:grid;place-items:center;overflow:hidden;font-size:64px}
.current-photo.round{border-radius:50%}.current-photo.wide{width:100%;aspect-ratio:2/1;border-radius:0}
.current-photo img{display:block;width:100%;height:100%;object-fit:cover}
.photo-preview-actions{flex:none;padding:16px 8px max(20px,env(safe-area-inset-bottom))}
#choose-profile-photo{width:100%;display:flex;justify-content:space-between;align-items:center;border-radius:14px;background:#292a2c;padding:16px;color:white;font-size:16px}
#profile-photo-file[hidden]{display:none!important}
#crop-preview{display:block;width:min(100%,65dvh);height:auto;aspect-ratio:1;max-height:100%;object-fit:contain;touch-action:none;user-select:none;background:#202224;cursor:grab;outline:none;border:1px solid #ffffff66}
#crop-preview.round{border-radius:50%}#crop-preview.wide{width:100%;aspect-ratio:2/1;border-radius:0}
.crop-hint{text-align:center;color:#b0b1b3;font-size:12px;margin:8px 0}
.photo-error{color:#edb4ac;font-size:13px;text-align:center;margin:0}.photo-error:empty{display:none}
.crop-actions{display:flex;align-items:center;justify-content:space-between;flex:none;padding:18px 0 max(18px,env(safe-area-inset-bottom))}
.crop-actions button{color:white;font-size:16px;min-height:44px;padding:8px 18px;border:0;background:transparent}
#save-photo-crop{background:#4d4f53;border-radius:24px;min-width:76px}
#dialog #close-dialog{width:44px;height:44px;min-width:44px;min-height:44px;padding:11px;display:grid;place-items:center;border:0;box-shadow:none;background:transparent;border-radius:50%;outline:none}
#dialog #close-dialog svg{width:20px;height:20px}
#dialog #close-dialog:focus-visible{outline:none;outline-offset:-5px}
#dialog:is(.photo-viewer,.photo-cropper) #close-dialog{color:white}
#dialog.note-detail>header{height:50px;min-height:50px;padding:0 10px 0 2px;gap:4px}
#dialog.note-detail .note-author .profile-face{width:30px;height:30px}
#dialog.note-detail .note-author>button{font-size:15px}
#dialog.note-detail .note-copy{padding:12px 14px 8px}
#dialog.note-detail .note-copy h1{font-size:18px;line-height:1.45}
#dialog.note-detail .body-text{font-size:16px;line-height:1.65}
#dialog.note-detail .note-meta,#dialog.note-detail .similar-link{font-size:12px}
#dialog.note-detail .comments-section{padding:0 14px 12px}
#dialog.note-detail .comments-section h3{font-size:15px;margin:4px 0 10px}
#dialog.note-detail .empty-comments{font-size:13px;padding:12px 0;color:#86888c}
#dialog.note-detail>.note-bottom{position:relative;flex:none;width:100%;padding:8px 12px max(8px,env(safe-area-inset-bottom));margin:0;min-height:0;background:var(--q-surface);border-top:1px solid #eceeec}
#dialog.note-detail .note-bottom input{font-size:16px;min-width:0}

#dialog:focus{outline:none}

/* Batch 29: reference composer and group directory. */
:root{--bg:#fafbfc;--line:#e9edf0}
body.groups-view,body.groups-view main{background:var(--q-surface)}
body.groups-view .site-header{background:var(--q-surface)}
body.groups-view .site-header .brand{visibility:hidden}
body.groups-view .site-header [data-search-open][hidden]{display:none}
#group-header-menu{grid-column:3;grid-row:1;justify-self:end;position:relative}
#group-header-menu summary{list-style:none;padding:10px;cursor:pointer}#group-header-menu summary::-webkit-details-marker{display:none}
#group-header-menu>div{position:absolute;right:0;top:42px;width:140px;padding:5px;background:var(--q-surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 25px #25272b14;z-index:20}
#group-header-menu button{display:block;width:100%;padding:11px;text-align:left;font-size:14px}
.groups-view .group-search{background:#eef1f4;margin:4px 0 12px;height:36px}
.group-discovery-title{font-size:14px;font-weight:500;margin:10px 0 12px;color:#444c53}
.groups-view .group-logo-grid{gap:13px 6px;padding:0 0 16px}
.groups-view .group-tile{gap:5px}.groups-view .group-tile .group-avatar{width:clamp(48px,15vw,62px);height:clamp(48px,15vw,62px)}
.group-avatar{position:relative;overflow:hidden;background:#edf1f3!important;color:#74767a}
.group-avatar>svg{width:24px;height:24px}.group-avatar img{position:absolute;inset:0;display:block;width:100%;height:100%}
.group-tile-name{font-size:12px;line-height:1.4;color:#30383e}
.new-group-avatar{display:flex;align-items:center;gap:12px;padding:12px 0;font-size:14px}.new-group-avatar>img{width:60px;height:60px;object-fit:cover;border-radius:50%}
#dialog.live-composer>header{display:grid;grid-template-columns:44px minmax(0,1fr) 52px;align-items:center;height:48px;min-height:48px;padding:0 12px;background:var(--q-surface);border-bottom:1px solid var(--line)}
#dialog.live-composer>header #close-dialog{grid-column:1;grid-row:1}
#dialog.live-composer>header #dialog-title{display:block!important;grid-column:2;grid-row:1;text-align:center;font-size:17px;font-weight:600;margin:0}
#dialog.live-composer>header #editor-preview{grid-column:3;grid-row:1;font-size:15px;color:var(--green);padding:8px 0;background:none}
#dialog.live-composer #dialog-body{padding:0;background:var(--q-surface);min-height:0;flex:1;overflow:hidden}
#dialog.live-composer .reference-editor{height:100%;display:flex;flex-direction:column;background:var(--q-surface);padding:0}
.reference-editor .editor-content{flex:1;min-height:0;overflow:auto;padding:0 16px}
.reference-editor .compose-title{margin:0!important;border-bottom:1px solid var(--line)}
.reference-editor .compose-title input{height:58px;width:100%;font-size:18px!important;font-weight:400;padding:12px 0;margin:0!important;background:none}
.reference-editor .compose-body{position:relative;margin:0!important;padding-bottom:12px}
.reference-editor .compose-body textarea{height:clamp(88px,14dvh,140px);min-height:88px;padding:14px 0 0;font-size:16px;line-height:1.65;margin:0!important;background:none}
.reference-editor #editor-expand{position:absolute;right:0;bottom:8px;font-size:12px;padding:0;color:#50595e}
.reference-editor .editor-tools{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);padding:12px 0;gap:0}
.reference-editor .editor-tools button{font-size:15px;padding:0;line-height:24px}.reference-editor .editor-tools button+button{border-left:1px solid var(--line)}
#editor-context-chips{display:flex;flex-wrap:wrap;gap:6px;font-size:12px;color:var(--green)}#editor-context-chips button,#editor-context-chips>span{background:#f0f2f6;border-radius:12px;padding:3px 8px;margin-bottom:8px}
.reference-editor .editor-options{border-top:1px solid var(--line);margin:0 -16px;padding:0 16px}
.reference-editor .editor-option{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:52px;margin:0!important;padding:12px 0;border-bottom:1px solid var(--line);font-size:15px;text-align:left;background:none}
.reference-editor .editor-option>span{display:flex;align-items:center;gap:10px}.reference-editor .editor-option>span:last-child:not(:first-child){color:#858d96;font-size:13px}
.reference-editor .editor-option small,.destination-row small{display:block;font-size:12px;color:#9198a1;margin-top:2px;font-weight:400}
.reference-editor .editor-option svg{width:21px;height:21px}
.destinations{padding:12px 0 8px;border-bottom:1px solid var(--line)}.destinations>p:first-child{font-size:14px;margin:0 0 8px}
.reference-editor .destination-row{display:flex;align-items:center;gap:13px;min-height:54px;margin:0!important;padding:6px 0;font-size:15px}
.reference-editor .destination-row input[type=checkbox]{appearance:auto!important;width:18px;height:18px;margin:0!important;accent-color:var(--green);flex:none;display:block}
#editor-group{display:flex;align-items:center;justify-content:space-between;flex:1;text-align:left;padding:0;font-size:15px}
.destination-hint{font-size:12px;color:#9198a1;margin:8px 0 0}
.reference-editor .editor-footer{position:relative;bottom:auto;flex:none;display:grid;grid-template-columns:68px minmax(0,1fr);gap:12px;padding:10px 16px max(10px,env(safe-area-inset-bottom));background:var(--q-surface);border-top:1px solid var(--line);margin:0}
.reference-editor .editor-footer .form-error{grid-column:1/-1;font-size:13px}.reference-editor .editor-footer .form-error:empty{display:none}
.reference-editor .draft-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;border-radius:0;background:none;padding:0;font-size:12px;color:#30393e}
.reference-editor .draft-button svg{width:20px;height:20px}
.reference-editor .editor-footer .primary{height:44px;align-self:center;border-radius:7px;font-size:16px;padding:8px 16px}
.reference-editor .compose-photo-strip{padding:14px 0 0;margin:0}.reference-editor.text-only .compose-photo-strip{display:none}
.reference-editor.expanded-editor .compose-title,.reference-editor.expanded-editor .compose-photo-strip,.reference-editor.expanded-editor .editor-options,.reference-editor.expanded-editor .editor-tools,.reference-editor.expanded-editor #editor-context-chips{display:none}
.reference-editor.expanded-editor .compose-body textarea{height:calc(100dvh - 210px)}
.editor-sheet{background:var(--bg);color:#2d2f33;padding:0;border:0;overflow:hidden;height:min(90dvh,850px)}
.editor-sheet[open]{display:flex;flex-direction:column}.editor-sheet>header{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;height:44px;min-height:44px;flex:none;padding:0 12px 0 4px;background:inherit}
.editor-sheet>header button{padding:10px;font-size:16px}.editor-sheet>header h2{text-align:left;font-size:17px;margin:0}
.sheet-content{overflow:auto;min-height:0;flex:1;padding:8px 16px 20px}.setting-input{width:100%;font-size:16px!important;background:#f1f4f6;border:0;border-radius:20px;padding:10px 14px}
.setting-help{font-size:12px;color:#858d95}.setting-save{float:right}
.picker-row{display:flex;align-items:center;gap:12px;width:100%;padding:13px 0;text-align:left;font-size:15px;border-bottom:1px solid var(--line)}.picker-row[hidden]{display:none}
.picker-row .group-avatar{width:40px;height:40px;flex:none}.picker-row>span:last-child,.picker-row>b{margin-left:auto}.picker-row small{display:block;font-size:12px;color:#9199a1}.picker-row b{color:var(--green)}
.editor-preview-note img{display:block;max-width:100%;height:auto;margin-bottom:8px}.editor-preview-note h1{font-size:18px}.editor-preview-note .body-text{font-size:16px}.preview-context,.published-context{display:flex;gap:8px;flex-wrap:wrap;font-size:13px;color:var(--green)}
@media(max-width:650px){.editor-sheet{height:100dvh;max-height:100dvh;width:100%;margin:0;border-radius:0}}

/* Batch 29 fix 1: compact personal page, original image ratios, comment controls. */
body.profile-view .site-header{display:none}
body.profile-view main{padding-top:0}
.own-profile.profile-hero{padding:18px 16px 12px;margin:0;border-radius:0 0 14px 14px}
.own-profile .profile-top{gap:12px}
.profile-top-actions{display:flex;align-items:center;gap:10px}
.profile-top-actions .secondary{padding:6px 14px;font-size:13px;line-height:22px;background:#ffffffe6;border-color:#ffffff66}
.own-profile .profile-face{width:56px;height:56px}
.own-profile h1{font-size:21px;line-height:1.4;margin:10px 0 4px}
.own-profile .profile-content>p{margin:4px 0 10px;line-height:1.5}
.own-profile .profile-stats{margin:10px 0 0;gap:22px;font-size:12px;flex-wrap:wrap;row-gap:4px}
.own-profile .profile-background-edit span{display:none}
.profile-tabs{gap:24px;margin:6px 0 10px;padding:0 8px;align-items:center}
.profile-tabs button{padding:8px 0}
.profile-tabs .profile-drafts{margin-left:auto;font-size:12px;color:#727478;justify-content:center}
.feed-card .feed-photo,.feed-card:nth-child(3n) .feed-photo{aspect-ratio:auto;height:auto;max-height:none;object-fit:contain}
#dialog.note-detail .note-bottom{gap:10px}
#dialog.note-detail #comment-form{gap:6px;background:transparent;border-radius:0}
#dialog.note-detail #comment-body{background:#f2f4f3;border:0;border-radius:22px;padding:10px 12px;line-height:22px;box-shadow:none;outline:none;-webkit-appearance:none;appearance:none}
#dialog.note-detail #comment-body:focus{outline:none;box-shadow:none;border:0}
#dialog.note-detail #comment-form>button[type=submit]{flex:0 0 auto;min-width:56px;height:36px;padding:0 14px;border:0;border-radius:999px;background:#3a3e44;color:#fff;font-size:14px;font-weight:500;line-height:36px;box-shadow:inset 0 1px 0 #ffffff12}
#dialog.note-detail #comment-form>button[type=submit]:active{background:#323438}
#dialog.note-detail #comment-form>button[type=submit]:focus-visible{outline:none;outline-offset:2px}

/* Batch 32: group avatar choices; independent sheet preserves creation fields. */
.new-group-avatar>span{display:block;text-align:left;font-size:14px}.new-group-avatar small{display:block;margin-top:3px;font-size:12px;color:#828488;font-weight:400}
#group-create-form>label{margin:12px 0}#group-create-form textarea{min-height:88px}#group-create-form>button[type=submit]{width:100%;margin-top:10px}
dialog.avatar-picker-dialog{width:min(100%,420px);padding:0;border-radius:18px;background:var(--bg);max-height:90dvh;overflow:hidden;height:auto}
.avatar-picker-hint{font-size:13px;color:#7f8185;margin:0 0 16px}.avatar-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 8px}.avatar-presets button{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:4px 0;background:transparent;border:0;border-radius:12px;font-size:12px;color:#787a7e}.avatar-presets img{outline:2px solid transparent;outline-offset:3px}.avatar-presets button[aria-pressed=true] img{outline-color:#515357}.avatar-presets button[aria-pressed=true]{color:#414347}.avatar-presets i{display:none;position:absolute;right:calc(50% - 30px);width:17px;height:17px;border-radius:50%;background:#515357;color:white;font:11px/17px sans-serif;text-align:center;border:1px solid #f7f8f6}.avatar-presets button[aria-pressed=true] i{display:block}.avatar-upload{display:flex;justify-content:space-between;width:100%;padding:15px 2px;margin-top:20px;border-top:1px solid #e2e4e8;border-bottom:1px solid #e2e4e8;font-size:14px}.avatar-upload span{color:#888a8e}.avatar-picker-error{font-size:13px;color:#a34736;margin:10px 0;min-height:0}.avatar-picker-error:empty{display:none}.avatar-confirm{width:100%;margin-top:18px;padding:12px}.avatar-picker button:disabled{opacity:.5;cursor:default}@media(max-width:350px){.avatar-presets img{width:48px;height:48px}.avatar-presets i{top:34px;right:calc(50% - 26px)}}
/* Batch 33: one geometry for preview and published notes. */
dialog.note-surface{height:min(92dvh,900px);overflow:hidden;flex-direction:column;background:var(--q-surface)}dialog.note-surface[open]{display:flex}dialog.note-surface:not([open]){display:none}
dialog.note-surface>header,#dialog.note-detail>header{display:flex;flex-direction:row;height:50px;min-height:50px;padding:0 10px 0 2px;gap:4px;flex:none;border-bottom:0}
dialog.note-surface>header>.note-author{padding:0;flex:1;min-width:0;gap:9px}dialog.note-surface .note-author .profile-face{width:30px;height:30px}dialog.note-surface .note-author>span:not(.profile-face),dialog.note-surface .note-author>button{font-size:15px;font-weight:550}dialog.note-surface>header>small{font-size:12px;color:#8d8f93}
dialog.note-surface .sheet-content,dialog.note-surface #dialog-body{min-height:0;overflow-y:auto;flex:1;display:block;padding:0;background:var(--q-surface)}
dialog.note-surface .post-photos:empty{display:none}dialog.note-surface .post-photos{display:flex;gap:0;overflow-x:auto;scroll-snap-type:x mandatory;background:#f4f5f2}dialog.note-surface .post-photos figure{flex:0 0 100%;margin:0;position:relative;scroll-snap-align:start}dialog.note-surface .post-photos img{display:block;width:100%;height:auto;max-width:100%;max-height:55dvh;object-fit:contain;border-radius:0}
dialog.note-surface .note-copy,#dialog.note-detail .note-copy{padding:12px 14px 8px}dialog.note-surface .note-copy h1,#dialog.note-detail .note-copy h1{font-size:18px;line-height:1.45;margin:0 0 12px}dialog.note-surface .body-text,#dialog.note-detail .body-text{font-size:16px;line-height:1.65;margin:0 0 15px;white-space:pre-wrap;overflow-wrap:anywhere}dialog.note-surface .note-meta{font-size:12px}dialog.note-surface .published-context:empty{display:none}dialog.note-surface .published-context{margin:0 0 10px}dialog.note-surface .note-copy button:disabled{opacity:1;color:var(--green)}
.note-count{display:block;text-align:right;color:var(--q-muted);font-size:12px;line-height:1.5}.over-limit{color:#ad4242!important}.compose-body{position:relative}.compose-body textarea[readonly]{cursor:text;min-height:88px!important}.full-note-editor{position:fixed!important;inset:var(--editor-top,0px) auto auto 0!important;margin:0!important;width:100%!important;max-width:none!important;height:var(--editor-height,100dvh);max-height:var(--editor-height,100dvh)!important;border-radius:0!important}.full-note-editor>.sheet-content{display:flex;flex-direction:column;padding:12px 16px max(10px,env(safe-area-inset-bottom));overflow:hidden}.full-note-editor .full-note-text{display:block;flex:1;min-height:80px;width:100%;resize:none;border:0;background:var(--q-surface);padding:0;font-size:17px;line-height:1.7;outline:none;border-radius:0;box-shadow:none}.full-note-editor>header{grid-template-columns:44px 1fr 64px;flex:none}.full-note-done{color:var(--q-accent);font-weight:600}.full-note-count{margin:8px 0 0;flex:none}.inline-candidates{flex:0 1 auto;max-height:32dvh;overflow:auto;border:1px solid var(--q-line);border-radius:12px;padding:8px;margin-top:6px;background:#f7f9f6}.inline-candidates[hidden]{display:none}.candidate-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--q-muted)}.candidate-heading button{font-size:12px}.inline-choice{display:flex;justify-content:space-between;text-align:left;width:100%;padding:10px 8px;font-size:15px}.inline-choice small{color:var(--q-muted);font-size:12px}#editor-context-chips:empty{display:none}
.report-target{padding:12px;background:var(--q-tint);border-radius:10px;margin-bottom:14px}.report-target small{color:#86888c}.report-target p{margin:6px 0 0;overflow-wrap:anywhere}.report-category{width:100%;display:block;text-align:left;border:1px solid var(--q-line);padding:14px;border-radius:12px;margin:10px 0;background:var(--q-surface)}.report-category strong{display:block;font-size:16px}.report-category small{display:block;font-size:12px;line-height:1.6;color:var(--q-muted);margin-top:5px}.report-category[aria-pressed=true],.report-reasons button[aria-pressed=true]{border-color:#3a3e44;background:var(--q-tint);color:var(--q-accent)}.report-reasons h3{font-size:15px;margin:18px 0 10px}.report-reasons>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.report-reasons button{border:1px solid var(--q-line);border-radius:8px;padding:12px 6px;font-size:14px;text-align:center}.report-details{margin-top:18px}.report-details textarea{margin-top:8px;font-size:16px;min-height:110px}.report-upload{display:block;margin:12px 0}.report-upload input{font-size:13px;margin-top:8px;max-width:100%}.report-file-list button{display:block;font-size:12px;max-width:100%;overflow-wrap:anywhere}.report-submit{width:100%;min-height:44px;margin:10px 0}.share-heading{font-size:17px;font-weight:550;margin:0 0 12px}.share-copy{display:block;width:100%;min-height:44px}.share-url{width:100%;font-size:13px}.share-tip,.share-status{font-size:13px;color:#84868a}.group-intro>.group-buttons .more-menu{margin-left:auto}.more-menu>div{z-index:20}.note-preview button:disabled{cursor:default}
.group-avatar:has(img){border-radius:9px;background:transparent}.group-avatar img{object-fit:contain;border-radius:8px!important}.avatar-preset img{object-fit:contain!important;border-radius:8px!important}.new-group-avatar img{object-fit:contain!important;border-radius:10px!important}
@media(max-width:650px){dialog.note-surface{height:100dvh;max-height:100dvh;width:100%;max-width:100%;margin:0;border-radius:0}.report-sheet{height:100dvh}.report-sheet .sheet-content{padding:12px 16px max(16px,env(safe-area-inset-bottom))}}

.avatar-presets img{width:60px;height:68px;object-fit:contain;border-radius:9px}.avatar-presets i{top:53px}.group-avatar:has(img)>svg{visibility:hidden}

.note-surface .body-text button{display:inline;padding:0;border:0;border-radius:0;background:none;font:inherit;line-height:inherit;color:var(--green);vertical-align:baseline;text-align:inherit}

#dialog.entity-detail>header{display:flex;flex-direction:row;height:50px;min-height:50px;padding:0 12px;gap:8px}#dialog.entity-detail>header>#close-dialog{order:0}#dialog.entity-detail>header>h2{order:1;flex:1;text-align:center;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#dialog.entity-detail>header>.more-menu{order:2;margin:0;flex:none}.report-footer{flex:none;border-top:1px solid #e8ece8;background:var(--q-surface);padding:10px 16px max(12px,env(safe-area-inset-bottom))}.report-footer .report-submit{margin:0}.report-footer .form-error:empty{display:none}.report-footer .form-error{margin-bottom:8px}.report-add-files{display:flex;justify-content:space-between;align-items:center;width:100%;padding:12px;border:1px dashed #c4c6ca;border-radius:10px;color:var(--q-accent);background:#f6f9f6}.report-add-files small{font-size:12px;color:#8e9094}.report-upload input[hidden]{display:none}
/* Batch 34: readable, shared mobile actions and direct group creation. */
body.groups-view .site-header{grid-template-columns:72px minmax(0,1fr) 72px}
.groups-view #group-header-menu{position:static;justify-self:end;font-size:15px;color:var(--green);white-space:nowrap;padding:10px 0;background:none;border:0;min-height:44px}
.creation-status-list{margin:12px 14px;background:var(--q-surface);border-radius:12px;overflow:hidden}
.creation-status-list>button{width:100%;text-align:left;padding:14px 16px;display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);font-size:15px}
.creation-status-list span{font-size:13px;color:#717377}.creation-status-detail{font-size:16px;line-height:1.7}.joined-section>.primary{margin-left:12px}
#main{min-height:60dvh}.joined-strip,.post-photos{overscroll-behavior-x:contain}
dialog.action-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,560px);max-width:100%;height:auto;max-height:85dvh;overflow-y:auto;box-sizing:border-box;border-radius:22px 22px 0 0;padding:10px 18px max(12px,env(safe-area-inset-bottom));background:#f7f8f6;color:#34363a;box-shadow:0 -8px 40px #1f212512}
.action-sheet::backdrop{background:#1f212566;backdrop-filter:none}.action-sheet-handle{height:4px;width:36px;border-radius:4px;background:#cdcfd3;margin:0 auto 12px}.action-sheet h2{text-align:center;font-size:17px;font-weight:550;margin:8px 0 16px}
.action-sheet button{font:inherit;font-size:16px;border:0;background:transparent;color:inherit;cursor:pointer}
.action-sheet svg{width:23px;height:23px;flex-shrink:0}.action-share-row{padding:0 0 12px;margin-bottom:4px;border-bottom:1px solid #e1e3e7}.action-share-row>button,.action-list>button{display:flex;align-items:center;gap:16px;width:100%;min-height:52px;padding:12px 16px;text-align:left;border-radius:10px}.action-sheet button:active{background:#e9ebef}.action-list>button.destructive{color:#b34e54;border-top:1px solid #e1e3e7;border-radius:0;margin-top:6px}.action-sheet .action-cancel{width:100%;min-height:48px;background:var(--q-surface);border-radius:12px;margin-top:12px}.action-sheet button:focus-visible{outline:none;outline-offset:-2px}
.own-profile .profile-content .more-menu>summary{pointer-events:auto;min-width:40px;min-height:40px;display:grid;place-items:center}
/* Batch 35: paired panes, compact groups, independent chat viewport. */
#main{transition:none}
.tab-slide{position:fixed;overflow:hidden;z-index:15;background:var(--q-surface);pointer-events:none;contain:paint}
.tab-slide-pane{position:absolute;inset:0;box-sizing:border-box;background:var(--q-surface);will-change:transform;overflow:hidden}
.group-post-row{display:grid;grid-template-columns:minmax(0,1fr)}
.group-post-author{grid-column:1/-1}.group-post-copy{grid-column:1;padding:0;width:100%;align-self:start}
.group-post-copy strong{font-size:15px}.group-post-copy p{font-size:15px;line-height:1.55;margin:4px 0}
.group-post-photo{grid-column:2;margin:0;align-self:start}
.group-post-photo img{object-fit:contain;background:#f1f4f1}
.group-post-actions{grid-column:1/-1;margin:0;gap:16px}.group-post-author strong{font-size:14px}.group-post-author small{font-size:12px}
#dialog.dm-dialog{position:fixed;top:var(--dm-top,0px);bottom:auto;left:0;right:0;margin:0 auto;height:var(--dm-height,100dvh);max-height:var(--dm-height,100dvh);padding:0;display:flex;flex-direction:column;overflow:hidden}
#dialog.dm-dialog>header{flex:none;position:relative;top:auto;margin:0}
#dialog.dm-dialog #dialog-body{display:flex;flex-direction:column;flex:1;min-height:0;padding:0;overflow:hidden}
.dm-dialog .chat-thread{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px;background:var(--bg)}
.dm-dialog #dm-form{flex:none;display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:10px 14px max(10px,env(safe-area-inset-bottom));background:var(--q-surface);border-top:1px solid var(--line)}
.dm-dialog #dm-form input{flex:1;min-width:0;width:0;font-size:16px}.dm-dialog #dm-form button{flex:none;font-size:16px}.dm-dialog #dm-form .form-error{flex-basis:100%}.dm-dialog .form-error:empty{display:none}
.create-group-dialog #dialog-body{padding:4px 16px 20px}.create-identity .new-group-avatar{padding:0;margin:0 0 18px;gap:12px}.create-identity input{font-size:17px}
.optional-description{margin:14px 0}.optional-description summary{font-size:15px;color:#6e7074}.optional-description textarea{margin-top:12px;min-height:76px;font-size:16px;resize:vertical}
.creation-explanation{font-size:14px;line-height:1.6;color:#7b7d81;margin:12px 0}.create-footer{margin-top:18px}.create-footer>.primary{width:100%;margin-top:14px}
.policy-consent{display:flex;align-items:center;flex-wrap:wrap;gap:0;font-size:14px}.policy-consent input{width:20px;height:20px;margin:0 8px 0 0;flex:none}.policy-consent label{display:inline;margin:0;font-size:14px}
button.policy-link{color:#2467a6;font-size:14px;background:none;border:0;padding:6px 0;text-decoration:underline;text-underline-offset:3px}
.policy-document h3{font-size:17px}.policy-document p{font-size:16px;line-height:1.7}.welcome-links{display:flex;flex-wrap:wrap;gap:8px}.notice-row p{white-space:pre-wrap;font-size:15px;line-height:1.7}
.create-group-dialog #dialog-title,.dm-dialog #dialog-title{font-size:17px;font-weight:550}.create-group-dialog .new-group-avatar>span{font-size:16px}.create-group-dialog .create-identity>label{font-size:15px;margin-top:0}
.group-post-row{padding:10px 0;gap:4px 12px}.group-post-row.has-photo{grid-template-columns:minmax(0,1fr) 84px}.group-post-copy p{-webkit-line-clamp:2}
.group-post-photo{grid-row:2/span 2;max-width:84px}.group-post-photo img{width:84px;height:84px;max-height:84px}.has-photo .group-post-actions{grid-column:1;grid-row:3}.group-post-actions .icon-action{min-height:24px}

/* Batch 36: shared page geometry. Reading/cropping surfaces keep their own layout. */
#dialog:not(.note-detail):not(.photo-cropper):not(.photo-viewer)>header{height:44px;min-height:44px;padding:0 12px 0 4px;gap:4px;background:inherit;border:0;box-shadow:none}
#dialog:not(.note-detail)>header #dialog-title{text-align:left;font-size:17px;margin:0}
#dialog #close-dialog:focus:not(:focus-visible),.editor-sheet>header button:focus:not(:focus-visible){outline:none}
.editor-sheet>header button{min-width:44px;min-height:44px;outline-offset:-4px}
.editor-sheet>header button svg{width:20px;height:20px}
.editor-sheet>header button:focus-visible{outline:none}
#dialog.dm-dialog{background:var(--bg)}
.compact-sheet.editor-sheet{position:fixed;inset:auto 0 0;height:auto;max-height:80dvh;width:min(100%,560px);margin:0 auto;border-radius:20px 20px 0 0}
.compact-sheet .sheet-content{flex:0 1 auto;padding-bottom:max(20px,env(safe-area-inset-bottom))}
.compact-sheet header{margin-top:6px}
@media(max-width:650px){dialog.avatar-picker-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}}

/* Search owns its return/input row; no absolute overlay or outward focus ring. */
#dialog.search-dialog>header{display:none}
#dialog.search-dialog #dialog-body{padding:0 16px 20px}
.search-dialog .qs-form{margin:0 -12px 0 -16px}
#dialog.live-composer,.full-note-editor{background:var(--q-surface)}
.share-status:empty{display:none}

/* Batch 37: control the whole header-to-first-content gap, including child margins. */
#dialog:not(.note-detail):not(.live-composer):not(.photo-viewer):not(.photo-cropper) #dialog-body>:first-child{margin-top:0}
#dialog-body>form>label:first-child,.sheet-content>:first-child,.sheet-content>article>:first-child{margin-top:0}
#dialog:not(.note-detail) #dialog-body>.notice-row:first-child,#dialog #dialog-body>.conversation:first-child{padding-top:4px}
#dialog .notice-row{padding:10px 0;gap:12px;align-items:flex-start}
#dialog .notice-row>div{min-width:0;flex:1}
#dialog .notice-row strong{font-size:15px;line-height:24px}
#dialog .notice-row p{margin:4px 0;font-size:15px;line-height:1.65}
#dialog .notice-row button{font-size:14px;min-height:44px;padding:4px 8px;margin-left:-8px}
#dialog .conversation{padding:10px 0;min-height:60px;gap:12px;align-items:flex-start}
#dialog .conversation strong{font-size:15px;line-height:24px}
#dialog .conversation small{font-size:14px;margin-top:2px}
#dialog .empty-comments{font-size:14px;padding:12px 0;margin:0;text-align:center}
#dialog #dialog-body>.profile-hero{padding:14px 16px}
#dialog #dialog-body>.profile-hero h1{margin-top:10px}
#dialog .draft-scope{margin:0 0 10px}
#dialog #dialog-body>.notice:first-child{margin-top:0}

/* Batch 38: pointer focus has no box; keyboard focus remains visible through a soft fill. */
button:focus-visible,a:focus-visible,summary:focus-visible{outline:none!important;background-color:var(--q-tint);color:var(--q-accent)}

/* Replies align their avatar with the root comment text. No recursive indentation. */
#dialog.note-detail .comment-thread{margin-bottom:12px}
#dialog.note-detail .comment{gap:10px;padding:9px 0;align-items:flex-start}
#dialog.note-detail .comment>.comment-copy{min-width:0}
#dialog.note-detail .comment .profile-face{width:32px;height:32px}
#dialog.note-detail .comment-replies{margin-left:42px}
#dialog.note-detail .comment-reply .profile-face{width:24px;height:24px;font-size:11px}
#dialog.note-detail .comment-copy strong{font-size:13px;color:#808286}
#dialog.note-detail .comment-copy p{font-size:15px;line-height:1.65;margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}
#dialog.note-detail .reply-to{color:#7d7f83}
#dialog.note-detail .comment-actions{display:flex;align-items:center;gap:12px;min-height:28px}
#dialog.note-detail .comment-actions button,#dialog.note-detail .comment-actions summary{font-size:12px;min-height:28px;margin:0;display:inline-flex;align-items:center}
#dialog.note-detail .comments-more{color:#737579;font-size:13px;padding:8px 0;min-height:36px}
#dialog.note-detail .comment-replies>.comments-more{margin-left:34px}
@media(max-width:650px){#dialog.note-detail.note-surface{position:fixed;top:var(--note-top,0px);height:var(--note-height,100dvh);max-height:var(--note-height,100dvh);bottom:auto;margin:0}}

/* Batch 40: shared tokens and controls. Visual size is independent of the hit area. */
:root{--font-ui:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;--space-xs:4px;--space-sm:8px;--space-md:12px;--space-lg:16px;--radius-card:12px;--header-height:44px;--text-body:15px;--text-title:17px;--text-meta:13px}
body,input,textarea,select,button{font-family:var(--font-ui)}
dialog>header,.editor-sheet>header,#dialog:not(.note-detail):not(.photo-cropper):not(.photo-viewer)>header{height:var(--header-height);min-height:var(--header-height);gap:var(--space-xs);padding:0 var(--space-lg) 0 var(--space-xs);border:0;box-shadow:none;background:inherit}
dialog>header h2,.editor-sheet>header h2{font-size:var(--text-title);line-height:1.4;margin:0}
dialog>header>button,.editor-sheet>header>button,#close-dialog{width:auto;min-width:44px;min-height:44px;padding:10px;border:0;box-shadow:none;background:transparent}
dialog.note-surface .note-author>button{width:auto;min-width:44px;min-height:44px;max-width:calc(100vw - 150px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;padding:0;text-align:left}
dialog>header button svg,.editor-sheet>header button svg{width:20px;height:20px}
button:active:not(:disabled){filter:brightness(.94)}
.icon-action,.feed-like,.more-menu>summary,.comment-actions button,.comment-actions summary,#dialog.note-detail .comment-actions button,#dialog.note-detail .comment-actions summary,#dialog.note-detail .comments-more,.group-post-actions .icon-action{min-height:44px;min-width:44px;justify-content:center}
.feed-card .feed-copy{padding:12px}.feed-card button.title{font-size:15px}.feed-card .meta{font-size:12px;margin-top:8px}.feed-card .feed-like{margin:-8px -8px -8px 0;padding:8px;gap:3px}.feed-card .feed-like svg{width:18px;height:18px}
.cover-button{position:relative}.feed-card .feed-photo{object-fit:cover;object-position:top;background:var(--q-tint)}
.text-card{background:linear-gradient(150deg,#f0f4f0,#fff);border:1px solid #e7e9ed}.text-card .feed-copy{padding:16px 12px 12px}.text-card .excerpt{font-size:15px;line-height:1.7;-webkit-line-clamp:7}.text-card .title{color:var(--q-accent)}
.feed-controls{display:flex;justify-content:flex-end;margin:0 0 4px}.feed-controls button{font-size:13px;min-height:44px;padding:8px;color:#707276}.feed-end{font-size:13px;color:#808286;text-align:center;padding:12px}
.long-label{position:absolute;right:8px;bottom:8px;border-radius:12px;padding:3px 8px;background:#333539d9;color:#fff;font-size:12px;pointer-events:none}
.note-photo-open{display:block;width:100%;padding:0;background:transparent}.post-photos .note-photo-open img{height:auto;object-fit:contain}.post-photos .long-preview .note-photo-open{height:55dvh;overflow:hidden}dialog.note-surface .post-photos .long-preview img{max-height:none;width:100%;object-fit:cover;object-position:top}.post-photos .long-preview figcaption{top:8px;bottom:auto}
.note-reader.editor-sheet{width:min(100%,800px);max-width:100%;height:100dvh;max-height:100dvh;margin:0 auto;border-radius:0;background:var(--q-surface)}.note-reader .sheet-content{padding:0;overflow:hidden;display:flex;min-height:0}.reader-scroll{overflow:auto;flex:1;min-width:0;overscroll-behavior:contain;touch-action:pan-x pan-y}.reader-scroll img{display:block;width:100%;height:auto}.reader-scroll p{font-size:13px;color:#707276;text-align:center;padding:12px}
.loading-state{padding:16px;min-height:240px}.loading-state>span{font-size:13px;color:#6e7074}.skeleton-block,.skeleton-line{background:linear-gradient(100deg,#ebedf1,#f5f7f4,#ebedf1);background-size:200% 100%;animation:skeleton-pulse 1.5s linear infinite;border-radius:12px;margin-top:12px}.skeleton-block{height:180px}.skeleton-line{height:16px}.skeleton-line.short{width:60%}@keyframes skeleton-pulse{to{background-position:-200% 0}}
.retry-state{padding:20px 16px;text-align:center;font-size:15px}.retry-state p{overflow-wrap:anywhere}.image-failed{background:var(--q-tint);min-height:100px}.image-retry{display:block;font-size:13px;color:var(--green);min-height:44px;padding:8px;width:100%}.comment-loading{padding:16px 0;font-size:13px;color:#797b7f}
@media(prefers-reduced-motion:reduce){.skeleton-block,.skeleton-line{animation:none}}
/* Batch 41: personal lists, contained chat layout and one-owner back transition. */
.personal-search{display:flex;align-items:center;gap:8px;background:var(--q-tint);border-radius:14px;padding:0 8px;margin:4px 0 16px;min-height:44px}
.personal-search>svg{width:20px;height:20px;color:var(--q-muted);flex:none}
.personal-search input{flex:1;min-width:0;width:0;border:0;background:transparent;font-size:16px;padding:10px 0;outline:none;box-shadow:none}
.personal-search input::-webkit-search-cancel-button{display:none}
.personal-clear{width:44px;height:44px;display:grid;place-items:center;padding:0}
.personal-clear[hidden]{display:none}
.personal-person{display:flex;align-items:center;gap:12px;width:100%;padding:12px 0;text-align:left;border-bottom:1px solid var(--line)}
.personal-person>span:last-child{flex:1;min-width:0}.personal-person strong{display:block;font-size:16px;font-weight:550;overflow-wrap:anywhere}
.personal-person small{display:block;font-size:13px;color:var(--q-muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.personal-status{font-size:14px;text-align:center;color:var(--q-muted);margin:16px 0}.personal-status:empty{display:none}
.profile-stats>button{padding:4px 0;min-height:44px;text-align:left;font:inherit;color:inherit}
#dialog:not([open]):not([data-nav-copy]){display:none!important}
#dialog.dm-dialog,#dialog.dm-dialog #dialog-body{overflow:clip;overflow-anchor:none}
.dm-dialog .chat-thread{overflow-anchor:none;-webkit-overflow-scrolling:touch}
.back-preview[popover]{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:hidden;pointer-events:none}
.back-preview::backdrop{background:transparent;backdrop-filter:none;pointer-events:none}
.back-root-preview{position:absolute;inset:0;overflow:hidden;background:var(--bg)}
[data-nav-copy]{pointer-events:none!important;animation:none!important}
.personal-more[hidden]{display:none}
/* Batch 42: stable note shell and decoded-image handoff; no generic modal flash. */
.note-author-placeholder{height:30px}
.note-author-placeholder>span{width:30px;height:30px;border-radius:50%;background:var(--q-tint);flex:none}
.note-author-placeholder>i{width:88px;height:12px;background:var(--q-tint);border-radius:6px}
.note-entry-placeholder{min-height:180px;padding:20px 14px;background:var(--q-surface)}
.note-entry-lines{height:12px;width:55%;border-radius:6px;background:var(--q-tint);box-shadow:0 28px 0 #f4f6f4,0 56px 0 #f4f6f4}
.note-bottom-placeholder{height:60px;min-height:60px}
.note-bottom-placeholder>span{display:block;width:70%;height:38px;background:#f2f4f3;border-radius:22px}
.note-photo-open{background-size:contain;background-position:center;background-repeat:no-repeat}
.long-preview .note-photo-open{background-size:cover;background-position:top}
.note-photo-pending>img{opacity:0}
.note-photo-revealing>img{opacity:1;transition:opacity 140ms ease-out}
@media(prefers-reduced-motion:reduce){.note-photo-revealing>img{transition:none}}

/* Batch 43: one indicator follows the same displacement as the content panes. */
.home-tabs{position:relative}
.home-tabs button.selected:after{display:none}
.site-header .tab-indicator{display:block;position:absolute;left:0;bottom:6px;width:24px;height:3px;border-radius:3px;background:var(--green);pointer-events:none;will-change:transform}
.icon-action.is-saved{color:#bc861e}.icon-action.is-saved svg{fill:#e9b949;stroke:#bc861e}
.home-view #main{min-height:calc(100dvh - 140px)}
html:has(body.home-view){overscroll-behavior-y:none}
#pull-refresh{position:fixed;left:0;right:0;height:40px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--green);font-size:13px;pointer-events:none;z-index:35;background:var(--bg)}
#pull-refresh.is-loading:before{content:'';width:13px;height:13px;border:2px solid #d3d5d9;border-top-color:var(--green);border-radius:50%;animation:pull-spin .7s linear infinite}
@keyframes pull-spin{to{transform:rotate(360deg)}}
.refresh-accessible{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;border:0}
.refresh-accessible:focus-visible{position:relative;width:auto;height:44px;clip-path:none;padding:8px}
/* Chat keeps the existing viewport/scroll ownership; only inner presentation changes. */
#dialog.dm-dialog #dialog-title{min-width:0;flex:1}
#dialog.dm-dialog .chat-peer{display:flex;align-items:center;gap:9px;min-height:44px;max-width:100%;padding:0;text-align:left;font-size:16px;font-weight:550}
.chat-peer>span:last-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#dialog.dm-dialog .chat-peer .profile-face{width:30px;height:30px;flex:none;border:0;font-size:13px}
.dm-dialog .chat-thread{padding:14px 12px 20px}
.dm-dialog .chat-message{display:flex;align-items:flex-start;gap:8px;margin:0 0 12px}
.dm-dialog .chat-message.outgoing{flex-direction:row-reverse}
.dm-dialog .chat-avatar{flex:0 0 36px;width:36px;height:44px;padding:0;display:flex;align-items:flex-start;justify-content:center;background:transparent;border:0}
.dm-dialog .chat-avatar .profile-face{width:34px;height:34px;flex:none;border:0;font-size:14px}
.dm-dialog .chat-message .chat-bubble{margin:0;max-width:calc(100% - 88px);width:fit-content;padding:8px 12px;border-radius:14px;font-size:16px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--q-surface);color:var(--ink);align-self:flex-start}
.dm-dialog .chat-message.outgoing .chat-bubble{background:#e8eaee}
.dm-dialog #dm-form{align-items:center;gap:6px;border:0;background:var(--bg);padding:8px 12px max(8px,env(safe-area-inset-bottom))}
.dm-dialog #dm-form input{height:44px;padding:10px 14px;border:0;border-radius:18px;background:#edf1ee;box-shadow:none;line-height:24px}
.dm-dialog #dm-form button[type=submit]{min-width:52px;min-height:44px;padding:8px;font-size:15px;font-weight:550;background:transparent;color:var(--green);border:0;border-radius:12px}
.dm-dialog #dm-form input:focus-visible{outline:2px solid #acaeb2;outline-offset:-2px}
#dialog .notice-row{gap:10px;padding:10px 0;align-items:flex-start}
#dialog .notice-row .notice-avatar{width:44px;min-width:44px;height:44px;padding:0;margin:0;display:grid;place-items:start center}
#dialog .notice-row .notice-avatar .profile-face{width:34px;height:34px;border:0;font-size:14px}
#dialog .notice-row .notice-person{display:block;text-align:left;padding:0;margin:0;min-height:32px;max-width:100%;overflow-wrap:anywhere}
#dialog .notice-row .notice-content{display:block;width:100%;text-align:left;padding:0 0 6px;margin:0;min-height:44px;color:var(--ink)}
#dialog .notice-row .notice-content p{margin:0;overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){#pull-refresh.is-loading:before{animation:none}}
/* Batch 44: content-sized comments, full-width images, local photo editing. */
#dialog.note-detail .comment{padding:6px 0;margin:0;gap:10px}
#dialog.note-detail .comment-thread{margin-bottom:8px}
#dialog.note-detail .comment-replies{margin-top:0}
#dialog.note-detail .comment-copy .comment-text{display:table;width:auto;max-width:100%;margin:2px 0;cursor:pointer;user-select:text}
#dialog.note-detail .comment-actions{min-height:24px;gap:14px}
#dialog.note-detail .comment-actions button,#dialog.note-detail .comment-actions summary{min-height:24px;min-width:0;padding:0;line-height:24px}
.comment-text:focus-visible{outline:2px solid #8f9195;outline-offset:2px;border-radius:3px}
.note-review-state{margin:0;padding:10px 14px;background:var(--q-tint);color:var(--green);font-size:14px}
dialog.note-surface .post-photos{align-items:flex-start}
dialog.note-surface .post-photos .note-photo-open img{width:100%;height:auto;max-height:none;object-fit:contain}
dialog.note-surface .post-photos .long-preview .note-photo-open{height:auto;aspect-ratio:3/4;overflow:hidden}
dialog.note-surface .post-photos .long-preview img{width:100%;height:auto;max-height:none;object-fit:contain}
.publish-choices{position:fixed!important;inset:auto 0 0!important;margin:0 auto!important;width:100%!important;max-width:600px!important;max-height:80dvh!important;border-radius:20px 20px 0 0!important;padding:0!important}
.publish-choices>header{display:none!important}.publish-choices .sheet-content{padding:8px 0 max(8px,env(safe-area-inset-bottom))}
.publish-choice,.publish-cancel{display:block;width:100%;height:56px;font-size:17px;color:var(--ink)}
.publish-choice+.publish-choice{border-top:1px solid #f0f2f0}.publish-cancel{border-top:7px solid var(--bg);height:63px}
.compose-photo .edit-compose-photo{position:static;display:block;width:100%;height:100%;padding:0;background:none;border-radius:inherit}
.compose-photo .edit-compose-photo img{display:block;width:100%;height:100%;object-fit:cover}
.note-reader .reader-scroll{overflow:auto!important;touch-action:none;overscroll-behavior:contain;padding:0!important;min-height:0;flex:1}
.note-reader .reader-scroll img{display:block;max-width:none;margin:0;border-radius:0;height:auto}
.note-reader .sheet-content{display:flex;flex-direction:column;overflow:hidden!important;padding:0!important;min-height:0}
.reader-help{margin:0;padding:6px 12px;font-size:12px;text-align:center;color:var(--muted);flex:none}
.photo-editor{width:100vw!important;max-width:700px!important;height:100dvh!important;max-height:100dvh!important;padding:0!important}
.photo-editor .sheet-content{display:flex;flex-direction:column;padding:0 12px 8px!important;min-height:0;overflow:auto}
.photo-edit-stage{flex:1 1 300px;min-height:140px;display:flex;align-items:center;justify-content:center;background:#edf0ed;overflow:hidden}
.photo-edit-stage canvas{display:block;touch-action:none;max-width:100%;max-height:100%}
.photo-edit-nav{display:flex;align-items:center;justify-content:space-between;font-size:13px;flex:none}.photo-edit-nav button{min-height:40px}
.photo-tools{display:flex;justify-content:space-between;gap:2px;flex:none;flex-wrap:wrap}.photo-tools button{min-height:44px;padding:6px;font-size:14px}
.photo-editor button[aria-pressed=true]{color:var(--green);background:#e9ebef;border-radius:8px}
.photo-options{padding:6px 0;flex:none}.photo-options[hidden],.photo-options [hidden]{display:none!important}
.crop-ratios{display:flex;gap:6px}.crop-ratios button,.text-options button{min-height:36px;padding:6px 10px}
.text-options textarea{min-height:44px;height:50px;padding:6px 10px;font-size:16px}.text-options label{display:flex;align-items:center;gap:12px;margin:0;font-size:13px}.text-options input{flex:1;padding:0;min-height:32px}
.photo-tool-help{font-size:12px;color:var(--muted);margin:4px 0}.photo-options>button{min-height:40px}
.photo-edit-error{font-size:13px;color:#9c463b;margin:4px 0}.photo-edit-error:empty{display:none}
.photo-edit-footer{display:flex;justify-content:space-between;align-items:center;padding:8px 0 max(8px,env(safe-area-inset-bottom));flex:none}.photo-edit-footer button{min-height:44px}
/* Batch45: local filters use the existing compact editor. */
.photo-tools{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;gap:4px}.photo-tools>button{flex:0 0 auto;padding:6px 10px}
.filter-strip{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;padding:3px 1px 7px;scrollbar-width:none;touch-action:pan-x}
.filter-strip>button{flex:0 0 64px;padding:0;background:transparent;border:0;color:var(--muted);font-size:12px;border-radius:8px;min-height:82px}
.filter-strip canvas{display:block;width:60px;height:60px;border-radius:7px;margin:2px auto 4px;background:#e6eae7}
.filter-strip>button[aria-pressed=true]{color:var(--green);background:transparent}.filter-strip>button[aria-pressed=true] canvas{outline:2px solid var(--green);outline-offset:1px}
.filter-strength{display:flex;align-items:center;gap:10px;font-size:13px;margin:0}.filter-strength input{flex:1;min-width:0;padding:0;accent-color:var(--green);min-height:32px}.filter-strength output{width:28px;text-align:right}
.filter-options>[data-filter-compare]{font-size:13px;min-height:36px;background:#eef0f4;border-radius:18px;padding:4px 14px;touch-action:none;user-select:none}
.filter-strength input[type=range]{border:0;border-radius:0;background:transparent;box-shadow:none;height:32px;min-height:32px}
.filter-strength input[type=range]:focus-visible{outline:2px solid var(--green);outline-offset:2px}
/* Batch46: intrinsic chooser height; bounded editing controls, stable preview. */
.publish-choices{height:auto!important;min-height:0!important;max-height:80dvh!important}
.publish-choices .sheet-content{flex:0 1 auto!important;min-height:0!important;overflow-y:auto!important;padding:4px 0 max(8px,env(safe-area-inset-bottom))!important}
.publish-choices .publish-choice{height:52px;min-height:52px;padding:12px 20px;font-size:17px}
.publish-choices .publish-cancel{height:48px;min-height:48px;margin-top:4px}
.photo-editor{inset:var(--photo-top,0px) 0 auto!important;margin:0 auto!important;height:var(--photo-height,100dvh)!important;max-height:var(--photo-height,100dvh)!important;border-radius:0!important}
.photo-editor>.sheet-content{overflow:hidden!important;flex:1;min-height:0;gap:0;padding:0 12px!important}
.photo-edit-stage{position:relative;flex:1 1 0;min-height:64px;background:#eff2f0;border-radius:8px}
.photo-editor .photo-edit-error{position:absolute;bottom:8px;left:8px;right:8px;margin:0;padding:8px 12px;border-radius:8px;background:#ffffffed;color:#8b453c;pointer-events:none;font-size:13px;z-index:3}
.photo-edit-nav{height:36px;font-size:12px;color:var(--muted)}.photo-edit-nav button{min-height:36px;padding:4px 10px}
.photo-tools{height:44px;gap:0;scrollbar-width:none;border-bottom:1px solid #edf0ee}.photo-tools>button{padding:6px 11px;font-size:15px}
.photo-editor .photo-options{height:248px;max-height:42%;min-height:132px;display:flex;flex-direction:column;padding:6px 0 0;overflow:hidden;flex:0 1 248px}
.photo-option-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 1px}
.photo-option-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 44px;background:#fff;border-top:1px solid #edf0ee}.photo-option-actions button{min-height:40px;min-width:64px;font-size:15px}.photo-option-actions>button:first-child{margin-right:auto}
.photo-editor .photo-options:has(.crop-ratios:not([hidden])),.photo-editor[data-photo-tool=rotate] .photo-options{height:132px;flex-basis:132px}
.photo-editor .photo-edit-footer{padding:6px 0 max(8px,env(safe-area-inset-bottom));gap:8px}.photo-edit-footer button{font-size:15px}
.rotate-controls{position:absolute;right:14px;bottom:14px;display:flex;align-items:center;gap:8px;padding:4px 10px 4px 4px;border-radius:28px;background:#fffffff2;color:var(--q-accent);font-size:12px;box-shadow:0 2px 12px #0001}.rotate-controls[hidden]{display:none}
.rotate-controls [data-turn]{font-family:Arial,sans-serif;font-size:32px;line-height:1;width:48px;height:48px;padding:0;color:var(--q-accent);background:#e9ebef;border-radius:50%}
.object-list,.text-styles{display:flex;gap:4px;overflow:auto;white-space:nowrap;scrollbar-width:none}.object-list button{min-height:36px;flex:none;padding:4px 10px;font-size:13px}.text-styles button{flex:none;min-height:40px;padding:6px 9px;font-size:13px}
.text-options textarea{height:44px;min-height:44px;margin:0;padding:8px 10px;background:#f3f5f3;border:0;resize:none;font-size:16px}
.text-colors{display:flex;align-items:center;gap:2px;overflow-x:auto;scrollbar-width:none;height:44px;flex-wrap:nowrap}
.text-colors button{flex:0 0 36px;min-width:36px;width:36px;height:44px;min-height:44px;padding:8px 5px;background:transparent!important;position:relative}
.text-colors button:before{content:'';display:block;width:25px;height:25px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px #0002}
.text-colors button[aria-pressed=true]:before{outline:2px solid #3a3e44;outline-offset:2px}
.text-colors .custom-color{position:relative;flex:0 0 44px;width:44px;height:44px;font-size:12px;display:flex;justify-content:center;border-radius:8px;background:#eef0f4;overflow:hidden}
.custom-color input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.text-options label,.sticker-options label{display:flex;align-items:center;gap:12px;margin:0;font-size:13px}
.photo-options input[type=range]{border:0;box-shadow:none;background:transparent;height:32px;min-height:32px;flex:1;min-width:0;accent-color:#3a3e44;padding:0}
.sticker-options button{min-height:44px;font-size:14px}.photo-editor button:focus-visible{outline:2px solid #3a3e44;outline-offset:-2px}
@media(max-height:540px){.photo-editor .photo-options{flex-basis:150px;max-height:45%;min-height:90px}.photo-edit-nav{display:none}.photo-edit-footer{padding:2px 0!important}.photo-editor>header{height:40px;min-height:40px}.photo-tools{height:40px}.photo-option-actions{flex-basis:40px}}
/* Tool panels with few controls size to content rather than reserving empty rows. */
.photo-editor[data-photo-tool=rotate] .photo-options,.photo-editor[data-photo-tool=crop] .photo-options,.photo-editor[data-photo-tool=sticker] .photo-options{height:auto;flex:0 1 auto;min-height:0}
.photo-editor[data-photo-tool=rotate] .photo-option-scroll,.photo-editor[data-photo-tool=crop] .photo-option-scroll,.photo-editor[data-photo-tool=sticker] .photo-option-scroll{flex:0 1 auto}
/* Batch47: photo-first editor with direct objects and one completion action. */
.photo-editor47>header{display:grid!important;grid-template-columns:44px 1fr 56px!important;padding:0 12px 0 0!important;flex:none}
.photo-editor47>header h2{text-align:left;font-size:16px}.photo-editor47>header .photo-finish{font-size:15px;color:#3a3e44;font-weight:600;padding:8px 4px}
.photo-editor47>.sheet-content{padding:0 10px max(8px,env(safe-area-inset-bottom))!important}
.photo-editor47 .photo-edit-stage{border-radius:6px;min-height:70px}
.photo-editor47 .photo-tools{height:46px;flex:0 0 46px;justify-content:space-around;border:0;overflow:visible}
.photo-editor47 .photo-tools>button{flex:1;min-width:0;padding:6px;font-size:15px}
.photo-editor47 .photo-options{height:auto!important;flex:0 1 auto!important;max-height:35%;min-height:0!important;overflow:auto;padding:4px 0 0!important;overscroll-behavior:contain}
.photo-editor47 .photo-edit-nav[hidden]{display:none!important}
.photo-editor47 .filter-strip{padding-bottom:3px;gap:7px}.photo-editor47 .filter-strip>button{min-height:76px}.photo-editor47 .filter-strip canvas{height:54px;width:54px}
.photo-editor47 .filter-strength{height:40px;margin:0}.photo-editor47 .filter-strength input{min-height:40px;height:40px}
.photo-editor47 .photo-float{position:absolute;z-index:2;bottom:10px;width:42px;height:42px;min-height:42px;padding:0;border:1px solid #fff9;border-radius:50%;background:#ffffffdd;color:#3a3e44;font-size:26px;line-height:1;touch-action:none;box-shadow:0 1px 8px #0001}
.photo-editor47 .photo-undo{left:10px}.photo-editor47 .photo-compare{right:10px;font-size:25px}.photo-editor47 .photo-float:disabled{opacity:.35}
.photo-editor47 .photo-object-outline{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;z-index:2}
.photo-object-outline polygon{fill:none;stroke:#fff;stroke-width:1.5;stroke-dasharray:4 3;filter:drop-shadow(0 0 1px #3a3e44)}
.photo-editor47 .photo-object-handle{position:absolute;transform:translate(-50%,-50%);height:44px;width:44px;min-height:44px;padding:0;z-index:4;touch-action:none;color:white;background:transparent;border:0;font-size:22px;display:grid;place-items:center}
.photo-editor47 .photo-object-handle:before{content:'';position:absolute;inset:8px;z-index:-1;border-radius:50%;background:#3a3e44;box-shadow:0 1px 5px #0003}
.photo-editor47 [hidden]{display:none!important}
.photo-editor47 .angle-row{display:flex;align-items:center;gap:6px;height:44px}
.photo-editor47 .angle-row>button{min-width:44px;min-height:44px;padding:4px 8px;font-size:13px;flex:none}
.photo-editor47 [data-turn]{font-size:28px!important}.photo-editor47 .angle-row label{display:flex;align-items:center;gap:6px;flex:1;min-width:0;font-size:12px;margin:0}.photo-editor47 .angle-row output{font-size:12px;min-width:34px;text-align:right}
.photo-editor47 .crop-ratios{gap:3px;overflow-x:auto;scrollbar-width:none}.photo-editor47 .crop-ratios button{flex:1;min-width:42px;min-height:44px;padding:6px 3px;font-size:12px}
.photo-editor47 .text-entry{display:flex;gap:6px;align-items:center}.photo-editor47 .text-entry textarea{flex:1;min-width:0}.photo-editor47 .text-entry button{min-width:44px;min-height:44px;font-size:24px;color:#3a3e44}
.photo-editor47 .text-colors{height:40px}.photo-editor47 .text-styles button{min-height:36px}.photo-editor47 .text-options>label{height:32px}
.photo-editor47 .sticker-options{display:flex;align-items:center;gap:12px;padding:2px 0}.photo-editor47 .sticker-options>button{white-space:nowrap;background:#eef0f4;border-radius:8px;padding:8px 12px}.photo-editor47 .sticker-options>label{flex:1;min-width:0}
@media(max-height:540px){.photo-editor47 .photo-options{max-height:42%}.photo-editor47 .photo-tools{height:40px;flex-basis:40px}.photo-editor47 .photo-tools>button{min-height:40px}.photo-editor47 .photo-edit-stage{min-height:60px}}
/* Compose: large proportional photos followed by copy and naturally scrolling settings. */
.reference-editor .compose-photo-strip{display:flex;align-items:center;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;overscroll-behavior-x:contain;padding:8px 0;margin:0;min-height:84px}
.reference-editor #compose-photos{display:contents}
.reference-editor .compose-photo{flex:0 0 100%;width:100%;height:auto;min-width:0;scroll-snap-align:start;position:relative;background:var(--q-tint);border-radius:10px;overflow:hidden}
.reference-editor .compose-photo .edit-compose-photo{display:block;width:100%;height:auto;position:static;border:0;box-shadow:none;background:transparent;border-radius:0;padding:0}
.reference-editor .compose-photo .edit-compose-photo img{width:100%;height:auto;max-height:55dvh;object-fit:contain;border-radius:0;display:block}
.reference-editor .compose-photo [data-remove-photo]{width:44px;height:44px;right:4px;top:4px;padding:11px;background:#0008;z-index:1}
.reference-editor .compose-photo small{font-size:12px;left:8px;bottom:8px;padding:2px 7px}
.reference-editor #add-note-photo{flex:0 0 76px;width:76px;height:76px;min-height:76px;scroll-snap-align:start}
.reference-editor .compose-title input{height:48px;padding:8px 0}
.reference-editor .compose-body textarea{height:clamp(88px,14dvh,140px)}
.reference-editor .editor-options{margin-top:8px}.reference-editor .editor-option{min-height:48px;padding:10px 0}
.reference-editor .destinations{padding:8px 0}.reference-editor .destination-row{min-height:46px;padding:4px 0}
.reference-editor .compose-photo .edit-compose-photo{aspect-ratio:3/4}
.reference-editor .compose-photo .edit-compose-photo img{height:100%;max-height:none;object-fit:contain}
.photo-editor47 [data-object-copy]{font-size:13px;font-weight:700}.photo-editor47 [data-object-edit]{font-size:21px}
.photo-editor47 .crop-ratios [data-reset-all]{min-width:70px;color:#707276;font-size:12px}
.reference-editor .compose-photo .edit-compose-photo:focus:not(:focus-visible){outline:none}
/* Batch48: inline composer. One viewport owner, one scrolling content area. */
#dialog.live-composer{height:var(--compose-height,100dvh)!important;max-height:var(--compose-height,100dvh)!important;top:var(--compose-top,0px)!important;bottom:auto!important;overflow:hidden!important}
#dialog.live-composer>header{flex:none}
#dialog.live-composer [hidden]{display:none!important}
#compose-input-done{margin-left:auto;color:var(--green);font-size:15px;min-height:44px;background:none;border:0}
.reference-editor .editor-content{overflow-anchor:none;overscroll-behavior:contain;scroll-behavior:auto}
.reference-editor .compose-body{display:block;margin:8px 0 0;position:relative}
.reference-editor .compose-body textarea{display:block;resize:none;min-height:120px;max-height:none;font-size:17px;line-height:1.6;padding:8px 0;border:0;border-radius:0;box-shadow:none;background:transparent;overflow-y:auto;overscroll-behavior:contain}
.reference-editor .compose-body textarea:focus{outline:none;box-shadow:none}
.reference-editor .note-count{font-size:12px;color:#8f9195;line-height:20px;min-height:20px;margin:0;text-align:right}
.reference-editor .note-count.near-limit{color:#796034}.reference-editor .note-count.over-limit{color:#b13f3f}
.reference-editor .legacy-title{font-size:18px;font-weight:600;padding:8px 0}
.reference-editor .editor-options{border:0;margin:8px 0 0;padding:0}
.reference-editor .editor-option{border:0;min-height:48px;padding:10px 0}
.reference-editor .editor-option>span:last-child{max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.reference-editor .draft-button{font-size:15px;min-height:44px;white-space:nowrap}
.reference-editor .compose-photo{transition:flex-basis 240ms cubic-bezier(.2,.7,.2,1),width 240ms cubic-bezier(.2,.7,.2,1)}
.reference-editor.is-writing .compose-photo{flex-basis:82%;width:82%}
.reference-editor.is-writing .editor-footer{display:none}
.reference-editor .compose-candidates{position:absolute;bottom:0;left:0;right:0;max-height:38%;overflow:auto;z-index:8;margin:0;background:var(--q-surface);box-shadow:0 -4px 16px #0001;padding:8px 16px}
.compose-settings-sheet,.compose-destination-sheet{height:auto!important;min-height:0!important;max-height:75dvh!important;top:auto!important;bottom:0!important;margin:auto auto 0!important;border-radius:16px 16px 0 0!important}
.compose-settings-sheet .sheet-content,.compose-destination-sheet .sheet-content{flex:0 1 auto!important;overflow:auto!important;padding:8px 16px max(16px,env(safe-area-inset-bottom))!important}
.compose-setting-row{display:flex;align-items:center;gap:12px;min-height:48px;margin:0!important;font-size:16px;padding:6px 0}
.compose-setting-row>span{flex:1}.compose-setting-row input{width:20px;height:20px;min-height:20px;flex:none;margin-left:auto;accent-color:#3a3e44;appearance:auto}
.compose-setting-row img,.compose-setting-row .group-avatar{width:32px;height:32px;flex:none;object-fit:cover}
.compose-setting-row[hidden]{display:none!important}
.compose-settings-sheet .picker-row{min-height:48px}.compose-destination-sheet .primary{margin-top:8px;width:100%;min-height:44px}
@media(prefers-reduced-motion:reduce){.reference-editor .compose-photo{transition:none}}
#dialog.live-composer>header #compose-input-done{grid-column:3;grid-row:1;padding:8px 0}
.note-editor.reference-editor.text-only .compose-body textarea{min-height:120px}
/* Batch49 pilot material tokens. Scoped to private conversation, not a global reskin. */
:root{--q49-surface:#f6f6f4;--q49-secondary:#ebebe9;--q49-ink:#1a1a1a;--q49-muted:#747a7e;--q49-green:#45474b;--q49-green-light:#515357;--q49-glass:rgba(246,246,244,.86);--q49-line:rgba(0,0,0,.07);--q49-bubble-radius:18px;--q49-group-radius:6px;--q49-blur:20px}
#dialog.dm-dialog{background:var(--q49-surface);color:var(--q49-ink)}
#dialog.dm-dialog>header{position:relative;z-index:3;background:var(--q49-surface);border-bottom:.5px solid var(--q49-line);box-shadow:none;flex:none}
#dialog.dm-dialog #dialog-title{display:block!important;text-align:center!important;min-width:0;padding:0 44px 0 0;margin:0}
#dialog.dm-dialog .chat-peer{display:flex;justify-content:center;max-width:100%;width:100%;font-size:17px;font-weight:600;text-align:center;min-height:44px}
#dialog.dm-dialog .chat-peer span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dialog.dm-dialog #dialog-body{position:absolute;inset:0;display:block;background:transparent;min-height:0}
.dm-dialog .chat-thread{box-sizing:border-box;height:100%;width:100%;padding:var(--dm-header-space,56px) 14px var(--dm-composer-space,84px);scroll-padding-top:var(--dm-header-space,56px);scroll-padding-bottom:var(--dm-composer-space,84px);background:var(--q49-surface);overflow:auto;overflow-anchor:none}
.dm-dialog .chat-message{align-items:flex-end;gap:8px;margin:0 0 4px}
.dm-dialog .chat-message.group-start{margin-top:16px}.dm-dialog .chat-time+.chat-message.group-start{margin-top:0}
.dm-dialog .chat-time{text-align:center;font-size:12px;line-height:18px;color:var(--q49-muted);margin:12px 0;letter-spacing:.02em}
.dm-dialog .chat-avatar{height:34px;flex-basis:34px;width:34px;align-items:center;visibility:hidden;pointer-events:none}
.dm-dialog .chat-message.group-end .chat-avatar{visibility:visible;pointer-events:auto}
.dm-dialog .chat-message .chat-bubble{max-width:calc(100% - 76px);padding:9px 13px;border:0;border-radius:var(--q49-bubble-radius);background:var(--q49-secondary);color:var(--q49-ink);font-size:16px;font-weight:400;line-height:1.5;box-shadow:none}
.dm-dialog .chat-message:not(.outgoing):not(.group-start) .chat-bubble{border-top-left-radius:var(--q49-group-radius)}
.dm-dialog .chat-message:not(.outgoing):not(.group-end) .chat-bubble{border-bottom-left-radius:var(--q49-group-radius)}
.dm-dialog .chat-message.outgoing .chat-bubble{color:#fff;background:linear-gradient(180deg,var(--q49-green-light),var(--q49-green));box-shadow:0 1px 0 #0000000a}
.dm-dialog .chat-message.outgoing:not(.group-start) .chat-bubble{border-top-right-radius:var(--q49-group-radius)}
.dm-dialog .chat-message.outgoing:not(.group-end) .chat-bubble{border-bottom-right-radius:var(--q49-group-radius)}
.dm-dialog #dm-form{position:absolute;z-index:3;left:0;right:0;bottom:0;align-items:center;gap:6px;padding:8px 12px max(8px,env(safe-area-inset-bottom));background:var(--q49-surface);border-top:.5px solid var(--q49-line);margin:0}
.dm-dialog #dm-form input{height:42px;min-height:42px;border-radius:21px;background:rgba(0,0,0,.055);color:var(--q49-ink);padding:9px 14px;font-size:16px;line-height:24px}
.dm-dialog #dm-form input::placeholder{color:var(--q49-muted)}
.dm-dialog #dm-form button[type=submit]{position:relative;isolation:isolate;display:grid;place-items:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;color:white;background:transparent;border:0;border-radius:50%;opacity:0;visibility:hidden;transform:scale(.85);transition:opacity 150ms ease,transform 150ms ease,visibility 150ms}
.dm-dialog #dm-form button[type=submit]:before{content:'';position:absolute;inset:5px;z-index:-1;border-radius:50%;background:linear-gradient(180deg,var(--q49-green-light),var(--q49-green))}
.dm-dialog #dm-form button[type=submit].has-text{opacity:1;visibility:visible;transform:scale(1)}
.dm-dialog #dm-form button[type=submit].has-text:disabled{opacity:.45}.dm-dialog #dm-form button[type=submit]:active{transform:scale(.97);filter:brightness(.92)}
.dm-dialog #dm-form button[type=submit] svg{width:23px;height:23px}
.dm-dialog #dm-form .form-error{margin:0;font-size:13px}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){#dialog.dm-dialog>header,.dm-dialog #dm-form{background:var(--q49-glass);-webkit-backdrop-filter:blur(var(--q49-blur)) saturate(1.12);backdrop-filter:blur(var(--q49-blur)) saturate(1.12)}}
@media(prefers-reduced-transparency:reduce){#dialog.dm-dialog>header,.dm-dialog #dm-form{background:var(--q49-surface);-webkit-backdrop-filter:none;backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){.dm-dialog #dm-form button[type=submit]{transition:none;transform:none}}

/* Batch 50: group surfaces, scoped to preserve profile, chat and image editor. */
:root{--q50-bg:#f6f6f4;--q50-face:#fff;--q50-soft:#ebebe9;--q50-ink:#1a1a1a;--q50-muted:#8e9398;--q50-green:#45474b;--q50-green-light:#585a5e;--q50-glass:rgba(246,246,244,.86);--q50-line:rgba(0,0,0,.08);--q50-radius:10px;--q50-shadow:0 8px 24px rgba(0,0,0,.12)}
body.groups-view{background:var(--q50-bg);color:var(--q50-ink)}
body.groups-view .site-header,body.groups-view>.nav{background:var(--q50-glass);backdrop-filter:blur(20px) saturate(1.12);-webkit-backdrop-filter:blur(20px) saturate(1.12);box-shadow:none;border-color:var(--q50-line)}
body.groups-view .site-header{grid-template-columns:80px minmax(0,1fr) 80px;min-height:52px}
body.groups-view #group-header-menu{font-size:13px;color:var(--q50-ink);font-weight:500;padding:0;min-height:44px;background:transparent;border:0;white-space:nowrap}
body.groups-view .home-tabs{gap:20px}.groups-view .home-tabs button{font-size:17px;font-weight:400;color:var(--q50-muted)}.groups-view .home-tabs button.selected{font-weight:600;color:var(--q50-ink)}.groups-view .site-header .tab-indicator{height:2px;background:var(--q50-green)}
body.groups-view #main{background:transparent;padding:8px 12px 96px}.groups-view .joined-section{padding:0;background:transparent;border:0;margin:0}
.groups-view .joined-strip{padding:4px 4px 8px;gap:16px;background:none;position:static}
.groups-view .joined-strip>button{flex:0 0 56px;width:56px;font-size:12px;gap:6px;color:var(--q50-muted);padding:0;background:transparent}
.groups-view .joined-strip .group-avatar{width:56px;height:56px;border-radius:var(--q50-radius);border:.5px solid var(--q50-line);outline:0;outline-offset:0;background:var(--q50-soft);overflow:hidden}
.groups-view .joined-strip .group-avatar img,.groups-view .group-tile .group-avatar img{width:100%;height:100%;border-radius:inherit;object-fit:cover}
.groups-view .joined-strip .selected .group-avatar{border:2px solid var(--q50-green);outline:0}.groups-view .joined-strip .selected>span:last-child{color:var(--q50-ink);font-weight:500}
.groups-view .joined-strip .add-group{border:1px dashed #a6a8ac;background:transparent}.groups-view .joined-strip>button>span:last-child{max-width:56px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.groups-view .group-feed-toolbar{height:auto;min-height:44px;margin:8px 0 8px;color:var(--q50-ink);font-size:15px;font-weight:500;gap:8px}
.group-feed-toolbar>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.group-feed-toolbar>button{width:44px;height:44px;flex:0 0 44px;border:0;background:transparent;color:var(--q50-muted)}.group-feed-toolbar svg{width:24px;height:24px}
.groups-view .group-search{height:40px;min-height:40px;border:0;border-radius:20px;background:rgba(0,0,0,.055);margin:4px 0 20px;padding:0 12px;box-shadow:none;display:flex;align-items:center;gap:8px}.groups-view .group-search input{background:transparent;border:0;box-shadow:none;margin:0;padding:8px 0;min-width:0;font-size:16px}.groups-view .group-search svg{width:19px;height:19px;color:var(--q50-muted)}
.groups-view .group-logo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 12px;padding:0;background:none}.groups-view .group-tile{min-width:0;padding:0;gap:8px;background:none;border:0;box-shadow:none;align-items:center}.groups-view .group-tile .group-avatar{width:56px;height:56px;border-radius:10px;border:.5px solid var(--q50-line);background:var(--q50-soft);overflow:hidden}.groups-view .group-tile-name{font-size:13px;line-height:1.4;max-width:100%;height:auto;min-height:36px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;color:var(--q50-ink)}
.group-empty{padding:40px 12px;text-align:center;color:var(--q50-muted);width:100%;box-sizing:border-box}.group-empty>svg{width:32px;height:40px;fill:none;stroke:currentColor;stroke-width:1.3}.group-empty p{font-size:15px;margin:12px 0 8px}.group-empty button{background:none;border:0;color:var(--q50-green);min-height:44px;padding:8px 12px;font-size:14px}.group-empty>div{display:flex;justify-content:center;flex-wrap:wrap;gap:4px}
#group-search-empty[hidden]{display:none}
.community-grid{columns:2;column-gap:8px}.community-grid.stable-masonry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));columns:auto!important;gap:8px;align-items:start}.masonry-column{min-width:0;display:flex;flex-direction:column;gap:12px}
.community-card{margin:0 0 12px!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;border-radius:10px!important;overflow:hidden;break-inside:avoid;min-width:0;display:inline-block;width:100%}.masonry-column>.community-card{margin:0!important}
.community-card .cover-button{display:block;width:100%;padding:0;border:0;background:var(--q50-soft);border-radius:10px;overflow:hidden}.community-card .feed-photo{display:block;width:100%;height:auto;object-fit:cover;border-radius:10px}
.community-card .feed-copy{padding:8px 2px 2px}.community-card .title{font-size:16px;font-weight:500;color:var(--q50-ink);line-height:1.35;padding:0;min-height:0;border:0;background:none;text-align:left;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 6px;white-space:normal;overflow-wrap:anywhere}.community-card .title.body-summary{font-size:14px;font-weight:400;color:#64666a}
.community-card .text-cover{display:block;width:100%;text-align:left;padding:14px 12px;border:0;border-radius:10px;background:var(--q50-soft);color:var(--q50-ink);font-size:15px;line-height:1.5;min-height:72px}.text-cover>span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap}
.community-author{display:flex;align-items:center;gap:4px;min-width:0}.community-author>button{display:flex;align-items:center;gap:4px;min-width:0;flex:1;padding:0;border:0;background:none;min-height:28px;font-size:12px;color:var(--q50-muted)}.community-author>button>span:last-child{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.community-author .avatar{width:20px;height:20px;flex:0 0 20px;font-size:10px}.community-author time{font-size:12px;color:var(--q50-muted);white-space:nowrap;flex:none}
body.home-view #main{padding-left:12px;padding-right:12px}body.home-view .grid{column-gap:8px}
.group-page-trigger{min-height:2px;width:100%;clear:both;text-align:center}.group-page-trigger button{background:transparent;border:0;min-height:44px;color:var(--q50-green);font-size:13px}.group-page-trigger[hidden]{display:none}
dialog.group-popover{height:auto;min-height:0;max-height:calc(100dvh - 24px);position:fixed;inset:auto;margin:0;box-sizing:border-box;max-width:calc(100vw - 24px);padding:16px;background:var(--q50-face);border:0;border-radius:12px;box-shadow:var(--q50-shadow);overflow:visible;animation:group-pop-in .15s ease-out;transform-origin:var(--arrow-x) top}
dialog.group-popover::backdrop{background:rgba(0,0,0,.05);backdrop-filter:none;-webkit-backdrop-filter:none}.group-popover:before{content:'';position:absolute;left:calc(var(--arrow-x) - 6px);top:-6px;width:12px;height:12px;background:var(--q-surface);transform:rotate(45deg)}.group-popover.above:before{top:auto;bottom:-6px}.group-popover.above{transform-origin:var(--arrow-x) bottom}.group-popover h2{font-size:16px;font-weight:600;margin:0 0 4px;overflow-wrap:anywhere}.group-popover small{font-size:12px;color:var(--q50-muted)}.group-popover-description{font-size:14px;line-height:1.45;margin:12px 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.group-popover-state{font-size:12px;color:var(--q50-muted)}.group-popover-actions{display:flex;gap:8px;margin-top:12px}.group-popover-actions button{flex:1;min-height:44px;font-size:14px;padding:8px;border:0;border-radius:20px}.group-popover-actions .primary{background:linear-gradient(var(--q50-green-light),var(--q50-green));color:#fff}.group-popover-actions .secondary{background:transparent;color:var(--q50-green)}.group-popover-actions button:disabled{background:var(--q50-soft);color:var(--q50-muted)}
.group-menu50 .picker-row{font-size:16px;min-height:48px}.group-menu50 .danger{color:#b34c4c}
#dialog.group-detail50{background:var(--q50-bg)}#dialog.group-detail50 #dialog-body{padding:12px}.group-detail50 .group-intro{margin:0 0 16px}.group-detail50 .group-intro p{font-size:14px;line-height:1.5}
#dialog.create-group-dialog{inset:auto 0 auto;top:calc(var(--create-top,0px) + var(--create-height,100dvh));transform:translateY(calc(-100% + var(--sheet-drag,0px)));margin:0 auto;width:min(100%,600px);height:auto;max-height:calc(var(--create-height,100dvh) - 12px);min-height:0;border-radius:12px 12px 0 0;background:var(--q50-bg);padding:0;overflow:hidden;box-shadow:var(--q50-shadow)}
#dialog.create-group-dialog>header{height:48px;min-height:48px;padding:0 12px;background:var(--q50-glass);border:0;margin:0;flex-shrink:0}#dialog.create-group-dialog #dialog-body{padding:0 16px max(16px,env(safe-area-inset-bottom));overflow:auto;max-height:calc(var(--create-height,100dvh) - 72px)}
.group-sheet-grip{height:16px;display:flex;justify-content:center;align-items:center;touch-action:none}.group-sheet-grip:before{content:'';width:32px;height:4px;background:#c3c7c3;border-radius:4px}.create-group-dialog .create-identity{display:flex;gap:12px;align-items:center;margin:4px 0 12px;padding:0}.create-group-dialog .new-group-avatar{width:56px;height:56px;flex:0 0 56px;padding:0;border-radius:10px;overflow:hidden}.create-group-dialog .new-group-avatar img{width:56px;height:56px;border-radius:10px}.create-group-dialog .new-group-avatar>span{display:none}.create-group-dialog .create-identity label{flex:1;min-width:0;font-size:13px}.create-group-dialog input[name=name]{font-size:16px;margin-top:4px;padding:8px 10px;border-radius:10px;background:rgba(0,0,0,.055);border:0;min-height:40px;width:100%;box-sizing:border-box}
.create-preset-strip{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 12px;overscroll-behavior-x:contain;scrollbar-width:none}.create-preset-strip button{width:48px;height:48px;flex:0 0 48px;padding:0;border:2px solid transparent;border-radius:10px;background:var(--q50-soft);overflow:hidden;display:grid;place-items:center}.create-preset-strip button[aria-pressed=true]{border-color:var(--q50-green)}.create-preset-strip img{width:100%;height:100%;object-fit:cover}.create-preset-strip svg{width:22px;height:22px}
.create-group-dialog .optional-description{padding:8px 0;margin:0}.create-group-dialog .optional-description summary{font-size:14px;min-height:36px}.create-group-dialog textarea{font-size:16px;background:rgba(0,0,0,.055);border:0;border-radius:10px}.create-group-dialog .create-footer{padding:8px 0 0;margin:0;border:0}.create-group-dialog .policy-consent{font-size:12px;flex-wrap:wrap;gap:4px}.create-group-dialog .policy-link{font-size:12px;min-height:36px}.create-group-dialog .create-footer>.primary{width:100%;min-height:44px;border-radius:10px;background:linear-gradient(var(--q50-green-light),var(--q50-green));margin-top:8px}
#editor-destination:disabled{opacity:.45}
@keyframes group-pop-in{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}
@supports not (backdrop-filter:blur(1px)){body.groups-view .site-header,body.groups-view>.nav{background:var(--q50-bg)}}
@media(prefers-reduced-motion:reduce){dialog.group-popover{animation:none}}
@media(prefers-reduced-transparency:reduce){body.groups-view .site-header,body.groups-view>.nav{background:var(--q50-bg);backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Batch51: editor owns gestures; keep crop handles away from browser edges. */
.photo-editor .photo-edit-stage{touch-action:none;overscroll-behavior:contain;user-select:none;-webkit-user-select:none}
.photo-editor .photo-undo{width:48px!important;height:48px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:4px!important}
.photo-editor .photo-undo svg,.photo-editor [data-turn] svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.photo-editor .photo-undo small{font-size:10px;line-height:13px}
.photo-editor .angle-row [data-turn]{width:auto;min-width:76px;height:44px;display:flex;align-items:center;gap:4px;padding:6px;font-size:12px!important;white-space:nowrap}
.compose-destination-sheet input[type=checkbox]{appearance:none;-webkit-appearance:none;width:22px;height:22px;flex:0 0 22px;border:1.5px solid #96989c;border-radius:6px;background:transparent;position:relative;opacity:1}
.compose-destination-sheet input[type=checkbox]:checked{background:#3a3e44;border-color:#3a3e44}
.compose-destination-sheet input[type=checkbox]:checked:after{content:'';position:absolute;left:6px;top:2px;width:6px;height:11px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}
.compose-destination-sheet input[type=checkbox]:disabled{opacity:1;-webkit-text-fill-color:initial}
.compose-destination-sheet input[type=checkbox]:focus-visible{outline:2px solid #737579;outline-offset:3px}

/* Shared UI review: readable secondary text and secondary touch targets. */
:root{--muted:#6b6d71;--text-secondary:#6b6d71}
.nav button:not(.publish):not(.active),.profile-tabs button:not(.active),.profile-tabs small,.post-state,.note-meta,.group-row small,.empty-comments,.conversation small,.comment-copy strong,.comment-copy button,.comment-menu summary,.group-utilities,.message-utilities{color:var(--text-secondary)}
.nav button span,.profile-tabs small,.post-state,.group-row small,.messages-view .empty-comments,.message-utilities button,.group-utilities button{font-size:12px}
.message-utilities,.group-utilities{gap:12px;padding:0}
.message-utilities button,.group-utilities button,.profile-drafts,.profile-top-actions>.secondary,.load-more{min-height:44px;min-width:44px}
.profile-tools{display:flex;flex-wrap:wrap;gap:8px 16px}
.draft-heading{font-size:15px;margin:24px 0 8px}.draft-exit-actions{display:grid;gap:12px}.draft-exit-actions button,.draft-list article>button,.draft-recovery{min-height:44px}.draft-list article>button:first-child{min-width:0;overflow-wrap:anywhere}.draft-list article>button:last-child{min-width:44px}.draft-recovery{display:block;width:100%;text-align:left;overflow-wrap:anywhere;color:var(--green)}
#profile-posts .personal-list{margin-top:12px}.personal-status{color:var(--text-secondary)}

.draft-scope,.draft-list small,.draft-list p{color:var(--text-secondary)}.draft-list small{font-size:12px}

:root{--q50-muted:var(--text-secondary);--q49-muted:var(--text-secondary)}
.home-tabs button:not(.selected),.group-post-author small,.reference-editor .editor-option small,.destination-row small,.destination-hint,.setting-help,.picker-row small{color:var(--text-secondary)}

/* Photo crop choices show the actual photo in each orientation. */
.photo-editor47 .crop-ratios{gap:6px;padding:4px 0;align-items:stretch}
.photo-editor47 .crop-ratios [data-ratio]{display:flex;flex:0 0 56px;flex-direction:column;align-items:center;gap:2px;min-height:84px;padding:5px 3px;line-height:1.25}
.crop-ratio-preview{height:36px;width:44px;display:grid;place-items:center}
.photo-editor47 .crop-ratio-preview canvas{display:block;position:static;max-width:40px;max-height:34px;border:1px solid #6b6d71;border-radius:2px;touch-action:pan-x}
.photo-editor47 [data-ratio="0"] canvas{border-style:dashed}
.photo-editor47 .crop-ratios small{font-size:11px;color:var(--text-secondary,#6b6d71)}
.photo-editor47 .crop-ratios [aria-pressed="true"]{background:#e9ebef;color:var(--green);outline:1px solid #3a3e44;outline-offset:-1px}
.photo-editor47 .crop-ratios [data-reset-all]{flex:0 0 72px}
.crop-gesture-help{margin:3px 4px 5px;font-size:12px;line-height:1.4;color:var(--text-secondary,#6b6d71)}
