/* KU-KU V9.2.6 — profile, notifications and messenger polish */

/* Never allow stale legacy profile overlays to leak into the logged-out brand screen. */
body.kuku-loggedout .ei9118-profile,
body.kuku-loggedout .ei9119-profile,
body.kuku-loggedout .ei9120-profile,
body.kuku-loggedout #e18close,
body.kuku-loggedout #e19close,
body.kuku-loggedout #e20close{display:none!important}

/* Remove remaining legacy brown/gold surfaces. */
.ei9118-box,.ei9119-box,.ei9120-box,
.ei9118-file,.ei9118-callpick,.ei9119-callpick,.ei9120-callpick,
.ei9120-settingcard,.ei9122-helpbox,#ei9124CallBoard{
  background:linear-gradient(180deg,rgba(16,27,45,.985),rgba(8,15,27,.99))!important;
  border-color:rgba(104,170,255,.22)!important;
  color:#f5f8fd!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 18px 45px rgba(0,0,0,.18)!important;
}
.ei9118-person button.selected,.ei9119-person button.selected,.ei9120-person button.selected,
.ei9120-choice button.active{
  outline:0!important;background:linear-gradient(180deg,#3b9cff,#1677e8)!important;
  border-color:#66b2ff!important;color:#fff!important;box-shadow:0 6px 18px rgba(36,132,241,.26)!important;
}
.ei9122-helpbox #ei9122AskNotify,.ei9122-helpbox button.secondary.active{
  background:linear-gradient(180deg,#3b9cff,#1677e8)!important;
  border:1px solid #69b5ff!important;color:#fff!important;
  box-shadow:0 7px 20px rgba(34,130,241,.24)!important;
}
.ei9122-helpbox p,.ei9120-settingcard .muted{color:#9dadc2!important}

/* Profile editor */
.k926-profile-overlay{
  position:fixed;inset:0;z-index:2147483647;display:flex;align-items:center;justify-content:center;
  padding:18px;background:rgba(1,5,12,.76);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)
}
.k926-profile-card{
  width:min(440px,96vw);max-height:min(720px,92dvh);overflow:auto;padding:22px;
  border:1px solid rgba(104,170,255,.24);border-radius:26px;
  background:linear-gradient(180deg,#111d30,#09111f);box-shadow:0 32px 100px rgba(0,0,0,.58)
}
.k926-profile-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.k926-profile-head h3{margin:0;font-size:20px;color:#fff}.k926-profile-x{width:36px;height:36px;border-radius:12px!important;padding:0!important;font-size:22px!important;line-height:1!important;background:#17243a!important;border:1px solid rgba(119,180,255,.22)!important;color:#cfe4ff!important}
.k926-avatar-wrap{display:grid;place-items:center;margin:6px 0 20px}
.k926-avatar-preview{width:118px;height:118px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#1d3558,#0f1b2e);border:3px solid #48a2ff;box-shadow:0 0 0 6px rgba(72,162,255,.10),0 18px 42px rgba(0,0,0,.32);font-size:42px;font-weight:900;color:#dcecff;background-size:cover;background-position:center}
.k926-profile-name{text-align:center;margin-top:10px;color:#fff;font-size:18px;font-weight:850}
.k926-profile-user{text-align:center;margin-top:3px;color:#8091a8;font-size:12px}
.k926-profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.k926-profile-actions button{min-height:44px;border-radius:14px!important}.k926-profile-actions .k926-primary{background:linear-gradient(180deg,#3c9dff,#1677e8)!important;border:1px solid #67b4ff!important;color:#fff!important}.k926-profile-actions .k926-danger{background:rgba(255,78,93,.08)!important;border:1px solid rgba(255,97,109,.22)!important;color:#ff9da5!important}
.k926-profile-section{margin-top:18px;padding-top:16px;border-top:1px solid rgba(255,255,255,.07)}
.k926-profile-section h4{margin:0 0 9px;font-size:13px;color:#dce8f7}.k926-profile-note{font-size:11px;line-height:1.45;color:#7f90a7;margin-top:12px}
.k926-profile-status{min-height:18px;margin-top:10px;font-size:12px;color:#83c0ff}
@media(max-width:520px){.k926-profile-card{padding:18px;border-radius:22px}.k926-profile-actions{grid-template-columns:1fr}.k926-avatar-preview{width:104px;height:104px}}

/* Modern messenger layout */
#chat91View{max-width:none!important;width:100%!important}
#chat91View>.panel{
  width:min(980px,100%)!important;margin:0 auto!important;padding:0!important;overflow:hidden!important;
  border:1px solid rgba(102,167,255,.14)!important;border-radius:24px!important;
  background:#08101c!important;box-shadow:0 22px 70px rgba(0,0,0,.24)!important;
}
#chat91View .chat91-title{
  min-height:72px!important;padding:13px 17px!important;gap:12px!important;
  background:linear-gradient(180deg,#101b2d,#0c1625)!important;border-bottom:1px solid rgba(255,255,255,.065)!important
}
#chat91View .chat91-title h2{font-size:17px!important;letter-spacing:-.2px!important}
#chat91View .chat91-title .muted{color:#8292a8!important;font-size:11px!important}
#chat91View #chat91Group{min-width:180px!important;max-width:250px!important;height:40px!important;padding:0 36px 0 13px!important;border-radius:13px!important;background:#162338!important;border:1px solid rgba(112,177,255,.18)!important;color:#eef6ff!important;font-weight:750!important}
#chat91View .chat91-box{
  width:100%!important;box-sizing:border-box!important;flex:1!important;height:auto!important;min-height:500px!important;
  max-height:calc(100dvh - 270px)!important;padding:24px 22px!important;gap:7px!important;
  background:radial-gradient(700px 380px at 50% -120px,rgba(35,126,240,.09),transparent 65%),linear-gradient(180deg,#070e19,#07101a)!important;
  border:0!important;border-radius:0!important
}
.chat91-msg{
  position:relative!important;max-width:min(72%,620px)!important;padding:9px 12px 8px!important;margin:1px 0!important;
  border:1px solid rgba(255,255,255,.055)!important;border-radius:17px 17px 17px 5px!important;
  background:#172235!important;color:#f6f9fe!important;box-shadow:0 4px 14px rgba(0,0,0,.13)!important;
  line-height:1.38!important;font-size:14px!important
}
.chat91-msg.mine{align-self:flex-end!important;border-radius:17px 17px 5px 17px!important;background:linear-gradient(180deg,#1683ef,#0e6ed1)!important;border-color:rgba(115,190,255,.28)!important;color:#fff!important}
.chat91-msg>strong{display:block!important;margin:0 0 3px!important;font-size:10px!important;line-height:1.2!important;color:#73b7ff!important;font-weight:850!important}
.chat91-msg.mine>strong{display:none!important}
.chat91-meta{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;margin-top:4px!important;font-size:9px!important;line-height:1!important;color:#77869a!important}
.chat91-msg.mine .chat91-meta{color:rgba(255,255,255,.68)!important}.chat91-status{font-size:9px!important;font-weight:750!important;color:inherit!important}
.chat91-audio{width:min(330px,66vw)!important;height:36px!important;margin-top:7px!important}
#chat91View .ei914-compose-wrap,#chat91View .chat91-compose{
  width:100%!important;box-sizing:border-box!important;margin:0!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;
  border-top:1px solid rgba(255,255,255,.065)!important;background:rgba(9,17,29,.97)!important;backdrop-filter:blur(18px)!important
}
#chat91View .chat91-compose{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:7px!important}
#chat91View #chat91Text{min-height:42px!important;max-height:120px!important;resize:none!important;padding:10px 14px!important;border-radius:18px!important;background:#142136!important;border:1px solid rgba(119,180,255,.17)!important;color:#fff!important;box-shadow:none!important}
#chat91View #chat91Send{min-width:44px!important;height:42px!important;border-radius:14px!important;padding:0 13px!important;background:linear-gradient(180deg,#3c9dff,#1677e8)!important;border:1px solid #65b2ff!important;color:#fff!important}
#chat91View #chat91Mic{height:42px!important;border-radius:14px!important;background:#17243a!important;border:1px solid rgba(119,180,255,.17)!important;color:#cfe2fa!important}
#chat91RecState{padding:0 13px 8px!important;margin:0!important;background:#09111d!important}

/* Avatar shown next to incoming messages when V9.2.6 can resolve it. */
.chat91-msg.k926-has-avatar{margin-left:38px!important}.chat91-msg.k926-has-avatar>.k926-msg-avatar{position:absolute;left:-39px;bottom:0;width:30px;height:30px;border-radius:50%;object-fit:cover;background:#16243a;border:1px solid rgba(126,188,255,.22);box-shadow:0 3px 10px rgba(0,0,0,.25)}

@media(max-width:650px){
  #chat91View>.panel{width:calc(100% + 20px)!important;margin-left:-10px!important;border-left:0!important;border-right:0!important;border-radius:0!important;min-height:calc(100dvh - 98px - env(safe-area-inset-top))!important}
  #chat91View .chat91-title{min-height:56px!important;padding:8px 10px!important;display:grid!important;grid-template-columns:1fr auto!important}
  #chat91View .chat91-title>div .muted{display:none!important}#chat91View .chat91-title h2{font-size:15px!important}
  #chat91View #chat91Group{min-width:126px!important;max-width:46vw!important;height:36px!important;font-size:12px!important}
  #chat91View .chat91-box{min-height:calc(100dvh - 215px - env(safe-area-inset-top))!important;max-height:calc(100dvh - 215px - env(safe-area-inset-top))!important;padding:14px 12px 18px!important}
  .chat91-msg{max-width:82%!important;font-size:14px!important;padding:8px 11px!important}.chat91-msg.k926-has-avatar{margin-left:34px!important}.chat91-msg.k926-has-avatar>.k926-msg-avatar{left:-35px;width:28px;height:28px}
  #chat91View .chat91-compose{padding:8px 8px calc(8px + env(safe-area-inset-bottom))!important;grid-template-columns:minmax(0,1fr) 42px 42px!important;gap:5px!important}
  #chat91View #chat91Send{min-width:42px!important;width:42px!important;padding:0!important;font-size:0!important}#chat91View #chat91Send::before{content:'➤';font-size:17px!important}
  #chat91View #chat91Mic{width:42px!important;padding:0!important;font-size:0!important}#chat91View #chat91Mic::after{content:'●';font-size:13px!important}
}

/* Semantic call activity is blue instead of the legacy yellow/gold. */
.ei9122-wave i,.ei9124-wave i{background:#2f8cff!important;box-shadow:0 0 7px rgba(47,140,255,.72)!important}
.ei9124-row[data-status='angenommen'] .ei9124-wave i,.ei9122-link.accepted .ei9122-wave i{background:#42d979!important;box-shadow:0 0 7px rgba(66,217,121,.65)!important}
.ei9124-row[data-status='nicht_erreichbar'] .ei9124-wave i,.ei9124-row[data-status='keine_antwort'] .ei9124-wave i,.ei9124-row[data-status='abgelehnt'] .ei9124-wave i,.ei9122-link.dead .ei9122-wave i{background:#6d7a8c!important;box-shadow:none!important}
