/* CP23091 – refresh the REAL production pages, not the simplified offline ZIP previews.
   Presentation only: all original controllers, IDs, scores, source links, auth gates remain. */
:root{--zk91-green:#176b4a;--zk91-text:#173328;--zk91-muted:#577161;--zk91-border:#d9e5dc;--zk91-bg:#f5f8f5;--zk91-white:#fff}
html body{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
html body nav#zk23088-bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:900px){
 html body nav#zk23088-bottom-nav{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:9999!important;display:grid!important;width:100%!important;max-width:100vw!important;padding-bottom:max(8px,env(safe-area-inset-bottom,0px))!important}
 html body nav#zk23088-bottom-nav>a{min-width:0!important;white-space:normal!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:3px!important;text-decoration:none!important}
 html body nav#zk23088-bottom-nav>a strong{font-size:10px!important;letter-spacing:.01em!important}
 html body nav#zk23088-bottom-nav>a[aria-current=page]{color:#176b4a!important}
 html body .site-header #zk2257-toolbar .zk2257-actions{gap:6px!important}
 html body .site-header #zk2257-toolbar .zk2257-actions .zk2257-help{display:none!important}
}
@media(min-width:901px){html body nav#zk23088-bottom-nav{display:none!important}}

/* Ranking: one compact landing, original sort & scoring engines stay live. */
html body .ranking-page-v4{background:var(--zk91-bg)!important;padding:18px 0 54px!important}
html body .ranking-page-v4 .content-shell{max-width:1180px!important}
html body .ranking-page-v4 .zk2257-page-head{margin:2px 0 17px!important}
html body .ranking-page-v4 .zk2257-page-head h1{font:800 clamp(29px,4vw,43px)/1.1 Inter,system-ui,sans-serif!important;letter-spacing:-.045em!important;color:var(--zk91-text)!important;text-transform:none!important}
html body .ranking-page-v4 .ranking-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin-bottom:12px!important}
html body .ranking-page-v4 .ranking-tabs button{border-radius:12px!important;border:1px solid var(--zk91-border)!important;background:var(--zk91-white)!important;color:#315a42!important;min-height:44px!important;font:750 12px/1.3 Inter,system-ui,sans-serif!important;box-shadow:none!important;padding:9px!important}
html body .ranking-page-v4 .ranking-tabs button.active,
html body .ranking-page-v4 .ranking-tabs button[aria-selected=true]{background:var(--zk91-green)!important;border-color:var(--zk91-green)!important;color:#fff!important}
html body .ranking-page-v4 .zk2257-toolbar{box-shadow:none!important;border:1px solid var(--zk91-border)!important;border-radius:13px!important;background:#fff!important;padding:11px!important;margin-bottom:12px!important}
html body .ranking-page-v4 .zk2257-toolbar :is(input,select){height:42px!important;border:1px solid #d5e2d8!important;border-radius:9px!important;background:#f9fbfa!important;color:var(--zk91-text)!important;font-size:12px!important}
html body .ranking-page-v4 :is(.ranking-table-card,.community-table-card,.ultra-ranking-table-v131,.away-list-v165){border-radius:13px!important;border:1px solid var(--zk91-border)!important;box-shadow:none!important;background:#fff!important}
html body .ranking-page-v4 .ranking-legend,html body .ranking-page-v4 .podium-grid{display:none!important}
@media(max-width:760px){
 html body .ranking-page-v4 .ranking-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body .ranking-page-v4 .ranking-tabs button{min-height:46px!important;padding:8px 4px!important}
 html body .ranking-page-v4 .zk2257-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
 html body .ranking-page-v4 .zk2257-toolbar #zk2257-search{grid-column:1/-1!important}
 html body .ranking-page-v4 .zk2257-toolbar #zk2257-rating{grid-column:1/-1!important}
 html body .ranking-page-v4 .zk2257-page-head{padding:0 2px!important}
}

/* Kette: the public hub AND actual dashboard get the same clean surface.
   Tabs, status labels, Free/Pro, chat, scout and admin MatchLab are not removed. */
html body #zk218-kette-main{background:var(--zk91-bg)!important;color:var(--zk91-text)!important}
html body #zk218-kette-main :is(.k24-landing,.zk218-workspace){max-width:1110px!important;margin-left:auto!important;margin-right:auto!important}
html body #zk218-kette-main .k24-landing{padding:14px 14px 40px!important}
html body #zk218-kette-main .k24-hero{background:#132f23!important;color:#f7fff9!important;border-radius:17px!important;box-shadow:none!important;padding:clamp(20px,3vw,32px)!important;margin:0 0 20px!important;min-height:0!important}
html body #zk218-kette-main .k24-hero h1{font:800 clamp(29px,5vw,49px)/1.06 Inter,system-ui,sans-serif!important;letter-spacing:-.05em!important;color:#fff!important;max-width:660px!important}
html body #zk218-kette-main .k24-hero h1 em{color:#8cd2a7!important}
html body #zk218-kette-main .k24-hero p{color:#dfede3!important;max-width:650px!important;font-size:13px!important;line-height:1.6!important}
html body #zk218-kette-main .k24-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-top:17px!important}
html body #zk218-kette-main .k24-tools{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:11px!important;margin:12px 0 22px!important}
html body #zk218-kette-main .k24-tool{display:flex!important;flex-direction:column!important;align-items:flex-start!important;background:#fff!important;border:1px solid var(--zk91-border)!important;border-radius:13px!important;box-shadow:none!important;padding:15px!important;min-width:0!important;gap:7px!important}
html body #zk218-kette-main .k24-tool :is(h3,p){color:var(--zk91-text)!important;margin:0!important}
html body #zk218-kette-main .k24-tool h3{font-size:16px!important;letter-spacing:-.025em!important}
html body #zk218-kette-main .k24-tool p{font-size:12px!important;line-height:1.6!important;color:var(--zk91-muted)!important}
html body #zk218-kette-main .k24-tool :is(button,a){margin-top:auto!important;max-width:100%!important;white-space:normal!important;border-radius:9px!important}
html body #zk218-kette-main .k24-pricing-section{margin-top:22px!important}
html body #zk218-kette-main :is(.k24-plan,.zk2183-plan,.zk218-tabbar,.zk2182-combined-offer){border-radius:13px!important;box-shadow:none!important}
html body #zk218-kette-main .zk218-workspace{padding:18px 13px 52px!important}
html body #zk218-kette-main .zk218-tabbar{gap:8px!important}
html body #zk218-kette-main .zk218-tab{border-radius:10px!important;min-height:43px!important}
@media(max-width:960px){html body #zk218-kette-main .k24-tools{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){
 html body #zk218-kette-main .k24-landing{padding:9px 10px 36px!important}
 html body #zk218-kette-main .k24-hero{padding:22px 17px!important}
 html body #zk218-kette-main .k24-hero h1{font-size:31px!important}
 html body #zk218-kette-main .k24-tools{gap:8px!important}
 html body #zk218-kette-main .k24-tool{padding:12px!important}
 html body #zk218-kette-main .k24-tool h3{font-size:14px!important}
 html body #zk218-kette-main .k24-tool p{font-size:11px!important}
 html body #zk218-kette-main .k24-tags{gap:5px!important;flex-wrap:wrap!important}
 html body #zk218-kette-main .zk218-tabbar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body #zk218-kette-main .zk218-tab{min-width:0!important;white-space:normal!important}
}
/* Do not force pale cards and dark text over the selected night palette. */
html[data-zk-theme="dark"] body{--zk91-bg:#101914;--zk91-white:#1b2820;--zk91-border:#344a3b;--zk91-text:#ecf4ed;--zk91-muted:#c0d1c3}
html[data-zk-theme="dark"] body .ranking-page-v4 .zk2257-toolbar,
html[data-zk-theme="dark"] body #zk218-kette-main .k24-tool,
html[data-zk-theme="dark"] body .ranking-page-v4 :is(.ranking-table-card,.community-table-card,.ultra-ranking-table-v131,.away-list-v165){background:var(--zk91-white)!important;color:var(--zk91-text)!important;border-color:var(--zk91-border)!important}
html[data-zk-theme="dark"] body #zk218-kette-main .k24-tool :is(h3,p){color:var(--zk91-text)!important}
html[data-zk-theme="dark"] body .ranking-page-v4 .ranking-tabs button{background:#1b2820!important;color:#edf5ef!important;border-color:#345442!important}
html[data-zk-theme="dark"] body .ranking-page-v4 .ranking-tabs button.active{background:#176b4a!important;color:#fff!important}
html[data-zk-theme="dark"] body .ranking-page-v4 .zk2257-toolbar :is(input,select){background:#152219!important;color:#edf5ef!important;border-color:#3d5946!important}

/* CP23093: show CP225.13 approved in-page Kette controls, with no
   duplicate GLOBAL navigation and proper dark-mode contrast. */
html body.zk22510-kette #zk10-kette-bar{display:flex!important;gap:10px!important;max-width:1110px!important;margin:12px auto!important;background:#fff!important;border:1px solid #d9e5dc!important;border-radius:13px!important;box-shadow:none!important;padding:10px 14px!important}
html body.zk22510-kette #zk10-kette-bar>strong{font-size:12px!important;color:#1c4f31!important}
html body.zk22510-kette #zk10-kette-bar .zk10-kette-bar-links{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
html body.zk22510-kette #zk10-kette-bar :is(button,a){font-size:12px!important;min-height:38px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}
html[data-zk-theme="dark"] body.zk22510-kette #zk10-kette-bar{background:#1b2820!important;border-color:#365140!important;color:#edf5ef!important}
html[data-zk-theme="dark"] body.zk22510-kette #zk10-kette-bar>strong{color:#edf5ef!important}
html[data-zk-theme="dark"] body.zk22510-kette #zk10-kette-bar :is(button,a){color:#edf5ef!important;background:#274332!important;border-color:#45654f!important}
html[data-zk-theme="dark"] body.zk22510-kette #zk10-kette-bar button:first-child{background:#176b4a!important;color:#fff!important}
@media(max-width:680px){
 html body.zk22510-kette #zk10-kette-bar{margin:10px!important;padding:11px!important;display:block!important}
 html body.zk22510-kette #zk10-kette-bar .zk10-kette-bar-links{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:8px}
 html body.zk22510-kette #zk10-kette-bar :is(button,a){min-width:0!important;width:100%!important;white-space:normal!important;line-height:1.25!important}
}


/* CP23095 offline design parity: actual Kette screen, not a demo.
   Solid Zweierkette green + pure white text; accessible question-card
   opens the existing authenticated Kette chat (data-zk224-tool=chat). */
html body #zk218-kette-main .k24-hero,
html[data-zk-theme="dark"] body #zk218-kette-main .k24-hero{
 background:#176b4a!important;background-image:none!important;
 color:#fff!important;border-color:#176b4a!important;
 padding:22px 20px!important;
}
html body #zk218-kette-main .k24-hero :is(h1,h1 em,p,.k24-topline),
html[data-zk-theme="dark"] body #zk218-kette-main .k24-hero :is(h1,h1 em,p,.k24-topline){
 color:#fff!important;-webkit-text-fill-color:#fff!important;
}
html body #zk218-kette-main .k24-hero h1{
 font-size:clamp(30px,6vw,51px)!important;line-height:1.1!important;
 letter-spacing:-.045em!important;
}
html body #zk218-kette-main .k24-prompt{
 display:flex!important;flex-direction:column!important;gap:4px!important;
 width:100%!important;min-height:104px!important;align-items:flex-start!important;
 padding:16px!important;margin-top:15px!important;border-radius:10px!important;
 background:#fff!important;color:#164c32!important;border:1px solid #fff!important;
 text-align:left!important;cursor:pointer!important;box-shadow:none!important;text-decoration:none!important;
}
html body #zk218-kette-main .k24-prompt :is(span,strong,small),
html[data-zk-theme="dark"] body #zk218-kette-main .k24-prompt :is(span,strong,small){
 color:#164c32!important;-webkit-text-fill-color:#164c32!important;
}
html body #zk218-kette-main .k24-prompt span{
 font:800 10px/1.3 Inter,system-ui,sans-serif!important;letter-spacing:.035em!important;
}
html body #zk218-kette-main .k24-prompt strong{
 font:800 15px/1.35 Inter,system-ui,sans-serif!important;
}
html body #zk218-kette-main .k24-prompt small{
 font:500 11px/1.4 Inter,system-ui,sans-serif!important;
}
html body #zk218-kette-main .k24-prompt:focus-visible{
 outline:3px solid #fff!important;outline-offset:4px!important;
}
html body #zk218-kette-main .k24-hero .k24-actions{
 margin-top:12px!important;gap:9px!important;
}
html body #zk218-kette-main .k24-hero .k24-actions :is(a,button){
 background:#fff!important;color:#164c32!important;
 -webkit-text-fill-color:#164c32!important;border:1px solid #fff!important;
}
html body #zk218-kette-main .k24-hero .k24-tags :is(span,small){
 color:#fff!important;-webkit-text-fill-color:#fff!important;
}
html[data-zk-theme="dark"] body #zk218-kette-main .k24-hero .k24-actions :is(a,button){
 background:#fff!important;color:#164c32!important;
 -webkit-text-fill-color:#164c32!important;border-color:#fff!important;
}
@media(max-width:700px){
 html body #zk218-kette-main .k24-hero{padding:18px 17px!important}
 html body #zk218-kette-main .k24-hero .k24-actions :is(a,button){
  min-height:40px!important;font-size:11px!important;
 }
 html body #zk218-kette-main .k24-prompt{padding:14px!important}
}


/* CP23095: Hero's legacy CTAs/statuses are still available, but do not
   obscure the approved question card or duplicate the four Kette modules. */
html body #zk218-kette-main .k24-hero-more{margin:13px 0 0!important;padding:0!important;border:0!important;background:transparent!important;color:#fff!important}
html body #zk218-kette-main .k24-hero-more>summary{
 display:list-item!important;cursor:pointer!important;
 font:650 11px/1.5 Inter,system-ui,sans-serif!important;
 color:#fff!important;-webkit-text-fill-color:#fff!important;
 padding:9px 0!important;
}
html body #zk218-kette-main .k24-hero-more[open]>summary{border-bottom:1px solid #ffffff77!important}
html body #zk218-kette-main .k24-hero-more .k24-actions{margin-top:12px!important}
html body #zk218-kette-main .k24-hero-more .k24-tags{margin:12px 0!important}
html body #zk218-kette-main .k24-hero-more .k24-tags>*{color:#fff!important;-webkit-text-fill-color:#fff!important}


/* CP23095: the six secondary Kette links are a single native disclosure
   AFTER the 4 offline-approved feature cards, never a second top toolbar. */
html body #zk218-kette-main details.zk10-kette-shortcuts{
 border:1px solid #cfdfd2!important;background:#fff!important;
 margin:10px auto 20px!important;max-width:1110px!important;
 border-radius:12px!important;color:#164b31!important;padding:0!important;
}
html body #zk218-kette-main details.zk10-kette-shortcuts>summary{
 padding:14px 16px!important;cursor:pointer!important;
 font:800 12px Inter,system-ui,sans-serif!important;
 color:#164b31!important;-webkit-text-fill-color:#164b31!important;
}
html body #zk218-kette-main details.zk10-kette-shortcuts:not([open]) #zk10-kette-bar{
 display:none!important;
}
html body #zk218-kette-main details.zk10-kette-shortcuts[open] #zk10-kette-bar{
 display:flex!important;margin:0!important;padding:12px!important;
 border:0!important;border-top:1px solid #cfdfd2!important;
 border-radius:0 0 12px 12px!important;
}
html[data-zk-theme="dark"] body #zk218-kette-main details.zk10-kette-shortcuts{
 background:#1a3022!important;color:#fff!important;border-color:#476850!important;
}
html[data-zk-theme="dark"] body #zk218-kette-main details.zk10-kette-shortcuts>summary{
 color:#fff!important;-webkit-text-fill-color:#fff!important;
}
html[data-zk-theme="dark"] body #zk218-kette-main details.zk10-kette-shortcuts[open] #zk10-kette-bar{
 background:#1a3022!important;border-color:#476850!important;
}
@media(max-width:700px){
 html body #zk218-kette-main details.zk10-kette-shortcuts{margin:10px 11px 19px!important}
}
