/* Shared refinements, preserving the existing panel palettes. */
.subscription-account-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:20px;align-items:stretch}
.subscription-account-grid .billing-plan{width:auto!important;min-width:0;max-width:none!important;margin:0!important;display:flex;flex-direction:column;height:100%}
.billing-plan .payment-choice{margin-top:auto}.billing-plan .subscription-dates{min-height:100px}.billing-plan .payment-choice label{width:100%}
.subscription-action-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}.subscription-action-row form{margin:0!important}.subscription-action-row .btn{margin:0!important;white-space:nowrap}
.contracted-sites-head,.contracted-site-row{grid-template-columns:minmax(150px,1.1fr) minmax(100px,.65fr) minmax(110px,.7fr) minmax(215px,1.25fr) minmax(215px,1.25fr)!important}
.contracted-site-status .badge{white-space:nowrap;max-width:none;font-size:11px;line-height:1.4}.contracted-site-status{min-width:215px}
.reseller-sidebar{display:flex!important;flex-direction:column;gap:0!important;padding-bottom:84px!important;overflow:visible!important}
.reseller-sidebar>nav{display:flex!important;flex-direction:column;justify-content:flex-start!important;gap:4px!important;flex:1;min-height:0;overflow-y:auto}
.reseller-sidebar>nav a{flex:none!important;min-height:42px;padding:10px 14px;margin:0!important}

.reseller-sidebar .sidebar-user{position:absolute!important;bottom:0;left:0;right:0;margin:0!important}
.submodule-card{position:relative;padding-right:42px!important}.submodule-card .module-fill-indicator{position:absolute;right:16px;top:18px;width:10px;height:10px;border-radius:50%;background:#e34e57}
.module-fill-indicator.complete{background:#20a570!important}.module-fill-indicator.pending{animation:pendingIndicator 1.5s ease-in-out infinite}
@keyframes pendingIndicator{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){.module-fill-indicator.pending{animation:none}}
.topbar-actions{flex-wrap:wrap;gap:8px}.form-grid .full{grid-column:1/-1}.filter-form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px}.filter-form label{margin:0}.filter-form .btn{margin:0}
.audience-bars{display:flex;align-items:flex-end;gap:3px;height:130px;padding-top:10px}.audience-bars>span{flex:1;min-width:3px;background:#496fd8;border-radius:3px 3px 0 0;min-height:2px}
.site-role-hint{margin:8px 0 18px;color:#68738a}.reseller-store .language-picker{margin-left:auto}.reseller-store-form{max-width:820px;margin:24px auto;padding:28px;background:#fff;border:1px solid #dce3f1;border-radius:16px}
.reseller-client-list .row-actions{display:flex;flex-wrap:wrap;gap:8px}.build65-hub-actions{margin-bottom:20px}
.template-radio_live .zone-footer .builder-zone-items{grid-template-columns:minmax(0,1fr) minmax(280px,.85fr)!important;grid-template-areas:"visits contact" "online contact"!important}
.template-radio_live .zone-footer .builder-module-contact{grid-area:contact}.template-radio_live .zone-footer .builder-module-visitor_counter{grid-area:visits}.template-radio_live .zone-footer .builder-module-online_users{grid-area:online}
.radio-site .radio-poll-form label{justify-content:flex-start!important;text-align:left!important}.radio-poll-form label input{width:18px!important;height:18px!important;flex:0 0 18px;margin:0!important}.radio-poll-form label span{flex:1}
.radio-extra-section{padding:72px max(28px,calc((100vw - 1280px)/2))}.radio-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.radio-news-grid article{padding:20px;border:1px solid #dce3f1;border-radius:14px;background:#fff}.radio-news-grid img{width:100%;height:170px;object-fit:cover;border-radius:9px}.radio-ad{padding:24px;background:#fff;border:1px solid #dce3f1;border-radius:14px;display:grid;gap:10px}.radio-ad img{max-width:100%;max-height:300px;object-fit:contain}.radio-newsletter-form{display:flex;gap:12px;flex-wrap:wrap}.radio-newsletter-form input{flex:1;min-width:180px}
.radio-contact .audience{align-items:center}.radio-site .radio-contact{grid-template-columns:minmax(0,1fr) minmax(320px,480px)}
@media(max-width:1200px){.contracted-sites-head{display:none!important}.contracted-site-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}.contracted-site-actions{grid-column:1/-1}.contracted-site-status{min-width:0}}
@media(max-width:800px){.subscription-account-grid{grid-template-columns:1fr;grid-auto-rows:auto}.contracted-site-row{grid-template-columns:1fr!important}.contracted-site-actions{grid-column:auto}.template-radio_live .zone-footer .builder-zone-items{grid-template-columns:1fr!important;grid-template-areas:"visits" "online" "contact"!important}.radio-news-grid{grid-template-columns:1fr}.radio-site .radio-contact{grid-template-columns:1fr}.reseller-store-form{padding:18px;margin:18px}.topbar{gap:12px}.module-parent-back{width:auto}}

.template-radio_live .zone-footer .builder-zone-items{grid-template-areas:"public contact" "visits contact" "online contact"!important}.radio-builder-public{grid-area:public;padding:18px;background:#fff;border-radius:12px}.real-site-preview summary{cursor:pointer;font-weight:700}.real-site-preview iframe{border:0;width:100%;height:650px;margin-top:16px}.radio-site .news-pagination{display:flex;gap:6px;margin-top:20px}
@media(max-width:800px){.template-radio_live .zone-footer .builder-zone-items{grid-template-areas:"public" "visits" "online" "contact"!important}}

.submodule-card[hidden]{display:none!important}

.subscription-action-row .cancel-subscription{padding:0!important;border:0!important}.subscription-action-row .btn{height:44px!important;min-height:44px!important}
.template-radio_live .zone-footer .builder-module,.template-radio_live .radio-builder-public{color:#17203b!important}.template-radio_live .zone-footer .builder-module-heading strong,.template-radio_live .zone-footer .builder-module-preview{color:#17203b!important}
.template-radio_live .zone-footer .mock-contact{grid-template-columns:1fr!important;gap:8px}.template-radio_live .zone-footer .mock-contact b{grid-column:1/-1}.template-radio_live .mock-stat span{color:#68738a!important}


.client-sidebar{padding-bottom:84px!important;overflow:visible!important}.client-sidebar>nav{flex:1;min-height:0;overflow-y:auto}.client-sidebar .sidebar-user{position:absolute!important;bottom:0;left:0;right:0;margin:0!important}
@media(max-width:720px){
 .client-sidebar,.reseller-sidebar{height:auto!important;max-height:none!important;padding-bottom:18px!important}
 .client-sidebar .sidebar-user,.reseller-sidebar .sidebar-user{position:static!important;display:flex!important;width:auto!important;margin-top:12px!important;padding:12px 0!important;background:transparent!important;box-shadow:none!important}
 .client-sidebar>nav,.reseller-sidebar>nav{overflow:visible!important;flex:none!important}
 .topbar{flex-wrap:wrap}.topbar-actions{width:100%;display:flex!important}.topbar .topbar-actions .btn{display:inline-flex!important;font-size:12px;padding:9px 12px}
}
.template-card>input,.palette-card>input{width:1px!important;height:1px!important}
.submodule-card:has(.module-fill-indicator)>em{right:34px}

/* Build 66: preserve the in-card return pattern and administration language picker. */
.real-site-preview{margin-bottom:18px!important}
.news-module-summary .metric>div{min-width:0;flex:1}
.client-theme .news-module-summary .metric em{max-width:100%;white-space:nowrap;word-break:normal;overflow-wrap:normal}
.client-sidebar,.reseller-sidebar{display:flex;flex-direction:column}
.client-sidebar>nav{display:flex;flex:1 1 auto!important;flex-direction:column;justify-content:flex-start;gap:3px}
.client-sidebar>nav a{flex:none}
.client-sidebar>.language-picker,.reseller-sidebar>.language-picker{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;align-self:stretch!important;z-index:700!important;width:auto!important;min-width:0!important;margin:10px 12px 12px!important;flex:0 0 auto}
.client-sidebar .language-picker summary,.reseller-sidebar .language-picker summary{width:100%!important;height:40px!important;padding:0 11px!important;display:flex!important;justify-content:flex-start!important;gap:9px!important;color:#fff!important;background:#ffffff12!important;border-color:#ffffff30!important}
.client-sidebar .language-picker summary span,.reseller-sidebar .language-picker summary span{display:inline!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:800}
.client-sidebar .language-picker img,.reseller-sidebar .language-picker img{width:24px!important;height:16px!important;max-width:24px!important;margin:0!important;object-fit:cover!important}
.client-sidebar .language-picker[open] .language-menu,.reseller-sidebar .language-picker[open] .language-menu{position:fixed!important;left:14px!important;right:auto!important;top:auto!important;bottom:76px!important;width:205px!important;min-width:205px!important;max-height:calc(100vh - 100px);overflow-y:auto!important;z-index:2000!important}
.client-sidebar .language-menu button,.reseller-sidebar .language-menu button{min-height:40px!important}
.panel-title>.module-parent-back,.panel-title>.row-actions>.module-parent-back{font-size:12px;font-weight:800;color:var(--blue);white-space:nowrap}
@media(max-width:820px){.client-sidebar .language-picker[open] .language-menu,.reseller-sidebar .language-picker[open] .language-menu{left:14px!important;right:14px!important;bottom:14px!important;width:auto!important;min-width:0!important}}
@media(max-width:720px){.client-sidebar>nav{display:grid;grid-template-columns:1fr 1fr}.panel-title{flex-wrap:wrap;gap:12px}.news-module-summary .metric em{font-size:11px}}

.module-card-navigation{justify-content:flex-end}
