/* Channel v0.1.15: bounded promotional real estate and clean, unobtrusive controls. */
.channel-list-panel .item-list{scrollbar-width:none!important;overscroll-behavior-y:contain}
.channel-list-panel .item-list::-webkit-scrollbar{display:none!important}
.cs-lower-promo{flex:0 0 auto;min-height:91px;border:1px solid #d7e8fb;background:linear-gradient(114deg,#f8fbff,#eaf4ff);border-radius:15px;display:flex;align-items:center;gap:12px;padding:14px;position:relative;box-shadow:0 2px 8px rgba(22,94,171,.03);min-width:0}
.cs-lower-promo[hidden],.cs-ad-card[hidden],.cs-newsletter[hidden]{display:none!important}
.cs-promo-glyph{flex:0 0 37px;height:37px;border-radius:11px;background:#dcecff;display:grid;place-items:center;color:#0872f9;font-size:22px}
.cs-promo-copy{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}
.cs-promo-copy strong{font-size:13px;line-height:1.25;color:#163e73;font-weight:800}
.cs-promo-copy span{font-size:11px;color:#5980ac;line-height:1.35}
.cs-promo-visit{flex:0 0 auto;text-decoration:none;color:#1173dc;font-size:11px;font-weight:780;max-width:110px;white-space:nowrap}
.cs-newsletter{min-height:164px;border:1px solid #cfe1f8;border-radius:16px;background:linear-gradient(110deg,#f0f7ff 0%,#fff 77%);display:flex;gap:13px;padding:17px 16px;position:relative;flex:0 0 auto;align-items:flex-start}
.cs-news-icon{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;color:#1375e2;border-radius:12px;background:#e0efff;font-size:19px}
.cs-news-text{flex:1;min-width:0}
.cs-eyebrow{font-size:9px;font-weight:800;letter-spacing:1.45px;color:#3b81cc}
.cs-news-text h3{font-size:15px;line-height:1.2;margin:4px 0 5px;font-weight:830;color:#183b6c}
.cs-news-text p{font-size:11px;color:#5079a9;line-height:1.4;margin:0 0 10px}
.cs-news-form{display:flex;gap:7px;align-items:center;min-width:0}
.cs-news-form input{min-width:0;flex:1;height:35px;border:1px solid #c9dff8;border-radius:9px;background:#fff;padding:0 10px;color:#224f81;font-size:11px}
.cs-news-form button,.cs-news-alt-link{height:35px;white-space:nowrap;border:0;border-radius:9px;background:#0872f9;color:white;padding:0 13px;display:inline-flex;justify-content:center;align-items:center;font-size:11px;font-weight:780;text-decoration:none;cursor:pointer}
.cs-news-note{font-size:9.5px;line-height:1.4;color:#7090ad;display:block;margin-top:7px}
.cs-edit-button{display:none;position:absolute;right:7px;top:7px;border:1px solid #9fc9ff;background:white;color:#1473d7;border-radius:7px;padding:4px 8px;font-size:10px;font-weight:780;cursor:pointer;z-index:2}
body.eip-editing .cs-edit-button{display:block}
.cs-ad-stack{padding:13px 5px 5px;display:flex;flex-direction:column;gap:8px}
.cs-ad-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#326da6;font-size:10px;font-weight:840;letter-spacing:1px;margin-bottom:2px}
.cs-ad-heading small{font-size:9px;letter-spacing:0;color:#94a8c2;font-weight:500}
.cs-ad-card{border:1px solid #d5e5f8;border-radius:12px;background:linear-gradient(108deg,#f7faff,#ecf5ff);min-height:82px;padding:12px 12px 11px;position:relative;display:flex;flex-direction:column;gap:4px}
.cs-ad-label{font-size:9px;color:#4485cc;letter-spacing:.85px;font-weight:820}
.cs-ad-card strong{font-size:12px;color:#234a79;line-height:1.25}
.cs-ad-card p{font-size:10.5px;color:#6686aa;line-height:1.32;margin:0}
.cs-ad-card a{font-size:10px;color:#0b73e9;font-weight:750;text-decoration:none;margin-top:2px}
.cs-ad-card .cs-edit-button{right:5px;top:5px}
.profile-panel > .sidebar-section + .sidebar-section .topics{max-height:104px;overflow-y:auto;scrollbar-width:none;align-content:flex-start}
.profile-panel > .sidebar-section + .sidebar-section .topics::-webkit-scrollbar{display:none}
.install-small{width:auto!important;min-width:55px!important;gap:3px;padding:0 8px;pointer-events:auto!important;cursor:pointer!important}
.install-small .ico{width:15px!important;height:15px!important}
.install-small span{font-size:11px;font-weight:800}
.cs-options-modal{padding:0;max-width:min(94vw,450px);width:450px;border:1px solid #d8e8fc;box-shadow:0 28px 70px rgba(12,53,104,.25);border-radius:17px;color:#173c73;font-family:inherit}
.cs-options-modal::backdrop{background:rgba(13,38,80,.5)}
.cs-options-modal header{padding:19px 20px;border-bottom:1px solid #e6eef9;display:flex;justify-content:space-between;align-items:center}
.cs-options-modal header h2{font-size:19px;margin:5px 0 0}
.cs-close{border:0;background:#edf4ff;color:#3569a2;font-size:25px;width:32px;height:32px;border-radius:9px;cursor:pointer}
.cs-options-content{padding:16px 20px;display:flex;flex-direction:column;gap:12px}
.cs-options-content label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:730;color:#3a638c}
.cs-options-content input,.cs-options-content textarea,.cs-options-content select{border:1px solid #cddff5;border-radius:9px;padding:10px;font:inherit;font-size:13px;background:white;color:#173c73;width:100%}
.cs-options-hint{font-size:11px;color:#6c8aab;line-height:1.5;margin:0}
.cs-options-modal footer{padding:12px 20px;border-top:1px solid #e6eef9;display:flex;justify-content:flex-end;gap:9px}
.cs-options-modal footer button{border:1px solid #cfdef2;background:#edf5ff;color:#23588d;border-radius:9px;padding:10px 15px;cursor:pointer;font-weight:770}
.cs-options-modal footer button[type=submit]{background:#0872f9;border-color:#0872f9;color:white}
@media(max-width:1100px){.cs-newsletter{padding:12px;gap:8px}.cs-news-form{flex-wrap:wrap}.cs-news-form input{flex-basis:100%}.cs-news-text h3{font-size:13px}.cs-lower-promo{padding:11px}.cs-promo-visit{max-width:75px}}
@media(max-width:760px){.cs-ad-stack{display:none}.cs-options-modal{max-width:95vw}.cs-news-icon{display:none}.cs-newsletter{min-height:0}}

/* v0.1.15 correction — large graphical banners, clean spacing, coordinated scrolling. */
.channel-list-panel{gap:7px!important}
.channel-list-panel .item-list{padding-bottom:0!important;overscroll-behavior-y:auto!important}
.cs-lower-promo{height:142px!important;min-height:142px!important;flex:0 0 142px!important;padding:16px!important;overflow:hidden;border:0!important;border-radius:15px!important;background:#0a4fa3 var(--cs-banner-image,url("assets/channel-lower-banner.svg")) center/cover no-repeat!important;box-shadow:0 4px 15px rgba(10,74,145,.12)!important;align-items:center!important;gap:13px!important;color:#fff!important}
.cs-lower-promo:before,.cs-ad-card:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,20,69,.46) 0%,rgba(0,27,90,.16) 67%,transparent 100%);pointer-events:none}
.cs-lower-promo .cs-promo-copy{position:relative;z-index:1;max-width:73%;gap:8px}
.cs-lower-promo .cs-promo-copy strong{font-size:19px!important;color:#fff!important;line-height:1.16!important;letter-spacing:-.25px}
.cs-lower-promo .cs-promo-copy span{font-size:12px!important;color:#e6f6ff!important;line-height:1.35!important}
.cs-lower-promo .cs-promo-glyph{position:relative;z-index:1;background:rgba(255,255,255,.18)!important;color:white!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.24);border-radius:12px!important;width:43px!important;height:43px!important;flex-basis:43px!important}
.cs-lower-promo .cs-promo-visit{z-index:2;color:#fff!important;text-decoration:underline;text-underline-offset:3px;font-size:12px!important}
.cs-ad-stack{padding:13px 0 7px!important;gap:10px!important}
.cs-ad-heading{padding:0 3px}
.cs-ad-card{min-height:169px!important;height:169px!important;padding:21px 17px!important;display:flex!important;flex-direction:column!important;justify-content:center;gap:9px!important;overflow:hidden;position:relative;border:0!important;border-radius:14px!important;box-shadow:0 4px 13px rgba(22,75,148,.12)!important;color:#fff!important;background-color:#0857af!important;background-size:cover!important;background-position:center!important}
.cs-ad-card:nth-child(1){background-image:var(--cs-ad-image,url("assets/channel-ad-one.svg"))!important}
.cs-ad-card:nth-child(2){background-image:var(--cs-ad-image,url("assets/channel-ad-two.svg"))!important}
.cs-ad-card:nth-child(3){background-image:var(--cs-ad-image,url("assets/channel-ad-three.svg"))!important}
.cs-ad-card[hidden]{display:none!important}
.cs-ad-card .cs-ad-label,.cs-ad-card strong,.cs-ad-card p,.cs-ad-card a{position:relative;z-index:1;max-width:86%}
.cs-ad-card .cs-ad-label{font-size:10px!important;color:#c7e7ff!important;letter-spacing:1.25px!important}
.cs-ad-card strong{font-size:19px!important;color:white!important;line-height:1.18!important;text-shadow:0 2px 3px rgba(0,19,69,.15)}
.cs-ad-card p{color:#e4f1ff!important;font-size:11.5px!important;line-height:1.43!important;margin:0!important}
.cs-ad-card a{color:#fff!important;font-size:11px!important;text-decoration:underline!important;text-underline-offset:3px}
.cs-ad-card .cs-edit-button{z-index:5}
/* Images are independently replaceable by the Publisher in Edit mode. */
.cs-options-image-row{display:flex!important;flex-direction:column!important;gap:5px!important}
.cs-options-image-row input{width:100%}
@media(max-width:1100px){.cs-lower-promo{min-height:132px!important;height:132px!important;flex-basis:132px!important}.cs-lower-promo .cs-promo-copy strong{font-size:16px!important}.cs-ad-card{height:151px!important;min-height:151px!important}.cs-ad-card strong{font-size:17px!important}}
@media(max-width:760px){.cs-lower-promo{height:132px!important;min-height:132px!important;flex-basis:132px!important}.cs-ad-stack{display:none!important}}

/* One continuous, real-image portrait advertisement in the existing right-side promotion area. */
.profile-panel{display:flex!important;flex-direction:column!important}
.cs-ad-heading{display:none!important}
.cs-ad-stack{display:flex!important;flex:1 1 auto!important;min-height:500px!important;padding:13px 0 7px!important}
[data-cs-ad-slots]{display:flex;flex:1 1 auto;min-height:0}
.cs-ad-portrait{position:relative;flex:1;min-height:500px;border-radius:14px;overflow:hidden;background:#1155ac;box-shadow:0 4px 14px rgba(15,57,110,.12)}
.cs-ad-portrait[hidden]{display:none!important}
.cs-ad-portrait-image{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center}
.cs-ad-portrait-link{position:absolute;inset:0;z-index:1}
.cs-ad-portrait .cs-edit-button{z-index:3;top:8px;right:8px}
.profile-panel>.version-label{flex:0 0 auto;margin-top:5px}
@media(max-width:760px){.cs-ad-stack{display:none!important}}

/* v0.1.17 — only the agreed left/list and center/comment changes. */
.channel-list-panel{min-height:0!important}
.channel-list-panel>.item-list{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior-y:auto!important;scrollbar-width:none!important;padding-bottom:10px!important}
.channel-list-panel>.item-list::-webkit-scrollbar{display:none!important;width:0!important}
.channel-view-panel>.content-stack{height:100%;flex:1 1 auto;overflow:hidden!important;min-height:0!important;padding-bottom:0!important}
.channel-view-panel .comment-section{flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
.channel-view-panel .comment-header,.channel-view-panel .comment-compose{flex-shrink:0!important}
.cs-comment-stream{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior-y:auto;scrollbar-width:none;padding-right:2px}
.cs-comment-stream::-webkit-scrollbar{display:none;width:0}
.channel-list-panel>.item-list{max-height:none!important}
.cs-comment-stream>.comment-row{min-height:116px}
@media(min-width:761px){
 .channel-body{flex:0 0 auto!important;height:clamp(1200px,calc(100dvh + 1080px),2100px)!important;min-height:0!important}
 .channel-main{min-height:0!important}
}

/* v0.1.17 repair: preserve the exact v0.1.16 right console sizing,
   independently of the taller left/center panels. */
@media(min-width:761px){
 .app-shell > .profile-panel{align-self:start!important;height:1706px!important;min-height:0!important;overflow-y:auto!important}
}

/* v0.1.18: align left and center panel bottom exactly with unchanged portrait console. */
@media(min-width:761px){
 .app-shell>.channel-main{height:1706px!important;min-height:0!important;flex:0 0 auto!important}
 .channel-main>.channel-body{height:auto!important;flex:1 1 auto!important;min-height:0!important}
}

/* v0.1.21 — the same fixed card, three simple Publisher templates. */
.cs-newsletter{background:linear-gradient(110deg,var(--cs-card-tint,#f0f7ff),#fff 85%)!important;min-height:164px!important;height:164px!important;max-height:164px!important;overflow:hidden!important}
.cs-news-icon{color:var(--cs-card-accent,#0872f9)!important}
.cs-news-form button,.cs-news-link-action{background:var(--cs-card-accent,#0872f9)!important;color:#fff}
.cs-news-media{display:flex;gap:8px;margin:5px 0 7px;height:45px}
.cs-news-media[hidden],.cs-news-link-action[hidden],#cs-news-editor[hidden],#cs-news-placeholder-row[hidden],#cs-news-image-row[hidden],#cs-news-image2-row[hidden]{display:none!important}
.cs-news-media img{height:45px;max-width:calc(50% - 4px);min-width:0;object-fit:cover;border-radius:7px;border:1px solid #cfe2f6}
.cs-news-link-action{display:inline-flex;padding:8px 14px;border-radius:9px;font-size:11px;font-weight:750;text-decoration:none;justify-content:center}
.cs-template-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.cs-template-choices button{border:1px solid #d3e3f5;border-radius:11px;background:#f9fbff;padding:11px 6px;color:#204e85;text-align:center;cursor:pointer}
.cs-template-choices button.selected{border-color:#0872f9;background:#eaf4ff;box-shadow:inset 0 0 0 1px #0872f9}
.cs-template-choices strong,.cs-template-choices small{display:block}.cs-template-choices strong{font-size:12px}.cs-template-choices small{font-size:10px;margin-top:4px;font-weight:400}
.cs-news-editor{display:flex;flex-direction:column;gap:10px;padding:2px 0 4px;border-top:1px solid #e3eef9}
.cs-news-editor label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:730;color:#3a638c}
.cs-news-editor input,.cs-news-editor select{min-width:0;width:100%;padding:8px;border:1px solid #cddff5;border-radius:8px;background:#fff;color:#173c73;font-size:12px}
.cs-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cs-news-editor input[type=color]{height:39px;padding:3px}
.cs-options-modal{max-height:92dvh;overflow-y:auto;scrollbar-width:none}
.cs-options-modal::-webkit-scrollbar{display:none}

.cs-news-form[hidden],.cs-options-image-row[hidden]{display:none!important}

.cs-news-editor input[type=file]{font-size:11px;padding:6px;background:#f8fbff}
.cs-news-text h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cs-news-text p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* v0.1.36.2 — left list scroll only; preserve the original full panel height. */
@media (min-width:761px){
 .channel-list-panel > .item-list{
  flex:1 1 0!important;
  height:0!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch;
 }
}
