/* SI Live Chat (sicto.si/chat/, v1.51): the page's own styles in the site's design system (si.css gives the tokens, buttons,
   panels, cards, stats and the FAQ). Nothing here changes a shared rule: every selector starts with .ch. Built by Codeflex. */

/* the totals: four centered tiles, two across on a phone */
.ch-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.2vw,16px)}
.ch-stats .stat small,.ch-stats .stat em{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.ch-stats .stat em{display:block}
@media (max-width:820px){.ch-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:420px){.ch-stats .stat small{font-size:10px;letter-spacing:.08em}.ch-stats .stat em{font-size:11px}}

/* the app: the rooms on the left, the open room on the right; the rooms become a row of tabs on narrow screens */
.ch-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ch-app{display:grid;grid-template-columns:minmax(184px,216px) minmax(0,1fr);padding:0;overflow:hidden;min-height:min(720px,82vh)}
.ch-side{display:flex;flex-direction:column;min-width:0;border-right:1px solid var(--line);background:rgba(2,8,22,.55)}
.ch-rooms{display:flex;flex-direction:column;gap:3px;padding:12px 10px}
.ch-room{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 8px;width:100%;padding:7px 12px;border-radius:10px;border:1px solid transparent;background:transparent;color:var(--text);text-align:left;cursor:pointer;font:inherit;transition:background .2s,border-color .2s}
.ch-room b{font-family:var(--f-display);font-weight:800;font-size:14px;line-height:1.35;letter-spacing:.04em;color:#fff}
.ch-room span{grid-column:1;font-size:12px;line-height:1.35;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-room:hover{background:rgba(0,72,216,.16);border-color:var(--line)}
.ch-room.is-on{background:linear-gradient(180deg,rgba(0,120,240,.28),rgba(0,48,120,.28));border-color:var(--line2);box-shadow:inset 3px 0 0 var(--cyan)}
.ch-room:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
.ch-dot{grid-column:2;grid-row:1/span 2;width:9px;height:9px;border-radius:50%;background:var(--cyan);box-shadow:0 0 10px var(--cyan);opacity:0;transition:opacity .2s}
.ch-room.has-new .ch-dot{opacity:1}
.ch-main{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0}
.ch-head{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;padding:14px clamp(14px,2vw,22px);border-bottom:1px solid var(--line)}
.ch-title{display:flex;align-items:baseline;gap:10px;min-width:0;flex:1 1 auto}
.ch-title b{font-family:var(--f-display);font-weight:800;font-size:20px;color:#fff;letter-spacing:.03em}
.ch-title span{color:var(--muted);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-on{display:inline-flex;align-items:center;gap:8px;font-family:var(--f-mono);font-size:12.5px;letter-spacing:.06em;color:var(--steel);white-space:nowrap}
.ch-on i{width:8px;height:8px;border-radius:50%;background:#3ff2c4;box-shadow:0 0 10px #3ff2c4}
.ch-slot{margin:0}
.ch-slot:empty{display:none}

/* the messages */
.ch-log{flex:1 1 auto;min-height:340px;max-height:min(560px,62vh);overflow-y:auto;overscroll-behavior:contain;padding:10px clamp(10px,1.6vw,18px) 14px;scrollbar-width:thin}
.ch-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.ch-sys{margin:14px 0;text-align:center;font-family:var(--f-mono);font-size:13px;letter-spacing:.04em;color:var(--steel)}
.ch-wait::after{content:"";display:inline-block;width:8px;height:8px;margin-left:10px;border-radius:50%;background:var(--cyan);box-shadow:0 0 10px var(--cyan);animation:pulse 1.2s ease-in-out infinite}
.ch-older{display:block;margin:6px auto 10px;padding:7px 14px;border-radius:999px;border:1px solid var(--line2);background:rgba(0,48,120,.25);color:var(--text);font:inherit;font-size:13px;cursor:pointer}
.ch-day{align-self:center;margin:12px 0 6px;padding:3px 12px;border-radius:999px;border:1px solid var(--line);background:rgba(2,10,26,.8);font-family:var(--f-mono);font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--steel)}
.ch-m{display:grid;grid-template-columns:40px minmax(0,1fr);gap:0 12px;padding:8px 8px;border-radius:12px;transition:background .15s}
.ch-m:hover,.ch-m:focus-within{background:rgba(0,72,216,.12)}
.ch-m.is-cont{padding-top:1px}
.ch-m.is-cont .ch-av,.ch-m.is-cont .ch-mh{display:none}
.ch-m.is-cont .ch-b{grid-column:2}
.ch-m.is-me .ch-n{color:var(--cyan)}
.ch-av{position:relative;grid-row:1/span 2;width:40px;height:40px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:linear-gradient(180deg,rgba(0,168,240,.45),rgba(0,48,120,.6));border:1px solid var(--line2);text-decoration:none}
.ch-av-m{font-family:var(--f-display);font-weight:800;font-size:16px;color:#fff}
.ch-av img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ch-b{min-width:0}
.ch-mh{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;line-height:1.3}
.ch-n{font-weight:700;color:#fff;text-decoration:none;font-size:15px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:24ch}
.ch-n:hover{text-decoration:underline;text-underline-offset:3px}
.ch-meta{display:inline-flex;gap:8px;font-family:var(--f-mono);font-size:12px;color:var(--steel)}
.ch-t{margin-left:auto;font-family:var(--f-mono);font-size:12px;color:var(--steel);white-space:nowrap}
.ch-chip{display:inline-flex;align-items:center;padding:1px 8px;border-radius:999px;border:1px solid var(--line2);background:rgba(0,48,120,.35);font-family:var(--f-mono);font-size:11px;letter-spacing:.04em;color:var(--text);white-space:nowrap}
.ch-chip.is-fd{border-color:rgba(255,212,107,.55);background:rgba(90,60,0,.35);color:#ffd46b}
.ch-chip.is-bad{border-color:rgba(255,85,119,.6);background:rgba(80,10,24,.4);color:#ff9db0}
.ch-x{margin:3px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font-size:15.5px;line-height:1.55;color:var(--text)}
.ch-link,.ch-at{color:var(--cyan);text-decoration:underline;text-underline-offset:3px}
.ch-at{text-decoration:none;font-weight:600}
.ch-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;opacity:0;height:0;overflow:hidden;transition:opacity .15s}
.ch-m:hover .ch-acts,.ch-m:focus-within .ch-acts,.ch-acts.is-on{opacity:1;height:auto}
@media (hover:none){.ch-acts{opacity:1;height:auto}}
.ch-act{padding:3px 10px;border-radius:999px;border:1px solid var(--line2);background:rgba(2,10,26,.85);color:var(--steel);font:inherit;font-size:12px;cursor:pointer}
.ch-act:hover{color:#fff;border-color:var(--cyan)}
.ch-act:disabled{opacity:.5;cursor:default}
/* the checks beside a name: platinum for the official accounts, blue for the team, gold for Verified by SI MIND */
.ch-tk{position:relative;display:inline-block;width:16px;height:16px;border-radius:50%;flex:0 0 auto}
.ch-tk::after{content:"";position:absolute;left:5px;top:3px;width:4px;height:7px;border:solid #031026;border-width:0 2px 2px 0;transform:rotate(45deg)}
.ch-tk-p{background:linear-gradient(180deg,#f4f7fb,#aab4c3);box-shadow:0 0 8px rgba(220,230,245,.5)}
.ch-tk-b{background:linear-gradient(180deg,#4fc3ff,#0a6fd8);box-shadow:0 0 8px rgba(0,168,240,.5)}
.ch-tk-g{background:linear-gradient(180deg,#ffe08a,#e2a50b);box-shadow:0 0 8px rgba(255,201,77,.5)}
.ch-newpill{position:absolute;left:50%;bottom:118px;transform:translateX(-50%);z-index:2;padding:7px 16px;border-radius:999px;border:1px solid var(--cyan);background:rgba(0,48,120,.92);color:#fff;font:inherit;font-size:13px;font-weight:700;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.5)}

/* the composer */
.ch-compose{border-top:1px solid var(--line);padding:14px clamp(12px,1.8vw,20px) 12px;background:rgba(2,8,22,.55)}
.ch-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:end}
.ch-form textarea{width:100%;min-height:46px;max-height:160px;resize:none;padding:12px 14px;border-radius:var(--r-sm);border:1px solid var(--line2);background:rgba(2,10,26,.9);color:#fff;font:inherit;font-size:15.5px;line-height:1.45}
.ch-form textarea:focus{outline:none;border-color:var(--cyan);box-shadow:0 0 0 3px rgba(0,192,240,.18)}
.ch-send{height:46px;display:inline-flex;align-items:center;gap:8px}
.ch-send svg{width:18px;height:18px}
.ch-hint{grid-column:1/-1;margin:0;display:flex;justify-content:space-between;gap:12px;font-family:var(--f-mono);font-size:12px;color:var(--steel)}
.ch-left.is-low{color:#ffd46b}
.ch-gate{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center}
.ch-gate p{margin:0;max-width:62ch;color:var(--text);font-size:15px}
.ch-gate-b{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.ch-msg{margin:8px 0 0;min-height:1.2em;font-size:14px;color:var(--steel)}
.ch-msg:empty{margin:0;min-height:0}
.ch-msg.is-bad{color:#ff9db0}
.ch-msg.is-ok{color:#3ff2c4}

/* the team's queue */
.ch-mod{margin-top:clamp(14px,2vw,22px);padding:clamp(16px,2vw,24px)}
.ch-mod h3{margin:0 0 12px}
.ch-mod-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ch-rep{padding:12px 14px;border-radius:var(--r-sm);border:1px solid var(--line);background:rgba(2,10,26,.8)}
.ch-rep-h{display:flex;flex-wrap:wrap;align-items:center;gap:8px}

/* how it works */
.ch-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.6vw,20px)}
.ch-step{position:relative;padding:clamp(20px,2.2vw,30px);border-radius:var(--r);background:var(--panel);border:1px solid var(--line);text-align:center}
.ch-step-n{display:grid;place-items:center;width:46px;height:46px;margin:0 auto 14px;border-radius:50%;font-family:var(--f-display);font-weight:900;font-size:20px;color:#fff;background:linear-gradient(180deg,rgba(0,168,240,.5),rgba(0,48,120,.6));border:1px solid var(--line2);box-shadow:0 0 22px rgba(0,144,240,.35)}
.ch-step h3{margin-bottom:8px}
.ch-step p{margin:0;color:var(--muted);font-size:15.5px}

@media (max-width:900px){
  .ch-app{grid-template-columns:1fr;min-height:0}
  .ch-side{border-right:0;border-bottom:1px solid var(--line)}
  .ch-rail-rules,.ch-info{display:none}
  .ch-rooms{flex-direction:row;overflow-x:auto;padding:10px;scrollbar-width:none}
  .ch-rooms::-webkit-scrollbar{display:none}
  .ch-room{flex:0 0 auto;width:auto;grid-template-columns:auto auto;padding:8px 12px}
  .ch-room span{display:none}
  .ch-dot{grid-row:1}
  .ch-room.is-on{box-shadow:inset 0 -3px 0 var(--cyan)}
  .ch-steps{grid-template-columns:1fr}
}
@media (max-width:560px){
  .ch-log{max-height:60vh;min-height:300px}
  .ch-head .ch-title span{display:none}
  .ch-form{grid-template-columns:minmax(0,1fr) auto}
  .ch-send span{display:none}
  .ch-send{width:46px;padding:0;justify-content:center}
  .ch-hint span:first-child{display:none}
  .ch-hint{justify-content:flex-end}
  .ch-newpill{bottom:104px}
  .ch-n{max-width:16ch}
}
@media (prefers-reduced-motion:reduce){.ch-wait::after{animation:none}}
/* hidden always wins inside the chat (the composer and gate set their own display) */
.ch-app [hidden],.ch-mod[hidden],.ch-mod [hidden]{display:none!important}
/* the floating buttons fade while the chat fills the bottom of the screen (an open Ask SI panel stays) */
.sipn-fab,.ask{transition:opacity .2s ease,visibility .2s ease}
body.ch-fab-off .sipn-fab,body.ch-fab-off .ask:not(.open){opacity:0;visibility:hidden;pointer-events:none}
/* addresses on one line, scrolling inside the chip when the screen is narrow; links never break */
.ch-addr{display:inline-block;max-width:100%;vertical-align:bottom;overflow-x:auto;white-space:nowrap;padding:1px 8px;border-radius:6px;border:1px solid var(--line2);background:rgba(2,10,26,.7);font-family:var(--mono,ui-monospace,SFMono-Regular,Menlo,monospace);font-size:.86em;line-height:1.7;scrollbar-width:thin}
.ch-link{display:inline-block;max-width:100%;vertical-align:bottom;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* the rail under the rooms: the room rules, then this room's token card */
.ch-info-k{display:block;font-family:var(--f-mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--steel)}
.ch-rail-rules{padding:14px 14px 4px;border-top:1px solid var(--line);text-align:center}
.ch-rail-rules ul{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.ch-rail-rules li{display:flex;align-items:center;gap:9px;font-size:12.5px;line-height:1.3;color:var(--muted);text-align:left}
.ch-rail-rules svg{flex:0 0 16px;width:16px;height:16px;stroke:var(--cyan);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ch-info{margin-top:auto;display:flex;flex-direction:column;align-items:center;gap:4px;padding:16px 12px 18px;border-top:1px solid var(--line);text-align:center}
.ch-info-sym{font-family:var(--f-display);font-weight:800;font-size:18px;letter-spacing:.04em;color:#fff;margin-top:4px}
.ch-info-name{font-size:12.5px;color:var(--muted)}
.ch-info-b{display:flex;flex-direction:column;gap:7px;width:100%;margin-top:10px}
.ch-sm{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:36px;padding:7px 10px;font-size:11.5px;letter-spacing:.06em}
.ch-sm svg{width:15px;height:15px;flex:0 0 15px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:900px){.ch-rail-rules,.ch-info{display:none}}
