/* Revision 9: readable media, generous navigation, and shared daily life. */
.content{max-width:1260px;margin-inline:auto}.feed-column{min-width:0}.two-column,:root[data-space=friends] .two-column{grid-template-columns:minmax(0,780px) minmax(220px,280px);justify-content:center;gap:28px}
.feed-tabs{display:flex;gap:8px;justify-content:space-between;align-items:center;width:100%;margin:0 0 24px;padding:6px 0 10px;overflow:auto;scrollbar-width:thin;scroll-padding-inline:12px}
.feed-tabs>button:not(.icon-button){flex:1 0 auto;padding:13px 16px;min-height:46px;line-height:1.35;white-space:nowrap;font-size:.83rem;border-radius:12px;border:0;border-bottom:2px solid transparent;text-align:center;color:var(--muted)}
.feed-tabs>button.active:not(.icon-button){color:var(--accent);background:var(--soft);border-bottom-color:var(--accent)}.feed-tabs>.icon-button{flex-shrink:0}
.post-media{display:flex;justify-content:center;align-items:center;background:color-mix(in srgb,var(--ink) 4%,var(--panel));overflow:hidden}.post-media>button{display:block;width:100%;padding:0;line-height:0}.post-media img,.post-media video,.gallery-strip img,.gallery-strip video{display:block;width:100%;height:auto;max-height:min(540px,62dvh);object-fit:contain;object-position:center;margin:auto}.gallery-strip{max-height:min(540px,62dvh)}.gallery-strip>button{min-width:100%;flex:0 0 100%}.post{min-width:0}.profile-timeline{width:100%;max-width:780px;margin-inline:auto}.media-library-item img{object-fit:contain;background:var(--soft)}
.identity-cover.has-cover{height:auto;min-height:0;aspect-ratio:3/1;max-height:300px;background:var(--soft)}.identity-cover.has-cover>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center}.identity-cover .cover-edit{z-index:2}.identity-cover:not(.has-cover){height:125px;min-height:125px}
.bubble.sent .message-meta small,.bubble.received .message-meta small,.bubble .message-meta small{color:var(--ink);opacity:.78;font-size:.72rem;line-height:1.5;font-weight:500;white-space:nowrap}.message-meta{gap:8px;align-items:center;flex-wrap:wrap;margin-top:7px}.bubble.sent .message-meta{color:var(--ink)}.topic-card h3,.topic-card strong,.topic-card .topic-name,.topic-card button{color:var(--ink)}.topic-card p,.topic-card small{color:var(--muted)}
.crop-stage{position:relative;max-width:600px;margin:12px auto;background:#17212c;touch-action:none;user-select:none;line-height:0}.crop-stage>img{width:100%;display:block;max-height:340px;object-fit:contain;pointer-events:none}.crop-selection{position:absolute;border:2px solid white;box-shadow:0 0 0 999px #0005;cursor:move;touch-action:none}.crop-stage{overflow:hidden}.crop-selection::before,.crop-selection::after{content:'';position:absolute;inset:33.333% 0;border-block:1px solid #fff7;pointer-events:none}.crop-selection::after{inset:0 33.333%;border-block:0;border-inline:1px solid #fff7}.crop-handle{position:absolute;width:24px;height:24px;background:transparent;border:0;padding:0;touch-action:none;transform:translate(-50%,-50%);z-index:2}.crop-handle::after{content:'';display:block;margin:7px;width:10px;height:10px;background:white;border:1px solid #17212c;border-radius:3px}.crop-handle[data-edge=nw]{left:0;top:0;cursor:nw-resize}.crop-handle[data-edge=n]{left:50%;top:0;cursor:n-resize}.crop-handle[data-edge=ne]{left:100%;top:0;cursor:ne-resize}.crop-handle[data-edge=e]{left:100%;top:50%;cursor:e-resize}.crop-handle[data-edge=se]{left:100%;top:100%;cursor:se-resize}.crop-handle[data-edge=s]{left:50%;top:100%;cursor:s-resize}.crop-handle[data-edge=sw]{left:0;top:100%;cursor:sw-resize}.crop-handle[data-edge=w]{left:0;top:50%;cursor:w-resize}.upload-photo-card>canvas{max-height:290px;max-width:100%;width:auto;object-fit:contain;margin:12px auto;display:block}.crop-controls{padding:14px;border-top:1px solid var(--line)}.crop-controls summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:9px}.crop-controls label{display:grid;gap:8px;margin:10px 0;font-size:.8rem}.crop-controls input[type=range]{width:100%;min-height:32px}.crop-preview-label{display:block;font-size:.73rem;color:var(--muted);padding:10px 14px 0}.photo-crop-preview:has(.upload-photo-card){width:100%;height:auto;border-radius:14px;background:var(--panel)}.photo-crop-preview .upload-photo-card{width:100%}.photo-editor:has(.crop-stage){display:block}.crop-hint{font-size:.78rem;line-height:1.6;color:var(--muted)}
@media(max-width:1100px){.two-column,:root[data-space=friends] .two-column{grid-template-columns:minmax(0,1fr) 235px;gap:22px}}
@media(max-width:760px){.two-column,:root[data-space=friends] .two-column{display:block}.feed-tabs{gap:8px;justify-content:flex-start;margin-inline:0;width:100%;padding:4px 0 10px}.feed-tabs>button:not(.icon-button){flex:0 0 auto;padding:12px 16px;font-size:.81rem}.post-media img,.post-media video,.gallery-strip img,.gallery-strip video{max-height:min(460px,56dvh)}.gallery-strip{max-height:min(460px,56dvh)}.identity-cover.has-cover{aspect-ratio:2.6/1;min-height:0;height:auto}.bubble.sent .message-meta small,.bubble.received .message-meta small,.bubble .message-meta small{font-size:.7rem}.crop-controls{padding:12px}.crop-stage>img{max-height:280px}}
.mobile-section-picker{display:none}.context-nav{gap:5px}.sidebar .context-nav .space-link{min-height:44px}.sidebar{overflow-y:auto}.sidebar-bottom{margin-top:22px}.little-promo{display:none}
.together-reminders{display:flex;gap:20px;align-items:center;padding:18px 0 22px;margin-bottom:22px;border-bottom:1px solid var(--line);flex-wrap:wrap}.together-reminders h3{font-size:1.12rem;margin:5px 0 0}.reminder-chips{display:flex;gap:10px;flex:1}.reminder-chips>button{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:var(--panel);padding:10px 14px;border-radius:15px;text-align:start;min-width:0}.reminder-chips strong,.reminder-chips small{display:block}.reminder-chips small{font-size:.72rem;color:var(--muted)}.reminder-chips .avatar{width:32px;height:32px}
.together-hub{max-width:1080px;margin:auto}.together-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.together-heading h2{font-size:1.9rem;margin:9px 0}.together-heading p{color:var(--muted);max-width:600px;margin:8px 0}.together-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.together-board-grid,.together-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0 30px}.together-board,.together-item,.relationship-card{padding:24px;min-width:0}.together-board{background:linear-gradient(135deg,var(--panel) 60%,var(--soft));border-top:3px solid var(--accent)}.together-board h3,.together-item h3{margin:12px 0;font-size:1.2rem;overflow-wrap:anywhere}.together-board p,.together-item>p{color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.together-tabs{display:flex;gap:10px;overflow:auto;padding-bottom:10px;margin-bottom:24px}.together-tabs button{flex-shrink:0;min-height:44px;padding:10px 18px}.together-items .section-heading{margin-bottom:8px}.together-items.task{grid-template-columns:1fr}.together-item.task .together-actions{margin-block:15px}.task-state{display:flex;align-items:center;gap:13px;flex-wrap:wrap}.status-chip.done{background:var(--soft);color:var(--accent)}.together-reactions{display:flex;align-items:center;gap:5px;margin-top:20px;padding-top:15px;border-top:1px solid var(--line)}.together-reactions .chip{font-size:.7rem;min-height:36px}.together-reactions small{margin-inline-end:7px;color:var(--muted)}.together-discussion{margin-top:12px}.together-discussion summary{min-height:44px;cursor:pointer;color:var(--accent);font-size:.8rem;font-weight:700;padding:10px 0}.together-comment{padding:12px;border-radius:12px;background:var(--soft);margin-bottom:10px}.together-comment p{margin:5px 0;font-size:.86rem;white-space:pre-wrap;overflow-wrap:anywhere}.together-comment strong{font-size:.76rem}.together-comment .text-button{font-size:.68rem}.together-votes{display:grid;gap:8px}.poll-choice{display:flex;justify-content:space-between;gap:15px;padding:13px;border-radius:10px;border:1px solid var(--line);background:var(--panel);text-align:start}.poll-choice.selected{background:var(--soft);border-color:var(--accent)}.fund-progress{display:grid;gap:6px;margin:20px 0}.fund-progress strong{font-size:1.8rem;letter-spacing:-.05em;color:var(--accent)}.fund-progress span,.fund-totals{font-size:.8rem;color:var(--muted)}.fund-progress progress{width:100%;height:8px;accent-color:var(--accent)}.fund-totals{display:flex;gap:16px;flex-wrap:wrap}.pledge-list>div,.tg-member-list>div{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--line)}.pledge-list small,.tg-member-list small{display:block;color:var(--muted);font-size:.72rem}.album-image{display:block;width:100%;border:0;background:var(--soft);padding:0;border-radius:12px;overflow:hidden}.album-image img,.together-item video{width:100%;max-height:320px;object-fit:contain;display:block}.relationship-directory{padding-top:20px;border-top:1px solid var(--line)}.relationship-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.relationship-card h3,.relationship-card p{margin:0}.relationship-card .muted{font-size:.78rem}.relationship-card>div:last-child{display:flex;gap:7px;margin-top:12px}.primary-partner{border:2px solid var(--accent);background:linear-gradient(150deg,var(--soft),var(--panel))}.countdown{display:block;font-size:.92rem;color:var(--accent)}.relationship-badge{display:flex;gap:8px;justify-content:center;align-items:center;padding:8px;font-size:.75rem;background:var(--soft);border-radius:10px;margin:10px 0}.relationship-badge .text-button{font-size:.7rem}.tg-member-picker{max-height:330px;overflow:auto;margin-block:16px}.together-heading .eyebrow{font-size:.68rem}.together-item .fine-print{line-height:1.7;margin-block:14px}
.photo-lightbox-dialog{width:min(1100px,96vw);max-height:94dvh;border:0;background:var(--panel)}.photo-lightbox-dialog::backdrop{background:#081223aa;backdrop-filter:blur(16px)}.photo-lightbox-dialog .dialog-body{padding:12px}.photo-lightbox{margin:0;display:flex;flex-direction:column;align-items:center}.photo-lightbox img{display:block;max-width:100%;width:auto;max-height:calc(90dvh - 120px);height:auto;object-fit:contain;border-radius:12px}.photo-lightbox figcaption{font-size:.8rem;padding:10px;color:var(--muted)}
@media(max-width:1100px){.mobile-section-picker{display:flex;align-items:center;gap:16px;justify-content:space-between;margin-bottom:24px}.mobile-section-picker>span{font-size:.8rem;color:var(--muted)}.mobile-section-picker select{min-height:46px;min-width:180px;border-radius:12px;background:var(--panel);font-size:16px}.reminder-chips{overflow:auto}.reminder-chips>button{flex-shrink:0}.together-heading{align-items:flex-start}}
@media(max-width:760px){.top-actions>.icon-button[data-action=notifications]{display:flex!important;min-width:34px;width:34px;min-height:40px}.topbar .mobile-brand .brand-word{font-size:1.05rem}.topbar .mobile-brand .brand-symbol{width:23px}.top-actions{gap:3px}.mode-top{max-width:103px}.mode-top .icon{display:none}.topbar{padding-inline:12px}.together-heading{display:block}.together-heading h2{font-size:1.55rem}.together-heading p{font-size:.86rem}.together-heading .together-actions{margin-top:16px}.together-board-grid,.together-items{grid-template-columns:1fr;gap:16px}.together-board,.together-item,.relationship-card{padding:19px}.together-reminders{gap:12px;position:relative}.reminder-chips{flex-basis:100%;order:3}.together-reminders>.button{margin-inline-start:auto;font-size:.75rem}.together-reminders .eyebrow{font-size:.57rem}.together-reminders h3{font-size:1rem}.relationship-directory>.section-heading{display:block}.relationship-directory .people-grid{grid-template-columns:1fr}.together-tabs{margin-inline-end:-16px;padding-inline-end:16px}.together-tabs .chip{font-size:.8rem}.together-hub>.section-heading{align-items:flex-start;gap:10px}.together-hub>.section-heading .button{flex-shrink:0;font-size:.72rem}.together-hub>.section-heading h3{font-size:1.1rem}.together-reactions .chip{padding-inline:8px}.mobile-section-picker{margin-bottom:19px}.together-items{margin-top:16px}.photo-lightbox-dialog{width:100%;max-width:100%;max-height:100dvh;border-radius:0}.photo-lightbox img{max-height:calc(100dvh - 145px)}.bubble{min-width:110px}.bubble:has(.message-attachment){width:min(320px,86%)}.message-attachment{max-height:300px;width:auto;min-height:60px}.bubble audio{width:100%}}
@media(max-width:370px){.topbar .mobile-brand .brand-word{display:none}.mode-top{max-width:120px}.reminder-chips>button{padding:9px}.together-reminders .together-actions .button{padding:10px}}
.identity-page{--profile-accent:#176b61;--profile-soft:#e6f0ec;--profile-ink:#1e3531}.identity-page[data-palette=sapphire]{--profile-accent:#3155b4;--profile-soft:#eaf0ff;--profile-ink:#23365d}.identity-page[data-palette=plum]{--profile-accent:#793a73;--profile-soft:#f4e9f3;--profile-ink:#44283f}.identity-page[data-palette=amber]{--profile-accent:#8b531c;--profile-soft:#f7eddb;--profile-ink:#51381e}.identity-page[data-palette=slate]{--profile-accent:#4b6275;--profile-soft:#eaf0f4;--profile-ink:#283b4b}.identity-page .identity-summary h2{color:var(--profile-ink)}.identity-page .profile-skills .chip,.identity-page .availability-pill,.identity-page .resume-topline .status-chip{background:var(--profile-soft);color:var(--profile-ink)}.identity-page .resume-group{border-inline-start:3px solid var(--profile-accent)}.identity-page .resume-jump a,.identity-page .text-button{color:var(--profile-accent)}.identity-page .resume-summary{background:linear-gradient(120deg,var(--profile-soft),var(--panel));border:1px solid var(--line)}.identity-page .identity-cover{background:var(--profile-soft)}.cover-panels{display:grid;grid-template-columns:1fr;position:absolute;inset:0;gap:6px;padding:6px}.panels-3 .cover-panels{grid-template-columns:repeat(3,minmax(0,1fr))}.panels-5 .cover-panels{grid-template-columns:repeat(5,minmax(0,1fr))}.cover-panels>button{width:100%;height:100%;min-height:0;min-width:0;padding:0;border:0;border-radius:8px;background:color-mix(in srgb,var(--profile-accent) 8%,var(--panel));overflow:hidden}.identity-cover .cover-panels img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}.identity-cover.has-cover{position:relative}.avatar-view{display:block;border:0;background:none;padding:0;border-radius:50%;cursor:zoom-in}.cover-panels>button{cursor:zoom-in}.profile-contact-links{display:flex;flex-wrap:wrap;gap:10px;padding:12px 28px}.profile-contact-links>a{padding:7px 13px;border:1px solid var(--line);color:var(--profile-accent);border-radius:20px;text-decoration:none;font-size:.8rem}.profile-share-link{margin:12px 28px 22px}.profile-section video{width:100%;max-height:420px;object-fit:contain}.resume-entries .profile-section{border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;padding:20px 0}.resume-entries .profile-section:last-child{border-bottom:0}.resume-group .profile-section h3{font-size:1.06rem}.resume-group .profile-period{font-variant-numeric:tabular-nums}.resume-group .profile-section-body{line-height:1.85}.shared-profile-view .person-profile-dialog{width:min(1180px,96vw)}.work-dashboard{padding:0 0 20px;margin-bottom:20px;border-top:0;display:block}.work-actions-grid{max-width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.family-dashboard{display:block;padding:15px 20px}.family-agenda{border:0;padding:0}.friends-dashboard{padding-top:0;margin-bottom:20px}.story-view{max-height:80dvh}.story-view img,.story-view video{object-fit:contain;max-height:70dvh}.stories-bar{overflow-x:auto;flex-wrap:nowrap}.story-item{flex-shrink:0}.stories-tip{display:none}.bubble:has(.message-attachment){min-width:180px}.message-attachment{max-height:330px;object-fit:contain}.bubble audio.message-attachment{width:280px;height:44px;min-height:44px}.voice-note-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 14px}.voice-note-controls audio{height:40px;max-width:100%}.recording-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#c9354c}.voice-record-button{flex-shrink:0}.message-form input[name=body]{min-width:0;flex:1}.voice-note-controls .fine-print{font-size:.68rem;margin:0;color:var(--muted)}
:root[data-theme=dark] .identity-page{--profile-ink:#edf2fa;--profile-accent:#a3baff;--profile-soft:#293447}
@media(max-width:760px){.identity-cover.panels-5{aspect-ratio:1.9/1}.panels-5 .cover-panels{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}.panels-5 .cover-panels>button{grid-column:span 2}.panels-5 .cover-panels>button:nth-child(-n+2){grid-column:span 3}.cover-panels{gap:3px;padding:3px}.profile-contact-links{padding:12px 17px;gap:7px}.profile-share-link{margin-inline:17px}.profile-contact-links a{font-size:.75rem}.work-actions-grid .work-action-tile{min-height:70px}.work-dashboard{padding-bottom:16px;margin-bottom:16px}.message-form .voice-record-button{min-width:33px;padding:5px;width:33px}.message-form .message-file{width:32px}.voice-note-controls{padding:8px 10px}.voice-note-controls .fine-print{font-size:.65rem}.bubble audio.message-attachment{max-width:100%;width:240px}}
/* Remove older unlimited-media and Work-cover overrides at their actual specificity. */
.post .post-media img,.post .post-media video{height:auto;max-height:min(540px,62dvh);aspect-ratio:auto;object-fit:contain}.post .gallery-strip{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;max-height:min(540px,62dvh);padding:6px;gap:6px}.post .gallery-strip>button,.post .gallery-strip>video{flex:0 0 100%;min-width:100%;scroll-snap-align:center}.post .gallery-strip img,.post .gallery-strip video{max-height:min(520px,60dvh);height:auto;aspect-ratio:auto;object-fit:contain}
:root[data-space=work] .identity-page .identity-cover.has-cover,.identity-page .identity-cover.has-cover{height:auto;min-height:0;aspect-ratio:3/1;max-height:300px;background:var(--profile-soft)}.topic-card .toggle-row,.topic-card .text-button{color:var(--ink)}.text-story-art{min-height:400px;display:grid;place-items:center;background:linear-gradient(150deg,var(--accent),var(--ink));color:#fff}.text-story-art .icon{width:90px;height:90px;opacity:.3}
@media(max-width:760px){.post .post-media img,.post .post-media video{max-height:min(460px,56dvh)}.post .gallery-strip{max-height:min(460px,56dvh)}.post .gallery-strip img,.post .gallery-strip video{max-height:min(440px,54dvh)}:root[data-space=work] .identity-page .identity-cover.has-cover,.identity-page .identity-cover.has-cover{aspect-ratio:2.6/1}:root[data-space=work] .identity-page .identity-cover.panels-5,.identity-page .identity-cover.panels-5{aspect-ratio:1.9/1}.text-story-art{min-height:55dvh}}
.chat-bubbles>.bubble{flex:0 0 auto;overflow-wrap:anywhere}.bubble:has(.message-attachment){width:min(320px,86%)}.bubble img.message-attachment,.bubble video.message-attachment{width:100%;height:auto;max-height:330px;object-fit:contain}.photo-crop-preview:has(.upload-photo-card){border-radius:14px;overflow:visible;box-shadow:none}
