/* 25.11.2026: раздел обращений — по дизайну сайта */
/* ---------- чат ---------- */
html:not(.lc-home) body #root .lc-chat { gap: 14px !important; padding: 4px 2px !important; }
html:not(.lc-home) body #root .lc-msg { gap: 10px !important; }
html:not(.lc-home) body #root .lc-msg .lc-name { font-size: 13px !important; font-weight: 600 !important; }
html:not(.lc-home) body #root .lc-role { height: 20px !important; padding: 0 8px !important; font-size: 10.5px !important; font-weight: 500 !important; }
html:not(.lc-home) body #root .lc-bub {
  max-width: 78% !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .035) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06) !important;
}
html:not(.lc-home) body #root .lc-msg.is-staff .lc-bub { background: rgba(255, 255, 255, .055) !important; }
html:not(.lc-home) body #root .lc-msg.is-sys .lc-bub { background: rgba(255, 255, 255, .02) !important; }
html:not(.lc-home) body #root .lc-time { font-size: 11px !important; color: rgba(255, 255, 255, .32) !important; }
html:not(.lc-home) body #root .lc-input {
  border-radius: 14px !important;
  background: #101011 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1) !important;
}
html:not(.lc-home) body #root .lc-input:focus { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3) !important; }
html:not(.lc-home) body #root .lc-send {
  width: 40px !important; height: 40px !important; min-width: 40px !important;
  border-radius: 999px !important; background: #fff !important; color: #0b0b0d !important;
}
html:not(.lc-home) body #root .lc-send svg { color: #0b0b0d !important; }
html:not(.lc-home) body #root .lc-chat-title { font-size: 19px !important; display: flex !important; align-items: center !important; gap: 8px !important; }
html:not(.lc-home) body #root .lc-chat-title > span {
  display: inline-block !important; margin: 0 !important;
  font-weight: 500 !important; color: rgba(255, 255, 255, .4) !important;
}

/* ---------- создание обращения ---------- */
html:not(.lc-home) body #root .tn-input,
html:not(.lc-home) body #root .tn-area,
html:not(.lc-home) body #root .pg-dd-btn { border-radius: 12px !important; }
html:not(.lc-home) body #root .tn-go {
  height: 48px !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #0b0b0d !important;
  font-weight: 600 !important;
}
html:not(.lc-home) body #root .tn-go:hover { background: #f2f2f4 !important; }

/* ---------- светлая тема ---------- */
html.light body #root .lc-bub { background: rgba(24, 24, 27, .03) !important; box-shadow: inset 0 0 0 1px rgba(24, 24, 27, .08) !important; }
html.light body #root .lc-msg.is-staff .lc-bub { background: rgba(24, 24, 27, .06) !important; }
html.light body #root .lc-time { color: rgba(24, 24, 27, .4) !important; }
html.light body #root .lc-input { background: #f6f6f7 !important; box-shadow: inset 0 0 0 1px rgba(24, 24, 27, .12) !important; color: #111114 !important; }
html.light body #root .lc-send { background: #18181b !important; color: #fff !important; }
html.light body #root .lc-send svg { color: #fff !important; }
html.light body #root .lc-chat-title > span { color: rgba(24, 24, 27, .45) !important; }
html.light body #root .tn-go { background: #18181b !important; color: #fff !important; }

/* ---------- выпадающие списки на странице обращения ---------- */
html:not(.lc-home) body #root .pg-dd-menu {
  margin-top: 6px !important;
  padding: 6px !important;
  border-radius: 12px !important;
  background: #0f0f11 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 16px 40px rgba(0,0,0,.55) !important;
  overflow: hidden !important;
}
html:not(.lc-home) body #root .pg-dd-item {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 34px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: rgba(255,255,255,.75) !important;
  font-size: 13px !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background .14s ease, color .14s ease !important;
}
html:not(.lc-home) body #root .pg-dd-item:hover { background: rgba(255,255,255,.06) !important; color: #fff !important; }
html:not(.lc-home) body #root .pg-dd-item.sel { background: rgba(255,255,255,.1) !important; color: #fff !important; font-weight: 600 !important; }
html:not(.lc-home) body #root .tn-act { display: flex !important; align-items: center !important; gap: 8px !important; flex-wrap: wrap !important; }
html:not(.lc-home) body #root .tn-go:disabled { opacity: .5 !important; }
html:not(.lc-home) body #root .tn-file {
  height: 46px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.05) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1) !important;
  color: rgba(255,255,255,.8) !important;
  font-size: 13px !important;
}
html:not(.lc-home) body #root .tn-file:hover { background: rgba(255,255,255,.1) !important; color: #fff !important; }
html.light body #root .pg-dd-menu { background: #fff !important; box-shadow: inset 0 0 0 1px rgba(24,24,27,.1), 0 16px 40px rgba(0,0,0,.18) !important; }
html.light body #root .pg-dd-item { color: rgba(24,24,27,.75) !important; }
html.light body #root .pg-dd-item:hover { background: rgba(24,24,27,.05) !important; color: #111114 !important; }
html.light body #root .pg-dd-item.sel { background: rgba(24,24,27,.08) !important; color: #111114 !important; }
html.light body #root .tn-file { background: rgba(24,24,27,.04) !important; box-shadow: inset 0 0 0 1px rgba(24,24,27,.1) !important; color: rgba(24,24,27,.8) !important; }

/* ---------- без «рамки в рамке» у «Прикрепить файл» ---------- */
html:not(.lc-home) body #root .tn-files {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* ---------- анимации ---------- */
html:not(.lc-home) body #root .tn-input,
html:not(.lc-home) body #root .tn-area,
html:not(.lc-home) body #root .pg-dd-btn {
  transition: box-shadow .18s ease, background-color .18s ease !important;
}
html:not(.lc-home) body #root .tn-input:hover,
html:not(.lc-home) body #root .tn-area:hover,
html:not(.lc-home) body #root .pg-dd-btn:hover {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2) !important;
}
html:not(.lc-home) body #root .tn-input:focus,
html:not(.lc-home) body #root .tn-area:focus {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.34) !important;
}
html:not(.lc-home) body #root .tn-go,
html:not(.lc-home) body #root .tn-file,
html:not(.lc-home) body #root .pg-dd-btn {
  transition: transform .16s ease, box-shadow .2s ease, background-color .16s ease, color .16s ease !important;
}
html:not(.lc-home) body #root .tn-go:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.4) !important;
}
html:not(.lc-home) body #root .tn-go:active:not(:disabled),
html:not(.lc-home) body #root .tn-file:active {
  transform: scale(.985) !important;
}
html:not(.lc-home) body #root .tn-file:hover {
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
}
html:not(.lc-home) body #root .pg-dd-menu {
  animation: lcTkDrop .18s cubic-bezier(.16,1,.3,1) both !important;
  transform-origin: top center !important;
}
@keyframes lcTkDrop {
  from { opacity: 0; transform: translateY(-4px) scale(.99); }
  to { opacity: 1; transform: none; }
}
html:not(.lc-home) body #root .tn-main,
html:not(.lc-home) body #root .tn-side {
  transition: box-shadow .2s ease, background-color .2s ease !important;
}
html.light body #root .tn-input:hover,
html.light body #root .tn-area:hover,
html.light body #root .pg-dd-btn:hover {
  box-shadow: inset 0 0 0 1px rgba(24,24,27,.22) !important;
}
html.light body #root .tn-input:focus,
html.light body #root .tn-area:focus {
  box-shadow: inset 0 0 0 1px rgba(24,24,27,.34) !important;
}
html.light body #root .tn-file:hover {
  background: rgba(24,24,27,.08) !important;
  color: #111114 !important;
}
@media (prefers-reduced-motion: reduce) {
  html:not(.lc-home) body #root .pg-dd-menu { animation: none !important; }
  html:not(.lc-home) body #root .tn-go,
  html:not(.lc-home) body #root .tn-file,
  html:not(.lc-home) body #root .tn-input,
  html:not(.lc-home) body #root .tn-area,
  html:not(.lc-home) body #root .pg-dd-btn { transition: none !important; }
}
