/* Final UI pass, loaded last: readable text, clear contrast, comfortable targets, only relevant controls. */
body{--muted:#665f72}
body.dark{--muted:#aaa3b5}
body:not(.dark){--purple:#7048ba}

/* Only show AI / Original and search where they change what you see. */
body:not([data-view=feed]):not([data-view=loops]) .lane-switch,body:not([data-view=feed]):not([data-view=loops]) .search{display:none}
body:not([data-view=feed]):not([data-view=loops]) header{justify-content:flex-end}
body[data-view=feed] #feedTitle{display:none}
body[data-view=meet] .endnote{display:none}
.feed-controls{padding:4px 0 1px;margin-bottom:18px}
.feed-controls .feed-heading h2{font-size:20px;letter-spacing:-.5px;margin:4px 0 10px}
body[data-view=feed] .feed-heading{margin:0}

/* Text size and contrast */
.post-head b{font-size:13px}.post-head small,.post p,.post details,.post summary,.post details p,.pair-link,.tag,.endnote,.feed-heading>span,.field-note,.local-note,.form-row label,form label,.setting-row small,.profile-edit small,.profile-edit-actions button:last-child,.contact b,.contact small,.conversation-head small,.chat-empty,.profile-card p,.profile-stats,.profile-stats b,.profile-tabs button,.empty,.empty p,.filters button,.lane-switch button,.sign-in-link,.search input,.meet-card>p,.meet-sub,.meet-intent small,.meet-count,.meet-safety,.meet-link,.meet-city,.meet-chip,.meet-q small,.meet-picks,.meet-lane,.meet-row small,.match-dialog p,.match-pair figcaption,.starters small,.theme-card p,.progress-top span,.more-details summary small,.comment-empty,.comment p,.comment-post,.like-dialog blockquote small{font-size:12px!important}
.post p,.chat-empty,.empty{line-height:1.65}
.post-head small,.post p,.post details,.post summary,.endnote,.feed-heading>span,.field-note,.local-note,form label,form>p,.setting-row small,.profile-edit small,.contact small,.conversation-head small,.chat-empty,.profile-card p,.profile-stats,.profile-tabs button,.empty,.filters button,.lane-switch button,.post-actions,.comment-empty,.comment-post,.search,.profile-edit-actions button:last-child{color:var(--muted)!important}
.profile-stats b{color:var(--ink)}
.tag{padding:4px 9px;border-radius:20px}
body:not(.dark) .tag{color:#694990}
.meet-kicker,.theme-kicker{font-size:11px;letter-spacing:1.4px}
.lane-switch button[aria-pressed=true],.profile-tabs button[aria-pressed=true],.filters .selected{color:var(--purple)!important}
body.dark .lane-switch button[aria-pressed=true],body.dark .profile-tabs button[aria-pressed=true],body.dark .filters .selected{color:#d3c1ff!important}
.conversation-head small{font-weight:400;margin-top:6px}
input::placeholder,textarea::placeholder{color:var(--muted)!important;opacity:1}
.search input,body.dark .search input{background:transparent}

/* Comfortable targets */
.lane-switch button{min-height:34px;padding:7px 14px}.filters button,.profile-tabs button,.meet-link,.progress-next,.pair-link,.follow,.setting-action,.theme-actions .meet-link,.profile-edit-actions button,.endnote button{min-height:36px}
.theme-toggle,.header-icon{width:40px;height:40px}
.post-actions{gap:6px}.post-actions button{min-height:38px;min-width:38px;justify-content:center}
.progress-next{padding:6px 0}.sign-in-link{min-height:40px;display:inline-flex;align-items:center;padding:0 16px}
.meet-more,.post-menu summary{min-width:38px;min-height:38px;display:grid;place-items:center}
.meet-heart.small{width:40px;height:40px}
.meet-menu button,.post-menu button{min-height:40px}

/* Post header: one clear follow button, or one options menu for your own posts */
.follow{margin-left:auto;font-size:12px;padding:0 14px;border:1px solid var(--line);border-radius:20px;color:var(--purple)}
.follow[aria-pressed=true]{color:var(--muted);background:var(--soft)}
.post .post-menu{margin:0 0 0 auto;position:relative}
.post-menu summary{list-style:none;cursor:pointer;font-size:20px!important;border-radius:8px}.post-menu summary::-webkit-details-marker{display:none}
.post-menu summary:hover{background:var(--soft)}
.post-menu>div{position:absolute;right:0;top:42px;z-index:4;min-width:120px;padding:6px;display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px #0004}
.post-menu button{text-align:left;padding:8px 14px;border-radius:6px;font-size:13px;color:var(--ink)}.post-menu button:hover{background:var(--soft)}
.post-menu button:last-child,.meet-menu button:last-child,.meet-off{color:#b03a5b}
body.dark .post-menu button:last-child,body.dark .meet-menu button:last-child,body.dark .meet-off{color:#f08ba6}

/* Settings, profile, forms, messages */
.settings-card{max-width:720px;width:100%;margin:0 auto}
.setting-action{display:inline-flex;align-items:center;padding:0 16px;border:1px solid var(--line);border-radius:20px;font-size:12px;color:var(--purple);white-space:nowrap}
.profile-card .primary{font-size:13px;padding:11px 16px}
#postForm>.primary{width:100%;min-height:46px}
.contact small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contact>span{min-width:0}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--purple);outline-offset:2px}

/* Phone: labelled bottom menu within thumb reach */
@media(max-width:700px){
 nav{position:fixed;left:0;right:0;bottom:0;margin:0;z-index:20;display:grid;grid-template-columns:repeat(5,1fr);gap:0;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line)}
 nav button{flex-direction:column;justify-content:center;gap:3px;min-height:50px;padding:4px 2px}
 nav button span{display:block!important;font-size:11px!important}
 body.dark nav .active,body:not(.dark) nav .active{background:transparent}
 .sidebar{justify-content:flex-start}.brand span{display:block!important}
 .layout{padding-bottom:100px}
 #toast,.undo-post{bottom:88px}
 header{gap:8px}.search{min-height:40px}
 .contacts{overflow-x:auto}.contact{flex:0 0 auto;width:auto;min-height:44px;padding:7px 12px}
 .profile-card .primary{width:100%}
 .meet-art{min-height:300px}
}

/* Final polish */
body:not(.dark) nav button:not(.active) span,.contacts h3{color:var(--muted)}
.contacts{scrollbar-width:none}.contacts::-webkit-scrollbar{display:none}
@media(max-width:700px){
 header{z-index:9}
 .theme-toggle,.header-icon,.sign-in-link{position:fixed;top:12px;z-index:21;background:var(--bg)}
 .sign-in-link{right:16px;width:72px;padding:0;justify-content:center}.header-icon{right:98px}.theme-toggle{right:146px}
 body:not(:has(.sign-in-link)) .header-icon{right:16px}body:not(:has(.sign-in-link)) .theme-toggle{right:64px}
 body:not([data-view=feed]):not([data-view=loops]) header{height:0;min-height:0;padding:0;border:0}
 body:not([data-view=feed]):not([data-view=loops]) .feed-controls{top:65px}
}
.more-details summary>span{white-space:nowrap}
@media(max-width:700px){.chat-log{min-height:150px}.chat-log:has(+.starters){min-height:0;padding:0 20px}.chat-log:has(+.starters) .chat-empty{padding:16px 0}.more-details summary{align-items:flex-start}}

/* Beta accounts: Meet stays hidden until its safety work is done. */
body.beta-account nav [data-view=meet],body.beta-account .setting-row:has([data-view=meet]){display:none}
.setting-links{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}a.setting-action{text-decoration:none;min-height:36px}
