/* CIS FINDER v1.6.1 — actual scouting list + right-side detail drawer.
   Intentionally preserves original server data, Telegram actions and branding. */
:root{--cf-drawer-width:clamp(550px,47.5vw,880px)}
body.concept-a .inner{max-width:1680px}
body.concept-a .cards{display:flex;flex-direction:column;gap:8px}
body.concept-a .cf-player-row{
  display:grid;grid-template-columns:minmax(185px,1.8fr) minmax(115px,.8fr) minmax(270px,1.55fr) minmax(85px,.6fr) 32px;
  grid-template-areas:'person rating stats matches fav' 'foot foot foot foot foot';
  align-items:center;column-gap:13px;row-gap:9px;position:relative;padding:13px 15px 11px;
  background:linear-gradient(107deg,#111e31,#0a1626);border:1px solid #263954;border-radius:9px;
  min-height:97px;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s;
}
body.concept-a .cf-player-row:hover,body.concept-a .cf-player-row:focus-visible{background:linear-gradient(107deg,#172b43,#0d1c30);border-color:#3885ca;transform:none;box-shadow:0 5px 23px #020d1f80}
body.concept-a .cf-player-row.cf-selected{border-color:#339cff;box-shadow:inset 3px 0 0 #2e9fff,0 0 0 1px #328ce744;background:linear-gradient(105deg,#182c46,#0c1a2d)}
body.concept-a .cf-card-person{grid-area:person;display:flex;gap:11px;align-items:center;min-width:0}
body.concept-a .cf-card-person .avatar{height:51px;width:51px;flex:none;border-radius:8px;border:1px solid #3a5b80}
body.concept-a .cf-person-text{min-width:0;flex:1}
body.concept-a .cf-person-text h3{margin:0 0 2px;font-size:15px;color:#f6f9ff;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.concept-a .cf-person-sub{font-size:10px;line-height:1.45;color:#9bb2d1;display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.concept-a .cf-person-tags{display:flex;gap:5px;flex-wrap:nowrap;margin-top:5px;overflow:hidden}
body.concept-a .cf-search-badge{display:inline-flex;align-items:center;background:#103e3b;color:#74e5bf;border:1px solid #1e5e56;border-radius:5px;padding:2px 6px;font-size:9px;font-weight:750;white-space:nowrap}
body.concept-a .cf-muted-chip{display:inline-flex;align-items:center;background:#1c304b;color:#a2bcdf;border:1px solid #2c4769;border-radius:5px;padding:2px 6px;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.concept-a .cf-country{display:inline-flex;gap:3px;align-items:center;white-space:nowrap;color:#d6e5fc}
body.concept-a .cf-meta-dot{color:#527298}
body.concept-a .cf-card-rating{grid-area:rating;display:flex;align-items:center;gap:7px;min-width:0}
body.concept-a .cf-current-elo{display:flex;flex-direction:column;min-width:0}
body.concept-a .cf-current-elo strong{font-size:20px;color:#f2f7ff;line-height:1.06;letter-spacing:-.5px;white-space:nowrap}
body.concept-a .cf-current-elo>span{font-size:10px;color:#84a5d3}
body.concept-a .cf-current-elo small{font-size:9px;color:#93afd6;line-height:1.15;margin-top:3px}
body.concept-a .cf-card-rating .faceit-badge{min-width:32px;min-height:32px;flex:none}
body.concept-a .cf-card-rating .faceit-badge img{width:32px;height:32px}
body.concept-a .cf-card-stats{grid-area:stats;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;min-width:0}
body.concept-a .cf-tiny-stat{border:1px solid #20344e;background:#0a192b;border-radius:6px;padding:7px 4px;min-width:0;display:flex;align-items:center;flex-direction:column;justify-content:center;min-height:48px}
body.concept-a .cf-tiny-stat strong{font-weight:800;font-size:13px;color:#edf5ff;line-height:1.25;white-space:nowrap}
body.concept-a .cf-tiny-stat span{font-size:9px;color:#83a4cb}
body.concept-a .cf-card-matches{grid-area:matches;display:flex;flex-direction:column;align-items:center;min-width:0}
body.concept-a .cf-card-matches strong{font-size:15px;color:#ecf6ff;white-space:nowrap}
body.concept-a .cf-card-matches span{color:#7796b9;font-size:9px;text-align:center;white-space:nowrap}
body.concept-a .cf-player-row .bookmark{grid-area:fav;position:static;align-self:center;justify-self:end;padding:3px 4px;margin:0;width:29px;height:34px;display:grid;place-items:center;color:#90b1d6;font-size:23px}
body.concept-a .cf-player-row .bookmark:hover,body.concept-a .cf-player-row .bookmark.active{color:#ef83a0}
body.concept-a .cf-card-footer{grid-area:foot;display:flex;gap:12px;align-items:center;justify-content:space-between;min-width:0;padding-top:7px;border-top:1px solid #1b2e46;color:#7791b2;font-size:10px}
body.concept-a .cf-card-footer span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
body.concept-a .cf-card-footer time{flex:none;color:#627d9f}
/* Independent, scrollable right panel. No synthetic match history. */
.cf-drawer-backdrop{display:none}
.cf-drawer{position:fixed;z-index:55;top:0;right:0;bottom:0;width:var(--cf-drawer-width);display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(150deg,#0d1b2d 0%,#07111f 60%,#060f1d 100%);color:#edf6ff;border-left:1px solid #2c4d78;box-shadow:-12px 0 65px #000b;animation:cf-drawer-in .23s cubic-bezier(.2,.72,.28,1)}
.cf-drawer:focus{outline:none}
@keyframes cf-drawer-in{from{transform:translateX(28px);opacity:.75}to{transform:translateX(0);opacity:1}}
.cf-drawer-top{display:flex;justify-content:space-between;align-items:center;padding:14px 22px;border-bottom:1px solid #1e354e;min-height:58px}
.cf-back{background:none;border:0;color:#bbd0ed;font-size:12px;display:inline-flex;gap:11px;align-items:center;padding:7px 0}
.cf-back:hover{color:white}
.cf-drawer-top-actions{display:flex;gap:7px;align-items:center}
.cf-nav-arrow,.cf-drawer-x{background:#12253b;border:1px solid #2b4260;color:#cce3fb;border-radius:7px;display:grid;place-items:center;height:31px;width:34px;font-size:23px}
.cf-nav-arrow:disabled{opacity:.32;cursor:default}
.cf-drawer-x{font-size:22px;margin-left:6px}
.cf-drawer-scroll{overflow-y:auto;overscroll-behavior:contain;flex:1;padding:25px 26px 45px;scrollbar-color:#35577e #091728;scrollbar-width:thin}
.cf-profile-intro{display:grid;grid-template-columns:85px minmax(0,1fr) auto;gap:15px;align-items:center}
.cf-profile-avatar{width:85px;height:85px;border-radius:13px;background:#142944;border:1px solid #355e93;overflow:hidden;display:grid;place-items:center;font-size:27px;font-weight:850}
.cf-profile-avatar img{width:100%;height:100%;object-fit:cover}
.cf-profile-person{min-width:0}
.cf-profile-person h2{font-size:clamp(20px,2vw,27px);font-weight:830;letter-spacing:-.75px;margin:0 0 7px;overflow-wrap:anywhere}
.cf-profile-meta{display:flex;gap:9px;flex-wrap:wrap;font-size:11px;align-items:center;color:#c1d3ec}
.cf-profile-person>small{display:block;font-size:10px;color:#708aab;margin-top:9px}
.cf-profile-rating{display:flex;align-items:center;gap:7px;border-left:1px solid #233d60;padding-left:15px}
.cf-profile-rating .faceit-badge img{height:39px;width:39px}
.cf-profile-rating .cf-current-elo strong{font-size:27px;color:#4daeff}
.cf-profile-rating .cf-current-elo>span{font-size:11px;text-align:right}
.cf-profile-rating .cf-current-elo{align-items:flex-end}
.cf-profile-rating .cf-current-elo small{text-align:right;max-width:115px}
.cf-profile-tags{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0 17px}
.cf-profile-tags>span{background:#14263c;border:1px solid #263d59;border-radius:7px;color:#d2e1f6;padding:6px 10px;font-size:11px}
.cf-profile-quote{display:flex;align-items:flex-start;gap:10px;margin:0 0 20px}
.cf-profile-quote>span{font-weight:900;color:#2f9cff;font-size:54px;line-height:1;margin-top:-9px}
.cf-profile-quote p{font-size:12px;line-height:1.7;color:#c3d3eb;white-space:pre-wrap;word-break:break-word;margin:0}
.cf-profile-actions{display:flex;flex-wrap:wrap;gap:8px;padding:0 0 22px;border-bottom:1px solid #203650}
.cf-profile-actions .btn{font-size:11px;border-radius:7px;background:#14253c;border-color:#2c4565;padding:9px 13px;min-height:37px}
.cf-profile-actions .btn.primary{background:#218cf8;color:#fff;border-color:#288aff;box-shadow:0 3px 17px #0976ed39}
.cf-profile-section{margin-top:22px}
.cf-profile-section h3{font-size:14px;color:#eef5ff;font-weight:800;margin:0 0 14px}
.cf-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.cf-section-head h3 span{font-size:12px;color:#66bbff;font-weight:650}
.cf-section-head>small{font-size:9px;color:#647e9e;white-space:nowrap}
.cf-detail-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.cf-detail-stat{border:1px solid #263f5d;background:#0b1a2e;border-radius:8px;padding:11px 9px;display:flex;flex-direction:column;min-width:0;gap:3px}
.cf-detail-stat>span{font-size:10px;color:#8faaca}
.cf-detail-stat strong{font-size:17px;letter-spacing:-.4px;white-space:nowrap}
.cf-detail-stat small{font-size:9px;color:#8198b6;white-space:nowrap}
.cf-total-matches{margin-top:7px;border:1px solid #263f5d;background:#0b1a2e;border-radius:8px;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.cf-total-matches>div{display:flex;flex-direction:column;gap:2px}.cf-total-matches strong{font-size:18px}.cf-total-matches small{font-size:10px;color:#8ca4c4}.cf-total-matches a{color:#66b8ff;font-size:11px;text-decoration:none}.cf-total-matches a:hover{text-decoration:underline}
.cf-stat-warning{color:#8fa5c5;font-size:11px;margin:8px 0 0}
.cf-info-grid{border:1px solid #263c56;background:#0b1828;border-radius:9px;padding:4px 14px}
.cf-info-grid>div{display:grid;grid-template-columns:145px minmax(0,1fr);gap:8px;padding:9px 0;font-size:11px;border-bottom:1px solid #1c2f45}
.cf-info-grid>div:last-child{border:0}.cf-info-grid span{color:#819bbb}.cf-info-grid strong{font-weight:650;color:#dbe9fa;overflow-wrap:anywhere}
.cf-raw-details{border:1px solid #263c56;border-radius:8px;background:#0b192b;overflow:hidden}
.cf-raw-details summary{display:flex;align-items:center;justify-content:space-between;padding:14px;cursor:pointer;font-size:12px;font-weight:750}
.cf-raw-details summary span{font-size:10px;color:#79aeed;font-weight:500}.cf-raw-details .original{margin:0 11px 11px;max-height:380px;white-space:pre-wrap}
.cf-provenance{font-size:10px;line-height:1.6;color:#6f86a4}
/* Full catalog stays visible and interactive while drawer is open. */
@media(min-width:761px){
 body.cf-drawer-open .app{width:calc(100% - var(--cf-drawer-width));transition:width .17s ease}
 body.cf-drawer-open .header-inner{padding:0 15px;gap:6px}
 body.cf-drawer-open .site-brand{font-size:16px;white-space:nowrap}
 body.cf-drawer-open .site-brand>img{width:33px;height:33px}
 body.cf-drawer-open .site-nav .navitem{padding:0 8px;font-size:10px}
 body.cf-drawer-open .header-actions .status{display:none}
 body.cf-drawer-open .inner{padding:16px 15px 38px}
 body.cf-drawer-open .hero{min-height:245px;padding:22px 25px}
 body.cf-drawer-open .hero h1{font-size:clamp(26px,3vw,43px);letter-spacing:-1.5px;line-height:1.12}
 body.cf-drawer-open .hero p{font-size:11px;margin-bottom:14px}
 body.cf-drawer-open .hero-shortcuts{display:none}
 body.cf-drawer-open .hero .eyebrow{display:none}
 body.cf-drawer-open .statbar{display:none}
 body.cf-drawer-open .sectionhead{margin-top:17px}
 body.cf-drawer-open .sectionhead h2{font-size:20px}
 body.cf-drawer-open .sectionhead p{display:none}
 body.cf-drawer-open .fhead{display:none}
 body.cf-drawer-open .filtergrid .fblock{flex:1 1 105px;min-width:105px}
 body.cf-drawer-open .filtergrid .fblock:first-child{flex:2 1 180px}
 body.cf-drawer-open .filters{padding:9px 10px;gap:5px}
 body.cf-drawer-open .filter-actions{gap:3px}
 body.cf-drawer-open .filter-actions .btn{font-size:10px;padding:7px 9px}
 body.cf-drawer-open .cf-player-row{grid-template-columns:minmax(130px,1.2fr) minmax(75px,.7fr) minmax(154px,1.5fr) minmax(50px,.45fr) 24px;column-gap:7px;padding:10px 8px;min-height:73px}
 body.cf-drawer-open .cf-person-tags .cf-muted-chip{display:none}
 body.cf-drawer-open .cf-card-person .avatar{width:41px;height:41px}
 body.cf-drawer-open .cf-person-text h3{font-size:12px}
 body.cf-drawer-open .cf-person-sub{font-size:9px}
 body.cf-drawer-open .cf-current-elo strong{font-size:16px}
 body.cf-drawer-open .cf-card-rating .faceit-badge{min-height:25px;min-width:25px}
 body.cf-drawer-open .cf-card-rating .faceit-badge img{width:25px;height:25px}
 body.cf-drawer-open .cf-tiny-stat{padding:5px 1px;min-height:40px}
 body.cf-drawer-open .cf-tiny-stat strong{font-size:11px}
 body.cf-drawer-open .cf-tiny-stat span{font-size:8px}
 body.cf-drawer-open .cf-card-matches strong{font-size:12px}
 body.cf-drawer-open .cf-card-matches span{font-size:8px}
 body.cf-drawer-open .cf-card-footer{display:none}
 body.cf-drawer-open .cf-player-row .bookmark{font-size:19px;width:22px}
 body.cf-drawer-open .listingbar{margin-bottom:7px}
 body.cf-drawer-open .footer{display:none}
}
@media(max-width:1290px) and (min-width:761px){
 body.cf-drawer-open .site-nav .navitem:nth-child(n+5){display:none}
 body.cf-drawer-open .cf-card-matches{display:none}
 body.cf-drawer-open .cf-player-row{grid-template-columns:minmax(120px,1.4fr) minmax(75px,.75fr) minmax(160px,1.6fr) 25px;grid-template-areas:'person rating stats fav' 'foot foot foot foot'}
 body.cf-drawer-open .cf-profile-intro{grid-template-columns:65px minmax(0,1fr) auto}
 body.cf-drawer-open .cf-profile-avatar{width:65px;height:65px}
}
@media(max-width:760px){
 .cf-drawer-backdrop{display:block;position:fixed;inset:0;background:#010714aa;z-index:54}
 .cf-drawer{width:100vw;max-width:none;box-shadow:none}
 .cf-drawer-scroll{padding:18px 15px 40px}
 .cf-drawer-top{padding:10px 15px}
 .cf-profile-intro{grid-template-columns:66px minmax(0,1fr);gap:10px}
 .cf-profile-avatar{height:66px;width:66px}
 .cf-profile-person h2{font-size:20px}
 .cf-profile-rating{grid-column:1/-1;border:0;border-top:1px solid #1d3550;padding:11px 0 0;justify-content:flex-start}
 .cf-profile-rating .cf-current-elo{align-items:flex-start}
 .cf-profile-rating .cf-current-elo>span{text-align:left}
 .cf-detail-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
 .cf-section-head{align-items:flex-start;flex-direction:column}
 .cf-profile-actions .btn{flex:1 1 auto}
 body.concept-a .cf-player-row{grid-template-columns:minmax(0,1fr) minmax(95px,.5fr) 25px;grid-template-areas:'person rating fav' 'stats stats stats' 'matches matches matches' 'foot foot foot';gap:9px;padding:14px}
 body.concept-a .cf-card-stats{gap:7px}
 body.concept-a .cf-card-matches{display:none}
 body.concept-a .cf-card-footer{margin-top:0}
 body.concept-a .cf-card-person .avatar{width:43px;height:43px}
 body.concept-a .cf-card-rating .faceit-badge img{width:29px;height:29px}
 body.concept-a .cf-current-elo strong{font-size:17px}
}
@media(max-width:420px){
 .cf-detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cf-info-grid>div{grid-template-columns:95px minmax(0,1fr)}
 body.concept-a .cf-player-row{grid-template-columns:minmax(0,1fr) 90px 23px}
 .cf-profile-actions .btn{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.cf-drawer,body.cf-drawer-open .app{animation:none;transition:none}}

/* Show an honest Level-number fallback until the official FACEIT image loads. */
body.concept-a .faceit-badge .faceit-badge-fallback{display:inline-flex;position:absolute;inset:1px;border-radius:50%;align-items:center;justify-content:center;font-size:10px;background:#132840;border:1px solid #396c9c;color:#bfdfff;white-space:nowrap}
