.iq-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid #48a96d66;
  border-radius: 12px;
  background: linear-gradient(135deg, #21482e, #15271d);
  color: #81d49e;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -1px;
}
.iq-mark > span {
  position: absolute;
  top: 2px;
  right: 3px;
  font-size: 11px;
  line-height: 1;
}
.iq-launch {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  color: var(--tx);
  border: 1px solid #48a96d80;
  border-radius: 18px;
  background: #17231c;
  box-shadow: 0 8px 35px #0007;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
  transition:
    transform 0.16s,
    background 0.16s;
}
.iq-launch:hover {
  background: #203528;
  transform: translateY(-2px);
}
.iq-launch small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #a6c5af;
  font-weight: 400;
}
.iq-panel {
  position: fixed;
  z-index: 80;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: 420px;
  display: flex;
  flex-direction: column;
  border: 1px solid #34453a;
  border-radius: 20px;
  background: #111713;
  box-shadow: -10px 10px 50px #0005;
  overflow: hidden;
  color: var(--tx);
  font-size: 13px;
  line-height: 1.55;
}
.iq-panel[hidden],
.iq-launch[hidden],
.iq-backdrop[hidden] {
  display: none;
}
.iq-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #ffffff0e;
  background: linear-gradient(115deg, #1c2d21, #121b15);
}
.iq-header h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.5px;
}
.iq-header p {
  margin: 1px 0 0;
  color: #a5b5a9;
  font-size: 12px;
}
.iq-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: transparent;
  color: #bbc8bf;
  border: 1px solid #ffffff20;
  border-radius: 9px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.iq-header .iq-icon {
  margin-left: auto;
}
.iq-icon:hover {
  background: #ffffff0d;
  color: white;
}
.iq-toolbar {
  display: flex;
  gap: 10px;
  padding: 12px 20px;
  align-items: center;
}
.iq-toolbar select {
  min-width: 0;
  flex: 1;
  background: #18201b;
  color: #bfcdc3;
  border: 1px solid #ffffff14;
  padding: 8px 10px;
  border-radius: 9px;
  font: inherit;
}
.iq-context {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px 12px;
  color: #95ab9c;
  font-size: 11px;
  flex-shrink: 0;
}
.iq-context b {
  font-weight: 500;
  color: #c5d1c9;
}
.iq-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--ac);
  border-radius: 50%;
}
.iq-messages {
  min-height: 80px;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  padding: 6px 20px 20px;
  scrollbar-width: thin;
  scrollbar-color: #43564a transparent;
}
.iq-welcome {
  padding: 32px 8px 12px;
}
.iq-welcome .iq-mark {
  width: 52px;
  height: 52px;
  font-size: 22px;
  margin-bottom: 28px;
}
.iq-welcome .eyebrow {
  font-size: 9px;
  color: #79bd90;
  letter-spacing: 1.6px;
}
.iq-welcome h3 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.18;
  margin: 12px 0 16px;
}
.iq-welcome p {
  color: #a1b1a6;
  font-size: 14px;
  max-width: 300px;
}
.iq-welcome-note {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #ffffff12;
  padding-top: 20px;
  margin-top: 30px;
  font-size: 12px;
  color: #8ca594;
}
.iq-welcome-note svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ac);
  stroke-width: 1.5;
}
.iq-suggestions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 10px 20px 12px;
  border-top: 1px solid #ffffff0d;
}
.iq-suggestions:empty {
  display: none;
}
.iq-suggestions button {
  border: 1px solid #385641;
  background: #1c2b21;
  color: #b9d8c3;
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  text-align: left;
}
.iq-suggestions button:hover {
  background: #284332;
  border-color: #5b996c;
}
.iq-form {
  padding: 0 20px 8px;
}
.iq-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #526758;
  background: #1a231d;
}
.iq-compose:focus-within {
  border-color: var(--ac);
  box-shadow: 0 0 0 2px #48a96d22;
}
.iq-compose textarea {
  width: 100%;
  min-width: 0;
  resize: vertical;
  max-height: 150px;
  min-height: 42px;
  background: transparent;
  color: #ebf4ee;
  font: inherit;
  line-height: 1.5;
  border: 0;
  outline: 0;
  padding: 1px 2px;
}
.iq-compose textarea::placeholder {
  color: #93a599;
}
.iq-send {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--ac);
  color: #071c10;
  cursor: pointer;
}
.iq-send svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transform: rotate(-90deg);
}
.iq-panel button:disabled,
.iq-panel textarea:disabled {
  opacity: 0.5;
  cursor: wait;
}
.iq-hint {
  display: block;
  color: #7c9485;
  font-size: 10px;
  margin-top: 7px;
}
.iq-form .error:not(:empty) {
  margin: 8px 0;
  font-size: 12px;
}
.iq-about {
  border-top: 1px solid #ffffff0b;
  padding: 10px 20px 12px;
  font-size: 10px;
  color: #94aa9b;
}
.iq-about summary {
  cursor: pointer;
}
.iq-about p {
  padding-top: 8px;
  line-height: 1.6;
  font-size: 11px;
}
.iq-history-note {
  font-size: 10px;
  color: #90a096;
  margin: 0 0 18px;
}
.iq-turn {
  margin-bottom: 28px;
  overflow-wrap: anywhere;
}
.iq-question {
  border: 1px solid #42654c;
  background: #213728;
  border-radius: 13px 13px 3px 13px;
  padding: 11px 14px;
  margin-left: 25px;
  margin-bottom: 20px;
}
.iq-question > span {
  font-size: 10px;
  color: #a4c9b0;
}
.iq-question p {
  margin: 3px 0 0;
  white-space: pre-wrap;
  color: #e4f0e8;
}
.iq-answer-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6ebc87;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 9px;
}
.iq-answer-label > span {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
  color: #8b9e92;
}
.iq-answer h3 {
  font-size: 17px;
  letter-spacing: -0.25px;
  margin: 0 0 10px;
}
.iq-answer > p {
  color: #bfcdc4;
  margin: 0 0 14px;
  white-space: pre-wrap;
}
.iq-points {
  padding-left: 18px;
  color: #c9d4cd;
  margin: 14px 0;
}
.iq-points li {
  padding-left: 2px;
  margin-bottom: 10px;
  white-space: pre-wrap;
}
.iq-excerpts {
  list-style: none;
  padding: 0;
}
.iq-excerpts li {
  border-left: 2px solid #426f50;
  background: #ffffff03;
  padding: 10px 12px;
  font-size: 12px;
}
.iq-sources {
  border: 1px solid #ffffff13;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 14px 0;
  background: #ffffff03;
}
.iq-sources summary {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #8eaa98;
  cursor: pointer;
}
.iq-sources a {
  display: block;
  font-size: 12px;
  text-decoration: none;
  color: #a9d4b7;
  margin-top: 10px;
}
.iq-sources a:hover span {
  text-decoration: underline;
}
.iq-sources small {
  display: block;
  color: #8b9c91;
  font-size: 10px;
  margin-top: 2px;
}
.iq-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}
.iq-links .btn {
  font-size: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
  white-space: normal;
  text-align: left;
  height: auto;
}
.iq-links small {
  width: 100%;
  font-size: 10px;
  font-weight: 400;
  color: #a4b2a9;
}
.iq-feedback {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 14px;
  color: #8b9c91;
  font-size: 10px;
}
.iq-feedback button {
  color: #aebdb3;
  background: transparent;
  border: 1px solid #ffffff1c;
  border-radius: 5px;
  cursor: pointer;
  font-size: 10px;
  padding: 3px 8px;
}
.iq-feedback button[aria-pressed="true"] {
  background: #264a31;
  color: #bce4c8;
  border-color: #48a96d;
}
.iq-pending {
  color: #9fc2ac;
  padding: 12px;
  background: #213728;
  border-radius: 10px;
  font-size: 12px;
}
.iq-home {
  border: 1px solid #3e644b;
  border-radius: 16px;
  padding: 24px;
  background: linear-gradient(125deg, #1c3023, #121b16);
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.iq-home h2 {
  font-size: 19px;
  margin: 0 0 5px;
  letter-spacing: -0.4px;
}
.iq-home p {
  color: #a4b7ab;
  margin: 0;
  font-size: 13px;
}
.iq-home .btn {
  margin-left: auto;
  white-space: nowrap;
}
.iq-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  width: 100%;
  color: #bad7c4;
  background: #1d3024;
  border: 1px solid #3b5945;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 13px;
  margin-bottom: 14px;
}
.iq-nav .iq-mark {
  width: 28px;
  height: 28px;
  font-size: 12px;
  border-radius: 8px;
}
.iq-nav .iq-mark > span {
  font-size: 8px;
}
.iq-backdrop {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: #0009;
  backdrop-filter: blur(3px);
}
@media (min-width: 1400px) {
  body.iq-open .main {
    margin-right: 448px;
  }
}
@media (max-width: 900px) {
  .iq-panel {
    top: 10px;
    right: 10px;
    bottom: 10px;
    width: min(440px, calc(100vw - 20px));
  }
  body.iq-open {
    overflow: hidden;
  }
  .iq-launch {
    right: 16px;
    bottom: 18px;
  }
  .iq-launch small {
    display: none;
  }
  .iq-home {
    flex-wrap: wrap;
  }
  .iq-home .btn {
    margin-left: 58px;
  }
  .iq-welcome {
    padding-top: 20px;
  }
}
@media (max-width: 600px) {
  .iq-launch {
    bottom: 78px;
    padding: 9px 13px 9px 9px;
    border-radius: 14px;
  }
  .iq-launch .iq-mark {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .iq-panel {
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .iq-header {
    padding: 14px 18px;
  }
  .iq-home {
    padding: 18px;
    gap: 12px;
  }
  .iq-home > div {
    flex: 1;
    min-width: 180px;
  }
  .iq-home .btn {
    margin-left: 0;
  }
  .iq-about {
    padding-bottom: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .iq-launch {
    transition: none;
  }
}

.iq-form .error:empty {
  display: none;
}

.iq-citation { color: var(--accent, #48a96d); font-weight: 700; text-decoration: none; white-space: nowrap; }
.iq-citation:hover { text-decoration: underline; }
.iq-answer-engine { display: block; font-size: 10px; color: #86ac96; margin: 6px 0 12px; }
.iq-connection-state { display: flex; align-items: center; gap: 16px; }
.iq-settings .grid2 { align-items: start; }
.iq-settings input { width: 100%; }
.iq-settings form .actions { flex-wrap: wrap; }
.iq-privacy p { line-height: 1.7; margin-top: 16px; color: #a3b1a8; }
.iq-about .link { display: inline-block; padding: 0 15px 14px; }
.iq-privacy .link { overflow-wrap: anywhere; }
