/* JakSky Global Chat - Modern Character Minimal v2.0
 * Cosmetic layer ONLY; does not change login, authorizations, messages or SSE.
 * Intentionally placed AFTER previous Chat v1 styles for an additive upgrade.
 */
.jks226-page.jks226-page{
  --jksm2-text:#352c2a;--jksm2-muted:#82746e;--jksm2-edge:#ebe4df;
  --jksm2-rose:#b78177;
  background:radial-gradient(circle at 95% 1%,rgba(255,218,205,.36),transparent 37%),linear-gradient(180deg,#f7f4f1,#f3f0ed 60%,#eee8e3)!important;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
  color:var(--jksm2-text)!important;
}
/* Bright, compact brand bar: unlike the previous solid dark block. */
.jks226-page.jks226-page .jks226-phead{
  position:relative!important;isolation:isolate!important;gap:12px!important;
  min-height:84px!important;padding:15px 18px 14px!important;
  background:linear-gradient(122deg,#fffefb 0%,#fcf5ef 62%,#f8eae4 100%)!important;
  border-bottom:1px solid #ecdfd7!important;box-shadow:0 7px 25px rgba(104,70,48,.055)!important;
}
.jks226-page.jks226-page .jks226-phead::before{
  content:'';position:absolute;z-index:-1;pointer-events:none;right:16%;top:-55px;
  width:145px;height:135px;border-radius:50%;background:radial-gradient(circle,#edd4c7 0%,transparent 67%);opacity:.6;
}
.jks226-page.jks226-page .jks226-phead>a,
.jks226-page.jks226-page .jks226-phead a{
  display:inline-flex!important;align-items:center!important;gap:6px!important;
  color:#44342f!important;font-size:20px!important;font-weight:790!important;letter-spacing:-.7px!important;text-decoration:none!important;
}
.jks226-page.jks226-page .jks226-phead small{
  display:inline-block!important;margin-top:2px!important;color:#9a8278!important;
  font-size:11.5px!important;font-weight:450!important;letter-spacing:0!important;
}
.jks226-page .jksm2-brand-spark{
  display:inline-grid;place-items:center;margin-right:2px;
  width:27px;height:27px;border-radius:10px;color:#fff8ed;font-size:15px;font-weight:600;
  background:linear-gradient(140deg,#bf8b80,#705349);box-shadow:0 3px 8px rgba(129,80,62,.16),inset 0 1px rgba(255,255,255,.37);
}
.jks226-page.jks226-page .jks226-pill{
  color:#766158!important;min-height:35px!important;min-width:92px!important;max-width:155px!important;
  border:1px solid #e7d9ce!important;background:rgba(255,255,255,.65)!important;
  border-radius:999px!important;padding:8px 11px!important;font-size:10.5px!important;font-weight:550!important;
  box-shadow:0 1px 3px rgba(72,50,43,.035)!important;
}
.jks226-page.jks226-page .jks226-pill > span:first-child{color:#50aa7b!important}
.jks226-page.jks226-page.jksm2-unavailable .jks226-pill > span:first-child{color:#b7a9a0!important}
/* One-line friendly community note. */
.jks226-page.jks226-page .jks226-rule{
  flex-shrink:0!important;margin:12px 16px 0!important;padding:9px 12px!important;
  border-radius:13px!important;border:1px solid #ebded5!important;background:rgba(255,251,246,.82)!important;
  color:#927264!important;font-size:11.5px!important;box-shadow:none!important;
}
/* Topic banner: compact featured editorial card, never a giant promo. */
.jks226-page.jks226-page .jks2274-join{
  position:relative!important;overflow:hidden!important;flex-shrink:0!important;
  margin:10px 16px 8px!important;padding:14px 15px 13px!important;border-radius:18px!important;
  border:1px solid #e8ded8!important;background:linear-gradient(110deg,#fffefb 0%,#fff8f3 72%,#f9eee8 100%)!important;
  box-shadow:0 5px 20px rgba(109,76,59,.06),inset 0 1px #fff!important;
}
.jks226-page.jks226-page .jks2274-join::after{
  content:'✦';position:absolute;pointer-events:none;top:4px;right:13px;
  color:#d8b7a4;font-size:25px;opacity:.47;transform:rotate(18deg);
}
.jks226-page .jks2274-eyebrow{
  color:#ac8272!important;font-size:10px!important;font-weight:760!important;letter-spacing:.1em!important;
  text-transform:uppercase!important;
}
.jks226-page .jks2274-eyebrow::before{content:''!important;display:inline-block!important;width:6px;height:6px;margin-right:7px;border-radius:50%;background:#d59c8c;vertical-align:middle}
.jks226-page.jks226-page .jks2274-title{
  margin:6px 0 11px!important;font-size:14px!important;font-weight:750!important;
  line-height:1.38!important;color:#45352f!important;letter-spacing:-.25px!important;
}
.jks226-page .jks2274-prompts{display:flex!important;gap:7px!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none!important;padding:2px 0 1px!important}
.jks226-page .jks2274-prompts::-webkit-scrollbar{display:none}
.jks226-page .jks2274-prompt{
  flex:0 0 auto!important;min-height:35px!important;padding:8px 11px!important;
  border:1px solid #e9e0d9!important;background:#fffefa!important;border-radius:999px!important;
  color:#77645c!important;font-size:11px!important;font-weight:630!important;box-shadow:none!important;
}
.jks226-page .jks2274-prompt:active{transform:scale(.985)}
.jks226-page .jks2274-prompt:focus-visible{outline:2px solid #a98272!important;outline-offset:2px!important}
/* Conversation space. */
.jks226-page.jks226-page .jks226-messages{
  position:relative!important;flex:1!important;min-height:0!important;gap:14px!important;
  padding:17px 17px 23px!important;overflow-y:auto!important;overscroll-behavior:contain!important;
  background:radial-gradient(circle at 50% 26%,rgba(255,255,255,.6),transparent 60%)!important;
}
/* The empty state is shown when chat has no visible messages, including login/403 failures.
 * Its display never changes the original server error or authentication process. */
.jks226-page.jks226-page .jksm2-empty-shell{
  align-self:center!important;display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;gap:0!important;margin:auto!important;
  width:min(100%,340px)!important;min-height:240px!important;padding:22px 19px!important;
  border-radius:25px!important;border:1px solid #ebe1d9!important;
  background:linear-gradient(160deg,rgba(255,254,252,.94),rgba(255,249,244,.8))!important;
  box-shadow:0 12px 32px rgba(101,71,51,.075),inset 0 1px #fff!important;
  text-align:center!important;
}
.jks226-page .jksm2-character{
  position:relative;display:grid;place-items:center;width:81px;height:81px;margin:0 auto 14px;
  border-radius:28px;background:linear-gradient(145deg,#fdf1e8,#f6dfd6);
  box-shadow:inset 0 1px 1px #fff,0 7px 20px rgba(145,101,80,.1);
}
.jks226-page .jksm2-character::before,
.jks226-page .jksm2-character::after{content:'✦';position:absolute;color:#ceaa91;font-size:16px}
.jks226-page .jksm2-character::before{top:-9px;right:-11px}
.jks226-page .jksm2-character::after{bottom:4px;left:-12px;font-size:9px}
.jks226-page .jksm2-character-face{
  position:relative;display:block;width:49px;height:45px;border-radius:18px 18px 18px 7px;
  background:linear-gradient(140deg,#a77c6b,#70524b);transform:rotate(-8deg);
  box-shadow:0 5px 12px rgba(112,65,53,.19),inset 0 1px rgba(255,255,255,.28);
}
.jks226-page .jksm2-character-face::before{
  content:'•  •';position:absolute;top:9px;left:13px;color:#fff9ef;font-size:22px;
  letter-spacing:4px;line-height:1;
}
.jks226-page .jksm2-character-face::after{
  content:'';position:absolute;left:23px;top:28px;width:11px;height:5px;
  border:1.5px solid #fff5ea;border-top:0;border-radius:0 0 12px 12px;
}
.jks226-page .jksm2-empty-label{
  display:inline-flex;align-items:center;gap:6px;padding:5px 9px;
  border:1px solid #e9d7cf;border-radius:99px;background:#fff8f4;
  color:#966e5f;font-size:9px;font-weight:740;letter-spacing:.09em;text-transform:uppercase;
}
.jks226-page .jksm2-empty-title{
  margin:12px 0 7px;font-weight:790;letter-spacing:-.6px;color:#44332c;
  font-size:19px;line-height:1.2;
}
.jks226-page.jks226-page .jksm2-empty-shell .jks226-pempty{
  max-width:275px!important;margin:0 auto!important;color:#8a786e!important;
  font-size:12.2px!important;line-height:1.55!important;text-align:center!important;
}
.jks226-page .jksm2-empty-action{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:38px;margin-top:16px;padding:9px 16px;border-radius:12px;
  background:#634a40;color:#fff9f2!important;font-size:12px;font-weight:700;text-decoration:none;
  box-shadow:0 4px 12px rgba(82,49,35,.15);
}
.jks226-page .jksm2-empty-action:focus-visible{outline:2px solid #b28775;outline-offset:3px}
.jks226-page .jksm2-empty-action[hidden]{display:none!important}
.jks226-page .jksm2-empty-sub{margin-top:12px;font-size:10px;color:#9e8b7e;line-height:1.4}
/* Avatar and bubble design. Real role markers are set by the already-authorized engine. */
.jks226-page.jks226-page .jks226-msg{gap:9px!important;align-items:flex-start!important;min-width:0!important;overflow:visible!important}
.jks226-page.jks226-page .jks226-avatar{
  flex:0 0 35px!important;width:35px!important;height:35px!important;
  border:2px solid #fffbf7!important;border-radius:13px!important;
  box-shadow:0 3px 11px rgba(97,66,51,.09)!important;background:#9c8071!important;
}
.jks226-page.jks226-page .jks226-bubble{
  position:relative!important;box-sizing:border-box!important;min-height:0!important;
  min-width:min(123px,calc(100% - 47px))!important;width:fit-content!important;
  max-width:min(470px,calc(100% - 45px))!important;
  padding:11px 13px 10px!important;margin:0!important;
  border-radius:6px 17px 17px 17px!important;border:1px solid #e8e0da!important;
  background:#fffefc!important;color:#43352d!important;
  box-shadow:0 3px 13px rgba(100,74,52,.06)!important;
}
.jks226-page.jks226-page .jks226-message{font-size:13px!important;line-height:1.5!important;color:#534139!important}
.jks226-page.jks226-page .jks226-user{margin-bottom:7px!important;gap:5px!important}
.jks226-page.jks226-page .jks226-user .jks2273-name{color:#49372e!important;font-weight:760!important}
.jks226-page.jks226-page .jks226-time{font-size:9.5px!important;color:#a28e80!important}
/* Server-derived roles have restrained color-coded accents. */
.jks226-page .jks226-msg[data-jksm2-role="verified-red"]{--jksm2-role:#c84b60;--jksm2-role-light:#fff1f1;--jksm2-role-edge:#e8c5cc}
.jks226-page .jks226-msg[data-jksm2-role="owner"]{--jksm2-role:#a87936;--jksm2-role-light:#fff8e8;--jksm2-role-edge:#e4d5b2}
.jks226-page .jks226-msg[data-jksm2-role="admin"]{--jksm2-role:#487aaa;--jksm2-role-light:#f0f6fb;--jksm2-role-edge:#cbdde9}
.jks226-page .jks226-msg[data-jksm2-role="moderator"]{--jksm2-role:#9069ab;--jksm2-role-light:#f9f1fd;--jksm2-role-edge:#e3cfeb}
.jks226-page .jks226-msg[data-jksm2-role="event"]{--jksm2-role:#468b81;--jksm2-role-light:#eef9f6;--jksm2-role-edge:#c3e3d9}
.jks226-page .jks226-msg[data-jksm2-role="staff"]{--jksm2-role:#866c5a;--jksm2-role-light:#faf4ef;--jksm2-role-edge:#e2d5cc}
.jks226-page.jks226-page .jks226-msg[data-jksm2-role]:not([data-jksm2-role="user"]) .jks226-bubble{
  background:linear-gradient(122deg,#fffefc 30%,var(--jksm2-role-light))!important;
  border-color:var(--jksm2-role-edge)!important;
  box-shadow:0 4px 17px color-mix(in srgb,var(--jksm2-role) 10%,transparent)!important;
}
.jks226-page.jks226-page .jks226-msg[data-jksm2-role]:not([data-jksm2-role="user"]) .jks226-bubble::before{
  content:''!important;display:block!important;position:absolute!important;top:10px!important;bottom:10px!important;
  left:0!important;width:3px!important;border-radius:4px!important;background:var(--jksm2-role)!important;
}
.jks226-page.jks226-page .jks226-msg[data-jksm2-role="user"] .jks226-bubble::before{display:none!important;content:none!important}
.jks226-page.jks226-page .jks226-msg[data-jksm2-role]:not([data-jksm2-role="user"]) .jks226-avatar{
  box-shadow:0 0 0 2px #fffaf7,0 0 0 3px var(--jksm2-role-edge)!important;
}
.jks226-page.jks226-page .jks226-msg[data-jksm2-role]:not([data-jksm2-role="user"]) .jks2273-name{color:var(--jksm2-role)!important}
.jks226-page.jks226-page .jks226-msg[data-jksm2-role]:not([data-jksm2-role="user"]) .jks2273-role{
  color:var(--jksm2-role)!important;border:1px solid var(--jksm2-role-edge)!important;
  background:var(--jksm2-role-light)!important;border-radius:8px!important;
}
.jks226-page .jks226-msg .jks2274-actions{margin-top:9px!important;padding-top:7px!important;border-color:#f0eae5!important}
.jks226-page .jks226-msg .jks2274-reply,.jks226-page .jks226-msg .jks2274-more{color:#917c71!important}
/* Motion occurs only on new message rows, never on every render. */
.jks226-page.jks226-page .jks226-msg.jksm2-arrived .jks226-bubble{animation:jksm2-in .4s cubic-bezier(.2,.75,.28,1) both!important}
.jks226-page.jks226-page .jks226-msg.jksm2-arrived[data-jksm2-role]:not([data-jksm2-role="user"]) .jks226-bubble{animation:jksm2-special .62s cubic-bezier(.2,.7,.25,1) both!important}
@keyframes jksm2-in{from{transform:translateY(7px);opacity:.6}to{opacity:1;transform:none}}
@keyframes jksm2-special{0%{opacity:.55;transform:translateY(10px) scale(.97);filter:brightness(1.03)}55%{opacity:1;transform:none;box-shadow:0 0 0 3px var(--jksm2-role-edge)}100%{box-shadow:0 4px 17px rgba(80,60,45,.06)}}
/* Special entrance notices keep original authenticated SSE behavior. */
.jks226-page .jks2276-entry{
  border-radius:14px!important;border:1px solid #e6d6ca!important;background:#fffefb!important;
  box-shadow:0 4px 17px rgba(92,68,50,.075)!important;font-size:11px!important;
}
.jks226-page .jks2276-entry[data-kind="verified"]{border-left:3px solid #c84b60!important}
.jks226-page .jks2276-entry[data-kind="owner"]{border-left:3px solid #bc8c4d!important}
.jks226-page .jks2276-entry[data-kind="admin"]{border-left:3px solid #487aaa!important}
.jks226-page .jks2276-entry[data-kind="moderator"]{border-left:3px solid #9069ab!important}
.jks226-page .jks2276-entry[data-kind="event"]{border-left:3px solid #468b81!important}
/* Composer is a tactile, elevated little dock; no change to send behavior. */
.jks226-page.jks226-page .jks226-pcomposer{
  position:relative!important;z-index:1!important;gap:9px!important;
  padding:12px 16px 8px!important;border-top:1px solid #eee5de!important;
  background:#fffdfa!important;box-shadow:0 -7px 26px rgba(98,72,52,.04)!important;
}
.jks226-page.jks226-page .jks226-pcomposer input{
  min-height:45px!important;height:45px!important;border-radius:15px!important;
  border:1px solid #ece1d8!important;background:#f8f6f3!important;
  color:#3c302c!important;padding:11px 14px!important;
  box-shadow:inset 0 1px 2px rgba(88,68,49,.025)!important;
}
.jks226-page.jks226-page .jks226-pcomposer input::placeholder{color:#aea09a!important}
.jks226-page.jks226-page .jks226-pcomposer button{
  min-width:74px!important;min-height:45px!important;
  border-radius:14px!important;background:linear-gradient(145deg,#a57e70,#665148)!important;
  color:#fff!important;font-size:12px!important;box-shadow:0 3px 8px rgba(104,72,51,.13)!important;
}
.jks226-page.jks226-page .jks226-pcomposer button:disabled{opacity:.38!important;box-shadow:none!important}
.jks226-page.jks226-page .jks226-psub{
  padding:0 17px 9px!important;min-height:18px!important;background:#fffdfa!important;
  color:#a18d80!important;font-size:10.5px!important;
}
.jks226-page.jks226-page .jks226-psub.jksm2-status-error{color:#aa6870!important}
/* Native bottom navbar is intentionally left alone. */
@media(max-width:390px){
  .jks226-page.jks226-page .jks226-phead{padding:13px 14px!important;min-height:78px!important}
  .jks226-page.jks226-page .jks226-phead a{font-size:18.5px!important}
  .jks226-page.jks226-page .jks226-pill{min-width:0!important;padding:7px 9px!important;max-width:134px!important}
  .jks226-page.jks226-page .jks226-rule{margin-inline:11px!important}
  .jks226-page.jks226-page .jks2274-join{margin-inline:11px!important;padding:12px!important}
  .jks226-page.jks226-page .jks226-messages{padding:13px 11px 18px!important;gap:11px!important}
  .jks226-page.jks226-page .jksm2-empty-shell{padding:18px 15px!important;min-height:217px!important}
  .jks226-page.jks226-page .jks226-avatar{width:33px!important;height:33px!important;flex-basis:33px!important}
  .jks226-page.jks226-page .jks226-bubble{max-width:calc(100% - 43px)!important}
  .jks226-page.jks226-page .jks226-pcomposer{padding-inline:11px!important}
}
@media(max-height:680px){
  .jks226-page.jks226-page .jks2274-join{padding:9px 11px!important;margin-top:6px!important}
  .jks226-page.jks226-page .jks226-messages{padding-block:9px!important}
  .jks226-page.jks226-page .jksm2-empty-shell{min-height:190px!important;padding:12px!important}
  .jks226-page .jksm2-character{width:64px;height:64px;margin-bottom:8px}
  .jks226-page .jksm2-character-face{transform:scale(.8) rotate(-8deg)}
}
@media(prefers-reduced-motion:reduce){
  .jks226-page.jks226-page .jks226-msg .jks226-bubble,
  .jks226-page .jks2276-entry,#jks2279Layer .jks2279-card{animation:none!important;transition:none!important}
}
