/* Composer and feed navigation share a single spacing and surface language. */
:root{--social-gap:18px;--social-radius:18px}
.community-composer[data-community-composer]{display:block;padding:20px;border-radius:18px;margin-bottom:18px;box-shadow:none}
.community-composer[data-community-composer] .composer-top{display:flex;align-items:flex-start;gap:13px;padding:0;margin:0;border:0}
.community-composer[data-community-composer] .composer-top textarea{min-height:60px;padding:8px 0;margin:0;font-size:15px;line-height:1.7}
.community-composer[data-community-composer] .composer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:13px;margin:10px 0 0 53px;padding-top:10px;border-top:1px solid var(--c-line)}
.composer-tools{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}
.community-composer .composer-toolbar .composer-attachment,.community-composer .composer-toolbar .composer-rules{margin:0;position:relative;align-self:center}
.community-composer .composer-toolbar :is(.composer-attachment>summary,.composer-rules>summary,[data-spoiler-add]){display:inline-flex;align-items:center;gap:7px;min-height:36px;margin:0;padding:7px 8px;font:inherit;font-size:11px;font-weight:500;color:var(--c-muted);line-height:1.4;white-space:nowrap;border:0;border-radius:8px;background:transparent;cursor:pointer;list-style:none}
.community-composer .composer-toolbar summary::-webkit-details-marker{display:none}
.community-composer .composer-toolbar :is(summary,[data-spoiler-add]):hover{color:var(--c-ink);background:var(--c-raised)}
.composer-toolbar .social-action-icon{width:16px;height:16px;flex-basis:16px}
.community-composer .composer-toolbar .composer-attachment[open]{position:relative}
.community-composer .composer-toolbar .composer-movie{position:absolute;left:0;top:calc(100% + 6px);width:320px;max-width:calc(100vw - 100px);margin:0;padding:14px;background:var(--c-surface);border:1px solid var(--c-line);border-radius:12px;box-shadow:0 14px 34px #0004;z-index:30}
.community-composer .composer-toolbar .composer-rules[open] p{right:auto;left:0;top:calc(100% + 6px);width:260px;max-width:calc(100vw - 80px);margin:0;z-index:30}
.community-composer .composer-toolbar .composer-bottom{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:0;padding:0;flex-shrink:0}
.community-composer .composer-toolbar [data-community-count]{display:inline;font-size:10px;font-variant-numeric:tabular-nums;color:var(--c-muted)}
.community-composer .composer-toolbar .community-button{min-height:40px;border-radius:10px;padding:9px 17px;font-size:12px;box-shadow:none}
.feed-toolbar{display:flex;align-items:center;gap:8px;padding:5px 8px;margin:0 0 18px;border:1px solid var(--c-line);border-radius:14px;background:var(--c-surface);position:relative;z-index:3}
.feed-toolbar>.community-feed-tabs{display:flex;align-items:stretch;flex:1;gap:0;min-width:0;padding:0;margin:0;border:0;border-radius:0;background:transparent;overflow:visible;box-shadow:none}
.feed-toolbar .community-feed-tabs>a{display:flex;align-items:center;justify-content:center;flex:1 1 0;min-width:0;min-height:42px;padding:10px 5px;border:0;border-radius:0;background:none;font-size:11px;line-height:1.4;white-space:nowrap;text-shadow:none;box-shadow:none;color:var(--c-muted);position:relative}
.feed-toolbar .community-feed-tabs>a:is(.is-active,[aria-current=page]){background:none;color:var(--c-accent);text-shadow:none;box-shadow:none;font-weight:700}
.feed-toolbar .community-feed-tabs>a:is(.is-active,[aria-current=page]):after{content:"";position:absolute;left:18%;right:18%;bottom:2px;height:2px;border-radius:2px;background:var(--c-accent)}
.feed-toolbar-search{flex:0 0 38px;position:relative;margin:0;padding:0;border-left:1px solid var(--c-line)}
.feed-toolbar-search>summary{width:38px;height:38px;display:flex;align-items:center;justify-content:center;list-style:none;border-radius:8px;color:var(--c-muted);cursor:pointer}
.feed-toolbar-search>summary::-webkit-details-marker{display:none}.feed-toolbar-search>summary:hover,.feed-toolbar-search[open]>summary{color:var(--c-accent);background:var(--c-raised)}
.feed-toolbar .feed-toolbar-search>.feed-toolbar-search-form{position:absolute;right:0;top:calc(100% + 12px);width:min(400px,calc(100vw - 64px));margin:0;min-height:48px;border-radius:12px;box-shadow:0 12px 30px #0004;z-index:40;background:var(--c-surface)}
.feed-toolbar-search .feed-search-clear{position:absolute;right:4px;top:calc(100% + 68px);padding:7px 10px;border:1px solid var(--c-line);border-radius:8px;background:var(--c-surface);color:var(--c-muted);font-size:11px;z-index:40}
.feed-toolbar :focus-visible,.composer-toolbar :focus-visible{outline:2px solid var(--c-accent);outline-offset:3px}
@media(max-width:760px){.community-composer[data-community-composer]{padding:16px;border-radius:16px}.community-composer[data-community-composer] .composer-toolbar{margin-left:53px;gap:8px;flex-wrap:wrap}.composer-tools{gap:2px;flex:1 1 100%}.community-composer .composer-toolbar .composer-bottom{margin-left:auto}.community-composer .composer-toolbar .community-button{min-height:44px}.community-composer .composer-toolbar .composer-rules[open] p{left:auto;right:0}.feed-toolbar{padding:5px;gap:5px}.feed-toolbar .community-feed-tabs>a{font-size:10px;padding-inline:4px}}
@media(max-width:520px){.feed-toolbar>.community-feed-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.feed-toolbar-search{align-self:flex-start;margin-top:2px}.feed-toolbar .community-feed-tabs>a{min-height:38px}.community-composer[data-community-composer] .composer-toolbar{margin-left:0}.community-composer .composer-toolbar .composer-attachment>summary{padding-left:0}.composer-tools{justify-content:space-between}.community-composer .composer-toolbar .composer-movie{max-width:calc(100vw - 64px)}.community-composer .composer-toolbar .composer-rules[open] p{max-width:calc(100vw - 64px)}}

.community-composer[data-community-composer] .composer-top textarea{resize:none;overflow-y:hidden}
.feed-toolbar{border-radius:18px}
@media(max-width:760px){:root{--social-gap:16px;--social-radius:16px}.feed-toolbar{border-radius:16px}}

/* Feed selection: two destinations, one content menu, one search. */
.feed-toolbar.feed-toolbar-v2{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;align-items:center;gap:8px;padding:0 0 12px;margin:0 0 18px;border:0;border-bottom:1px solid var(--c-line);border-radius:0;background:transparent;overflow:visible}
.feed-toolbar-v2>.community-feed-tabs.feed-main-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;width:100%;padding:3px;border-radius:12px;background:var(--c-surface);border:1px solid var(--c-line)}
.feed-toolbar-v2 .feed-main-tabs>a{min-height:38px;padding:8px 10px!important;border-radius:8px;font-size:12px;line-height:1.3;white-space:nowrap;color:var(--c-muted);background:transparent}
.feed-toolbar-v2 .feed-main-tabs>a.is-active{background:var(--c-raised);color:var(--c-accent);font-weight:700}
.feed-toolbar-v2 .feed-main-tabs>a::after{content:none!important}
.feed-kind-menu{position:relative;min-width:0;margin:0;padding:0;border:0}
.feed-kind-menu>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid var(--c-line);border-radius:11px;background:transparent;color:var(--c-muted);font-size:11px;list-style:none;cursor:pointer;white-space:nowrap}
.feed-kind-menu>summary::-webkit-details-marker{display:none}.feed-kind-menu .social-action-icon{width:18px;height:18px;flex:0 0 18px}.feed-kind-chevron{width:12px;height:12px}
.feed-kind-menu.has-selection>summary,.feed-kind-menu[open]>summary{color:var(--c-accent);border-color:color-mix(in srgb,var(--c-accent) 35%,var(--c-line))}
.feed-kind-menu>nav{display:grid;position:absolute;right:0;top:calc(100% + 9px);width:200px;max-width:calc(100vw - 48px);padding:6px;border:1px solid var(--c-line);border-radius:13px;background:var(--c-surface);box-shadow:0 14px 36px #0005;z-index:45}
.feed-kind-menu>nav>a{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:10px;border-radius:8px;color:var(--c-muted);font-size:12px}
.feed-kind-menu>nav>a:is(:hover,[aria-current=page]){background:var(--c-raised);color:var(--c-accent)}
.feed-toolbar-v2>.feed-toolbar-search{width:44px;margin:0;border:0;align-self:center;position:static}
.feed-toolbar-v2>.feed-toolbar-search>summary{width:44px;height:44px;min-height:44px;border:1px solid var(--c-line);border-radius:11px;color:var(--c-muted)}
.feed-toolbar-v2 .feed-toolbar-search>.feed-toolbar-search-form{left:0;right:0;top:calc(100% + 5px);width:100%;max-width:100%;padding:8px 10px;min-width:0;box-sizing:border-box}
.feed-toolbar-v2 .feed-toolbar-search-form input{min-width:0;width:100%;font-size:16px}
.feed-toolbar-v2 .feed-search-clear{top:calc(100% + 65px);right:0}
@media(max-width:600px){
 .feed-toolbar.feed-toolbar-v2{grid-template-columns:minmax(0,1fr) 44px 44px;gap:6px;padding-bottom:12px}
 .feed-toolbar-v2 .feed-main-tabs>a{font-size:11px;padding:8px 4px!important;min-height:38px}
 .feed-kind-menu>summary{width:44px;padding:0;gap:0}
 .feed-kind-menu>summary>span,.feed-kind-menu>summary>.feed-kind-chevron{display:none}
 .feed-kind-menu.has-selection>summary::after{content:'';position:absolute;right:6px;top:6px;width:5px;height:5px;background:var(--c-accent);border-radius:50%}
}
