/* Axiom Research V9.7.1 — participant chat contrast + dark gradient fix */
:root{
  --ax-chat-bg:#07101f;
  --ax-chat-bg-2:#0b1630;
  --ax-chat-card:#0e1d38;
  --ax-chat-card-2:#111f3d;
  --ax-chat-border:rgba(111,160,255,.22);
  --ax-chat-text:#f7fbff;
  --ax-chat-sub:#b9cced;
  --ax-chat-cyan:#25d4ff;
  --ax-chat-blue:#4f7cff;
  --ax-chat-violet:#9b5cff;
  --ax-chat-pink:#de57ff;
}

/* Main participant chat */
.axiom-chat-launch{
  color:#fff!important;
  background:linear-gradient(135deg,var(--ax-chat-cyan),var(--ax-chat-blue) 48%,var(--ax-chat-violet))!important;
  border:1px solid rgba(255,255,255,.18)!important;
  box-shadow:0 16px 44px rgba(45,110,255,.38),0 0 0 5px rgba(79,124,255,.08)!important;
}
.axiom-chat-panel{
  color:var(--ax-chat-text)!important;
  background:linear-gradient(165deg,#06101f 0%,#0a1630 55%,#101632 100%)!important;
  border:1px solid rgba(92,145,255,.28)!important;
  box-shadow:0 26px 80px rgba(0,0,0,.58),0 0 45px rgba(91,88,255,.12)!important;
}
.axiom-chat-panel>header{
  color:#fff!important;
  background:
    radial-gradient(circle at 85% 0%,rgba(217,87,255,.28),transparent 42%),
    linear-gradient(110deg,#0b1b3a,#13305b 54%,#34226b)!important;
  border-bottom:1px solid rgba(114,170,255,.22)!important;
}
.axiom-chat-panel>header strong{color:#fff!important}
.axiom-chat-panel header small{color:#cfe0ff!important;opacity:1!important}
.axiom-chat-close{color:#fff!important;background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.14)!important}
.axiom-chat-tabs{
  background:#08152b!important;
  border-bottom:1px solid var(--ax-chat-border)!important;
  gap:6px!important;
  padding:7px!important;
}
.axiom-chat-tabs button{
  color:#a9bde0!important;
  background:#0d1a33!important;
  border:1px solid rgba(111,160,255,.12)!important;
  border-radius:10px!important;
  padding:10px 7px!important;
}
.axiom-chat-tabs button:hover{color:#fff!important;border-color:rgba(61,210,255,.4)!important}
.axiom-chat-tabs button.active{
  color:#fff!important;
  background:linear-gradient(120deg,rgba(37,212,255,.18),rgba(79,124,255,.26),rgba(155,92,255,.24))!important;
  border-color:rgba(86,178,255,.55)!important;
  box-shadow:inset 0 0 24px rgba(79,124,255,.08)!important;
}
.axiom-chat-pane{color:var(--ax-chat-text)!important;background:transparent!important}
.axiom-chat-messages,.axiom-user-chat-messages{
  background:
    radial-gradient(circle at 95% 5%,rgba(155,92,255,.10),transparent 28%),
    linear-gradient(180deg,#071222,#09162b)!important;
}
.chat-start,.chat-compose{
  background:#08152a!important;
  border-top:1px solid var(--ax-chat-border)!important;
}
.axiom-chat .form-control,
.axiom-chat .form-select,
.study-team-chat .form-control,
.study-team-chat .form-select{
  color:#fff!important;
  background:#09162b!important;
  border:1px solid rgba(111,160,255,.26)!important;
  box-shadow:none!important;
}
.axiom-chat .form-control::placeholder,
.study-team-chat .form-control::placeholder{color:#86a0ca!important;opacity:1!important}
.axiom-chat .form-control:focus,
.study-team-chat .form-control:focus{
  color:#fff!important;
  background:#0b1931!important;
  border-color:#36c9ff!important;
  box-shadow:0 0 0 .2rem rgba(37,212,255,.11)!important;
}
.axiom-chat .btn-axiom,
.study-team-chat .btn-primary{
  color:#fff!important;
  border:0!important;
  background:linear-gradient(105deg,#16bdf2,#4f7cff 50%,#a149ff)!important;
  box-shadow:0 10px 24px rgba(57,113,255,.24)!important;
}
.chat-bubble{
  color:#edf6ff!important;
  background:linear-gradient(145deg,#111f3b,#0e1a32)!important;
  border:1px solid rgba(127,161,222,.18)!important;
  box-shadow:0 8px 22px rgba(0,0,0,.14)!important;
}
.chat-bubble.mine{
  color:#fff!important;
  background:linear-gradient(135deg,#126eaa,#4f57d8 58%,#743bb6)!important;
  border-color:rgba(104,213,255,.36)!important;
}
.chat-bubble.support{
  color:#eff7ff!important;
  background:linear-gradient(135deg,#10213f,#16254a)!important;
  border-color:rgba(61,210,255,.24)!important;
}
.chat-bubble.system,.chat-system{
  color:#bed2f4!important;
  background:rgba(14,30,56,.78)!important;
  border:1px solid rgba(111,160,255,.14)!important;
  border-radius:10px!important;
  padding:7px 10px!important;
}
.axiom-user-chat-head{
  color:#fff!important;
  background:linear-gradient(100deg,#0a1730,#102044)!important;
  border-bottom:1px solid var(--ax-chat-border)!important;
}
.axiom-user-chat-head strong{color:#fff!important}
.axiom-user-chat-head small{color:#a9c0e6!important}
.user-chat-bubble{
  color:#eef7ff!important;
  background:linear-gradient(145deg,#101e39,#0c1930)!important;
  border-color:rgba(122,157,217,.18)!important;
}
.user-chat-bubble.mine{
  color:#fff!important;
  background:linear-gradient(135deg,#0d749f,#315bc4 48%,#6d3bc0)!important;
  border-color:rgba(62,210,255,.28)!important;
}
.user-chat-bubble b{color:#72ddff!important}.user-chat-bubble small{color:#9db5db!important}
.axiom-user-chat-notice{
  color:#d9e8ff!important;
  background:linear-gradient(135deg,#0c1b34,#101d3b)!important;
  border-top:1px solid var(--ax-chat-border)!important;
}
.axiom-user-chat-notice strong{color:#fff!important}.axiom-user-chat-notice small{color:#a9bfdf!important}
.axiom-user-chat-guest{color:#b8cae8!important}.axiom-user-chat-guest strong{color:#fff!important}.axiom-user-chat-guest p{color:#a8bfdf!important}

/* Study-specific participant chat */
.study-team-chat-launch{
  color:#fff!important;
  background:linear-gradient(120deg,#0daee9,#476cff 54%,#8b4cff)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  box-shadow:0 16px 42px rgba(53,103,255,.34)!important;
}
.study-team-chat-panel{
  color:#f5f9ff!important;
  background:linear-gradient(160deg,#06101f,#0a1730 58%,#111835)!important;
  border:1px solid rgba(105,153,255,.28)!important;
  box-shadow:0 24px 70px rgba(0,0,0,.58),0 0 42px rgba(94,77,255,.12)!important;
}
.study-team-chat-panel header{
  color:#fff!important;
  background:linear-gradient(110deg,#0a1a36,#133059 52%,#36206e)!important;
  border-bottom:1px solid rgba(105,153,255,.2)!important;
}
.study-team-chat-panel header strong{color:#fff!important}.study-team-chat-panel header small{color:#c9dbf8!important}
.study-team-chat-panel header button{color:#fff!important;background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.12)!important}
.study-chat-tabs{
  background:#08152a!important;
  border-bottom:1px solid var(--ax-chat-border)!important;
  padding:7px!important;
  gap:6px!important;
}
.study-chat-tabs button{
  color:#aac1e4!important;
  background:#0d1b34!important;
  border:1px solid rgba(111,160,255,.12)!important;
  border-radius:10px!important;
  padding:10px 7px!important;
}
.study-chat-tabs button.active{
  color:#fff!important;
  background:linear-gradient(120deg,rgba(37,212,255,.17),rgba(79,124,255,.25),rgba(155,92,255,.23))!important;
  border-color:rgba(67,205,255,.46)!important;
}
.study-team-chat-note{
  color:#bdd0ef!important;
  background:#09162b!important;
  border-bottom:1px solid var(--ax-chat-border)!important;
}
.study-team-chat-note strong{color:#fff!important}
.study-team-chat-messages{
  background:
    radial-gradient(circle at 100% 0%,rgba(155,92,255,.09),transparent 28%),
    linear-gradient(180deg,#071222,#09162b)!important;
}
.study-team-chat-panel form{background:#08152a!important;border-top:1px solid var(--ax-chat-border)!important}
.study-chat-bubble{
  color:#edf6ff!important;
  background:linear-gradient(145deg,#101f3b,#0d1a32)!important;
  border:1px solid rgba(124,158,218,.18)!important;
  box-shadow:0 7px 20px rgba(0,0,0,.14)!important;
}
.study-chat-bubble.mine{
  color:#fff!important;
  background:linear-gradient(135deg,#0d749f,#365fca 50%,#7139be)!important;
  border-color:rgba(56,209,255,.3)!important;
}
.study-chat-bubble.admin{border-left:4px solid #26d4ff!important}
.study-chat-bubble.researcher{border-left:4px solid #b45cff!important}
.study-chat-meta b{color:#fff!important}
.study-chat-meta span{color:#dbe8ff!important;background:rgba(79,124,255,.22)!important}
.study-chat-bubble p{color:#edf6ff!important}.study-chat-bubble small{color:#9fb7dc!important}

.axiom-chat-panel *,.study-team-chat-panel *{scrollbar-color:#3b6ea8 #071426}
