/* Kiyo 13.1.1 — Classic HUD compatibility
   Restores the pre-13 main shell while keeping Platform/Ultimate modules available. */
:root{
  --kiyo-accent:#5865f2;
  --kiyo-accent-2:#4752c4;
  --kiyo-accent-rgb:88,101,242;
  --kiyo-bg:#1e1f22;
  --kiyo-bg-2:#2b2d31;
  --kiyo-panel:#313338;
  --kiyo-panel-2:#2b2d31;
  --kiyo-stroke:rgba(255,255,255,.08);
  --kiyo-stroke-strong:rgba(255,255,255,.14);
  --kiyo-text:#f2f3f5;
  --kiyo-muted:#b5bac1;
  --kiyo-radius:8px;
  --color-dc-tertiary:#1e1f22!important;
  --color-dc-secondary:#2b2d31!important;
  --color-dc-primary:#313338!important;
  --color-dc-dock:#232428!important;
  --color-dc-floating:#111214!important;
  --color-dc-input:#1e1f22!important;
  --color-dc-mod:#2b2d31!important;
  --color-dc-hover:#35373c!important;
  --color-dc-brand:#5865f2!important;
  --color-dc-brand-hover:#4752c4!important;
  --color-dc-link:#00a8fc!important;
  --color-dc-text:#f2f3f5!important;
  --color-dc-text-muted:#b5bac1!important;
  --color-dc-text-faint:#949ba4!important;
}
html,body{background:#1e1f22!important;color:#f2f3f5!important;letter-spacing:normal!important}
.bg-dc-tertiary{background-color:#1e1f22!important}
.bg-dc-secondary{background-color:#2b2d31!important}
.bg-dc-primary{background-color:#313338!important}
.bg-dc-dock{background-color:#232428!important}
.bg-dc-floating{background-color:#111214!important}
.bg-dc-mod{background-color:#2b2d31!important}
.rounded,.rounded-md{border-radius:4px!important}
.rounded-lg{border-radius:6px!important}
.rounded-xl{border-radius:8px!important}
.rounded-2xl{border-radius:12px!important}
.kc-app{background:#1e1f22!important}
.kc-app.has-wallpaper{background-image:linear-gradient(rgba(30,31,34,var(--wall-ui-opacity,.34)),rgba(30,31,34,var(--wall-ui-opacity,.34))),var(--kenji-wallpaper)!important;background-size:cover!important;background-position:center!important}
.kc-app button,.kc-app input,.kc-app textarea,.kc-app select{border-radius:4px}
.kc-app header,.kc-app footer,.kc-app nav,.kc-app aside,.kc-app section{border-color:rgba(0,0,0,.22)!important}
.kc-app input,.kc-app textarea,.kc-app select{background:#1e1f22!important;color:#f2f3f5!important}
.kc-app [class*="bg-white/5"]{background:rgba(255,255,255,.035)!important}
.kc-app [class*="bg-white/10"]{background:rgba(255,255,255,.07)!important}
.kc-app [class*="text-dc-brand"]{color:#c9cdfb!important}
.kc-app button[class*="bg-dc-brand"]{background:#5865f2!important}
.kc-app button[class*="bg-dc-brand"]:hover{background:#4752c4!important}
/* Keep the modern extras, but visually subordinate to the classic chat HUD. */
#kiyo-launcher{border-radius:12px;background:rgba(35,36,40,.96);border-color:rgba(255,255,255,.12);box-shadow:0 8px 26px rgba(0,0,0,.34)}
#kiyo-launcher img{border-radius:8px}
/* Safety: the 13.x communication-first shell must never cover the classic client. */
#kiyo-next-root,#kn-return-menu{display:none!important}
body.kn-home,body.kn-legacy-shell,body.kn-legacy-direct{overflow:hidden!important}
@media (max-width:760px){
  #kiyo-launcher{right:10px;bottom:calc(10px + env(safe-area-inset-bottom));height:44px;padding-right:10px}
  #kiyo-launcher .kiyo-launch-label{display:none}
}
