/* Compact surfaces retain natural text height and independent section gaps. */
.page{--surface-gap:16px}
.page>.panel,.profile-tab-panel>.panel,.page>.end-note{margin-top:var(--surface-gap);margin-bottom:var(--surface-gap)}
.page>:is(section,article,details)+:is(section,article,details){margin-top:var(--surface-gap)}
.page>.personal-intro,.page>.phone-section-switch{margin-bottom:var(--surface-gap)}
.panel,.personal-intro,.group-card,.book-card,.board-card,.unified-quick-card,.journal-entry{padding:18px;border-radius:19px}
.group-card{min-height:180px}.group-card>.pill{margin-bottom:14px}
.section-head{margin:14px 0 18px;row-gap:10px}.section-head h1{font-size:32px;margin-bottom:8px}.section-head h2,.personal-intro h2{font-size:25px;margin-bottom:8px}
.personal-tabs,.personal-tools{margin:12px 0 16px;gap:8px}.personal-tabs button,.btn{padding:9px 15px;font-size:13px;min-height:44px}
#explore>.personal-tabs{gap:9px;margin:12px 0 18px}#explore>.personal-tabs button{padding:12px;border-radius:16px}#explore>.personal-tabs small{margin-top:3px}
.optional-help{margin:14px 0}.optional-help>summary{padding:10px 0;min-height:44px}
#feed .friends-notes.notes-surface{padding:10px 12px 6px;margin-bottom:var(--surface-gap);border-radius:19px}
#feed .friends-notes-row{padding-top:7px!important;padding-bottom:10px!important;gap:10px}
.friend-note-tile{flex-basis:100px;gap:6px}.friend-note-bubble{width:100px;min-height:48px;padding:8px;font-size:11px;border-radius:15px}
.friend-note-tile .profile-identity{--identity-size:56px;margin-top:4px;margin-bottom:3px}.friend-note-tile>.pip-figure{width:46px;height:62px}
#feed .friends-notes-row>:is(.notes-signin,.notes-friends-control){min-height:64px;padding:10px 14px;font-size:12px;border-radius:17px}
#feed>.find-people-welcome{padding:14px 16px;margin:0 0 var(--surface-gap);border-radius:19px}
.find-people-welcome h3{font-size:17px;margin-bottom:5px}.find-people-welcome p{font-size:12px;line-height:1.55;margin-bottom:7px}
#feed>.daily-prevail{padding:12px 16px;margin:0 0 var(--surface-gap);border-radius:18px}.daily-prevail h2{font-size:19px;line-height:1.4;margin:6px 0}.daily-prevail-actions{gap:6px 16px}.daily-prevail-actions button{min-height:44px}
#feed .feed-checkin-title{font-size:23px;margin:6px 3px 8px}#feed .topics{gap:12px;padding:8px 3px}.topic{flex-basis:58px;min-height:80px}.topic-orb{width:54px;height:54px;margin-bottom:5px}.topic-orb>span{width:48px;height:48px;font-size:21px}
.feed-controls{margin-bottom:16px;padding-bottom:10px;gap:10px}.feed-controls button{min-height:44px}
#feed-list{gap:var(--surface-gap)}.post{border-radius:19px}.post-head{padding:11px 16px;gap:8px}.post-head>.profile-identity{--identity-size:36px}.art{padding:26px;min-height:200px}.art h2{font-size:28px;line-height:1.3}.art .label{margin-bottom:14px}.art .star{font-size:24px}
.actions{padding:8px 16px 0;gap:12px}.actions button{min-height:44px;font-size:12px}.actions .icon{width:20px;height:20px}.post-copy{padding:6px 16px 14px;font-size:13px;line-height:1.65}
.discover-card .pin-copy,.pin-copy{padding:15px}.discover-card .pin-art{height:145px!important}.discover-sketch{height:120px}.discover-card-title{font-size:23px;padding-top:5px}.discover-card-description{margin-bottom:12px!important;line-height:1.6}.friend-suggestion-grid,.discover-curated-grid{gap:14px}
#profile .profile-hero{padding:18px}#profile #profile-name{font-size:26px;margin-bottom:6px}.profile-stats{margin:14px 0;gap:26px}.profile-section-tabs{margin:12px 0}.profile-setting-group>summary{padding-top:12px;padding-bottom:12px;min-height:44px}
@media(max-width:760px){
.page{--surface-gap:14px;padding:12px;border-radius:19px}.mobile-head{padding-bottom:9px}.mobile-brand{min-height:54px}.mobile-brand .brand img{width:32px;height:43px}.topbar{padding:12px 0;row-gap:10px}.account-quiet-bar{margin:8px 3px 12px;min-height:44px;padding:2px 3px}.account-quiet-bar .activity-bell{min-width:44px;min-height:44px;flex-basis:44px;margin:0}
.panel,.personal-intro,.group-card,.book-card,.board-card,.unified-quick-card,.journal-entry{padding:15px;border-radius:17px}.section-head{margin:10px 0 14px}.section-head h1{font-size:28px}.section-head h2,.personal-intro h2{font-size:23px}
#feed .friends-notes.notes-surface{padding:8px 9px 4px}.friend-note-tile{flex-basis:94px}.friend-note-bubble{width:94px}.friend-note-tile .profile-identity{--identity-size:52px}.friend-note-tile>.pip-figure{width:42px;height:58px}
#feed>.find-people-welcome{padding:12px 14px}#feed>.daily-prevail{padding:11px 14px}.daily-prevail h2{font-size:18px}#feed .feed-checkin-title{font-size:21px}.post-head{padding:9px 13px}.art{padding:22px;min-height:175px}.art h2{font-size:25px}.actions{padding:5px 13px 0;gap:10px}.post-copy{padding:4px 13px 12px}
#explore>.personal-tabs button{padding:10px 8px}.discover-card .pin-art{height:110px!important}.discover-sketch{height:98px}.discover-card .pin-copy{padding:12px}.discover-card-title{font-size:20px}.discover-card-description{font-size:12px!important}.discover-card-actions .btn{min-height:44px;font-size:11px}
#profile .profile-hero{padding:15px}#profile #profile-name{font-size:24px}#profile #profile-avatar.photo-with-pip{width:74px;height:74px;margin-bottom:14px}#profile #profile-avatar.photo-with-pip>.profile-identity{--identity-size:74px}.end-note{padding:20px 12px}
}

/* A short, distinct introduction to the feed, with detail available on demand. */
#feed>.focused-checkin{padding:13px 15px;margin:0 0 14px;border:1px solid #e3d8ec;border-radius:19px;background:linear-gradient(120deg,#f4edf9,#faf6fd)}
#feed .focused-checkin .feed-checkin-title{font-size:21px;margin:0 0 6px}
#feed .focused-checkin .topics{padding:5px 0 3px;gap:10px}
#feed .focused-checkin .topic{flex-basis:54px;min-height:73px}
#feed .focused-checkin .topic-orb{width:48px;height:48px;margin-bottom:4px}
#feed .focused-checkin .topic-orb>span{width:42px;height:42px;font-size:19px}
#feed .focused-checkin .feed-feeling-note{font-size:11px;line-height:1.5;margin:5px 0 0}
.checkin-extras{margin-top:4px}.checkin-extras>summary,.people-extras>summary{cursor:pointer;font-size:12px;line-height:1.5;min-height:44px;display:list-item;padding:13px 0 9px;color:var(--muted)}
#feed .checkin-extras .feed-checkin-save{margin:4px 0 0;gap:8px 14px}
#feed .focused-checkin .feeling-followup{margin:8px 0;padding:8px 12px;background:#fffaf6;border-radius:13px}
#feed .focused-checkin .feeling-details summary{font-size:12px;min-height:44px;padding-top:12px;padding-bottom:10px}
#feed .focused-checkin .feeling-dismiss{top:8px;right:9px;min-height:44px}
#feed .friends-notes.notes-surface{background:#fff3e1;border:1px solid #eadac1;padding:10px 12px 5px;margin:0 0 14px}
.compact-notes-heading{font:600 12px/1.5 system-ui;margin:0 0 2px;color:#82623f}
#feed .friends-notes-row{padding-top:3px!important;padding-bottom:7px!important}
#feed .friends-notes-row>:is(.notes-signin,.notes-friends-control){min-height:48px;padding:6px 12px;background:#fffaf2;border-radius:14px}
#feed>.find-people-welcome{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;padding:11px 14px;margin:0 0 14px;background:#eef5ef;border-color:#d7e4d8}
.find-people-welcome>div:first-child{flex:1 1 140px;min-width:0}.find-people-welcome strong{font-size:13px}.find-people-welcome p{margin:2px 0 0;font-size:11px}.find-people-welcome>.btn{font-size:12px;padding:8px 12px}.find-people-welcome>.text-link{min-height:44px;font-size:11px}.people-extras{flex-basis:100%;min-width:0}.people-extras>summary{padding:10px 0}.people-extras .welcome-people{margin-top:6px}
#feed>.daily-prevail{background:linear-gradient(120deg,#fff0ca,#fff7df);border-color:#e8d6aa;margin-top:0;margin-bottom:14px}
@media(min-width:761px){#feed>.focused-checkin{padding:14px 17px}.focused-checkin .topics{gap:14px}}
.people-extras:has(.welcome-people:empty){display:none}

.topbar .come-as-tagline{display:block;line-height:1.4}
.topbar .come-as-tagline>span{display:block;white-space:nowrap}

/* Uniform Discover tiles: full content remains available by opening the title. */
.discover-curated-grid{grid-auto-rows:auto;align-items:start}
.discover-curated-grid .discover-card{height:auto;display:flex;flex-direction:column;min-width:0}
.discover-curated-grid .discover-card .pin-art{height:120px!important;flex:0 0 120px}
.discover-curated-grid .discover-card .discover-sketch{height:105px}
.discover-curated-grid .discover-card .pin-copy{display:grid;flex:none;height:auto;grid-template-rows:16px 54px 42px 44px;gap:8px;padding:14px;min-width:0}
.discover-curated-grid .discover-card .pin-kind{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:16px}
.discover-curated-grid .discover-card .discover-card-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:21px;line-height:27px;padding:0;margin:0;min-height:0;align-self:start;max-height:54px}
.discover-curated-grid .discover-card .discover-card-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px!important;line-height:21px;margin:0!important;max-height:42px}
.discover-curated-grid .discover-card .discover-card-actions{margin:0;padding:0;flex-wrap:nowrap;min-width:0;gap:6px;align-self:end}
.discover-curated-grid .discover-card .discover-card-actions .btn{min-height:44px;margin:0;padding:7px 10px}
.discover-curated-grid .discover-card .discover-card-menu summary{min-width:44px;min-height:44px;display:grid;place-items:center;padding:4px}
@media(max-width:760px){
.discover-curated-grid .discover-card .pin-art{height:100px!important;flex-basis:100px}
.discover-curated-grid .discover-card .discover-sketch{height:90px}
.discover-curated-grid .discover-card .pin-copy{grid-template-rows:16px 48px 40px 44px;padding:12px;gap:7px}
.discover-curated-grid .discover-card .discover-card-title{font-size:19px;line-height:24px;max-height:48px}
.discover-curated-grid .discover-card .discover-card-description{line-height:20px;max-height:40px}
}
.discover-read-more{position:absolute;right:9px;bottom:8px;padding:3px 8px;border-radius:12px;background:#fffaf2ed;color:var(--ink);font:11px/1.5 system-ui;z-index:1}

/* Help is public, clearly labeled, and never initiates a call on page load. */
.crisis-help-shortcut,.nav .crisis-help-nav{border:1px solid #d9bcc5;background:#f8edf0;color:#763f50;border-radius:13px;min-height:44px;padding:9px 12px;font-size:12px;font-weight:650;white-space:nowrap}
.account-quiet-bar{flex-wrap:wrap}.account-quiet-bar .crisis-help-shortcut{flex:0 0 auto}
.nav .crisis-help-nav{margin-top:10px;justify-content:center}
.crisis-help-page .crisis-help-card{margin:0 0 16px;padding:18px;border:1px solid var(--line);border-radius:19px;background:#f7f1fa}
.crisis-help-card h2{font-size:23px;line-height:1.35;margin-bottom:9px}.crisis-help-card p{font-size:13px;line-height:1.7;margin-bottom:12px;overflow-wrap:anywhere}.crisis-help-card p:last-child{margin-bottom:0}
.crisis-help-page .crisis-emergency{background:#fbefed;border-color:#e9c7c1}.crisis-emergency-call{background:#863f40;color:white}
.crisis-help-page .crisis-lifeline{background:#fff3d6;border-color:#e6d5ac}.crisis-help-page .crisis-scope{background:#f0eaf7}.crisis-help-page .crisis-ongoing{background:#edf5ef}.crisis-help-page .crisis-location{background:#f5f0e9}
.crisis-help-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.crisis-help-card a.btn{text-decoration:none;min-height:44px}.crisis-help-card>.text-link{display:inline-flex;align-items:center;min-height:44px;line-height:1.6}
.crisis-care-note{font-size:11px!important;line-height:1.6!important;margin:16px 0 0;padding-top:12px;border-top:1px solid var(--line);color:var(--muted)}.crisis-care-note button{min-height:44px}.crisis-help-source{line-height:1.8}
@media(max-width:480px){.crisis-help-page .crisis-help-card{padding:15px}.crisis-help-card h2{font-size:21px}.crisis-help-actions .btn{flex:1 1 100px}.account-quiet-bar .crisis-help-shortcut{padding:8px 10px;font-size:11px}}

#feed>.find-people-welcome.people-collapsed{padding:6px 14px;gap:8px}
#feed>.find-people-welcome.people-collapsed>:not(:first-child):not(.people-dismiss){display:none}
#feed>.find-people-welcome.people-collapsed>div:first-child>p{display:none}
#feed>.find-people-welcome.people-collapsed>.people-dismiss{margin-left:auto;min-width:44px}

.profile-share-link{display:block;margin:8px auto 0;min-height:44px}
#share-my-profile input{font-size:13px;padding:12px;width:100%;min-width:0}
#shared-profile-link>.pip-figure,#shared-profile-link .friend-initial{margin:12px auto}
#shared-profile-link p{overflow-wrap:anywhere;line-height:1.7}
.friend-discovery>.personal-tools{margin:10px 0 14px}
#profile-search-settings .personal-check{align-items:center;line-height:1.6}

.member-name{font-size:inherit;font-weight:650;color:inherit;text-align:inherit;cursor:pointer;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px;overflow-wrap:anywhere}
button.member-name{padding:6px 0;min-height:44px;max-width:100%;white-space:normal;line-height:1.5}
.member-name:hover,.member-name:focus-visible{text-decoration-color:currentColor}
.member-profile-card{padding:24px 20px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(140deg,#fff0d5,#eee5f6);text-align:center;margin-top:12px;overflow-wrap:anywhere}
.member-profile-card>h1{font-size:29px;margin:14px 0 10px}.member-profile-card>.profile-identity{--identity-size:86px;margin:10px auto 18px}.member-profile-card>.pip-figure{width:72px;height:100px;margin:0 auto}.member-profile-card>.friend-initial{display:grid;place-items:center;width:72px;height:72px;margin:auto;border-radius:50%;background:var(--lilac);font-size:25px}
.member-profile-card>p{font-size:13px;line-height:1.7;white-space:pre-wrap}.member-profile-card .pin-tags,.member-connection-tools{justify-content:center}.member-connection-status{font-size:13px;flex-basis:100%}
@media(max-width:480px){.member-profile-card{padding:20px 16px}.member-profile-card>h1{font-size:26px}}
.friend-note-open{display:flex;align-items:center;flex-direction:column;gap:6px;padding:0;width:100%}
.friend-note-open>.pip-figure{width:42px;height:58px}
.friend-note-tile>.member-name{font-size:11px;text-align:center;padding:4px 0;line-height:1.5}

.username-badge{display:block;font:11px/1.5 system-ui;color:var(--muted);overflow-wrap:anywhere;white-space:normal;text-transform:none;letter-spacing:0;margin:2px 0 4px}
.member-name-identity>span{display:block}.member-name-identity>.username-badge{font-size:10px;margin:2px 0 0;font-weight:400}.member-name-identity{line-height:1.4}
.own-username{display:block;margin:0 auto 10px;min-height:44px;font-size:13px}
.member-profile-card>.username-badge{font-size:14px;margin:-3px 0 14px}.post-head .username-badge{font-size:10px;margin:2px 0}
#username-setup input{font-size:16px}#username-setup [hidden]{display:none!important}
#inbox .dm-inbox-heading strong{display:block;-webkit-line-clamp:unset;overflow:visible;overflow-wrap:anywhere;white-space:normal}

/* Balanced friend controls and a quiet, single feed footer. */
#feed>.find-people-welcome{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:13px 14px}
#feed>.find-people-welcome>div:first-child{grid-column:1;grid-row:1 / 3}
#feed>.find-people-welcome>.btn{grid-column:2;grid-row:1;margin:0;min-height:44px}
#feed>.find-people-welcome>.text-link{grid-column:2;grid-row:2;justify-self:center;margin:0;min-height:36px;padding:5px 8px}
#feed>.find-people-welcome p{max-width:24ch;line-height:1.5}
#feed .friends-notes-row>.notes-friends-control{flex:0 1 160px;max-width:190px;min-width:100px;min-height:44px;padding:8px 12px;margin:auto 0 auto 10px;border-radius:14px;line-height:1.4;font-size:12px}
#feed>.feed-footer-help{border-top:1px solid var(--line);margin:18px 0 0;padding:0 4px;background:none}
.feed-footer-help>summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:12px;color:var(--muted)}
#feed .feed-footer-help>.optional-help{margin:0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;padding:0 8px}
#feed .feed-footer-help>.optional-help>summary{font-size:12px;min-height:44px;padding:11px 0}
#feed>.end-note{padding:15px 10px;margin:12px 0 0;font-size:18px;line-height:1.5;border-radius:16px;background:linear-gradient(110deg,#f2ecf7,#edf3e9)}
#feed>.end-note small{display:block;margin-top:4px}
@media(max-width:380px){#feed>.find-people-welcome{grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}.find-people-welcome strong{font-size:12px}#feed .friends-notes-row>.notes-friends-control{flex-basis:130px}}
