/* ========================================================================
   ЛАБА v46.5.3 — author profile action placement polish + raster rank badges
   Loaded after rank-frames.css. No series block in author modal.
   ======================================================================== */
.author-panel.author-panel-v465{
  width:min(1020px,calc(100vw - 36px));
  max-height:min(900px,94svh);
  padding:28px 30px 26px;
  border-radius:24px;
  background:
    radial-gradient(circle at 12% 7%,rgba(197,154,90,.048),transparent 29%),
    linear-gradient(145deg,#101313,#0b0d0d 78%);
}
.author-panel-v465 .author-back-work{margin:0 0 8px}
.author-profile-hero{
  display:grid;
  grid-template-columns:168px minmax(0,1fr) auto;
  justify-content:stretch;
  align-items:center;
  gap:14px;
  min-height:164px;
  padding:0 2px 10px;
}
.author-panel-v465 .author-avatar{width:168px!important;height:168px!important;flex:0 0 168px!important}
.author-panel-v465 .author-avatar>img,.author-panel-v465 .author-avatar>.avatar-placeholder{width:87px!important;height:87px!important}
.author-profile-copy{min-width:0;max-width:350px}
.author-profile-copy .section-kicker{display:block;margin-bottom:4px;color:#b58b53;letter-spacing:.19em;font-size:11px}
.author-profile-copy h2{margin:0;color:#e6dfd3;font-size:42px;line-height:1.02;font-weight:500;letter-spacing:-.015em}
.author-rank-line{display:flex;align-items:center;gap:9px;margin-top:10px;color:#c59a5a}
.author-rank-line strong{font:500 21px/1.1 Georgia,"Times New Roman",serif;color:#cfaa70}

/* Raster rank glyphs, including the three new upper-rank frames. */
.author-rank-glyph{
  width:30px;height:30px;display:block;flex:0 0 30px;border:0!important;transform:none!important;
  background-position:center;background-repeat:no-repeat;background-size:contain;
  box-shadow:none!important;filter:drop-shadow(0 2px 4px rgba(0,0,0,.34));
}
.author-rank-glyph::after{display:none!important}
.author-rank-glyph.level-1{background-image:url("assets/rank-badges/01_novichok.webp")}
.author-rank-glyph.level-2{background-image:url("assets/rank-badges/02_uchenik.webp")}
.author-rank-glyph.level-3{background-image:url("assets/rank-badges/03_podmastere.webp")}
.author-rank-glyph.level-4{background-image:url("assets/rank-badges/04_remeslennik.webp")}
.author-rank-glyph.level-5{background-image:url("assets/rank-badges/05_master.webp")}
.author-rank-glyph.level-6{background-image:url("assets/rank-badges/06_artizan.webp")}
.author-rank-glyph.level-7{background-image:url("assets/rank-badges/07_maestro.webp")}
.author-rank-glyph.level-8{background-image:url("assets/rank-badges/08_grandmaster.webp")}
.author-rank-glyph.level-9{background-image:url("assets/rank-frames/09_virtuoso.webp")}
.author-rank-glyph.level-10{background-image:url("assets/rank-frames/10_keeper.webp")}
.author-rank-glyph.level-11{background-image:url("assets/rank-frames/11_creator_v2.webp")}
.author-rank-glyph.level-12{background-image:url("assets/rank-badges/09_legenda.webp")}


.author-card-stats{display:flex!important;align-items:center;gap:10px!important;margin-top:11px;color:#8f887e!important;font:12px/1 Arial,sans-serif!important}
.author-card-stats>span{display:inline-flex;align-items:center;gap:4px}
.author-card-stats>span+span::before{content:"•";margin-right:5px;color:#554d42}
.author-card-stats strong{color:#d0b27f!important;font-weight:500!important}
.author-ranking-place{margin-top:8px;color:#81796e;font:11px/1.2 Arial,sans-serif;letter-spacing:.035em}
.author-ranking-place::before{content:"↗";display:inline-block;margin-right:6px;color:#a98650;transform:rotate(-45deg)}
.author-profile-actions{align-self:center;justify-self:end;display:flex;min-width:0;width:164px;margin-right:4px}
.author-panel-v465 .author-links{display:block;width:100%;margin:0}
.author-panel-v465 .author-profile-link{
  display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;margin:0;padding:0 15px;
  border:1px solid rgba(197,154,90,.42);border-radius:11px;color:#d2b782;background:rgba(197,154,90,.025);
  font:600 14px/1 Georgia,"Times New Roman",serif;text-decoration:none;white-space:nowrap;
}
.author-panel-v465 .author-profile-link:hover{border-color:rgba(213,180,126,.72);background:rgba(197,154,90,.06);color:#ead1a2}

.author-panel-v465 .author-level-card{
  margin:0 0 17px;padding:12px 16px 11px;
  border:1px solid rgba(197,154,90,.18);border-radius:14px;
  background:linear-gradient(100deg,rgba(197,154,90,.032),rgba(255,255,255,.006));
}
.author-level-top-v464{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:7px}
.author-level-top-v464 strong{color:#cba86f;font:600 12px/1 Arial,sans-serif;letter-spacing:.13em}
.author-progress-count{flex:0 0 auto;color:#ddd0bc;font:16px/1 Georgia,"Times New Roman",serif}
.author-panel-v465 .author-progress{height:5px;background:rgba(255,255,255,.052);border-radius:999px;overflow:hidden}
.author-panel-v465 .author-progress span{background:linear-gradient(90deg,#8d6a3d,#d3a668);box-shadow:0 0 10px rgba(197,154,90,.08);border-radius:inherit}
.author-panel-v465 .author-level-card small{display:block;margin-top:7px;color:#8c8377;font:11px/1.25 Georgia,"Times New Roman",serif}

.author-works-section{margin-top:0;padding-top:0}
.author-works-heading{display:flex;align-items:center;gap:0;margin:0 0 11px;color:#b98d55;font:600 13px/1 Arial,sans-serif;letter-spacing:.17em}
.author-works-heading::before{display:none!important;content:none!important}
.author-panel-v465 .author-work-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:0}
.author-panel-v465 .author-work-item{
  position:relative;display:grid;grid-template-columns:150px minmax(0,1fr) 18px;align-items:center;gap:14px;
  min-height:128px;padding:8px 12px 8px 8px;border:1px solid rgba(197,154,90,.17);border-radius:14px;
  background:linear-gradient(105deg,rgba(255,255,255,.018),rgba(255,255,255,.007));
  overflow:hidden;color:inherit;text-align:left;transition:border-color .18s ease,background .18s ease,transform .18s ease;
}
.author-panel-v465 .author-work-item:hover{border-color:rgba(197,154,90,.36);background:rgba(197,154,90,.024);transform:translateY(-1px)}
.author-panel-v465 .author-work-item.is-best{border-color:rgba(197,154,90,.30);background:linear-gradient(105deg,rgba(197,154,90,.042),rgba(255,255,255,.006))}
.author-work-thumb{position:relative;width:150px;height:112px;display:block;overflow:hidden;border-radius:10px;background:#080a0a}
.author-panel-v465 .author-work-item .author-work-thumb img{width:100%;height:100%;object-fit:cover;border-radius:0;transition:transform .22s ease}
.author-panel-v465 .author-work-item:hover .author-work-thumb img{transform:scale(1.025)}
.author-work-new{position:absolute;left:8px;top:8px;padding:5px 7px;border-radius:5px;background:#a98550;color:#f5ead6;font:700 9px/1 Arial,sans-serif;letter-spacing:.10em;box-shadow:0 4px 12px rgba(0,0,0,.36)}
.author-work-copy{display:flex!important;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
.author-work-copy>strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e0d7c9!important;font:500 20px/1.1 Georgia,"Times New Roman",serif!important}
.author-work-best{display:inline-flex;padding:4px 6px;border-radius:5px;border:1px solid rgba(197,154,90,.34);background:rgba(197,154,90,.08);color:#cda96d;font:700 8px/1 Arial,sans-serif;letter-spacing:.10em}
.author-work-copy>small{color:#817a70!important;font:11px/1 Arial,sans-serif!important}
.author-work-meta{display:flex!important;align-items:center!important;gap:12px!important;margin-top:5px;color:#817a70}
.author-work-meta em{color:#c5a66e;font:normal 13px/1 Arial,sans-serif}.author-work-meta i{color:#69645d;font:normal 10px/1 Arial,sans-serif}
.author-work-arrow{color:#bd8e4d;font:28px/1 Georgia,serif;opacity:.85}

@media(max-width:760px){
  .author-panel.author-panel-v465{width:calc(100vw - 8px);max-height:calc(100svh - 8px);padding:16px 12px 20px;border-radius:18px}
  .author-panel-v465 .author-back-work{margin-bottom:5px;font-size:11px}
  .author-profile-hero{grid-template-columns:104px minmax(0,1fr);gap:7px 11px;min-height:112px;padding:0 34px 9px 0}
  .author-profile-copy{max-width:none}
  .author-close{top:8px!important;right:8px!important;width:40px;height:40px;display:grid;place-items:center;z-index:4}
  .author-panel-v465 .author-back-work{max-width:calc(100% - 48px);padding-right:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .author-panel-v465 .author-avatar{width:104px!important;height:104px!important;flex-basis:104px!important}
  .author-panel-v465 .author-avatar>img,.author-panel-v465 .author-avatar>.avatar-placeholder{width:54px!important;height:54px!important}
  .author-profile-copy .section-kicker{font-size:9px;margin-bottom:3px}.author-profile-copy h2{font-size:29px}
  .author-rank-line{margin-top:7px;gap:6px}.author-rank-line strong{font-size:16px}.author-rank-glyph{width:24px;height:24px;flex-basis:24px}
  .author-card-stats{margin-top:8px!important;font-size:10px!important;gap:6px!important}.author-ranking-place{margin-top:6px;font-size:9px}
  .author-profile-actions{grid-column:1/-1;justify-self:stretch;width:100%;margin:4px 0 0}.author-panel-v465 .author-profile-link{min-height:42px;font-size:13px;border-radius:10px}
  .author-panel-v465 .author-level-card{margin-bottom:17px;padding:12px 13px 11px}.author-level-top-v464{margin-bottom:8px}.author-level-top-v464 strong{font-size:10px;letter-spacing:.10em}.author-progress-count{font-size:14px}
  .author-panel-v465 .author-work-list{grid-template-columns:1fr;gap:9px}
  .author-panel-v465 .author-work-item{grid-template-columns:112px minmax(0,1fr) 14px;min-height:102px;gap:10px;padding:7px 9px 7px 7px}
  .author-work-thumb{width:112px;height:88px}.author-work-copy>strong{font-size:17px}.author-work-meta{margin-top:3px;gap:9px!important}.author-work-meta i{display:none}.author-work-best{font-size:7px;padding:3px 5px}
}
@media(max-width:430px){
  .author-profile-hero{grid-template-columns:88px minmax(0,1fr)}
  .author-panel-v465 .author-avatar{width:88px!important;height:88px!important;flex-basis:88px!important}
  .author-panel-v465 .author-avatar>img,.author-panel-v465 .author-avatar>.avatar-placeholder{width:46px!important;height:46px!important}
  .author-profile-copy h2{font-size:26px}.author-card-stats{flex-wrap:wrap}.author-card-stats>span+span::before{display:none}
  .author-panel-v465 .author-work-item{grid-template-columns:94px minmax(0,1fr) 12px}.author-work-thumb{width:94px;height:76px}
}
