.top-authors{ margin:20px 0 24px; }
.block-title{ font-size:18px; margin:0 0 10px; }

.top-authors-slider{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding:6px 2px;
  scroll-snap-type:x mandatory;
}

.top-author{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid #e7e7e7;
  border-radius:14px;
  background:#fff;
  text-decoration:none;
  scroll-snap-align:start;
  flex:0 0 auto;
}

.top-author-avatar{
  width:64px;
  height:64px;
  border-radius:50%;
  object-fit:cover;
}

.top-author-name{ white-space:nowrap; font-size:14px; }
/* Public author profile cleanup */
.smysly-author-profile .um-profile-status{
  display:none!important;
}

.smysly-author-profile .um-profile-photo img.um-avatar{
  object-fit:cover;
}

/* Logged-in author profile: fallback for Ultimate Member action dropdowns.
   The speed cleanup keeps full UM UI for logged-in users, but this prevents
   plain bulleted admin/profile actions from leaking if a cached/minified CSS
   bundle is stale for one request. */
.smysly-author-profile-logged-in .um-profile .um-dropdown{
  display:none;
}

.smysly-author-profile-logged-in .um-profile .um-profile-edit:hover .um-dropdown,
.smysly-author-profile-logged-in .um-profile .um-profile-edit:focus-within .um-dropdown,
.smysly-author-profile-logged-in .um-profile .um-profile-edit.um-dropdown-open .um-dropdown,
.smysly-author-profile-logged-in .um-profile .um-dropdown.active{
  display:block;
}

.smysly-author-profile-logged-in .um-profile .um-dropdown ul,
.smysly-author-profile-logged-in .um-profile .um-profile-edit ul{
  margin:0;
  padding:0;
  list-style:none;
}

.smysly-author-profile-logged-in .um-profile .um-dropdown li,
.smysly-author-profile-logged-in .um-profile .um-profile-edit li{
  list-style:none;
}

/* Author profile layout fallback after speed cleanup.
   Keeps the public profile visually close to Ultimate Member default even when cached CSS loads late. */
.smysly-author-profile .um-header.no-cover{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding-top:42px;
  padding-bottom:18px;
}

.smysly-author-profile .um-profile-photo{
  float:none!important;
  position:relative!important;
  left:auto!important;
  top:auto!important;
  margin:0 auto 18px!important;
  width:auto!important;
  text-align:center;
}

.smysly-author-profile .um-profile-photo a.um-profile-photo-img,
.smysly-author-profile .um-profile-photo img.um-avatar{
  display:block;
  width:190px!important;
  height:190px!important;
  max-width:190px!important;
  border-radius:50%;
  object-fit:cover;
  margin:0 auto!important;
}

.smysly-author-profile .um-profile-meta{
  float:none!important;
  width:100%!important;
  margin:0!important;
  padding-left:0!important;
  text-align:center;
}

.smysly-author-profile .um-main-meta{
  text-align:center;
}

.smysly-author-profile .smysly-um-profile-actions{
  display:flex;
  justify-content:center;
  margin-top:18px!important;
}

.smysly-author-profile .um-profile-navbar{
  display:none!important;
}

.smysly-author-profile .um-profile-nav{
  width:100%;
  margin:24px 0 28px;
  padding:0 24px;
  min-height:52px;
  background:#3f3f3f;
  display:flex;
  align-items:center;
  gap:8px;
  box-sizing:border-box;
}

.smysly-author-profile .um-profile-nav .um-profile-nav-item{
  float:none!important;
  display:flex;
  align-items:center;
  margin:0;
  padding:0;
}

.smysly-author-profile .um-profile-nav .um-profile-nav-item a{
  display:inline-flex!important;
  align-items:center;
  gap:7px;
  padding:9px 12px!important;
  border-radius:3px;
  color:#fff!important;
  text-decoration:none!important;
  line-height:1.2;
}

.smysly-author-profile .um-profile-nav .um-profile-nav-item.active a,
.smysly-author-profile .um-profile-nav .um-profile-nav-item a:hover{
  background:#21a8df!important;
  color:#fff!important;
}

.smysly-author-profile .um-profile-nav .um-profile-nav-item i{
  color:inherit!important;
}

.smysly-author-profile .um-profile-nav .um-clear{
  display:none!important;
}

@media (max-width: 720px){
  .smysly-author-profile .um-header.no-cover{
    padding-top:28px;
  }
  .smysly-author-profile .um-profile-photo a.um-profile-photo-img,
  .smysly-author-profile .um-profile-photo img.um-avatar{
    width:160px!important;
    height:160px!important;
    max-width:160px!important;
  }
  .smysly-author-profile .um-profile-nav{
    margin-top:18px;
    padding:0 12px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  .smysly-author-profile .um-profile-nav .um-profile-nav-item{
    flex:0 0 auto;
  }
}

.smysly-author-profile .smysly-profile-subscribe{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  margin:14px auto 4px;
}

.smysly-author-profile .smysly-profile-subscribe .author-subscribe__btn{
  min-height:38px;
  padding:8px 16px;
  border:1px solid rgba(79,70,229,.22);
  border-radius:999px;
  background:#fff;
  color:#4338ca;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}

.smysly-author-profile .smysly-profile-subscribe .author-subscribe__btn:hover,
.smysly-author-profile .smysly-profile-subscribe .author-subscribe__btn:focus{
  background:#eef2ff;
  outline:none;
}

.smysly-author-profile .smysly-profile-subscribe .author-subscribe__count{
  color:#6b7280;
  font-size:14px;
  line-height:1;
}

/* Author profile v4 fixes: remove duplicated UM tab links and empty profile note. */
.smysly-author-profile .um-profile-note{
  display:none!important;
}

/* Ultimate Member prints two links per tab for different breakpoints.
   Our fallback layout previously showed both. Keep one stable link only. */
.smysly-author-profile .um-profile-nav .um-profile-nav-item a.uimob800-show,
.smysly-author-profile .um-profile-nav .um-profile-nav-item a.uimob500-show,
.smysly-author-profile .um-profile-nav .um-profile-nav-item a.uimob340-show{
  display:none!important;
}

.smysly-author-profile .um-profile-nav .um-profile-nav-item a.uimob800-hide,
.smysly-author-profile .um-profile-nav .um-profile-nav-item a.uimob500-hide,
.smysly-author-profile .um-profile-nav .um-profile-nav-item a.uimob340-hide{
  display:inline-flex!important;
}

/* Remove decorative UM/theme pseudo-elements that created odd yellow hover bars. */
.smysly-author-profile .um-profile-nav .um-profile-nav-item::before,
.smysly-author-profile .um-profile-nav .um-profile-nav-item::after,
.smysly-author-profile .um-profile-nav .um-profile-nav-item a::before,
.smysly-author-profile .um-profile-nav .um-profile-nav-item a::after{
  content:none!important;
  display:none!important;
}

.smysly-author-profile .um-profile-nav .um-profile-nav-item a:hover,
.smysly-author-profile .um-profile-nav .um-profile-nav-item.active a{
  text-decoration:none!important;
  box-shadow:none!important;
}

/* Ultimate Member owner controls: keep the native cog/dropdown visible after custom profile layout. */
.smysly-author-profile-logged-in .um-profile .um-header{
  position:relative;
  overflow:visible;
}

.smysly-author-profile-logged-in .um-profile .um-profile-edit{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  z-index:60!important;
  width:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}

.smysly-author-profile-logged-in .um-profile .um-profile-headericon{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  visibility:visible!important;
  opacity:1!important;
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  z-index:60!important;
  width:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}

.smysly-author-profile-logged-in .um-profile .um-profile-edit-a{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  width:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  padding:0!important;
  border-radius:999px;
  background:#ffffff;
  color:#2f2f2f!important;
  border:1px solid rgba(0,0,0,.12);
  box-shadow:0 8px 22px rgba(0,0,0,.12);
  text-decoration:none!important;
  transform:none!important;
}

.smysly-author-profile-logged-in .um-profile .um-profile-edit-a:hover,
.smysly-author-profile-logged-in .um-profile .um-profile-edit-a:focus{
  color:#111827!important;
  box-shadow:0 10px 26px rgba(0,0,0,.16);
}

.smysly-author-profile-logged-in .um-profile .um-profile-edit-a i{
  display:inline-block!important;
  visibility:visible!important;
  opacity:1!important;
  color:inherit!important;
  line-height:1!important;
}

/* Fallback if the UM icon font is delayed/removed by cache optimization. */
.smysly-author-profile-logged-in .um-profile .um-profile-edit-a i::before{
  content:"\2699";
  font-family:Arial, sans-serif!important;
  font-size:20px;
  font-weight:400;
}

.smysly-author-profile-logged-in .um-profile .um-profile-edit .um-dropdown{
  position:absolute!important;
  right:0!important;
  left:auto!important;
  top:38px!important;
  min-width:210px;
  width:max-content;
  max-width:calc(100vw - 28px);
  margin:0!important;
  padding-top:8px!important;
  z-index:70!important;
}

/* Invisible hover bridge between the cog and the dropdown.
   Without it the menu closes while the cursor crosses the small gap. */
.smysly-author-profile-logged-in .um-profile .um-profile-edit::after{
  content:"";
  position:absolute;
  left:-8px;
  right:-8px;
  top:38px;
  height:12px;
  display:block;
}

.smysly-author-profile-logged-in .um-profile .um-profile-edit .um-dropdown-b,
.smysly-author-profile-logged-in .um-profile .um-profile-edit .um-dropdown ul{
  background:#ffffff;
  border-radius:12px;
  box-shadow:0 14px 35px rgba(0,0,0,.16);
  border:1px solid rgba(0,0,0,.08);
  overflow:hidden;
}

.smysly-author-profile-logged-in .um-profile .um-profile-edit .um-dropdown li a{
  display:block;
  padding:10px 14px;
  color:#111827!important;
  text-decoration:none!important;
  line-height:1.25;
}

.smysly-author-profile-logged-in .um-profile .um-profile-edit .um-dropdown li a:hover{
  background:#f5f5f7;
  color:#111827!important;
}

.smysly-author-profile .smysly-um-profile-actions{
  flex-wrap:wrap;
  gap:10px;
}

@media (max-width: 720px){
  .smysly-author-profile-logged-in .um-profile .um-profile-edit,
  .smysly-author-profile-logged-in .um-profile .um-profile-headericon{
    top:10px!important;
    right:10px!important;
  }

  .smysly-author-profile-logged-in .um-profile .um-profile-edit .um-dropdown{
    right:-4px!important;
    min-width:190px;
  }
}


/* Ultimate Member avatar upload fix for custom /user/{id}/ pages.
   We use a small fallback uploader because the native UM click handler can be broken by cache/optimization on the custom profile URL. */
.smysly-author-profile .um-header.no-cover{
  align-items:center!important;
  justify-content:flex-start!important;
}

.smysly-author-profile .um-profile-photo{
  float:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
  margin:0 auto 18px!important;
  padding:0!important;
  width:190px!important;
  min-width:190px!important;
  max-width:190px!important;
  height:190px!important;
  min-height:190px!important;
  max-height:190px!important;
  overflow:visible!important;
  text-align:center!important;
  z-index:10;
}

.smysly-author-profile .um-profile-photo a.um-profile-photo-img,
.smysly-author-profile .um-profile-photo img.um-avatar{
  display:block!important;
  position:relative!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
  float:none!important;
  margin:0!important;
  padding:0!important;
  width:190px!important;
  min-width:190px!important;
  max-width:190px!important;
  height:190px!important;
  min-height:190px!important;
  max-height:190px!important;
  border-radius:50%!important;
  object-fit:cover!important;
}

.smysly-author-profile .um-profile-photo a.um-profile-photo-img{
  overflow:hidden!important;
  cursor:pointer!important;
  pointer-events:auto!important;
  z-index:11!important;
}

.smysly-author-profile .um-profile-photo a.um-profile-photo-img img.um-avatar,
.smysly-author-profile .um-profile-photo > img.um-avatar{
  pointer-events:none!important;
}

.smysly-author-profile .um-profile-photo .um-profile-photo-overlay,
.smysly-author-profile .um-profile-photo a.um-profile-photo-img .um-profile-photo-overlay{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  border-radius:50%!important;
  opacity:0;
  visibility:visible!important;
  pointer-events:none!important;
  transition:opacity .18s ease;
  z-index:12!important;
}

.smysly-author-profile .um-profile-photo a.um-profile-photo-img:hover .um-profile-photo-overlay,
.smysly-author-profile .um-profile-photo a.um-profile-photo-img:focus .um-profile-photo-overlay,
.smysly-author-profile .um-profile-photo.smysly-um-avatar-uploading .um-profile-photo-overlay{
  opacity:1;
}

.smysly-author-profile-own .um-profile-photo.smysly-um-avatar-clickable a.um-profile-photo-img::after{
  content:"Обновить фото";
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  padding:6px 10px;
  border-radius:999px;
  background:rgba(17,24,39,.78);
  color:#fff;
  font-size:12px;
  line-height:1.2;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
  z-index:13;
}

.smysly-author-profile-own .um-profile-photo.smysly-um-avatar-uploading a.um-profile-photo-img::after{
  content:"Загрузка…";
  opacity:1;
}

.smysly-author-profile-own .um-profile-photo.smysly-um-avatar-clickable a.um-profile-photo-img:hover::after,
.smysly-author-profile-own .um-profile-photo.smysly-um-avatar-clickable a.um-profile-photo-img:focus::after{
  opacity:1;
}

@media (max-width: 720px){
  .smysly-author-profile .um-header.no-cover{
    align-items:center!important;
    text-align:center!important;
    padding-top:28px!important;
  }

  .smysly-author-profile .um-profile-photo{
    margin:0 auto 16px!important;
    width:150px!important;
    min-width:150px!important;
    max-width:150px!important;
    height:150px!important;
    min-height:150px!important;
    max-height:150px!important;
  }

  .smysly-author-profile .um-profile-photo a.um-profile-photo-img,
  .smysly-author-profile .um-profile-photo img.um-avatar{
    width:150px!important;
    min-width:150px!important;
    max-width:150px!important;
    height:150px!important;
    min-height:150px!important;
    max-height:150px!important;
  }

  .smysly-author-profile-own .um-profile-photo.smysly-um-avatar-clickable a.um-profile-photo-img::after{
    bottom:14px;
    font-size:11px;
  }
}


.smysly-author-profile-own .um-profile-photo .smysly-um-avatar-delete{
  position:absolute!important;
  left:50%!important;
  bottom:-36px!important;
  transform:translateX(-50%)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:28px!important;
  padding:6px 12px!important;
  border:0!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#6b7280!important;
  font-size:12px!important;
  font-weight:600!important;
  line-height:1.2!important;
  box-shadow:0 8px 22px rgba(15,23,42,.12)!important;
  cursor:pointer!important;
  white-space:nowrap!important;
  z-index:20!important;
}

.smysly-author-profile-own .um-profile-photo .smysly-um-avatar-delete:hover,
.smysly-author-profile-own .um-profile-photo .smysly-um-avatar-delete:focus{
  color:#ef4444!important;
  outline:none!important;
}

.smysly-author-profile-own .um-profile-photo .smysly-um-avatar-delete:disabled{
  opacity:.55!important;
  cursor:default!important;
}

.smysly-author-profile-own .um-profile-photo.smysly-um-avatar-clickable{
  margin-bottom:48px!important;
}

@media (max-width: 720px){
  .smysly-author-profile-own .um-profile-photo.smysly-um-avatar-clickable{
    margin-bottom:48px!important;
  }

  .smysly-author-profile-own .um-profile-photo .smysly-um-avatar-delete{
    bottom:-34px!important;
    min-height:28px!important;
    font-size:11px!important;
  }
}

/* === Author Hub production port (v2.9) === */
/* Author entity / SEO hub */
.smysly-author-hub{
  margin-top:22px;
}

.smysly-author-entity{
  margin:0 0 28px;
  padding:22px;
  border:1px solid #e7e7e7;
  border-radius:18px;
  background:#fff;
}

.smysly-author-entity__summary{
  margin:0;
  font-size:16px;
  line-height:1.72;
  color:#2f3540;
}

.smysly-author-entity__facts{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:16px;
}

.smysly-author-entity__facts>span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:7px 10px;
  border:1px solid #ececec;
  border-radius:999px;
  background:#fafafa;
  font-size:13px;
  line-height:1.25;
}

.smysly-author-genres{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid #ededed;
}

.smysly-author-genres__title,
.smysly-author-featured__title,
.smysly-author-catalogue__title{
  margin:0 0 14px;
  font-size:22px;
  line-height:1.25;
}

.smysly-author-genres__list{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}

.smysly-author-genres__item{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 11px;
  border:1px solid #e7e7e7;
  border-radius:12px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  transition:transform .15s ease,border-color .15s ease;
}

.smysly-author-genres__item:hover{
  transform:translateY(-1px);
  border-color:#cfcfcf;
}

.smysly-author-genres__item small{
  min-width:24px;
  padding:2px 6px;
  border-radius:999px;
  background:#f2f2f2;
  text-align:center;
  font-size:11px;
}

.smysly-author-featured{
  margin:0 0 30px;
}

.smysly-author-featured__grid{
  margin-top:0;
}

.smysly-author-catalogue{
  margin-top:34px;
}

.smysly-author-catalogue__empty{
  margin:18px 0;
  padding:18px;
  border:1px dashed #dedede;
  border-radius:14px;
  text-align:center;
  opacity:.75;
}

.smysly-author-hub .my-works__pagination{
  margin-top:24px;
}

@media (max-width:720px){
  .smysly-author-entity{
    padding:16px;
    border-radius:14px;
  }
  .smysly-author-entity__summary{
    font-size:15px;
  }
  .smysly-author-genres__title,
  .smysly-author-featured__title,
  .smysly-author-catalogue__title{
    font-size:19px;
  }
  .smysly-author-entity__facts>span{
    font-size:12px;
  }
}

/* Author hub v2.4: homogeneous type layouts. Never mix Art with text cards. */
.smysly-author-work-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:16px !important; /* exactly the same gutter as standard .art-grid listings */
  align-items:stretch;
  column-count:initial !important;
  column-gap:normal !important;
}

.smysly-author-work-grid .work-card{
  width:100%;
  min-width:0;
  margin:0;
  break-inside:auto;
}

/* Text cards follow the same equal-height grid behaviour as archive listings.
   Art masonry is explicitly excluded: artwork keeps its natural image height. */
.smysly-author-work-grid:not(.smysly-author-art-masonry) > .work-card{
  height:100%;
  display:flex;
  flex-direction:column;
}

.smysly-author-work-grid:not(.smysly-author-art-masonry) > .work-card > :is(.work-card__link, .work-card__shell){
  display:flex;
  flex:1 1 auto;
  width:100%;
  height:100%;
}

.smysly-author-work-grid:not(.smysly-author-art-masonry) > .work-card > :is(.work-card__link, .work-card__shell) > .work-card__content{
  display:flex;
  flex:1 1 auto;
  width:100%;
  min-width:0;
  flex-direction:column;
}

/* Keep author/date/reactions aligned near the card bottom even when excerpts differ. */
.smysly-author-work-grid:not(.smysly-author-art-masonry) .work-card__meta{
  margin-top:auto;
}

/* Art is the only masonry mode on author pages. Keep four columns on desktop. */
.smysly-author-work-grid.smysly-author-art-masonry{
  display:block !important;
  grid-template-columns:none !important;
  column-count:4 !important;
  column-gap:18px !important; /* same as global art masonry listings */
  align-items:initial !important;
}

.smysly-author-work-grid.smysly-author-art-masonry > .work-card--art{
  display:inline-block !important;
  width:100% !important;
  margin:0 0 18px !important;
  vertical-align:top;
  break-inside:avoid;
  -webkit-column-break-inside:avoid;
  page-break-inside:avoid;
}

.smysly-author-work-grid .work-card--art{
  background:transparent;
}

.smysly-author-work-grid .work-card--art :is(.work-card__link, .work-card__shell),
.smysly-author-work-grid .work-card--art .work-card__media{
  display:block;
  width:100%;
}

.smysly-author-work-grid .work-card--art .work-card__media > img{
  width:100%;
  height:auto;
  display:block;
}

/* Avatars are media metadata, never artwork. */
.smysly-author-work-grid .work-card__author-avatar{
  width:32px !important;
  height:32px !important;
  min-width:32px !important;
  min-height:32px !important;
  max-width:32px !important;
  max-height:32px !important;
  flex:0 0 32px !important;
  display:block !important;
  object-fit:cover !important;
  border-radius:50% !important;
  overflow:hidden !important;
}

.smysly-author-work-grid .work-card__hover-avatar{
  width:20px !important;
  height:20px !important;
  min-width:20px !important;
  min-height:20px !important;
  max-width:20px !important;
  max-height:20px !important;
  flex:0 0 20px !important;
  display:block !important;
  object-fit:cover !important;
  border-radius:50% !important;
  overflow:hidden !important;
}

.smysly-author-work-grid .work-card__hover-author{
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  min-width:0;
  max-width:min(62%,190px);
}

.smysly-author-work-grid .work-card__hover-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.smysly-author-work-grid .work-card__hover-meta{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}

.smysly-author-featured__tabs{
  margin:0 0 14px;
}

button.smysly-author-featured__tab{
  appearance:none;
  -webkit-appearance:none;
  font:inherit;
  cursor:pointer;
}

button.smysly-author-featured__tab:disabled{
  cursor:wait;
  opacity:.6;
}

.smysly-author-featured__content{
  position:relative;
  min-height:40px;
}

.smysly-author-featured__empty{
  margin:0;
  padding:14px 16px;
  border:1px dashed #dedede;
  border-radius:14px;
  color:#777;
}

.smysly-author-featured.is-loading .smysly-author-featured__content{
  opacity:.45;
  pointer-events:none;
}

/* Definitive author-grid layout.
   Use the same gutters as archive listings, but keep an explicit 4-column desktop grid.
   Specificity intentionally beats the generic .art-grid / masonry media rules. */
@media (min-width:901px){
  .smysly-author-hub .smysly-author-work-grid:not(.smysly-author-art-masonry){
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:16px !important;
  }
  .smysly-author-hub .smysly-author-work-grid.smysly-author-art-masonry{
    column-count:4 !important;
    column-gap:18px !important;
  }
  .smysly-author-hub .smysly-author-work-grid.smysly-author-art-masonry > .work-card--art{
    margin-bottom:18px !important;
  }
}

@media (max-width:900px){
  .smysly-author-hub .smysly-author-work-grid:not(.smysly-author-art-masonry){
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:16px !important;
  }
  .smysly-author-hub .smysly-author-work-grid.smysly-author-art-masonry{
    column-count:2 !important;
    column-gap:18px !important;
  }
  .smysly-author-hub .smysly-author-work-grid.smysly-author-art-masonry > .work-card--art{
    margin-bottom:18px !important;
  }
}

@media (max-width:560px){
  .smysly-author-hub .smysly-author-work-grid:not(.smysly-author-art-masonry){
    grid-template-columns:1fr !important;
    gap:16px !important;
  }
  .smysly-author-hub .smysly-author-work-grid.smysly-author-art-masonry{
    column-count:1 !important;
    column-gap:18px !important;
  }
  .smysly-author-hub .smysly-author-work-grid.smysly-author-art-masonry > .work-card--art{
    margin-bottom:18px !important;
  }
}

.smysly-author-groups{
  margin:0 0 30px;
}

.smysly-author-groups__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.smysly-author-group-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
  padding:16px;
  border:1px solid #e7e7e7;
  border-radius:14px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.smysly-author-group-card:hover{
  transform:translateY(-2px);
  border-color:#d3d3d3;
  box-shadow:0 8px 22px rgba(0,0,0,.06);
}

.smysly-author-group-card__type{
  align-self:flex-start;
  padding:4px 8px;
  border-radius:999px;
  background:#f1f2f4;
  font-size:12px;
  line-height:1;
}

.smysly-author-group-card__title{
  font-size:16px;
  line-height:1.3;
}

.smysly-author-group-card__excerpt{
  color:#666;
  font-size:13px;
  line-height:1.45;
}

.smysly-author-catalogue{
  position:relative;
}

.smysly-author-catalogue.is-loading .smysly-author-catalogue__results,
.smysly-author-catalogue.is-loading .my-works__tabs,
.smysly-author-catalogue.is-loading .my-works__search{
  opacity:.45;
  pointer-events:none;
}

.smysly-author-catalogue.is-loading::after{
  content:'Загружаем…';
  position:absolute;
  left:50%;
  top:150px;
  z-index:5;
  transform:translateX(-50%);
  padding:8px 12px;
  border:1px solid #e5e5e5;
  border-radius:999px;
  background:#fff;
  box-shadow:0 5px 18px rgba(0,0,0,.08);
  font-size:13px;
}

/* Real SSR pagination remains in the DOM for crawlability and no-JS fallback. */
.user-works.is-js .my-works__pagination{
  display:none;
}

.smysly-author-load-more{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:70px;
  margin:18px 0 0;
}

.smysly-author-load-more__button{
  border:1px solid #dedede;
  border-radius:999px;
  background:#fff;
  padding:10px 18px;
  cursor:pointer;
  font:inherit;
}

.smysly-author-load-more__button:disabled{
  opacity:.55;
  cursor:wait;
}

.smysly-author-load-more__status{
  margin-top:8px;
  color:#777;
  font-size:12px;
}

.smysly-author-load-more__sentinel{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
}

.smysly-author-load-more.is-auto:not(.has-error) .smysly-author-load-more__button{
  display:none;
}

@media (max-width:1200px){
  .smysly-author-groups__grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media (max-width:900px){
  .smysly-author-groups__grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media (max-width:560px){
  .smysly-author-groups__grid{
    grid-template-columns:1fr !important;
    gap:14px;
  }
  .smysly-author-load-more{
    min-height:56px;
  }
}
