/* SW_CHAT_SKIN_GITHUB_20261115
   Visual skin inspired by GitHub Primer dark theme (MIT).
   DOM, mechanics, order, sizes and layout are untouched:
   only colors, borders, shadows, radii and typography. */

#swChatMount #swChatApp{
  --gh-canvas:#0d1117;
  --gh-canvas-subtle:#161b22;
  --gh-canvas-inset:#010409;
  --gh-border:#30363d;
  --gh-border-muted:#21262d;
  --gh-fg:#e6edf3;
  --gh-fg-muted:#8b949e;
  --gh-fg-subtle:#6e7681;
  --gh-accent:#2f81f7;
  --gh-accent-subtle:rgba(56,139,253,.15);
  --gh-success:#3fb950;
  --gh-success-emphasis:#238636;
  --gh-success-hover:#2ea043;
  --gh-danger:#f85149;
  background:
    radial-gradient(120% 80% at 50% 0%,rgba(56,139,253,.08),transparent 55%),
    linear-gradient(180deg,#161b22 0%,#0d1117 42%,#0d1117 100%)!important;
  border:1px solid var(--gh-border)!important;
  color:var(--gh-fg)!important;
  box-shadow:0 0 0 1px rgba(1,4,9,.6),0 16px 48px rgba(1,4,9,.55)!important;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif!important;
}
#swChatMount #swChatApp *{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif!important;
}
#swChatMount #swChatApp::before{
  content:"";
  position:absolute;
  left:14px;right:14px;top:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(47,129,247,.65),rgba(63,185,80,.35),transparent);
  pointer-events:none;
}

/* шапка */
#swChatMount #swChatApp .swc-head{
  box-shadow:0 1px 0 var(--gh-border-muted)!important;
}
#swChatMount #swChatApp .swc-title{
  color:var(--gh-fg)!important;
  font-weight:600!important;
  letter-spacing:.01em!important;
}
#swChatMount #swChatApp .swc-nums{
  color:var(--gh-fg-muted)!important;
  font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace!important;
}
#swChatMount #swChatApp .swc-nums b{color:var(--gh-fg)!important}
#swChatMount #swChatApp .swc-nums i{
  background:var(--gh-success)!important;
  box-shadow:0 0 0 2px rgba(63,185,80,.18)!important;
}

/* кнопки */
#swChatMount #swChatApp .swc-btn{
  background:var(--gh-canvas-subtle)!important;
  border:1px solid var(--gh-border)!important;
  color:var(--gh-fg-muted)!important;
  border-radius:6px!important;
  box-shadow:0 1px 0 rgba(1,4,9,.12)!important;
  font-weight:600!important;
}
#swChatMount #swChatApp .swc-btn:hover{
  background:#30363d!important;
  border-color:#8b949e!important;
  color:var(--gh-fg)!important;
}
#swChatMount #swChatApp .swc-btn.is-on{
  background:var(--gh-accent-subtle)!important;
  border-color:rgba(47,129,247,.55)!important;
  color:#79c0ff!important;
}
#swChatMount #swChatApp .swc-ico[data-close]:hover{
  background:rgba(248,81,73,.12)!important;
  border-color:rgba(248,81,73,.55)!important;
  color:#ff7b72!important;
}

/* люди */
#swChatMount #swChatApp .swc-people{
  border-bottom:1px solid var(--gh-border-muted)!important;
}
#swChatMount #swChatApp .swc-pp{
  border:1px solid var(--gh-border)!important;
  background:var(--gh-canvas-subtle)!important;
  box-shadow:0 0 0 1px rgba(1,4,9,.25)!important;
}
#swChatMount #swChatApp .swc-pp:hover{
  border-color:var(--gh-accent)!important;
  box-shadow:0 0 0 2px rgba(47,129,247,.22)!important;
}
#swChatMount #swChatApp .swc-pp span{color:#79c0ff!important}

/* лента */
#swChatMount #swChatApp .swc-list{
  scrollbar-color:var(--gh-border) transparent!important;
}
#swChatMount #swChatApp .swc-list::-webkit-scrollbar-thumb{
  background:var(--gh-border)!important;
  border-radius:999px!important;
}
#swChatMount #swChatApp .swc-list::-webkit-scrollbar-thumb:hover{background:#484f58!important}

/* сообщение — GitHub-комментарий: тёмная карточка, тонкий контур, без сдвига сетки */
#swChatMount #swChatApp .swc-msg{
  background:var(--gh-canvas-subtle)!important;
  border-radius:6px!important;
  box-shadow:0 0 0 1px var(--gh-border-muted)!important;
  transition:background .12s ease,box-shadow .12s ease!important;
}
#swChatMount #swChatApp .swc-msg + .swc-msg{
  border-top:1px solid transparent!important;
}
#swChatMount #swChatApp .swc-msg:hover{
  background:#1c2128!important;
  box-shadow:0 0 0 1px var(--gh-border)!important;
}
#swChatMount #swChatApp .swc-msg.is-pending{opacity:.72!important}
#swChatMount #swChatApp .swc-msg:has(.swc-text.mine){
  background:rgba(56,139,253,.10)!important;
  box-shadow:0 0 0 1px rgba(47,129,247,.35)!important;
}
#swChatMount #swChatApp .swc-msg:has(.swc-text.mine):hover{
  background:rgba(56,139,253,.14)!important;
}
#swChatMount #swChatApp .swc-msg .swc-av{
  border:1px solid var(--gh-border)!important;
  background:var(--gh-canvas-subtle)!important;
  box-shadow:0 0 0 2px rgba(1,4,9,.25)!important;
}
#swChatMount #swChatApp .swc-msg .swc-av.ph{
  background:#21262d!important;
  color:#79c0ff!important;
}
#swChatMount #swChatApp .swc-name{
  color:var(--gh-fg)!important;
  font-weight:600!important;
}
#swChatMount #swChatApp .swc-time{
  color:var(--gh-fg-muted)!important;
  font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace!important;
}
#swChatMount #swChatApp .swc-text{color:var(--gh-fg)!important}
#swChatMount #swChatApp .swc-text.mine{
  color:var(--gh-fg)!important;
  background:linear-gradient(90deg,rgba(56,139,253,.16),transparent 72%)!important;
  border-radius:4px!important;
}
#swChatMount #swChatApp .swc-quote{
  border-left:2px solid var(--gh-accent)!important;
  background:var(--gh-accent-subtle)!important;
  color:var(--gh-fg-muted)!important;
}
#swChatMount #swChatApp .swc-quote b{color:#79c0ff!important}
#swChatMount #swChatApp .swc-empty{color:var(--gh-fg-muted)!important}

/* ответ */
#swChatMount #swChatApp .swc-reply{
  background:var(--gh-canvas-subtle)!important;
  border:1px solid var(--gh-border)!important;
  color:var(--gh-fg-muted)!important;
}
#swChatMount #swChatApp .swc-reply button{
  background:#21262d!important;
  border:1px solid var(--gh-border)!important;
  color:var(--gh-fg-muted)!important;
}
#swChatMount #swChatApp .swc-reply button:hover{
  background:#30363d!important;
  color:var(--gh-fg)!important;
}

/* ввод */
#swChatMount #swChatApp .swc-input{
  background:#21262d!important;
  border:1px solid #484f58!important;
  color:var(--gh-fg)!important;
  border-radius:6px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
#swChatMount #swChatApp .swc-input::placeholder{color:var(--gh-fg-subtle)!important}
#swChatMount #swChatApp .swc-input:focus{
  border-color:var(--gh-accent)!important;
  box-shadow:0 0 0 3px rgba(47,129,247,.30)!important;
  caret-color:var(--gh-accent)!important;
}
#swChatMount #swChatApp .swc-input::selection{background:rgba(47,129,247,.35)!important}
#swChatMount #swChatApp .swc-send{
  background:var(--gh-success-emphasis)!important;
  border:1px solid rgba(240,246,252,.10)!important;
  color:#fff!important;
  border-radius:6px!important;
  box-shadow:0 1px 0 rgba(1,4,9,.10),inset 0 1px 0 rgba(255,255,255,.03)!important;
  font-weight:600!important;
}
#swChatMount #swChatApp .swc-send:hover{background:var(--gh-success-hover)!important}
#swChatMount #swChatApp .swc-send:active{background:#1a7f37!important}
#swChatMount #swChatApp .swc-send:disabled{opacity:.55!important}
#swChatMount #swChatApp .swc-inputrow .swc-btn.swc-ico{
  background:#21262d!important;
  border:1px solid var(--gh-border)!important;
  color:var(--gh-fg-muted)!important;
  border-radius:6px!important;
}
#swChatMount #swChatApp .swc-inputrow .swc-btn.swc-ico:hover{
  background:#30363d!important;
  border-color:#8b949e!important;
  color:var(--gh-fg)!important;
}

/* имя */
#swChatMount #swChatApp .swc-me{
  background:var(--gh-canvas-subtle)!important;
  border:1px solid var(--gh-border)!important;
  color:var(--gh-fg-muted)!important;
}
#swChatMount #swChatApp .swc-me .swc-av{
  border:1px solid var(--gh-border)!important;
  background:#21262d!important;
  color:#79c0ff!important;
}
#swChatMount #swChatApp .swc-me .who{color:var(--gh-fg-muted)!important}
#swChatMount #swChatApp .swc-me button{
  background:#21262d!important;
  border:1px solid var(--gh-border)!important;
  color:var(--gh-fg)!important;
  border-radius:6px!important;
}
#swChatMount #swChatApp .swc-me button:hover{
  background:#30363d!important;
  border-color:#8b949e!important;
}
#swChatMount #swChatApp .swc-me input{
  background:#0d1117!important;
  border:1px solid #484f58!important;
  color:var(--gh-fg)!important;
}
#swChatMount #swChatApp .swc-me input:focus{
  border-color:var(--gh-accent)!important;
  box-shadow:0 0 0 2px rgba(47,129,247,.30)!important;
}

/* вложения */
#swChatMount #swChatApp .swc-attach{
  border:1px solid var(--gh-border)!important;
  background:var(--gh-canvas-inset)!important;
  border-radius:6px!important;
  box-shadow:0 8px 24px rgba(1,4,9,.45)!important;
}
#swChatMount #swChatApp .swc-attach:hover{
  border-color:var(--gh-accent)!important;
  box-shadow:0 0 0 2px rgba(47,129,247,.18),0 8px 24px rgba(1,4,9,.5)!important;
}
#swChatMount #swChatApp .swc-preview{
  background:var(--gh-canvas-subtle)!important;
  border:1px solid var(--gh-border)!important;
  border-radius:6px!important;
}
#swChatMount #swChatApp .swc-preview .x{
  background:#21262d!important;
  border:1px solid rgba(248,81,73,.55)!important;
  color:#ff7b72!important;
}
#swChatMount #swChatApp .swc-preview .bar{
  background:linear-gradient(90deg,var(--gh-accent),rgba(47,129,247,.2))!important;
}
#swChatMount #swChatApp.is-drop{
  outline:2px dashed var(--gh-accent)!important;
  outline-offset:-6px!important;
  background:#0d1117!important;
}

/* звук */
#swChatMount #swChatApp .swc-ico[data-snd].is-on{color:var(--gh-success)!important}
#swChatMount #swChatApp .swc-ico[data-snd]:not(.is-on){color:var(--gh-fg-muted)!important}
#swChatMount #swChatApp .swc-ico svg{stroke:currentColor!important}

/* кнопка открытия (если используется вне mount) */
#swChatStarter{
  background:linear-gradient(180deg,#161b22,#0d1117)!important;
  border:1px solid #30363d!important;
  color:#e6edf3!important;
  box-shadow:0 8px 24px rgba(1,4,9,.55)!important;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif!important;
}
#swChatStarter .bd{
  background:rgba(63,185,80,.12)!important;
  border-color:rgba(63,185,80,.40)!important;
  color:#7ee787!important;
}
#swChatStarter .bd i{
  background:#3fb950!important;
  box-shadow:0 0 0 2px rgba(63,185,80,.20)!important;
}
#swChatStarter:hover{
  border-color:#8b949e!important;
  box-shadow:0 12px 32px rgba(1,4,9,.60)!important;
}

/* оверлей аватара */
#swChatAvView{background:rgba(1,4,9,.82)!important;backdrop-filter:blur(6px)!important}
#swChatAvView .big{
  border:1px solid #30363d!important;
  background:#161b22!important;
  box-shadow:0 24px 64px rgba(1,4,9,.75)!important;
}
#swChatAvView .big.ph{color:#79c0ff!important}
#swChatAvView .cap{
  background:#161b22!important;
  border:1px solid #30363d!important;
  color:#e6edf3!important;
  border-radius:6px!important;
}
#swChatAvView .up{color:#3fb950!important}
#swChatAvView .x{
  background:#21262d!important;
  border:1px solid #30363d!important;
  color:#e6edf3!important;
}
#swChatAvView .x:hover{background:#30363d!important;border-color:#8b949e!important}

/* вопрос */
#swChatAsk{background:rgba(1,4,9,.72)!important;backdrop-filter:blur(6px)!important}
#swChatAsk .card{
  background:#161b22!important;
  border:1px solid #30363d!important;
  border-radius:12px!important;
  box-shadow:0 24px 64px rgba(1,4,9,.75)!important;
}
#swChatAsk .q{color:#e6edf3!important}
#swChatAsk .s{color:#8b949e!important}
#swChatAsk button{
  background:#21262d!important;
  border:1px solid #30363d!important;
  color:#e6edf3!important;
  border-radius:6px!important;
}
#swChatAsk button:hover{background:#30363d!important;border-color:#8b949e!important}
#swChatAsk button.yes{background:#238636!important;border-color:#2ea043!important;color:#fff!important}
#swChatAsk button.yes:hover{background:#2ea043!important}

/* тост */
#swChatToast{
  background:#161b22!important;
  border:1px solid #30363d!important;
  color:#e6edf3!important;
  border-radius:6px!important;
  box-shadow:0 8px 24px rgba(1,4,9,.55)!important;
}
