/* Shared outer geometry for the site, control panel and statistics. */
:root{--ka-shell-max:1240px;--ka-shell-gutter:40px;--ka-shell-width:min(var(--ka-shell-max),calc(100% - var(--ka-shell-gutter)*2))}
html body.ka8-site .ka-header-row,.ka-stats .ks-header-inner{box-sizing:border-box;width:var(--ka-shell-width);max-width:var(--ka-shell-max);margin-inline:auto;padding:18px 0!important;min-height:100px;display:flex!important;align-items:center;flex-wrap:nowrap;gap:24px!important}
html body.ka8-site .ka-header-row>.ka-brand,.ka-stats .ks-brand{padding:0!important;flex:0 0 auto;width:132px!important;min-width:0}
html body.ka8-site .ka-brand-logo,.ka-stats .ks-brand img{width:132px!important;height:56px!important;max-width:none!important;object-fit:contain}
html body.ka8-site .ka-navigation,.ka-stats .ks-main-nav{font:600 15px/1.45 Golos,system-ui,sans-serif;gap:18px!important;margin-left:auto;min-width:0}
html body.ka8-site .ka-navigation a{font-size:15px!important;padding:0!important;white-space:nowrap}
html body.ka8-site .ka-header-row>.ka-auth{margin-left:0!important;flex:0 0 auto;width:auto!important}
html body.ka8-site #content-base> :is(section,article,nav,.portlet,.padding-15,.row,.block_full,.ka-admin-layout,.ka-native-page,.ka-forum,.ka-reviews,.ka-monitor-layout,.ka-page-heading,.ka-tariff-note,.ka-contact-grid,.ka-notice-wrap){box-sizing:border-box;width:var(--ka-shell-width)!important;max-width:var(--ka-shell-max)!important;margin-inline:auto!important;min-width:0}
html body.ka8-site #content-base> :is(.ka-breadcrumb,.ka-admin-layout,.ka-native-page,.ka-forum,.ka-reviews,.ka-monitor-layout,.ka-page-heading,.ka-tariff-note,.ka-contact-grid,.ka-catalog){padding-inline:0!important}
html body.ka8-site #content-base>.ka-hero{width:100%!important;max-width:none!important}
html body.ka8-site .ka-hero-inner{width:var(--ka-shell-width);max-width:var(--ka-shell-max);padding-inline:0;margin-inline:auto}
html body.ka8-site #content-base>.ka-auth-page{max-width:480px!important}
html body.ka8-site .ka-footer{padding:42px 0!important}
html body.ka8-site .ka-footer-main,html body.ka8-site .ka-legal{box-sizing:border-box;width:var(--ka-shell-width);max-width:var(--ka-shell-max);margin-inline:auto;padding-inline:0!important}
html body.ka8-site .ka-footer-main{grid-template-columns:1fr auto;gap:16px 32px}
html body.ka8-site .ka-footer-main .ka-brand{padding:0!important}
html body.ka8-site .ka-footer-main p{font-size:14px;line-height:1.6;margin:0}
html body.ka8-site .ka-footer-main nav{gap:24px;font-size:14px;align-self:start}
html body.ka8-site .ka-footer-main nav a{font-size:14px}
html body.ka8-site .ka-legal{margin-top:24px;padding-top:18px}
.ka-stats :is(.ks-workspace,.ks-breadcrumb-wrap,.content){width:var(--ka-shell-width);max-width:var(--ka-shell-max)}
.ka-stats .ks-footer{padding-inline:max(var(--ka-shell-gutter),calc((100% - var(--ka-shell-max))/2))}
@media(max-width:1100px){:root{--ka-shell-gutter:24px}html body.ka8-site .ka-header-row,.ka-stats .ks-header-inner{flex-wrap:wrap;gap:16px!important}html body.ka8-site .ka-header-row>.ka-auth,.ka-stats .ks-tools{margin-left:auto!important}html body.ka8-site .ka-navigation,.ka-stats .ks-main-nav{order:5;width:100%;flex:0 0 100%;display:flex;overflow-x:auto;flex-wrap:nowrap!important;margin:0;padding:4px 0!important}html body.ka8-site .ka-navigation ul{display:flex;flex-wrap:nowrap!important;gap:18px}}
@media(max-width:600px){:root{--ka-shell-gutter:16px}html body.ka8-site .ka-header-row,.ka-stats .ks-header-inner{padding:14px 0!important;min-height:78px;gap:10px!important}html body.ka8-site .ka-header-row>.ka-brand,.ka-stats .ks-brand{width:112px!important}html body.ka8-site .ka-brand-logo,.ka-stats .ks-brand img{width:112px!important;height:45px!important}html body.ka8-site .ka-footer{padding-block:32px!important}html body.ka8-site .ka-footer-main{grid-template-columns:1fr}html body.ka8-site .ka-footer-main nav{gap:16px;grid-column:1;grid-row:auto}html body.ka8-site .ka-legal{flex-wrap:wrap}html body.ka8-site .ka-admin-layout{padding-inline:0!important}}
html body.ka8-site #content-base> :is(.ka-faq,.page-bar,.ka-news,.ka-account-settings){box-sizing:border-box;width:var(--ka-shell-width)!important;max-width:var(--ka-shell-max)!important;margin-inline:auto!important}
html body.ka8-site #content-base>.page-bar{padding-inline:0!important}
@media(min-width:1101px){html body.ka8-site .ka-header-row>.ka-brand{order:0!important}html body.ka8-site .ka-header-row>.ka-navigation{order:1!important;width:auto!important;flex:1 1 auto;border:0!important;padding:0!important}html body.ka8-site .ka-header-row>.ka-auth{order:3!important}html body.ka8-site .ka-header-row>.ka-admin-tools{order:2!important}}
html body.ka8-site #content-base>.ka-news-list{box-sizing:border-box;width:var(--ka-shell-width)!important;max-width:var(--ka-shell-max)!important;margin-inline:auto!important;padding-inline:0!important}
@media(max-width:1100px){html body.ka8-site .ka-header-row,.ka-stats .ks-header-inner{min-height:144px;align-content:center}html body.ka8-site .ka-navigation,.ka-stats .ks-main-nav{min-height:30px}}
/* Header links use identical metrics across both applications. */
html body.ka8-site .ka-header,body.ka-stats .ks-header{border-bottom:1px solid var(--adm-line,var(--ks-line,#dfe2e8));box-sizing:border-box}
html body.ka8-site .ka-header-row>.ka-brand,body.ka-stats .ks-brand{background:transparent!important;border:0!important;border-radius:0!important}
html body.ka8-site .ka-navigation,body.ka-stats .ks-main-nav{display:flex;justify-content:center;align-items:center;flex:1 1 auto;gap:18px!important;margin:0!important;padding:0!important;border:0!important}
html body.ka8-site .ka-navigation>a,body.ka-stats .ks-main-nav>a{font:550 15px/21.75px Golos,system-ui,sans-serif!important;letter-spacing:normal!important;text-transform:none!important;padding:0!important;margin:0!important;text-decoration:none!important;white-space:nowrap}
html body.ka8-site .ka-header .ka-account>summary,body.ka-stats .ks-header .ka-account>summary{box-sizing:border-box;border-width:1px!important;min-height:44px;padding:7px 12px!important;font:600 15px/21px Golos,sans-serif!important;letter-spacing:normal}
html body.ka8-site .ka-header .ka-account-icon,body.ka-stats .ks-header .ka-account-icon{box-sizing:border-box}
body.ka-stats .ks-tools{margin-left:0;flex:0 0 auto}
@media(max-width:1100px){html body.ka8-site .ka-navigation,body.ka-stats .ks-main-nav{flex:0 0 100%;justify-content:flex-start;min-height:30px}body.ka-stats .ks-tools{margin-left:auto}}
html body.ka8-site .ka-header .ka-account>summary,body.ka-stats .ks-header .ka-account>summary{border-style:solid!important;border-color:var(--account-line)!important}
html[data-ka-theme=dark] body.ka8-site .ka-header .ka-brand-logo,html[data-ka-theme=dark] body.ka-stats .ks-header .ks-brand img{filter:brightness(1.8)}
/* One mobile navigation row; the account name must not collapse to a glyph. */
@media(max-width:767px){
 html body.ka8-site .ka-header-row>.ka-menu-toggle{display:none!important}
 html body.ka8-site .ka-header-row>.ka-auth{max-width:none!important}
 html body.ka8-site .ka-header .ka-account>summary{max-width:180px!important;width:auto!important}
 html body.ka8-site .ka-account-name{max-width:100px;min-width:0;flex:0 1 auto}
 html body.ka8-site .ka-navigation,body.ka-stats .ks-main-nav{justify-content:flex-start;scroll-padding-inline:8px;min-height:44px}
 html body.ka8-site .ka-navigation>a,body.ka-stats .ks-main-nav>a{display:inline-flex;align-items:center;min-height:44px}
 html body.ka8-site .ka-header-row,.ka-stats .ks-header-inner{min-height:0;align-content:start}
}
@media(max-width:767px){
 html body.ka8-site .portlet-body :is(.table-scrollable,.ka-table-scroll,.table-responsive){box-sizing:border-box;width:100%;max-width:100%;min-width:0}
 html body.ka8-site .ka-profile-table:has(.ka-table-empty) table{min-width:0;width:100%}
 html body.ka8-site .ka-profile-table:has(.ka-table-empty) th{white-space:normal;overflow-wrap:anywhere}
 html body.ka8-site .portlet-title{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
 html body.ka8-site .portlet-title>.caption{float:none;text-align:start}
}
/* Readable record views on phones, including management and account history. */
@media(max-width:900px){
 :root{--ka-shell-gutter:max(16px,env(safe-area-inset-left),env(safe-area-inset-right))}
 html body.ka8-site #content-base table.ka-mobile-records{display:block;width:100%!important;min-width:0!important;max-width:100%;border:0!important;border-collapse:separate;background:transparent!important}
 html body.ka8-site #content-base .ka-mobile-records>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 html body.ka8-site #content-base .ka-mobile-records>tbody{display:block}
 html body.ka8-site #content-base .ka-mobile-records .ka-mobile-record{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid var(--adm-line);border-radius:14px;margin-bottom:12px;padding:8px;background:var(--adm-surface)!important}
 html body.ka8-site #content-base .ka-mobile-records .ka-mobile-record>td{display:block;width:auto!important;min-width:0!important;max-width:100%!important;padding:8px!important;margin:0!important;border:0!important;background:transparent!important;color:var(--adm-ink);font-size:15px!important;line-height:1.5;white-space:normal!important;overflow-wrap:anywhere;text-align:start!important;box-sizing:border-box}
 html body.ka8-site #content-base .ka-mobile-records .ka-mobile-record>td::before{content:attr(data-column);display:block;color:var(--adm-muted);font-size:12px;font-weight:500;line-height:1.4;margin-bottom:4px}
 html body.ka8-site #content-base .ka-mobile-records .ka-mobile-record>.ka-mobile-value-wide{grid-column:1/-1}
 html body.ka8-site #content-base .ka-mobile-records .ka-mobile-summary,html body.ka8-site #content-base .ka-mobile-records .ka-mobile-summary>td{display:block;width:100%!important;min-width:0!important;box-sizing:border-box;white-space:normal}
 html body.ka8-site #content-base .ka-mobile-records .ka-mobile-summary>td{padding:20px 12px!important}
 html body.ka8-site #content-base .ka-mobile-records :is(.btn,.ka-node-tools .btn){min-height:44px!important;min-width:44px!important;width:auto!important;height:auto!important;display:inline-flex;align-items:center;justify-content:center;white-space:normal;box-sizing:border-box}
 html body.ka8-site #content-base .ka-mobile-records :is(.ka-node-games,.ka-node-disk,.ka-faq-answer){min-width:0!important;max-width:100%!important}
 html body.ka8-site #content-base :is(input[type=text],input[type=search],input[type=email],input[type=password],input[type=number],input[type=url],input[type=tel],select,textarea){font-size:16px!important}
 html body.ka8-site .modal-dialog{max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}
 html body.ka8-site .ka-cookie-dialog{max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto}
}
@media(max-width:900px){
 html body.ka8-site #content-base :is(.ka-table-scroll,.ka-profile-table,.ka-admin-table-scroll,.table-responsive,.table-scrollable,.ka-faq-table-wrap):has(>table.ka-mobile-records){border:0!important;background:transparent!important;border-radius:0;padding:0!important}
 html body.ka8-site #content-base .ka-mobile-records td :is(a,span,strong,small,p){max-width:100%;overflow-wrap:anywhere}
 html body.ka8-site #content-base .ka-mobile-records td .ka-node-tools{flex-wrap:wrap}
}

@media(max-width:1100px){html body.ka8-site .ka-header-row>.ka-menu-toggle{display:none!important}}
