/* Feed-only controls. Edition defaults retain existing surfaces and rhythm. */
:root { --feed-contrast:50%; --feed-edge:color-mix(in srgb,var(--ink) calc(12% + var(--feed-contrast) * .28),var(--bg)); --feed-panel:color-mix(in srgb,var(--surface) calc(30% + var(--feed-contrast) * .7),var(--bg)); }
:root[data-background-intensity=quiet] body {background:var(--bg)!important;}
/* Scope to actual post lists and the existing member hub, not other cards. A high-specificity
   selector intentionally supersedes the previous timeline's !important declarations. */
:root[data-feed-style=seamless] :is(.posts-grid,#community-feed-results,.gaf-live) .post-card {background:transparent!important;border:0!important;border-bottom:1px solid var(--feed-edge)!important;border-radius:0!important;box-shadow:none!important;transform:none!important;}
:root:is([data-feed-style=defined],[data-feed-style=gallery]) :is(.posts-grid,#community-feed-results,.gaf-live) .post-card {background:var(--feed-panel)!important;border:1px solid var(--feed-edge)!important;box-shadow:none!important;transform:none!important;}
:root[data-feed-style=defined] :is(.posts-grid,#community-feed-results,.gaf-live) .post-card {border-radius:6px!important;}
:root[data-feed-style=gallery] :is(.posts-grid,#community-feed-results,.gaf-live) .post-card {border-radius:clamp(8px,var(--round),24px)!important;box-shadow:0 3px 12px color-mix(in srgb,var(--ink) 9%,transparent)!important;}
:root:is([data-feed-style=defined],[data-feed-style=gallery]) :is(.social-timeline,.edition-page--discover .discover-results,#community-feed-results) .posts-grid {gap:8px!important;}
:root[data-feed-style=gallery] :is(.social-timeline,.edition-page--discover .discover-results,#community-feed-results) .posts-grid {gap:14px!important;}
:root:is([data-feed-style=defined],[data-feed-style=gallery]) :is(.social-timeline,.edition-page--discover .discover-results,#community-feed-results) .post-card.live-post {padding-inline:12px!important;}
:root[data-feed-style]:not([data-feed-style=edition]) :is(.posts-grid,#community-feed-results,.gaf-live) .post-card :is(.post-content p,.post-content h3,.post-person strong) {color:var(--ink)!important;}
:root[data-feed-style]:not([data-feed-style=edition]) :is(.posts-grid,#community-feed-results,.gaf-live) .post-person span:not(.verified) {color:color-mix(in srgb,var(--ink) 80%,var(--surface));}
:root[data-feed-style]:not([data-feed-style=edition]) :is(.posts-grid,#community-feed-results,.gaf-live) .post-card .engage {min-height:44px;}
:root[data-feed-text=standard] {--feed-body-size:1rem;--feed-title-size:1.15rem;--feed-name-size:.95rem;--feed-meta-size:.8rem;}
:root[data-feed-text=comfortable] {--feed-body-size:1.125rem;--feed-title-size:1.25rem;--feed-name-size:1rem;--feed-meta-size:.875rem;}
:root[data-personal-feed-text=large] {--feed-body-size:1.125rem;--feed-title-size:1.25rem;--feed-name-size:1rem;--feed-meta-size:.875rem;}
:root:is([data-feed-text=standard],[data-feed-text=comfortable],[data-personal-feed-text=large]) :is(.posts-grid,#community-feed-results,.gaf-live) .post-card :is(.post-content p,.post-head~p) {font-size:var(--feed-body-size)!important;line-height:1.6;overflow-wrap:anywhere;}
:root:is([data-feed-text=standard],[data-feed-text=comfortable],[data-personal-feed-text=large]) :is(.posts-grid,#community-feed-results,.gaf-live) .post-card h3 {font-size:var(--feed-title-size)!important;line-height:1.3;overflow-wrap:anywhere;}
:root:is([data-feed-text=standard],[data-feed-text=comfortable],[data-personal-feed-text=large]) :is(.posts-grid,#community-feed-results,.gaf-live) .post-person strong {font-size:var(--feed-name-size)!important;}
:root:is([data-feed-text=standard],[data-feed-text=comfortable],[data-personal-feed-text=large]) :is(.posts-grid,#community-feed-results,.gaf-live) .post-person span:not(.verified) {font-size:var(--feed-meta-size)!important;white-space:normal;overflow-wrap:anywhere;}
:root[data-feed-font=system] {--feed-reading-font:system-ui,-apple-system,BlinkMacSystemFont,sans-serif;}
:root[data-feed-font=serif] {--feed-reading-font:Georgia,'Times New Roman',serif;}
:root:is([data-feed-font=system],[data-feed-font=serif]) :is(.posts-grid,#community-feed-results,.gaf-live) .post-card :is(.post-content p,.post-content h3,.post-head~p,.post-head~h3) {font-family:var(--feed-reading-font)!important;}
:root[data-feed-weight=medium] :is(.posts-grid,#community-feed-results,.gaf-live) .post-card :is(.post-content p,.post-head~p) {font-weight:500!important;}
:root[data-feed-density=compact] {--feed-block:8px;--feed-gap:5px;}
:root[data-feed-density=balanced] {--feed-block:14px;--feed-gap:10px;}
:root[data-feed-density=spacious] {--feed-block:22px;--feed-gap:18px;}
:root:is([data-feed-density=compact],[data-feed-density=balanced],[data-feed-density=spacious]) :is(.posts-grid,#community-feed-results,.gaf-live) .post-card {padding-block:var(--feed-block)!important;}
:root:is([data-feed-density=compact],[data-feed-density=balanced],[data-feed-density=spacious]) :is(.social-timeline,.edition-page--discover .discover-results,#community-feed-results) .posts-grid {gap:var(--feed-gap)!important;}
.feed-studio-v193{display:grid;gap:12px;min-width:0;}
.feed-studio-v193 h2{font-size:1.35rem;margin:6px 0;}
.feed-preview-v193{margin-top:6px;min-width:0;padding:12px;background:var(--bg);border:1px solid var(--stroke);border-radius:8px;}
.feed-preview-v193>.eyebrow{margin:0 0 8px;}
.feed-preview-v193 .post-actions{color:var(--muted);}
.feed-preview-v193 .engage{cursor:default;}
.feed-studio-v193 select{max-width:100%;min-width:0;}
@media(max-width:600px){.feed-studio-v193 .setting-row{flex-direction:column;flex-wrap:nowrap;align-items:stretch;}.feed-studio-v193 .setting-row>div:first-child{flex-basis:auto;min-width:0;}.feed-studio-v193 .slider-control{max-width:100%;}.feed-preview-v193{padding:8px;}}
@media(forced-colors:active){:root[data-feed-style]:not([data-feed-style=edition]) :is(.posts-grid,#community-feed-results,.gaf-live) .post-card{border-color:CanvasText!important;box-shadow:none!important;}}
/* Existing studio page controls must also fit a compact phone viewport. */
@media(max-width:480px){.studio-page .settings-main,.studio-page .page-studio-panel,.studio-page .page-settings-grid,.studio-page .setting-stack{min-width:0;}.studio-page .page-studio-panel select{width:100%;max-width:100%;min-width:0;}.studio-page .page-design-preview{flex-wrap:wrap;min-width:0;}.studio-page .page-design-preview>div{min-width:0;max-width:100%;}}
