/* ZK24950 · layout repair. One responsive profile and shared editorial styling. */
html{overflow-x:clip}
body.zk250-account.zk80-app{min-width:0}
/* The global sidebar owns 220px on desktop; content is centered inside the remaining space. */
@media(min-width:901px){
 html body.zk250-account.zk80-app>main{position:relative!important;box-sizing:border-box!important;margin:0 0 0 220px!important;width:calc(100% - 220px)!important;max-width:none!important;min-width:0!important;padding:17px clamp(18px,3vw,44px) 85px!important;transform:none!important;left:auto!important;right:auto!important}
 html body.zk250-account.zk80-app main>.zk29-native-app{width:100%!important;max-width:1180px!important;margin-inline:auto!important;padding:0!important}
 html body.zk250-account.zk80-app main .content-shell.account-shell{max-width:1180px!important;width:100%!important;margin-inline:auto!important;padding:0!important;box-sizing:border-box!important}
}
@media(max-width:900px){
 html body.zk250-account.zk80-app>main{box-sizing:border-box!important;margin:0!important;width:100%!important;max-width:100%!important;padding:10px 12px 105px!important;transform:none!important;left:auto!important}
 html body.zk250-account.zk80-app main>.zk29-native-app,html body.zk250-account.zk80-app main .content-shell.account-shell{width:100%!important;max-width:100%!important;margin:0 auto!important;padding:0!important;min-width:0!important}
}
body.zk250-account .zk29-native-app>.section.light{padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important;max-width:none!important}
body.zk250-account .profile-dashboard{display:block;max-width:100%;min-width:0}
body.zk250-account #auth-logged-in[hidden],body.zk250-account #auth-logged-out[hidden]{display:none!important}
body.zk250-account .profile-dashboard-head{display:flex!important;flex-wrap:wrap;align-items:center;gap:14px;max-width:100%!important;background:#fff!important;color:#172c21!important;border:1px solid #d9e6dd!important;border-radius:16px!important;padding:18px!important;margin:0 0 11px!important;box-shadow:none!important}
body.zk250-account .profile-dashboard-head>div:nth-child(2){flex:1 1 205px;min-width:0!important}
body.zk250-account .profile-dashboard-head h2{font:800 clamp(20px,2.8vw,28px)/1.18 Inter,system-ui,sans-serif!important;letter-spacing:-.035em;margin:4px 0!important;color:#132c1c!important}
body.zk250-account .profile-dashboard-head p{margin:0!important;font-size:12px!important}
body.zk250-account .profile-dashboard-head .account-head-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-left:auto}
body.zk250-account .profile-dashboard-head .account-head-actions a,body.zk250-account .profile-dashboard-head .account-head-actions button{min-height:33px;border-radius:8px;font-size:11px!important}
body.zk250-account .profile-dashboard-grid.four{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important;padding:0!important;width:100%!important;margin:0 0 10px!important}
body.zk250-account .profile-dashboard-grid.four .profile-stat{min-width:0!important;border:1px solid #dce8e0!important;background:#fff!important;border-radius:12px!important;padding:12px 8px!important;box-shadow:none!important}
body.zk250-account .profile-dashboard-grid.four .profile-stat strong{font-size:clamp(17px,2.8vw,25px)!important}
body.zk250-account .profile-dashboard-grid.four .profile-stat span{font-size:10px!important}
body.zk250-account .profile-dashboard-grid .zk24940-profile-access{grid-column:1/-1;display:flex;gap:8px;padding:0;flex-wrap:wrap}
body.zk250-account #profile-main-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;overflow:visible!important;width:100%!important;margin:12px 0!important;padding:0!important;border:0!important}
body.zk250-account #profile-main-tabs button{box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:none!important;white-space:normal!important;min-height:43px!important;margin:0!important;padding:8px 5px!important;border:1px solid #d8e4db!important;border-radius:10px!important;background:#fff!important;font:750 11px/1.3 Inter,system-ui,sans-serif!important;color:#234730!important;letter-spacing:0!important;box-shadow:none!important}
body.zk250-account #profile-main-tabs button.active{background:#176b4a!important;color:#fff!important;border-color:#176b4a!important}
body.zk250-account .profile-tab-panel{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}
body.zk250-account .profile-tab-panel .profile-tab-panel-head{display:flex;align-items:center;gap:9px;justify-content:space-between;flex-wrap:wrap;margin:10px 0!important}
body.zk250-account .profile-tab-panel .profile-tab-panel-head h3{font-size:17px!important;line-height:1.2!important;margin:2px 0!important}
body.zk250-account .groundhopper-identity-v84{border-radius:12px!important;padding:12px 15px!important;margin:8px 0!important}
body.zk250-account .groundhopper-lists-v84,body.zk250-account .football-home-v83{min-width:0!important;max-width:100%!important}
body.zk250-account .profile-tab-panel :is(input,select,textarea){max-width:100%;box-sizing:border-box}
body.zk250-account .history-ranking-table-wrap-v86{max-width:100%!important;overflow-x:auto!important}
body.zk250-account :is(.profile-section,.profile-widget,.profile-card,.groundhopper-list-card-v84){box-shadow:none!important;max-width:100%;min-width:0}
body.zk250-account .zk2205-profile-session{display:none!important}
body.zk250-account .zk204-quick{display:flex;flex-wrap:wrap;gap:7px;margin:5px 0 11px}
body.zk250-account .zk204-quick button{min-width:0;width:auto!important;min-height:33px;padding:7px 12px;font-size:11px}
body.zk250-account .zk203-profile-actions{gap:6px;margin:7px 0!important}
body.zk250-account .zk203-profile-actions a{padding:8px 10px!important;font-size:11px!important;min-height:32px!important}
@media(max-width:650px){
 body.zk250-account .profile-dashboard-head{padding:12px!important;gap:9px}
 body.zk250-account .profile-dashboard-head .account-head-actions{width:100%;justify-content:flex-start}
 body.zk250-account .profile-dashboard-grid.four{gap:5px!important}
 body.zk250-account .profile-dashboard-grid.four .profile-stat{padding:9px 3px!important}
 body.zk250-account .profile-dashboard-grid.four .profile-stat span{font-size:9px!important}
 body.zk250-account #profile-main-tabs{gap:5px!important}
 body.zk250-account #profile-main-tabs button{padding:7px 2px!important;font-size:10px!important;min-height:40px!important}
 body.zk250-account .profile-dashboard-grid .zk24940-profile-access>a{flex:1 1 130px;text-align:center;justify-content:center}
}
/* Tips: same light cards/geometry as the rest of the app; preserve existing inputs and export buttons. */
html body.zk80-app:has(main#zk78-tip-page)>main#zk78-tip-page{box-sizing:border-box!important;min-width:0!important;width:min(100%,1120px)!important;max-width:1120px!important;margin:0 auto!important;padding:20px 18px 105px!important;position:relative!important;transform:none!important}
html body.zk80-app:has(main#zk78-tip-page){background:#f4f7f5!important}
body.zk80-app .zk378-tips h1{font-size:clamp(23px,3vw,32px)!important;margin:6px 0 11px!important}
body.zk80-app .zk378-tip-card{background:#fff!important;border:1px solid #d8e5da!important;border-radius:13px!important;padding:clamp(12px,2vw,20px)!important;box-shadow:none!important;color:#1c3428!important}
body.zk80-app .zk378-tip-fields{gap:9px!important}
body.zk80-app .zk378-tip-fields label{min-width:0;font-size:12px!important}
body.zk80-app .zk378-tip-fields select,body.zk80-app .zk378-tip-toolbar select{background:#fff!important;color:#183d29!important;border:1px solid #d2e0d6!important;font-size:14px!important;min-height:42px!important}
body.zk80-app .zk378-tip-actions button{border-radius:9px!important;min-height:40px!important;box-shadow:none!important}
body.zk80-app .zk378-tip-lead{line-height:1.45!important}
body.zk80-app .zk378-tip-footer{max-width:680px}
@media(min-width:901px){html body.zk80-app:has(main#zk78-tip-page)>main#zk78-tip-page{margin-left:calc(220px + (100% - 220px - min(1100px, 100% - 252px))/2)!important;margin-right:0!important;width:calc(100% - 250px)!important}}
@media(max-width:620px){html body.zk80-app:has(main#zk78-tip-page)>main#zk78-tip-page{padding:11px 12px 100px!important}.zk378-tip-fields{grid-template-columns:1fr!important}.zk378-tip-actions{gap:6px!important}}
/* neutral dark mode without green patches */
html[data-zk-theme=dark] body.zk250-account .profile-dashboard-head,html[data-zk-theme=dark] body.zk250-account .profile-stat,html[data-zk-theme=dark] body.zk250-account #profile-main-tabs button,html[data-zk-theme=dark] body.zk80-app .zk378-tip-card{background:#171717!important;color:#eee!important;border-color:#444!important}
html[data-zk-theme=dark] body.zk250-account #profile-main-tabs button.active{background:#f3f3f3!important;color:#111!important}

/* Tips page inherited legacy high-specificity dark styles from the old standalone tool.
   The page should use the shared LIGHT shell unless the user explicitly switches to dark. */
html:not([data-zk-theme="dark"]) body.zk80-app:has(main#zk78-tip-page),
html:not([data-zk-theme="dark"]) body.zk80-app:has(main#zk78-tip-page) main#zk78-tip-page{
 background:#f4f7f5!important;color:#172d20!important;
}
html:not([data-zk-theme="dark"]) body.zk80-app main#zk78-tip-page :is(h1,h2,h3,strong,p,small,label,legend){color:#173c2a!important}
html:not([data-zk-theme="dark"]) body.zk80-app main#zk78-tip-page section.zk378-tip-card,
html:not([data-zk-theme="dark"]) body.zk80-app main#zk78-tip-page .zk378-tip-card{
 background:#fff!important;color:#173c2a!important;border:1px solid #d7e4da!important;border-radius:14px!important;box-shadow:none!important;
}
html:not([data-zk-theme="dark"]) body.zk80-app main#zk78-tip-page :is(.zk378-tip-lead,.zk378-tip-footer,#zk78-tip-feedback){color:#536c5c!important}
html:not([data-zk-theme="dark"]) body.zk80-app main#zk78-tip-page :is(input,select){color:#173c2a!important;background:#fff!important;border-color:#cfddd2!important}
html:not([data-zk-theme="dark"]) body.zk80-app main#zk78-tip-page button{box-shadow:none!important}
html:not([data-zk-theme="dark"]) body.zk80-app main#zk78-tip-page .zk378-tip-actions button.primary{background:#176b4a!important;color:#fff!important}
html:not([data-zk-theme="dark"]) body.zk80-app main#zk78-tip-page .zk378-tip-actions button:not(.primary){background:#f3f8f4!important;color:#176b4a!important}
/* The account document's old visually-hidden heading can leak back into view if old CSS fails. */
html body.zk250-account.zk80-app h1.sr-only-v119{
 position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;
 border:0!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;overflow:hidden!important;white-space:nowrap!important;
}

/* Hide repeated old profile slogans while preserving their real underlying sections. */
body.zk250-account #profile-tab-football .profile-tab-panel-head span,body.zk250-account #profile-tab-football .groundhopper-identity-v84>div>span{display:none!important}
body.zk250-account #profile-tab-football .groundhopper-identity-v84 h4{font-size:15px!important;margin:0 0 3px!important}
body.zk250-account #profile-tab-football .groundhopper-identity-v84 p{font-size:12px!important;margin:0!important;line-height:1.4!important}
body.zk250-account .zk186-entry-links{display:none!important} /* exact duplicate of the always-visible profile actions */
