.k-community-page{max-width:none;width:100%;margin:0;padding:20px 16px 120px;box-sizing:border-box}.k-community-head{margin-bottom:18px}.k-community-head h1{margin:0;font-size:clamp(30px,5vw,44px)}.k-community-head p{margin:8px 0 0;color:#6f7887;line-height:1.5}.k-community-categories{display:flex;gap:12px;overflow-x:auto;padding:4px 0 16px;scrollbar-width:none}.k-community-categories::-webkit-scrollbar{display:none}.k-community-categories button{border:0;background:transparent;display:grid;gap:6px;place-items:center;min-width:70px;color:#5f6878}.k-community-categories span{width:56px;height:56px;border:2px solid #ff6b00;border-radius:50%;display:grid;place-items:center;background:#fff;font-size:22px}.k-community-categories .is-active span{background:#111827;color:#fff;border-color:#111827}.k-community-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;margin-bottom:18px}.k-community-toolbar label{display:flex;align-items:center;gap:9px;border:1px solid #e4e7ec;background:#fff;border-radius:18px;padding:0 14px;min-width:0}.k-community-toolbar input{border:0;outline:0;width:100%;min-width:0;padding:14px 0;background:transparent}.k-community-toolbar button,.k-community-toolbar a{border:1px solid #e4e7ec;background:#fff;border-radius:18px;padding:0 14px;display:grid;place-items:center;text-decoration:none;color:#111827;font-weight:700}.k-community-feed{display:grid;gap:18px}.k-community-card{background:#fff;border:1px solid #e9ebef;border-radius:24px;overflow:hidden;box-shadow:0 12px 34px rgba(15,23,42,.06)}.k-community-card>header{display:flex;align-items:center;gap:10px;padding:14px 16px}.k-community-card>header div{display:grid;min-width:0}.k-community-card>header small{color:#8a93a2}.k-community-card>header button{margin-left:auto;border:0;background:transparent;font-size:20px}.k-community-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#fff1e7;color:#ff6b00;font-weight:800}.k-community-media{display:block;width:100%;border:0;padding:0;background:#f3f4f6;aspect-ratio:4/3;overflow:hidden}.k-community-media img{width:100%;height:100%;object-fit:cover}.k-community-body{padding:16px}.k-community-body h2{margin:0 0 8px;font-size:22px}.k-community-body p{margin:0;color:#5f6878;line-height:1.55}.k-community-card>footer{display:flex;align-items:center;gap:12px;padding:0 16px 16px}.k-community-card>footer div{display:flex;gap:8px}.k-community-card>footer button{border:0;background:transparent;font-size:24px}.k-community-card>footer span{color:#7a8493;font-size:13px}.k-community-card>footer a{margin-left:auto;color:#ff6b00;font-weight:800;text-decoration:none}.k-community-skeleton{display:grid;gap:18px}.k-community-skeleton article{height:300px;border-radius:24px;background:#eceeea;padding:16px;display:grid;align-content:end;gap:10px}.k-community-skeleton i,.k-community-skeleton span{display:block;background:#ffffff99;border-radius:10px;height:14px}.k-community-skeleton i{height:42px;width:42px;border-radius:50%;align-self:start}.k-community-skeleton span:nth-child(3){width:70%}.k-community-dialog{width:min(620px,calc(100vw - 24px));border:0;border-radius:24px;padding:0;box-shadow:0 24px 80px rgba(0,0,0,.25)}.k-community-dialog::backdrop{background:rgba(15,23,42,.62)}.k-community-dialog>button{position:absolute;right:12px;top:12px;width:42px;height:42px;border:0;border-radius:50%;background:#111827;color:#fff;font-size:24px;z-index:2}.k-community-dialog-post{padding:24px}.k-community-dialog-post header{display:flex;gap:10px;align-items:center}.k-community-dialog-post img{width:100%;max-height:420px;object-fit:cover;border-radius:18px;margin:18px 0}.k-community-dialog-post h2{font-size:28px}.k-community-dialog-post p{line-height:1.65;color:#5f6878}@media(max-width:560px){.k-community-page{padding-inline:12px}.k-community-toolbar{grid-template-columns:1fr 1fr}.k-community-toolbar label{grid-column:1/-1}.k-community-toolbar>*{min-height:48px}.k-community-body h2{font-size:20px}}

/* r78e — social categories and groups */
.k-community-categories{
  display:flex;
  gap:14px;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x proximity;
  padding:6px 2px 14px;
  margin-inline:-2px;
}
.k-community-categories button{
  flex:0 0 auto;
  min-width:68px;
  scroll-snap-align:start;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  padding:0;
  border:0;
  background:transparent;
  color:#667085;
  font:inherit;
}
.k-community-categories button>b{font-size:12px;line-height:1.15;white-space:nowrap;font-weight:700}
.k-community-category-ring{
  width:64px;
  height:64px;
  padding:3px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#ff8a00,#ff4d00 58%,#ffb000);
  box-shadow:0 6px 18px rgba(255,107,0,.18);
}
.k-community-category-ring>.k-ui-icon{
  width:100%;
  height:100%;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fff;
  color:#ff6b00;
  border:2px solid #fff;
}
.k-community-category-ring svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.k-community-categories button.is-active{color:#111827}
.k-community-categories button.is-active .k-community-category-ring{background:linear-gradient(145deg,#ff6b00,#111827)}
.k-community-categories button.is-active .k-community-category-ring>.k-ui-icon{background:#111827;color:#fff}

.k-community-groups{
  margin:0 0 18px;
  padding:14px;
  border:1px solid #eceef2;
  border-radius:22px;
  background:#fff;
  box-shadow:0 10px 28px rgba(15,23,42,.045);
}
.k-community-groups__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.k-community-groups__head>div{display:grid;gap:2px;min-width:0}
.k-community-groups__head b{font-size:15px;color:#111827}
.k-community-groups__head small{font-size:12px;color:#7b8493}
.k-community-groups__head button{border:0;background:transparent;color:#ff6b00;font-weight:800;padding:6px 0;white-space:nowrap}
.k-community-group-strip{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding-bottom:2px}
.k-community-group-strip::-webkit-scrollbar{display:none}
.k-community-group-card{
  --group-accent:#ff6b00;
  flex:0 0 178px;
  min-width:0;
  scroll-snap-align:start;
  position:relative;
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  align-items:center;
  gap:10px;
  min-height:68px;
  padding:10px 12px;
  border:1px solid #eceef2;
  border-radius:18px;
  background:#fafafa;
  color:#111827;
  text-align:left;
}
.k-community-group-card.is-following{border-color:color-mix(in srgb,var(--group-accent) 40%,#fff);background:color-mix(in srgb,var(--group-accent) 7%,#fff)}
.k-community-group-avatar{
  width:46px;height:46px;border-radius:50%;display:grid;place-items:center;
  background:var(--group-accent);color:#fff;font-weight:900;font-size:15px;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.82),0 5px 14px color-mix(in srgb,var(--group-accent) 28%,transparent);
}
.k-community-group-card>span:nth-child(2){display:grid;gap:3px;min-width:0}
.k-community-group-card b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.k-community-group-card small{font-size:11px;color:#7b8493}
.k-community-group-card>i{position:absolute;right:8px;top:7px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:var(--group-accent);color:#fff;font-size:11px;font-style:normal}

.k-community-group-dialog{--group-accent:#ff6b00;padding:26px;display:grid;gap:18px}
.k-community-group-dialog header{display:flex;align-items:center;gap:14px}
.k-community-group-dialog .k-community-group-avatar{width:64px;height:64px;font-size:19px;flex:0 0 auto}
.k-community-group-dialog header>div{min-width:0}
.k-community-group-dialog h2{margin:2px 0 4px;font-size:24px}
.k-community-group-dialog p,.k-community-group-dialog small{margin:0;color:#7b8493}
.k-community-group-dialog__links{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.k-community-group-dialog__links button{min-height:44px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;color:#111827;font-weight:800}

@media(max-width:560px){
  .k-community-categories{gap:10px;padding-bottom:12px}
  .k-community-categories button{min-width:60px}
  .k-community-category-ring{width:56px;height:56px}
  .k-community-category-ring svg{width:21px;height:21px}
  .k-community-groups{margin-inline:0;padding:12px;border-radius:18px}
  .k-community-group-card{flex-basis:164px;grid-template-columns:42px minmax(0,1fr);min-height:62px;padding:9px 10px}
  .k-community-group-avatar{width:42px;height:42px}
  .k-community-group-dialog{padding:20px}
  .k-community-group-dialog__links{grid-template-columns:1fr}
}

/* r78g — groups Swiper containment */
.k-community-groups{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:hidden;
  box-sizing:border-box;
}
.k-community-group-slider{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:hidden;
  box-sizing:border-box;
  padding:0 0 20px;
}
.k-community-group-slider .swiper-wrapper{
  min-width:0;
  box-sizing:border-box;
}
.k-community-group-slide{
  width:auto;
  min-width:0;
  height:auto;
  box-sizing:border-box;
}
.k-community-group-card{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
.k-community-group-pagination{
  bottom:0!important;
  line-height:1;
}
.k-community-group-pagination .swiper-pagination-bullet{
  width:6px;
  height:6px;
  margin:0 3px!important;
  background:#cfd4dc;
  opacity:1;
}
.k-community-group-pagination .swiper-pagination-bullet-active{
  width:18px;
  border-radius:999px;
  background:#ff6b00;
}
.k-community-group-slider.is-native-fallback{
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  padding-bottom:8px;
}
.k-community-group-slider.is-native-fallback::-webkit-scrollbar{display:none}
.k-community-group-slider.is-native-fallback .k-community-group-strip{
  display:flex;
  gap:10px;
  width:max-content;
  max-width:none;
}
.k-community-group-slider.is-native-fallback .k-community-group-slide{
  flex:0 0 min(78vw,178px);
  scroll-snap-align:start;
}
.k-community-group-slider.is-native-fallback .k-community-group-pagination{display:none}
@media(max-width:560px){
  .k-community-groups{padding:12px;overflow:hidden}
  .k-community-groups__head{align-items:flex-start}
  .k-community-groups__head>div{max-width:calc(100% - 88px)}
  .k-community-group-slider{padding-bottom:18px}
  .k-community-group-card{min-height:62px}
}
@media(max-width:350px){
  .k-community-groups{padding:10px}
  .k-community-groups__head{gap:8px}
  .k-community-groups__head small{font-size:11px}
  .k-community-groups__head button{font-size:12px}
  .k-community-group-slider.is-native-fallback .k-community-group-slide{flex-basis:calc(100vw - 56px)}
}
.k-community-group-slider:not(.is-native-fallback) .k-community-group-strip{
  overflow:visible;
  width:100%;
  max-width:100%;
  gap:0;
  padding-bottom:0;
  scroll-snap-type:none;
}

/* r78h — independent category and group filters */
.k-community-group-card.is-active{
  border-color:var(--group-accent);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--group-accent) 18%,transparent),0 10px 24px rgba(15,23,42,.08);
  background:color-mix(in srgb,var(--group-accent) 9%,#fff);
}
.k-community-group-card.is-active .k-community-group-avatar{
  box-shadow:inset 0 0 0 3px #fff,0 0 0 3px color-mix(in srgb,var(--group-accent) 32%,transparent);
}
.k-community-categories [data-community-groups-focus] .k-community-category-ring{
  background:#fff;
}

/* r78i — stable group selection and resilient community loading */
.k-community-group-card{cursor:pointer;touch-action:manipulation}
.k-community-group-card.is-active{transform:none!important}
.k-community-group-card.is-active::after{
  content:'Выбрано';
  position:absolute;
  right:8px;
  top:7px;
  padding:2px 6px;
  border-radius:999px;
  background:var(--group-accent,#ff6b00);
  color:#fff;
  font-size:9px;
  font-weight:900;
  line-height:1.3;
}
.k-community-group-card{position:relative}
.k-community-feed>.k-empty{min-height:180px;display:grid;place-content:center;text-align:center}

/* r78j — hierarchical community group catalogs */
.k-community-categories{
  margin-bottom:10px;
}
.k-community-categories button{
  min-width:76px;
}
.k-community-categories button>b{
  max-width:82px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.k-community-groups{
  margin-top:0;
}
.k-community-content-types{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:auto;
  padding:2px 0 14px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.k-community-content-types::-webkit-scrollbar{display:none}
.k-community-content-types button{
  flex:0 0 auto;
  min-height:38px;
  padding:8px 14px;
  border:1px solid #e5e7eb;
  border-radius:999px;
  background:#fff;
  color:#596273;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}
.k-community-content-types button.is-active{
  border-color:#ff6b00;
  background:#fff4eb;
  color:#d95600;
  box-shadow:0 5px 14px rgba(255,107,0,.12);
}
.k-community-group-strip:empty::before{
  content:'В этом каталоге пока нет групп';
  display:block;
  padding:20px;
  color:#7b8493;
}
@media(max-width:560px){
  .k-community-categories button{min-width:66px}
  .k-community-categories button>b{font-size:11px;max-width:70px}
  .k-community-content-types{gap:7px;padding-bottom:12px}
  .k-community-content-types button{min-height:36px;padding:7px 12px;font-size:12px}
}
@media(max-width:350px){
  .k-community-categories{gap:8px}
  .k-community-categories button{min-width:60px}
  .k-community-category-ring{width:50px!important;height:50px!important}
}

/* r78l — dense community layout with windowed sections */
.k-community-page{font-size:13px}
.k-community-head{margin-bottom:12px}
.k-community-head h1{font-size:26px;line-height:1.12}
.k-community-head p{font-size:12px;line-height:1.4;margin-top:5px}
.k-community-categories{gap:8px;padding:2px 0 10px}
.k-community-categories button{min-width:60px;gap:4px}
.k-community-categories button>b{font-size:10px;line-height:1.15}
.k-community-category-ring{width:48px!important;height:48px!important}
.k-community-groups,.k-community-toolbar{
  border:1px solid rgba(15,23,42,.07);
  background:#fff;
  box-shadow:0 5px 18px rgba(15,23,42,.04);
}
.k-community-groups{margin-bottom:12px!important;border-radius:18px!important;padding:12px!important}
.k-community-groups__head{margin-bottom:8px}
.k-community-groups__head b{font-size:14px}.k-community-groups__head small{font-size:10px}
.k-community-toolbar{border-radius:16px;padding:8px;margin-bottom:12px;gap:7px}
.k-community-toolbar label,.k-community-toolbar button,.k-community-toolbar a{border-radius:12px;min-height:40px!important;font-size:11px}
.k-community-toolbar input{font-size:12px;padding:9px 0}
.k-community-feed{gap:12px}
.k-community-card{border-radius:18px;box-shadow:0 5px 18px rgba(15,23,42,.045)}
.k-community-card>header{padding:10px 12px;gap:8px}
.k-community-avatar{width:36px;height:36px;font-size:12px}
.k-community-card>header strong{font-size:13px}.k-community-card>header small{font-size:10px}
.k-community-body{padding:12px}
.k-community-body h2{font-size:16px;line-height:1.25;margin-bottom:5px}
.k-community-body p{font-size:12px;line-height:1.42}
.k-community-card>footer{padding:0 12px 12px;gap:8px}
.k-community-card>footer span{font-size:10px}
.k-community-card>footer a{font-size:11px}
.k-community-skeleton{gap:12px}.k-community-skeleton article{height:210px;border-radius:18px;padding:12px}
@media(max-width:560px){
  .k-community-page{padding-inline:10px}
  .k-community-head h1{font-size:23px}
  .k-community-toolbar{grid-template-columns:1fr 1fr;padding:7px}
}


/* r78m — following center */
.k-following-page{max-width:900px;margin:0 auto;padding:18px 14px 112px;display:grid;gap:14px}.k-following-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px;border:1px solid rgba(15,23,42,.07);border-radius:18px;background:#fff}.k-following-head h1{margin:0;font-size:22px;line-height:1.1}.k-following-head p{margin:6px 0 0;color:#6b7280;font-size:12px}.k-following-tabs{display:flex;gap:7px;overflow-x:auto;padding:3px}.k-following-tabs button{flex:0 0 auto;min-height:34px;padding:0 14px;border:1px solid rgba(15,23,42,.09);border-radius:999px;background:#fff;font:inherit;font-size:12px;font-weight:800}.k-following-tabs button.is-active{border-color:#ff6b00;background:#ff6b00;color:#fff}.k-following-list{display:grid;gap:10px}.k-following-card{display:grid;grid-template-columns:54px minmax(0,1fr);gap:12px;padding:13px;border:1px solid rgba(15,23,42,.07);border-radius:18px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.035)}.k-following-avatar{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#fff3e8;color:#d65a00;font-size:15px;font-weight:900}.k-following-main{min-width:0}.k-following-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.k-following-title h2{margin:0;font-size:15px}.k-following-title p{margin:3px 0 0;color:#6b7280;font-size:11px}.k-following-unfollow{min-height:32px;padding:0 10px;border:1px solid rgba(255,107,0,.25);border-radius:10px;background:#fff7f0;color:#c75200;font:inherit;font-size:10px;font-weight:850}.k-following-metrics,.k-following-settings,.k-following-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:9px}.k-following-metrics span{font-size:10px;font-weight:750;color:#4b5563}.k-following-settings label{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:750;color:#374151}.k-following-actions a{min-height:31px;padding:7px 10px;border-radius:9px;background:#f6f7f9;color:#1f2937;text-decoration:none;font-size:10px;font-weight:800}.k-following-skeleton{display:grid;gap:10px}.k-following-skeleton i{display:block;height:132px;border-radius:18px;background:#eef1f4}@media(max-width:420px){.k-following-head{display:grid}.k-following-head .k-btn{width:100%;justify-content:center}.k-following-card{grid-template-columns:44px minmax(0,1fr);padding:11px}.k-following-avatar{width:44px;height:44px}.k-following-title{align-items:center}.k-following-metrics span:nth-child(3){width:100%}}

/* r97 — functional social interactions */
.k-community-actions{display:flex;align-items:center;gap:4px;min-width:0}
.k-community-actions button{min-width:42px;height:40px;padding:0 8px;border-radius:12px!important;display:inline-flex;align-items:center;justify-content:center;gap:5px;color:#586273;transition:background .16s ease,color .16s ease,transform .16s ease}
.k-community-actions button:active{transform:scale(.94)}
.k-community-actions button b{font-size:12px;line-height:1;color:inherit}
.k-community-actions button.is-active{background:#fff0eb;color:#e24720}
.k-community-actions .k-community-save{margin-left:auto}
.k-community-actions .k-community-save.is-active{background:#eef3ff;color:#3157c8}
.k-community-metrics{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:0 16px 15px;color:#778190;font-size:12px}
.k-community-metrics b{color:#111827}
.k-community-metrics button{border:0;background:transparent;padding:0;color:inherit;font:inherit;cursor:pointer}
.k-community-toolbar button.is-active{border-color:#ff6b00;background:#fff3e9;color:#d95a00}
.k-community-dialog{max-height:min(88vh,820px);overflow:hidden}
.k-community-dialog [data-community-dialog-body]{max-height:min(88vh,820px);overflow:auto;overscroll-behavior:contain}
.k-community-dialog-loading{min-height:220px;display:grid;place-items:center;color:#7b8493}
.k-community-dialog-post{display:grid;gap:14px}
.k-community-dialog-post h2{margin:0}
.k-community-dialog-post>p{margin:0}
.k-community-dialog-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.k-community-dialog-actions button{min-height:46px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;color:#596273;display:flex;align-items:center;justify-content:center;gap:7px;font-weight:800}
.k-community-dialog-actions button svg{width:19px;height:19px}
.k-community-dialog-actions button.is-active{border-color:#ffb58a;background:#fff2e9;color:#d95100}
.k-community-comments{display:grid;gap:12px;padding-top:8px;border-top:1px solid #eceef2}
.k-community-comments>header{display:flex;align-items:center;justify-content:space-between}
.k-community-comments h3{margin:0;font-size:18px}
.k-community-comments>header b{min-width:28px;height:28px;border-radius:999px;background:#f1f3f5;display:grid;place-items:center;font-size:12px}
.k-community-comment{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;padding:10px 0;border-bottom:1px solid #f0f1f3}
.k-community-comment .k-community-avatar{width:38px;height:38px}
.k-community-comment>div{min-width:0}
.k-community-comment p{margin:4px 0 5px;color:#374151;line-height:1.45;overflow-wrap:anywhere}
.k-community-comment time{font-size:11px;color:#8a93a2}
.k-community-comments-empty{padding:20px;border-radius:14px;background:#f7f8fa;text-align:center;color:#7b8493}
.k-community-comments form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;position:sticky;bottom:0;background:#fff;padding:10px 0 2px}
.k-community-comments input{min-width:0;height:46px;border:1px solid #dfe3e8;border-radius:14px;padding:0 14px;outline:0}
.k-community-comments input:focus{border-color:#ff6b00;box-shadow:0 0 0 3px rgba(255,107,0,.12)}
.k-community-comments form button{border:0;border-radius:14px;background:#111827;color:#fff;padding:0 16px;font-weight:800}
.k-community-comments form button:disabled{opacity:.55}
@media(max-width:560px){
  .k-community-card>footer{padding-inline:10px}
  .k-community-actions{width:100%}
  .k-community-actions button{min-width:40px;padding-inline:7px}
  .k-community-dialog{width:calc(100vw - 16px);max-height:92vh;border-radius:20px}
  .k-community-dialog [data-community-dialog-body]{max-height:92vh}
  .k-community-dialog-post{padding:18px 14px 16px}
  .k-community-dialog-actions{grid-template-columns:1fr}
  .k-community-dialog-actions button{justify-content:flex-start;padding-inline:14px}
  .k-community-comments form{grid-template-columns:1fr}
  .k-community-comments form button{height:44px}
}

/* R143 — media and story rail */
.k-community-stories{margin:0 0 18px}.k-community-stories>header{display:flex;align-items:end;justify-content:space-between;margin-bottom:10px}.k-community-stories>header b{font-size:16px}.k-community-stories>header small{color:#7a8493}.k-community-stories>[data-community-story-strip]{display:flex;gap:12px;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:none}.k-community-stories>[data-community-story-strip]::-webkit-scrollbar{display:none}.k-community-stories button{width:72px;flex:0 0 72px;border:0;background:transparent;padding:0;display:grid;gap:6px;text-align:center}.k-community-stories button>span{position:relative;width:64px;height:64px;margin:auto;border-radius:50%;padding:3px;background:linear-gradient(135deg,#ff6b00,#f43f5e);overflow:hidden}.k-community-stories img,.k-community-stories video{width:100%;height:100%;object-fit:cover;border-radius:50%;border:2px solid #fff}.k-community-stories i{position:absolute;right:1px;bottom:1px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#111827;color:#fff;font-size:9px;font-style:normal}.k-community-stories button b{font-size:10px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.k-community-media{position:relative}.k-community-media video{width:100%;height:100%;object-fit:cover}.k-community-video-badge{position:absolute;left:12px;bottom:12px;padding:7px 10px;border-radius:999px;background:rgba(15,23,42,.8);color:#fff;font-size:11px;font-weight:800}.k-community-dialog-video{display:block;width:100%;max-height:520px;margin:18px 0;border-radius:18px;background:#000}.k-work-media-slide video,.k-work-media-slide img{width:100%;height:100%;object-fit:contain;background:#0b0f19}.k-work-media-document{min-height:280px;display:grid;place-items:center;background:#f1f5f9;color:#111827;font-weight:800;text-decoration:none}.k-work-media-preview img,.k-work-media-preview video{width:100%;height:100%;object-fit:cover;border-radius:inherit}.k-work-media-preview--video{background:#000}.k-work-media-document{border-radius:14px}

/* R146: functional group wall controls */
.k-community-feed{scroll-margin-top:88px}
.k-community-group-dialog [data-community-group-follow].k-btn-secondary{border-color:color-mix(in srgb,var(--group-accent) 42%,#d1d5db);color:var(--group-accent)}


/* R152 client community interactions */
.k-community-toolbar{grid-template-columns:minmax(0,1fr) auto auto auto}
.k-community-toolbar button.is-active{background:#111827;color:#fff;border-color:#111827}
.k-community-author-follow{margin-left:auto!important;border:1px solid #ff6b00!important;background:#fff!important;color:#d95d00!important;border-radius:999px!important;padding:7px 11px!important;font-size:12px!important;font-weight:800!important}
.k-community-author-follow.is-active{background:#fff3e8!important;color:#9a4200!important}
.k-community-author-follow:disabled,.k-community-actions button:disabled,.k-community-dialog-actions button:disabled{opacity:.55;cursor:wait}
@media(max-width:760px){.k-community-toolbar{grid-template-columns:1fr 1fr}.k-community-toolbar label{grid-column:1/-1}.k-community-toolbar a{grid-column:1/-1}.k-community-author-follow{padding:6px 9px!important;font-size:11px!important}}
@media(min-width:761px){.k-community-feed{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.k-community-card{min-width:0}.k-community-dialog{max-height:calc(100vh - 32px);overflow:auto}}

/* R188.5.5.6.49 — Community Native UI Contract
   Mobile community contains no Swiper/horizontal carousels/dropdown filters.
   Discovery uses cards/columns; filtering and post/group details use dialogs. */
.k-community-page{
  display:grid;
  gap:14px;
}
.k-community-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin:0;
}
.k-community-head>div{min-width:0}
.k-community-head h1{margin:0;font-size:clamp(28px,4vw,40px);line-height:1.08}
.k-community-head p{max-width:760px;margin:7px 0 0;color:#6f7887;line-height:1.45}
.k-community-head>.k-btn{flex:0 0 auto}

.k-community-native-section,
.k-community-groups,
.k-community-feed-tools{
  width:100%;
  min-width:0;
  box-sizing:border-box;
}
.k-community-native-section{
  display:grid;
  gap:12px;
}
.k-community-section-head h2{margin:0;font-size:18px;line-height:1.2}
.k-community-section-head p{margin:4px 0 0;color:#7b8493;font-size:12px;line-height:1.4}

.k-community-categories{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px!important;
  width:100%;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  scroll-snap-type:none!important;
}
.k-community-categories button{
  min-width:0!important;
  min-height:92px;
  padding:12px!important;
  border:1px solid #e7e9ee!important;
  border-radius:18px!important;
  background:#fff!important;
  color:#111827!important;
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  justify-items:start!important;
  gap:2px 10px!important;
  text-align:left;
  box-shadow:0 5px 18px rgba(15,23,42,.035);
}
.k-community-categories button.is-active{
  border-color:#ff6b00!important;
  background:#fff7f0!important;
  box-shadow:0 0 0 2px rgba(255,107,0,.09),0 7px 20px rgba(15,23,42,.05);
}
.k-community-category-ring{
  grid-row:1 / 3;
  width:42px!important;
  height:42px!important;
  padding:0!important;
  border-radius:14px!important;
  background:#fff1e7!important;
  box-shadow:none!important;
}
.k-community-category-ring>.k-ui-icon{
  border:0!important;
  border-radius:14px!important;
  background:transparent!important;
  color:#ff6b00!important;
}
.k-community-category-ring svg{width:20px!important;height:20px!important}
.k-community-categories button.is-active .k-community-category-ring{background:#ff6b00!important}
.k-community-categories button.is-active .k-community-category-ring>.k-ui-icon{color:#fff!important;background:transparent!important}
.k-community-categories button>b{
  max-width:none!important;
  font-size:13px!important;
  line-height:1.2!important;
  white-space:normal!important;
  overflow:visible!important;
}
.k-community-categories button>small{font-size:10px;color:#7b8493;line-height:1.25}

.k-community-groups{
  margin:0!important;
  padding:14px!important;
  overflow:visible!important;
  border-radius:20px!important;
}
.k-community-groups__head{margin:0 0 12px}
.k-community-groups__head button{
  min-height:38px;
  padding:7px 10px;
  border:1px solid #eceef2;
  border-radius:12px;
  background:#fff;
  color:#596273;
}
.k-community-group-grid,
.k-community-group-strip{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px!important;
  width:100%!important;
  max-width:100%!important;
  padding:0!important;
  overflow:visible!important;
  scroll-snap-type:none!important;
}
.k-community-group-slide{
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  height:auto!important;
  flex:none!important;
}
.k-community-group-card{
  width:100%!important;
  max-width:none!important;
  min-height:72px;
  height:100%;
  grid-template-columns:44px minmax(0,1fr)!important;
  padding:10px!important;
  scroll-snap-align:none!important;
}
.k-community-group-card.is-active::after{content:'✓';font-size:11px;padding:3px 6px}

.k-community-feed-tools{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  padding:10px;
  border:1px solid rgba(15,23,42,.07);
  border-radius:18px;
  background:#fff;
  box-shadow:0 5px 18px rgba(15,23,42,.04);
}
.k-community-search{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  min-height:46px;
  padding:0 13px;
  border:1px solid #e4e7ec;
  border-radius:14px;
  background:#fafafa;
}
.k-community-search .k-ui-icon{display:grid;place-items:center;color:#7b8493}
.k-community-search .k-ui-icon svg{width:18px;height:18px}
.k-community-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;font:inherit}
.k-community-filter-button{
  min-height:46px;
  padding:0 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid #e4e7ec;
  border-radius:14px;
  background:#fff;
  color:#111827;
  font-weight:800;
}
.k-community-filter-button .k-ui-icon{display:grid;place-items:center}
.k-community-filter-button .k-ui-icon svg{width:18px;height:18px}
.k-community-filter-button>b{
  min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#ff6b00;color:#fff;display:grid;place-items:center;font-size:11px
}
.k-community-filter-button>b[hidden]{display:none}

.k-community-filter-dialog{width:min(560px,calc(100vw - 24px))}
.k-community-filter-sheet{padding:24px;display:grid;gap:20px}
.k-community-filter-sheet>header small{font-size:10px;font-weight:900;letter-spacing:.12em;color:#ff6b00}
.k-community-filter-sheet>header h2{margin:4px 0 5px;font-size:25px}
.k-community-filter-sheet>header p{margin:0;color:#7b8493;line-height:1.45}
.k-community-filter-list{display:grid;gap:8px}
.k-community-filter-list h3{margin:0 0 2px;font-size:14px}
.k-community-filter-option{
  width:100%;min-height:58px;padding:10px 12px;border:1px solid #e6e8ed;border-radius:15px;background:#fff;color:#111827;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left
}
.k-community-filter-option>span{display:grid;gap:2px;min-width:0}
.k-community-filter-option b{font-size:13px}
.k-community-filter-option small{font-size:11px;color:#7b8493;line-height:1.3}
.k-community-filter-option i{width:24px;height:24px;border-radius:50%;border:1px solid #d8dce3;display:grid;place-items:center;font-style:normal;color:#fff;flex:0 0 auto}
.k-community-filter-option.is-active{border-color:#ff6b00;background:#fff7f0}
.k-community-filter-option.is-active i{border-color:#ff6b00;background:#ff6b00}
.k-community-filter-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* The feed remains vertical on phones. Desktop density is controlled by the existing R188.5.5.6.39 contract. */
@media (max-width:900px){
  .k-community-categories{grid-template-columns:repeat(2,minmax(0,1fr))}
  .k-community-categories button:last-child{grid-column:1 / -1}
  .k-community-group-grid,.k-community-group-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .k-community-feed{grid-template-columns:1fr!important}
  .k-community-skeleton{grid-template-columns:1fr!important}
}
@media (max-width:560px){
  .k-community-page{padding-inline:10px;gap:12px}
  .k-community-head{display:grid;grid-template-columns:1fr}
  .k-community-head>.k-btn{width:100%}
  .k-community-categories{gap:8px!important}
  .k-community-categories button{min-height:84px;padding:10px!important;grid-template-columns:38px minmax(0,1fr)!important}
  .k-community-category-ring{width:38px!important;height:38px!important}
  .k-community-group-grid,.k-community-group-strip{gap:8px!important}
  .k-community-group-card{min-height:68px;grid-template-columns:38px minmax(0,1fr)!important;padding:9px!important}
  .k-community-group-avatar{width:38px;height:38px;font-size:12px}
  .k-community-feed-tools{grid-template-columns:1fr;padding:8px}
  .k-community-filter-button{width:100%}
  .k-community-filter-sheet{padding:20px 16px 16px}
  .k-community-filter-actions{grid-template-columns:1fr}
  .k-community-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:22px}
}
