.ix-guide {
  position: fixed;
  z-index: 120;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  justify-items: end;
  gap: 10px;
  color: #f4f6ff;
  font: 14px/1.5 system-ui, sans-serif;
}
.ix-guide [hidden] { display: none !important; }
.ix-guide button, .ix-guide input { font: inherit; }
.ix-guide button { cursor: pointer; }
.ix-guide :focus-visible { outline: 2px solid #a3f7ff; outline-offset: 3px; }
.ix-launch {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #8599ff;
  border-radius: 18px;
  padding: 9px 14px;
  background: linear-gradient(135deg, #302e70, #14223f);
  color: #e8faff;
  box-shadow: 0 8px 24px #03081988;
}
.ix-launch svg { width: 32px; height: 32px; color: #a3f7ff; }
.ix-panel {
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 32px));
  height: min(555px, calc(100dvh - 90px));
  min-height: 0;
  overflow: hidden;
  border: 1px solid #52618e;
  border-radius: 20px;
  background: #10182f;
  box-shadow: 0 14px 45px #030819aa;
}
.ix-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: linear-gradient(120deg, #222d52, #352752);
}
.ix-panel-head h2 { font-size: 1.06rem; line-height: 1.35; margin: 2px 0 0; }
.ix-panel-head small { color: #a3f7ff; letter-spacing: .1em; }
.ix-guide .ix-close, .ix-guide .ix-suggestion {
  color: #eef4ff;
  background: #1b2848;
  border: 1px solid #62709a;
  border-radius: 9px;
  padding: 5px 8px;
}
.ix-thread { min-height: 0; flex: 1; overflow: auto; padding: 12px; }
.ix-message { margin: 0 0 9px; border-radius: 12px; padding: 9px 11px; background: #1b2848; overflow-wrap: anywhere; }
.ix-message p { margin: 0; white-space: pre-line; }
.ix-message-user { margin-left: 20px; background: #302a59; }
.ix-message a { display: inline-block; color: #a3f7ff; margin-top: 5px; text-decoration: underline; }
.ix-suggestions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.ix-compose { display: flex; gap: 6px; padding: 10px; border-top: 1px solid #43527c; }
.ix-compose input { min-width: 0; flex: 1; border: 1px solid #6475a0; border-radius: 9px; padding: 8px; color: #f1f4ff; background: #0c142a; }
.ix-compose button { border: 0; border-radius: 9px; background: #a3f7ff; color: #10182f; padding: 8px 10px; font-weight: 750; }
