/* Minimal chat widget — Etika bot */
.etika-chat-launcher{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(232,237,240,.95);
  backdrop-filter: blur(8px);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.etika-chat-panel{
  position: fixed;
  right: 18px;
  bottom: 74px;
  width: min(380px, calc(100vw - 36px));
  height: min(540px, calc(100vh - 120px));
  z-index: 9999;
  display: none;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(232,237,240,.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,.20);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.etika-chat-panel.is-open{ display: flex; flex-direction: column; }

.etika-chat-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.etika-chat-title{
  font-weight: 650;
  font-size: 14px;
  color: #161616;
}

.etika-chat-sub{
  font-size: 12px;
  color: rgba(0,0,0,.62);
}

.etika-chat-close{
  border: 1px solid rgba(0,0,0,.18);
  background: transparent;
  border-radius: 12px;
  padding: 6px 10px;
  cursor: pointer;
}

.etika-chat-body{
  padding: 10px 12px;
  overflow: auto;
  flex: 1;
}

.etika-chat-msg{
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.65);
  color: #161616;
  font-size: 14px;
  line-height: 1.45;
}

.etika-chat-msg.is-user{
  background: rgba(42,111,122,.10);
}

.etika-chat-meta{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(0,0,0,.60);
}

.etika-chat-sources{
  margin-top: 8px;
  padding-left: 16px;
  font-size: 12px;
}

.etika-chat-sources a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.etika-chat-foot{
  border-top: 1px solid rgba(0,0,0,.12);
  padding: 10px 12px;
  display:flex;
  gap: 8px;
}

.etika-chat-input{
  flex:1;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.18);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: rgba(255,255,255,.75);
}

.etika-chat-send{
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.18);
  padding: 10px 12px;
  cursor: pointer;
  background: rgba(255,255,255,.55);
}

.etika-chat-send:disabled{
  opacity: .6;
  cursor: not-allowed;
}

