/* Feed media determines card height; no fixed thumbnail canvas. */
body[data-screen=home] #feed-list .member-feed-card .post-content{display:block;padding:12px}
body[data-screen=home] #feed-list .member-feed-card :is(.feed-media,.user-upload){width:100%;margin:8px 0 0;grid-area:auto}
body[data-screen=home] #feed-list .member-feed-card .feed-media :is(img,video),body[data-screen=home] #feed-list .member-feed-card .user-upload,.post .feed-media img,.post .user-upload{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;background:transparent;border-radius:10px}
body[data-screen=home] #feed-list .member-feed-card .photo-open{display:block;padding:0;border:0;background:transparent;line-height:0;width:100%}
body[data-screen=home] #feed-list .member-feed-card .post-actions{margin-top:8px}
#guest-root .gu-photo{float:none;display:block;width:100%;height:auto;max-height:none;margin:8px 0;border-radius:10px}
@media(max-width:700px){body[data-screen=home] .app-layout{padding-left:0;padding-right:0}body[data-screen=home] #main{padding-left:0;padding-right:0}body[data-screen=home] #main>:not(#feed-list){margin-left:10px;margin-right:10px}body[data-screen=home] #feed-list .member-feed-card{margin:0 0 5px;border-left:0;border-right:0;border-radius:0;width:100%}body[data-screen=home] #feed-list .member-feed-card .post-content{padding:12px 10px}#guest-root .gu-layout{padding-left:0;padding-right:0}#guest-root .gu-main>:not(.gu-post){margin-left:10px;margin-right:10px}#guest-root .gu-post{border-radius:0;border-left:0;border-right:0;padding:12px 10px;margin-bottom:5px}}
.theme-toggle{position:fixed;right:12px;bottom:85px;z-index:15;border:1px solid #cbd1d8;border-radius:20px;background:#fff;color:#33404d;padding:8px 12px;font-size:12px;box-shadow:0 2px 8px #0001;cursor:pointer}
html[data-theme=dark]{color-scheme:dark;--ink:#e7edf2;--muted:#a4afba;--line:#323a42;--red:#ff4966;--blush:#352129;--bg:#101417;--paper:#191f24}
html[data-theme=dark] body{background:#101417;color:#e7edf2}
html[data-theme=dark] :is(.panel,.post,.hc-card,.gu-post,.gu-panel,.topbar,.header,.mobile-nav,.gu-header,dialog,.sidebar,.decision-group,.theme-toggle){background:#191f24!important;color:#e7edf2;border-color:#323a42!important}
html[data-theme=dark] :is(.app-layout,#main,.gu-layout,.gu-main,.gu-sidebar,.gu-rail){background:transparent;color:#e7edf2}
html[data-theme=dark] :is(input,select,textarea,.outline,.composer-prompt,.hc-tabs button,.hc-tabs a,.gu-tabs button,.reference-composer-tools span,.home-feed-sort select,.connected-card-controls button){background:#232c33!important;color:#e0e7ee!important;border-color:#3c4751!important}
html[data-theme=dark] :is(.post-title,.gu-post h2,.gu-heading h1,.gu-panel h2,.who strong,.hc-card h3,.gu-author strong){color:#eef2f6!important}
html[data-theme=dark] :is(.post-copy,.gu-post p,.gu-heading p,.gu-author small,.post-meta,.who small,.post-actions,.hc-publisher small,.hc-card footer,.post figcaption,.showcase-credit,.reply p,#dialog-body,.home-feed-sort){color:#acb8c3!important}
html[data-theme=dark] :is(.primary,.gu-join){background:#df0032!important;color:white!important}
html[data-theme=dark] :is(.society-hero,.society-privacy,.sg-cover,.sg-pinned,.reference-icon-disc,.decision-tiers>div,.showcase-feature,.job-feed-feature,.event-strip,.feed-civic-link,.reference-poll button,.gu-join-panel){background:#222d35!important;color:#d9e5ee!important;border-color:#3b4852!important}
html[data-theme=dark] :is(.tabs,.post-actions,.gu-actions,.gu-sidebar nav,.sg-member){border-color:#323a42!important}
html[data-theme=dark] .decision-tiers>div.current,html[data-theme=dark] .hc-tabs [aria-pressed=true]{background:#3b202a!important;color:#ff8296!important}
html[data-theme=dark] .gu-tabs button.active{background:#df0032!important;color:white!important}
@media(min-width:1000px){.theme-toggle{bottom:18px}}
