:root{color-scheme:light;--page:#f4f7f5;--surface:#fff;--ink:#202a27;--muted:#62716b;--line:#dce5e0;--accent:#16735d;--accent-strong:#0c5b49;--accent-soft:#e3f3ec;--coral:#b95042;--focus:#e59a28;--shadow:0 2px 12px rgba(21,55,43,.06)}
html[data-theme=dark]{color-scheme:dark;--page:#171d1b;--surface:#222b27;--ink:#edf4f0;--muted:#b0c0b8;--line:#3b4942;--accent:#77d1b2;--accent-strong:#a0e4ca;--accent-soft:#293e35;--coral:#f08f7e;--focus:#f3bd63;--shadow:0 2px 14px rgba(0,0,0,.2)}
@media(prefers-color-scheme:dark){html[data-theme=system]{color-scheme:dark;--page:#171d1b;--surface:#222b27;--ink:#edf4f0;--muted:#b0c0b8;--line:#3b4942;--accent:#77d1b2;--accent-strong:#a0e4ca;--accent-soft:#293e35;--coral:#f08f7e;--focus:#f3bd63;--shadow:0 2px 14px rgba(0,0,0,.2)}}
*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--ink);font:16px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif}a{color:var(--accent-strong);text-underline-offset:3px}a:hover{text-decoration-thickness:2px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px} :focus-visible{outline:3px solid var(--focus)}
.skip-link{position:absolute;left:-9999px;top:8px;background:var(--surface);padding:10px;z-index:5}.skip-link:focus{left:8px}.topbar{min-height:64px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px max(18px,calc((100vw - 1160px)/2));position:sticky;top:0;z-index:3}.brand,.nav-main,.person-link,.post-head,.post-actions,.composer-tools,.search-row,.list-row,.notification-row,.admin-nav,.admin-actions{display:flex;align-items:center}.brand{gap:10px;text-decoration:none;color:var(--ink);font-weight:750;font-size:18px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--accent);color:#fff}.nav-main{gap:clamp(8px,1.8vw,22px);flex-wrap:wrap;justify-content:flex-end}.nav-main a,.nav-button{font-size:14px;text-decoration:none;color:var(--ink)}.nav-main form{margin:0}.nav-button{border:0;background:transparent;cursor:pointer;padding:6px}.nav-cta{padding:7px 12px;border-radius:7px;background:var(--accent);color:#fff!important}.page-shell{max-width:1160px;margin:28px auto 70px;padding:0 18px;min-height:70vh}.site-footer{display:flex;gap:22px;justify-content:center;padding:20px;color:var(--muted);font-size:13px;border-top:1px solid var(--line)}
h1,h2,h3,p{margin-top:0}h1{font-size:clamp(26px,3vw,34px);line-height:1.2;margin-bottom:16px}h2{font-size:20px;line-height:1.3;margin-bottom:12px}small,.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;color:var(--accent-strong);font-size:12px;font-weight:750;margin-bottom:5px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:20px;margin-bottom:16px;box-shadow:var(--shadow)}.notice{padding:12px 15px;background:var(--accent-soft);border-left:4px solid var(--accent);border-radius:6px;margin:0 0 16px}.notice-error{background:#fff0ed;border-color:var(--coral);color:#7e2e22}.notice-warning{background:#fff5df;border-color:#c9821d;color:#594318}.notice ul{margin:6px 0 0;padding-left:20px}
.button{border:1px solid transparent;border-radius:7px;padding:10px 15px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;font-weight:650}.button-primary{background:var(--accent);color:#fff}.button-primary:hover{background:var(--accent-strong)}.button-secondary{background:var(--accent-soft);color:var(--accent-strong);border-color:var(--line)}.button-quiet,.icon-button{background:transparent;border:1px solid var(--line);color:var(--ink)}.button-danger{background:#a53f34;color:#fff}.button-small{min-height:34px;padding:5px 10px;font-size:14px;background:var(--accent-soft);color:var(--accent-strong);border:1px solid var(--line);border-radius:6px;cursor:pointer}.text-button{background:none;border:0;color:var(--accent-strong);font-weight:650;cursor:pointer;padding:6px}.icon-button{border-radius:6px;padding:6px 9px;cursor:pointer}.form-stack{display:flex;flex-direction:column;gap:10px}.form-stack form{display:flex;flex-direction:column;gap:10px}label{font-weight:650;font-size:14px}input:not([type=checkbox]):not([type=file]),select,textarea{width:100%;min-height:42px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);padding:9px 11px}textarea{resize:vertical;min-height:92px}.check-row{display:flex;align-items:flex-start;gap:10px;font-weight:400}.check-row input{margin-top:5px}.inline-label{white-space:nowrap}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.auth-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,440px);align-items:center;gap:7vw;max-width:1000px;margin:50px auto}.auth-intro h1{font-size:clamp(32px,5vw,52px);max-width:520px}.auth-intro p:last-child{max-width:430px;color:var(--muted);font-size:18px}.narrow{max-width:560px;margin:30px auto}.narrow-wide{max-width:850px;margin:0 auto}.content-grid{display:grid;grid-template-columns:minmax(0,700px) minmax(220px,300px);gap:28px;justify-content:center}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px}.section-heading h1{margin:0}.side-note{font-size:14px}.side-note h2{font-size:17px}.composer{padding:18px}.composer textarea{margin:7px 0 12px}.composer-tools{gap:10px;flex-wrap:wrap}.composer-tools select{width:auto;min-width:170px}.composer small{display:block;margin-top:8px}.file-control{border:1px solid var(--line);border-radius:6px;padding:8px 10px;cursor:pointer}.file-control input{max-width:180px}.post-head{justify-content:space-between;gap:12px}.person-link{gap:11px;color:var(--ink);text-decoration:none}.person-link span:last-child{display:flex;flex-direction:column}.person-link small{font-size:12px}.avatar{width:42px;height:42px;object-fit:cover;border-radius:50%;flex:none}.avatar-large{width:88px;height:88px}.avatar-empty{display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-strong);font-weight:750}.post-body{margin:14px 0;overflow-wrap:anywhere}.post-image{display:block;width:100%;max-height:580px;object-fit:contain;background:var(--page);border-radius:7px;margin:12px 0}.post-video{display:block;width:100%;max-height:72vh;background:#111;border-radius:9px;margin:12px auto}.reels-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}.reel-card{padding:12px}.reel-card .post-video{aspect-ratio:9/16;max-height:70vh;object-fit:contain;margin:0 auto 10px}.reel-caption{margin:8px 0;overflow-wrap:anywhere}.reel-author{display:flex;align-items:center;gap:8px;margin-bottom:10px}.reel-author .avatar{width:34px;height:34px}.reel-empty{grid-column:1/-1}.post-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:13px;border-bottom:1px solid var(--line);padding:9px 0}.post-actions{gap:15px;padding:5px 0}.post-actions form{margin:0}.comment-preview{background:var(--page);padding:10px;border-radius:6px;font-size:14px}.comment-preview p{margin:3px 0 8px}.comment-form{display:flex;gap:8px;margin-top:10px}.comment-form input{flex:1}.report-details{margin-top:10px;color:var(--muted);font-size:13px}.report-details summary{cursor:pointer}.report-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:10px}.report-form select{min-width:150px}.empty-state{text-align:center;padding:36px 18px;background:var(--surface);border:1px dashed var(--line);border-radius:10px}.empty-state p{color:var(--muted)}.empty-icon{font-size:28px;color:var(--accent)}
.profile-head{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.profile-copy{flex:1;min-width:180px}.profile-copy h1{margin:0 0 8px}.profile-copy p:last-child{margin:0}.profile-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.profile-posts{max-width:700px;margin-top:20px}.search-form label{display:block;margin-bottom:7px}.search-row{gap:8px}.search-row input{flex:1}.people-list{display:grid;gap:10px}.person-card{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0}.list-panel{padding:0 18px}.notification-row,.comment-item,.admin-report{padding:15px 0;border-bottom:1px solid var(--line);gap:12px}.notification-row:last-child,.admin-report:last-child{border-bottom:0}.notification-row>div{flex:1}.notification-row p{margin:0}.notification-mark{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-strong)}.comment-item{display:flex;justify-content:space-between;align-items:flex-start}.comment-item>div{flex:1}.comment-item p{margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.comment-item small{display:block}.list-row{justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line)}.danger-panel{border-color:#d99388}.danger-panel h2{color:var(--coral)}.danger-panel form{max-width:450px;display:grid;gap:8px}.admin-nav{gap:16px;margin-bottom:15px}.metric-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.metric{display:flex;flex-direction:column}.metric strong{font-size:28px}.admin-report{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}.admin-report p{margin:5px 0}.admin-actions{gap:6px;flex-wrap:wrap}.badge{font-size:11px;background:var(--accent-soft);padding:2px 6px;border-radius:4px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;padding:10px;border-bottom:1px solid var(--line)}.legal-copy h2{margin-top:24px}.legal-copy p{color:var(--muted)}
@media(max-width:800px){.topbar{align-items:flex-start;flex-direction:column}.nav-main{justify-content:flex-start;gap:8px 14px}.content-grid{grid-template-columns:1fr}.side-column{display:grid;grid-template-columns:1fr 1fr;gap:12px}.side-note{margin:0}.auth-wrap{grid-template-columns:1fr;gap:22px;margin:20px auto}.auth-intro h1{font-size:34px}.profile-actions{width:100%}}
@media(max-width:520px){.page-shell{margin-top:18px;padding:0 12px}.topbar{padding:10px 12px}.nav-main{font-size:13px}.nav-main a{font-size:13px}.panel{padding:15px}.section-heading{align-items:flex-start;flex-direction:column}.composer-tools{align-items:stretch}.composer-tools .button{width:100%}.composer-tools select{width:100%}.side-column{grid-template-columns:1fr}.metric-row{grid-template-columns:1fr}.person-card{align-items:flex-start}.profile-head{align-items:flex-start}.avatar-large{width:70px;height:70px}.search-row{align-items:stretch;flex-direction:column}.site-footer{flex-wrap:wrap}.file-control{display:grid;gap:5px}.admin-report{align-items:flex-start}.admin-actions{width:100%}}

.person-card .person-link{flex:1;min-width:0}.person-card .person-link>span:last-child{min-width:0}.person-card .person-link strong{overflow-wrap:anywhere}
@media(max-width:520px){.person-card{flex-wrap:wrap}.person-card>.button{margin-left:53px}}

.post-actions .share-form{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.share-form select{width:auto;min-height:34px;padding:4px 8px;font-size:13px}.share-attribution{margin:5px 0 0 53px;color:var(--muted);font-size:13px}.share-attribution a{font-weight:650}@media(max-width:520px){.post-actions{flex-wrap:wrap}.post-actions .share-form{width:100%}.share-form select{flex:0 0 auto}}
.space-list{display:grid;gap:12px}.space-card{display:flex;align-items:center;justify-content:space-between;gap:18px}.space-card h2{margin:0 0 6px}.space-card h2 a{text-decoration:none;color:var(--ink)}.space-card p{margin:0 0 8px}.space-create-panel{margin-top:18px}.space-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.space-header h1{margin-bottom:8px}.space-header p{margin-bottom:8px}.space-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.space-actions form,.inline-actions form{margin:0}.inline-actions{display:flex;gap:8px}.space-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:18px;align-items:start}.space-posts{min-width:0}.space-members{position:sticky;top:90px}.space-member{justify-content:flex-start;gap:10px;color:var(--ink);text-decoration:none}.space-member>span:last-child{display:flex;flex-direction:column}.space-member small{color:var(--muted)}
@media(max-width:760px){.space-content-grid{grid-template-columns:1fr}.space-members{position:static}.space-header{flex-direction:column}.space-card{align-items:flex-start;flex-direction:column}.space-card>.button{align-self:flex-start}}
.friend-recommendations{margin:34px auto 0}.friend-recommendations h2{margin:0 0 5px}
.post-community-context{margin:3px 0 0 53px;color:#6e7b89;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.post-community-context a{color:#245b8b;font-weight:700;text-decoration:none}
.post-community-context a:hover,.post-community-context a:focus{color:#9a7422;text-decoration:underline}
.feed-post .post-community-context{margin-left:50px}
@media(max-width:800px){.feed-post .post-community-context{margin-left:44px}}
@media(max-width:560px){.post-community-context{font-size:11px;line-height:1.4}}

/* RED:58 sync marker */


/* RED:61 channelled message body typography */
.post-body-channelled{font-family:"Lora",Georgia,"Times New Roman",serif;font-size:1.04em;line-height:1.8;letter-spacing:.008em}
.feed-post .post-body.post-body-channelled{font-size:16px;line-height:1.8}
@media(max-width:800px){.feed-post .post-body.post-body-channelled{font-size:15px;line-height:1.75}}
@media(max-width:520px){.post-body-channelled{font-size:1.02em;line-height:1.75}.feed-post .post-body.post-body-channelled{font-size:15px;line-height:1.75}}
/* RED65 comment image layout */
.comment-image{display:block;width:100%;max-width:100%;height:auto;max-height:420px;object-fit:contain;object-position:left center;background:var(--page);border-radius:7px;margin:8px 0}
.comment-preview .comment-image{max-width:min(100%,280px);max-height:280px}
.comment-item>div{min-width:0}
.comment-image-picker{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:100%}
.comment-image-picker input[type=file]{max-width:220px;min-width:0}
.comment-edit-image{display:grid;gap:8px;max-width:100%}
@media(max-width:520px){.comment-image{max-height:320px}.comment-image-picker{width:100%}.comment-image-picker input[type=file]{width:100%;max-width:100%}.comment-form{flex-wrap:wrap}.comment-form textarea{flex:1 1 100%;min-width:0}.comment-form .comment-submit{flex:0 0 auto}}

/* RED:99 / RED:102 - compact social pagination */
.feed-pagination,.social-pagination{margin:24px 0 10px}
.feed-pagination__items,.social-pagination__items{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px}
.feed-pagination__link,.social-pagination__link{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:38px;min-height:38px;padding:7px 11px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:14px;font-weight:650;line-height:1.1;text-decoration:none}
.feed-pagination__link:hover,.social-pagination__link:hover{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-strong);text-decoration:none}
.feed-pagination__link:focus-visible,.social-pagination__link:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.feed-pagination__link--current,.social-pagination__link--current{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-strong);font-weight:750}
.feed-pagination__link--disabled,.social-pagination__link--disabled{color:var(--muted);cursor:not-allowed;opacity:.72}
.feed-pagination__ellipsis,.social-pagination__ellipsis{padding:0 3px;color:var(--muted)}
.feed-pagination__chevron,.social-pagination__chevron{font-size:20px;line-height:.8}
@media(max-width:520px){.feed-pagination,.social-pagination{margin:18px 0 8px}.feed-pagination__items,.social-pagination__items{gap:4px}.feed-pagination__link,.social-pagination__link{min-width:34px;min-height:36px;padding:6px 9px;font-size:13px}.feed-pagination__chevron,.social-pagination__chevron{font-size:18px}}

/* RED:103 - make the existing people search easy to find. */
.portal-social .nav-main .nav-search-link{display:inline-flex;align-items:center;gap:5px;min-height:40px;padding:6px 9px;border:1px solid var(--line);border-radius:9px}
.portal-social .nav-main .nav-search-link:hover{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-strong)}
.portal-social .nav-search-link svg,.portal-social .mobile-search-menu-link svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.portal-social .nav-search-link:focus-visible,.portal-social .mobile-search-link:focus-visible,.portal-social .mobile-search-menu-link:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.portal-social .mobile-search-menu-link{gap:10px}
.portal-social .search-scope{margin:0 0 14px;color:var(--muted);line-height:1.5}
