.ilc-chat-root,
.ilc-chat-root * {
  box-sizing: border-box;
}

.ilc-chat-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483000;
  font-family: Arial, Helvetica, sans-serif;
  --ilc-accent: #4daaf2;
  --ilc-blue: var(--ilc-accent);
  --ilc-blue-dark: #318fe3;
  --ilc-line: #d9dde5;
  --ilc-text: #111827;
  --ilc-muted: #7b8494;
}

.ilc-chat-root .ilc-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.ilc-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 17px 9px 10px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #64bef8 0%, var(--ilc-blue-dark) 100%);
  box-shadow: 0 16px 36px rgba(49, 143, 227, .28), 0 4px 12px rgba(15, 23, 42, .18);
  cursor: pointer;
  line-height: 1;
}

.ilc-launcher:hover {
  transform: translateY(-1px);
  filter: brightness(1.01);
}

.ilc-chat-root.is-open .ilc-launcher {
  display: none;
}

.ilc-launcher-icon,
.ilc-title-icon,
.ilc-system-avatar {
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.92);
}

.ilc-launcher-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.ilc-launcher-copy {
  display: grid;
  gap: 3px;
  text-align: left;
}

.ilc-launcher-copy b {
  font-size: 13px;
  font-weight: 700;
}

.ilc-launcher-copy small {
  font-size: 11px;
  color: rgba(255,255,255,.86);
}

.ilc-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 420px;
  height: 540px;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 36px);
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #c6ccd8;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22), 0 4px 18px rgba(15, 23, 42, .16);
}

.ilc-panel.is-open {
  display: flex;
  animation: ilc-panel-in .18s ease-out;
}

@keyframes ilc-panel-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ilc-titlebar {
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 0 8px 0 11px;
  color: #fff;
  background: linear-gradient(180deg, #70c5fb 0%, var(--ilc-blue-dark) 100%);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.ilc-title-left {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ilc-title-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.ilc-title-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.ilc-title-copy strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0;
}

.ilc-title-copy em {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, .88);
  font-style: normal;
  font-size: 11px;
}

.ilc-window-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.ilc-action {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  color: #2b8bd8;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}

.ilc-action:hover {
  background: #eff8ff;
}

.ilc-transcript {
  position: relative;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, #f7f9fc 0%, #f4f6fa 100%);
  border-bottom: 1px solid var(--ilc-line);
}

.ilc-transcript::-webkit-scrollbar {
  width: 12px;
}

.ilc-transcript::-webkit-scrollbar-track {
  background: #edf0f5;
}

.ilc-transcript::-webkit-scrollbar-thumb {
  background: #9aa3af;
  border-radius: 12px;
  border: 3px solid #edf0f5;
}

.ilc-welcome-card {
  margin: 0 0 14px;
  padding: 12px 13px;
  color: #111827;
  background: #fff;
  border: 1px solid #cfd6e1;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  white-space: normal;
  word-break: break-word;
}

.ilc-welcome-card a {
  color: #0f73c9;
  font-weight: 600;
  text-decoration: none;
}

.ilc-welcome-card a:hover {
  text-decoration: underline;
}

.ilc-system-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
}

.ilc-system-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  margin-top: 2px;
  background: #51baf0;
}

.ilc-system-bubble {
  position: relative;
  max-width: calc(100% - 48px);
  min-height: 64px;
  padding: 10px 12px;
  color: #111827;
  background: #fff;
  border: 1px solid #d6dce6;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
  font-size: 13px;
  line-height: 1.45;
}

.ilc-system-bubble::before,
.ilc-system-bubble::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 100%;
  border-style: solid;
}

.ilc-system-bubble::before {
  border-width: 8px 9px 8px 0;
  border-color: transparent #d6dce6 transparent transparent;
}

.ilc-system-bubble::after {
  margin-top: 1px;
  border-width: 7px 8px 7px 0;
  border-color: transparent #fff transparent transparent;
}

.ilc-system-bubble div {
  color: #334155;
  font-size: 12px;
}

.ilc-system-bubble span {
  color: #4b5563;
  font-weight: 700;
}

.ilc-system-bubble p {
  margin: 4px 0 0;
}

.ilc-message {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  margin: 10px 0;
}

.ilc-message .ilc-bubble {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}

.ilc-message time {
  margin-top: 4px;
  font-size: 10px;
  color: #8a93a3;
}

.ilc-message-visitor {
  align-items: flex-end;
  margin-left: auto;
}

.ilc-message-visitor .ilc-bubble {
  color: #fff;
  background: linear-gradient(180deg, #58b6f5 0%, var(--ilc-blue-dark) 100%);
  border-bottom-right-radius: 4px;
}

.ilc-message-agent,
.ilc-message-system,
.ilc-message-bot {
  align-items: flex-start;
  margin-right: auto;
}

.ilc-message-agent .ilc-bubble,
.ilc-message-system .ilc-bubble,
.ilc-message-bot .ilc-bubble {
  color: #111827;
  background: #fff;
  border: 1px solid #dfe3eb;
  border-bottom-left-radius: 4px;
}

.ilc-message.is-pending {
  opacity: .76;
}

.ilc-message.is-error .ilc-bubble {
  background: #ef4444;
  color: #fff;
}

.ilc-composer {
  position: relative;
  flex: 0 0 auto;
  min-height: 150px;
  background: #fff;
  padding-bottom: 0;
}

.ilc-toolbar {
  position: relative;
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: #f2f4f7;
  border-bottom: 1px solid #e2e6ee;
}

.ilc-emoji-toggle {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #b8c0cc;
  border-radius: 50%;
  color: #6b7280;
  background: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.ilc-emoji-toggle:hover,
.ilc-emoji-toggle:focus {
  color: #1f79c9;
  border-color: #86bff0;
  outline: none;
}

.ilc-toolbar-note {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #8a93a3;
  font-size: 12px;
}

.ilc-emoji-picker {
  position: absolute;
  left: 8px;
  bottom: calc(100% + 6px);
  display: none;
  grid-template-columns: repeat(6, 32px);
  gap: 4px;
  padding: 8px;
  background: #fff;
  border: 1px solid #d8dde7;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .18);
  z-index: 3;
}

.ilc-emoji-picker.is-open {
  display: grid;
}

.ilc-emoji-picker button {
  width: 32px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.ilc-emoji-picker button:hover {
  background: #eef6ff;
}

.ilc-input-row {
  position: relative;
  display: block;
  padding: 8px 10px 48px;
  min-height: 104px;
}

.ilc-input-row textarea {
  width: 100%;
  min-height: 72px;
  max-height: 106px;
  resize: none;
  padding: 7px 104px 24px 0;
  border: 0;
  outline: none;
  color: #1f2937;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.ilc-input-row textarea::placeholder {
  color: #8a93a3;
}

.ilc-send {
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 94px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 28px 0 12px;
  border: 1px solid #55a9ed;
  border-radius: 7px;
  color: #fff;
  background: #58adf2;
  box-shadow: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.4px;
  line-height: 30px;
  cursor: pointer;
  overflow: hidden;
}

.ilc-send::before {
  content: "";
  position: absolute;
  top: 0;
  right: 27px;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, .65);
}

.ilc-send::after {
  content: "^";
  position: absolute;
  top: 0;
  right: 0;
  width: 27px;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.ilc-send span {
  display: block;
  transform: translateY(0);
}

.ilc-send:hover {
  background: #4da6f0;
}

.ilc-send:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.ilc-error {
  position: absolute;
  left: 10px;
  right: 112px;
  bottom: 41px;
  min-height: 14px;
  margin: 0;
  color: #dc2626;
  font-size: 11px;
}

.ilc-powered {
  position: absolute;
  left: 14px;
  bottom: 9px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: #a6acb6;
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
}

.ilc-powered::before {
  content: none;
}

.ilc-powered span,
.ilc-powered strong {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
}

@media (max-width: 520px) {
  .ilc-chat-root {
    right: 10px;
    bottom: 10px;
  }

  .ilc-panel {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    height: min(560px, calc(100vh - 16px));
    max-width: none;
    max-height: none;
    border-radius: 10px;
  }

  .ilc-title-copy strong {
    font-size: 13px;
  }

  .ilc-message {
    max-width: 88%;
  }

  .ilc-send {
    width: 92px;
    right: 7px;
    bottom: 6px;
  }

  .ilc-powered {
    font-size: 11px;
  }

}

/* v0.6.0 flat, compact business-chat refinements */
.ilc-launcher {
  min-height: 48px;
  padding: 8px 15px 8px 9px;
  background: var(--ilc-blue);
  box-shadow: 0 8px 20px rgba(40, 112, 180, .20);
}

.ilc-launcher-icon {
  width: 31px;
  height: 31px;
  flex-basis: 31px;
}

.ilc-launcher-copy b {
  font-size: 13px;
}

.ilc-launcher-copy small {
  display: none;
}

.ilc-panel {
  width: 410px;
  height: 490px;
  border-radius: 6px;
  border-color: #cfd4dc;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
  background: #fff;
}

.ilc-panel.is-open {
  animation: ilc-panel-in .12s ease-out;
}

.ilc-titlebar {
  height: 38px;
  flex-basis: 38px;
  padding: 0 7px 0 10px;
  background: var(--ilc-blue);
  border-bottom: 1px solid #3999e4;
}

.ilc-title-left {
  gap: 7px;
}

.ilc-title-icon {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  border-width: 1px;
}

.ilc-title-copy strong {
  font-size: 13px;
  font-weight: 600;
  max-width: 270px;
}

.ilc-action {
  width: 18px;
  height: 18px;
  font-size: 12px;
  line-height: 16px;
  border-color: rgba(255,255,255,.75);
  box-shadow: none;
}

.ilc-transcript {
  padding: 10px 12px 9px;
  background: #f5f5f5;
  border-bottom-color: #d8d8d8;
}

.ilc-welcome-card {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  border-color: #cdcdcd;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.5;
}

.ilc-system-row {
  gap: 8px;
  margin-bottom: 10px;
}

.ilc-system-avatar {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-width: 1px;
  background: var(--ilc-blue);
}

.ilc-system-avatar svg {
  width: 17px;
  height: 17px;
}

.ilc-system-bubble {
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 6px;
  box-shadow: none;
  font-size: 12.5px;
}

.ilc-system-bubble div {
  font-size: 11.5px;
}

.ilc-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 10px 36px;
}

.ilc-quick-replies button {
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid #cfd8e3;
  border-radius: 14px;
  color: #2f5d88;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
}

.ilc-quick-replies button:hover,
.ilc-quick-replies button:focus {
  color: #fff;
  background: var(--ilc-blue);
  border-color: var(--ilc-blue);
  outline: none;
}

.ilc-message {
  margin: 8px 0;
}

.ilc-message .ilc-bubble {
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: none;
  font-size: 12.5px;
}

.ilc-message-visitor .ilc-bubble {
  background: var(--ilc-blue);
}

.ilc-composer {
  min-height: 124px;
}

.ilc-toolbar {
  min-height: 31px;
  padding: 4px 9px;
  background: #eeeeee;
  border-bottom-color: #dddddd;
}

.ilc-emoji-toggle {
  width: 25px;
  height: 25px;
  font-size: 16px;
}

.ilc-toolbar-note {
  font-size: 11px;
}

.ilc-input-row {
  padding: 7px 9px 40px;
  min-height: 91px;
}

.ilc-input-row textarea {
  min-height: 56px;
  max-height: 82px;
  padding: 3px 90px 18px 0;
  font-size: 15px;
  line-height: 1.38;
}

.ilc-send {
  right: 8px;
  bottom: 7px;
  width: 80px;
  height: 26px;
  padding: 0 23px 0 10px;
  border-radius: 7px;
  font-size: 12px;
  letter-spacing: 1.1px;
  line-height: 26px;
  background: #58adf2;
}

.ilc-send::before {
  right: 23px;
}

.ilc-send::after {
  width: 23px;
  font-size: 12px;
}

.ilc-error {
  right: 96px;
  bottom: 35px;
  font-size: 10px;
}

.ilc-powered {
  left: 11px;
  bottom: 8px;
  font-size: 10.5px;
  color: #a0a6ae;
}

@media (max-width: 520px) {
  .ilc-panel {
    height: min(510px, calc(100vh - 16px));
  }
  .ilc-title-copy strong {
    max-width: calc(100vw - 120px);
    font-size: 12.5px;
  }
  .ilc-send {
    width: 78px;
    height: 26px;
  }
}

/* v0.6.1: balanced visitor alignment and automatic operator messages */
.ilc-message {
  max-width: 76%;
}

.ilc-message-visitor {
  max-width: 72%;
  margin-left: auto;
  margin-right: 6px;
  align-items: flex-end;
}

.ilc-message-agent,
.ilc-message-system,
.ilc-message-bot {
  max-width: 76%;
  margin-left: 0;
  margin-right: auto;
}

.ilc-message-auto {
  margin-top: 7px;
  margin-bottom: 7px;
}

.ilc-message-auto .ilc-bubble {
  color: #1f2937;
  background: #fff;
  border: 1px solid #d6dce6;
  border-radius: 7px;
  box-shadow: none;
}

.ilc-auto-messages {
  margin: 2px 0 9px 36px;
}

.ilc-auto-messages .ilc-message {
  max-width: calc(100% - 8px);
}

@media (max-width: 520px) {
  .ilc-message-visitor,
  .ilc-message-agent,
  .ilc-message-system,
  .ilc-message-bot {
    max-width: 82%;
  }
  .ilc-auto-messages {
    margin-left: 34px;
  }
}

/* v0.6.2: flat business-chat alignment and timestamps for automatic operator messages */
.ilc-transcript {
  padding: 10px 11px 9px;
}

.ilc-message {
  position: relative;
  margin: 7px 0;
  max-width: 78%;
}

.ilc-message .ilc-bubble {
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: none;
}

.ilc-message time {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1;
  color: #9aa2ad;
}

.ilc-message-visitor {
  max-width: 73%;
  margin-left: auto;
  margin-right: 8px;
  padding-left: 0;
  align-items: flex-end;
}

.ilc-message-visitor .ilc-bubble {
  color: #fff;
  background: var(--ilc-blue);
  border: 1px solid #4ca7ed;
  border-radius: 6px 6px 2px 6px;
}

.ilc-message-visitor time {
  text-align: right;
  padding-right: 1px;
}

.ilc-message-agent,
.ilc-message-bot,
.ilc-message-auto {
  max-width: 76%;
  margin-left: 0;
  margin-right: auto;
  padding-left: 35px;
  align-items: flex-start;
}

.ilc-message-system {
  max-width: 76%;
  margin-left: 0;
  margin-right: auto;
  align-items: flex-start;
}

.ilc-message-agent::before,
.ilc-message-bot::before,
.ilc-message-auto::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ilc-blue);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 0 0 1px #d6dce6;
}

.ilc-message-agent::after,
.ilc-message-bot::after,
.ilc-message-auto::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  border-bottom: 0;
}

.ilc-message-agent .ilc-bubble,
.ilc-message-system .ilc-bubble,
.ilc-message-bot .ilc-bubble,
.ilc-message-auto .ilc-bubble {
  color: #202833;
  background: #fff;
  border: 1px solid #d5dbe5;
  border-radius: 6px 6px 6px 2px;
}

.ilc-message-agent time,
.ilc-message-bot time,
.ilc-message-auto time {
  padding-left: 1px;
}

.ilc-auto-messages {
  margin: 2px 0 8px;
}

.ilc-auto-messages .ilc-message {
  max-width: 76%;
}

@media (max-width: 520px) {
  .ilc-message-visitor {
    max-width: 78%;
    margin-right: 5px;
  }
  .ilc-message-agent,
  .ilc-message-bot,
  .ilc-message-auto {
    max-width: 80%;
    padding-left: 32px;
  }
  .ilc-message-agent::before,
  .ilc-message-bot::before,
  .ilc-message-auto::before {
    width: 24px;
    height: 24px;
  }
}

/* v0.6.3: visual balance, fixed visitor bubble blue, cleaner footer/input bar */
.ilc-message-visitor .ilc-bubble {
  color: #fff !important;
  background: #5aaef3 !important;
  border-color: #4ea7ed !important;
}

.ilc-toolbar {
  justify-content: flex-start;
  gap: 6px;
}

.ilc-toolbar-note {
  display: none !important;
}

.ilc-input-row {
  padding: 7px 9px 36px;
  min-height: 84px;
}

.ilc-input-row textarea {
  min-height: 50px;
  max-height: 78px;
  padding: 3px 82px 14px 0;
  font-size: 14px;
  line-height: 1.35;
}

.ilc-send {
  right: 8px;
  bottom: 6px;
  width: 72px;
  height: 24px;
  padding: 0 21px 0 9px;
  border-radius: 5px;
  font-size: 11px;
  letter-spacing: .7px;
  line-height: 24px;
}

.ilc-send::before {
  right: 21px;
}

.ilc-send::after {
  width: 21px;
  font-size: 10px;
}

.ilc-send span {
  transform: translateY(0);
}

.ilc-error:empty {
  display: none !important;
}

.ilc-error:not(:empty) {
  display: block;
  left: 10px;
  right: 88px;
  bottom: 34px;
  font-size: 10px;
}

.ilc-powered {
  left: 10px;
  bottom: 7px;
  font-size: 9.5px;
  line-height: 1;
  gap: 3px;
  opacity: .9;
}

.ilc-powered span,
.ilc-powered strong {
  font-size: inherit;
  font-weight: 400;
  color: inherit;
}

.ilc-message-visitor {
  margin-right: 7px;
}

@media (max-width: 520px) {
  .ilc-input-row {
    min-height: 82px;
    padding-bottom: 35px;
  }
  .ilc-send {
    width: 68px;
    height: 23px;
    line-height: 23px;
    font-size: 10.5px;
  }
  .ilc-send::before {
    right: 20px;
  }
  .ilc-send::after {
    width: 20px;
  }
}


/* v0.6.4: business-style send hover, footer sizing, toolbar note restored */
.ilc-toolbar-note {
  display: inline-block;
  max-width: calc(100% - 42px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #8a93a3;
  font-size: 12px;
  line-height: 25px;
}

.ilc-send {
  width: 92px;
  height: 30px;
  bottom: 6px;
  padding: 0;
  border-color: #4b9de4;
  border-radius: 7px;
  background: #55aaf0;
  font-size: 13px;
  letter-spacing: .8px;
  line-height: 30px;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ilc-send span {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% - 28px);
  height: 100%;
  display: grid;
  place-items: center;
  transform: none;
  transition: background-color .18s ease;
}

.ilc-send i {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 100%;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(255,255,255,.6);
  font-style: normal;
  font-size: 13px;
  transition: background-color .18s ease;
}

.ilc-send::before,
.ilc-send::after {
  content: none;
}

.ilc-send:hover,
.ilc-send:focus {
  background: #3295e7;
  border-color: #2386d6;
  box-shadow: 0 2px 6px rgba(34, 128, 210, .28);
  transform: translateY(-1px);
  outline: none;
}

.ilc-send:hover span,
.ilc-send:focus span {
  background: rgba(255,255,255,.06);
}

.ilc-send:hover i,
.ilc-send:focus i {
  background: rgba(0, 83, 154, .16);
}

.ilc-powered {
  font-size: 11.5px;
  color: #8e96a3;
  bottom: 8px;
}

.ilc-powered span {
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
}

.ilc-input-row textarea {
  padding-right: 104px;
}

@media (max-width: 520px) {
  .ilc-send {
    width: 88px;
    height: 29px;
  }
  .ilc-toolbar-note {
    font-size: 11.5px;
  }
}

/* v0.6.5: keep toolbar assistant label visible and balanced */
.ilc-toolbar-note {
  display: inline-block !important;
  max-width: calc(100% - 42px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #798493;
  font-size: 12px;
  line-height: 25px;
}

/* v0.6.7: unified send hover, launcher position, idle restart prompt */
.ilc-chat-root {
  right: var(--ilc-side, 18px);
  bottom: var(--ilc-bottom, 18px);
}

.ilc-chat-root.ilc-pos-bottom-left {
  left: var(--ilc-side, 18px);
  right: auto;
}

.ilc-chat-root.ilc-pos-bottom-right {
  right: var(--ilc-side, 18px);
  left: auto;
}

.ilc-chat-root.ilc-pos-bottom-left .ilc-panel {
  left: var(--ilc-side, 18px);
  right: auto;
  bottom: var(--ilc-bottom, 18px);
}

.ilc-chat-root.ilc-pos-bottom-right .ilc-panel {
  right: var(--ilc-side, 18px);
  left: auto;
  bottom: var(--ilc-bottom, 18px);
}

.ilc-send:hover,
.ilc-send:focus,
.ilc-send:hover span,
.ilc-send:focus span,
.ilc-send:hover i,
.ilc-send:focus i {
  background: #3295e7;
}

.ilc-send:hover i,
.ilc-send:focus i {
  border-left-color: rgba(255, 255, 255, .55);
}

.ilc-restart-notice {
  margin: 6px 8px 0;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #d5e8fa;
  background: #f4f9fe;
  color: #607083;
  font-size: 12px;
  line-height: 1.35;
}

.ilc-restart-notice[hidden] {
  display: none !important;
}

.ilc-restart-notice button {
  flex: 0 0 auto;
  border: 1px solid #4c9ee7;
  border-radius: 3px;
  background: #5aaef3;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 5px 8px;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}

.ilc-restart-notice button:hover,
.ilc-restart-notice button:focus {
  background: #3295e7;
  border-color: #2386d6;
  outline: none;
}


/* v0.6.8: green unified Send hover and middle launcher positions */
.ilc-send:hover,
.ilc-send:focus,
.ilc-send:hover span,
.ilc-send:focus span,
.ilc-send:hover i,
.ilc-send:focus i {
  background: #4caf3d !important;
  color: #fff;
}

.ilc-send:hover,
.ilc-send:focus {
  border-color: #3f9c33 !important;
  box-shadow: 0 2px 7px rgba(63, 156, 51, .28);
  transform: translateY(-1px);
  outline: none;
}

.ilc-send:hover i,
.ilc-send:focus i {
  border-left-color: rgba(255, 255, 255, .58);
}

.ilc-chat-root.ilc-pos-middle-right {
  right: var(--ilc-side, 18px);
  left: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.ilc-chat-root.ilc-pos-middle-left {
  left: var(--ilc-side, 18px);
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.ilc-chat-root.ilc-pos-middle-right .ilc-panel {
  right: var(--ilc-side, 18px);
  left: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.ilc-chat-root.ilc-pos-middle-left .ilc-panel {
  left: var(--ilc-side, 18px);
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.ilc-chat-root.ilc-pos-middle-right .ilc-panel.is-open,
.ilc-chat-root.ilc-pos-middle-left .ilc-panel.is-open {
  animation: none;
  transform: translateY(-50%);
}

@media (max-width: 520px) {
  .ilc-chat-root.ilc-pos-middle-right,
  .ilc-chat-root.ilc-pos-middle-left {
    top: auto;
    bottom: 10px;
    transform: none;
  }
  .ilc-chat-root.ilc-pos-middle-right {
    right: 10px;
    left: auto;
  }
  .ilc-chat-root.ilc-pos-middle-left {
    left: 10px;
    right: auto;
  }
  .ilc-chat-root.ilc-pos-middle-right .ilc-panel,
  .ilc-chat-root.ilc-pos-middle-left .ilc-panel,
  .ilc-chat-root.ilc-pos-middle-right .ilc-panel.is-open,
  .ilc-chat-root.ilc-pos-middle-left .ilc-panel.is-open {
    top: auto;
    bottom: 8px;
    left: 8px;
    right: 8px;
    transform: none;
  }
}

/* v0.6.9: Zoosnet-style idle prompt and send dropdown polish */
.ilc-restart-notice {
  display: block;
  max-width: 82%;
  margin: 10px 0 10px 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a93a3;
  font-size: 14px;
  line-height: 1.55;
}
.ilc-restart-notice[hidden] {
  display: none !important;
}
.ilc-restart-line {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin: 4px 0 14px;
}
.ilc-restart-icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e1e4e8;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
}
.ilc-restart-notice button {
  min-width: 132px;
  height: 40px;
  margin-top: 2px;
  border: 1px solid #4b9de4;
  border-radius: 7px;
  background: #55aaf0;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.ilc-restart-notice button:hover,
.ilc-restart-notice button:focus {
  background: #3295e7;
  border-color: #2386d6;
  box-shadow: 0 2px 7px rgba(34, 128, 210, .24);
  transform: translateY(-1px);
  outline: none;
}

.ilc-send {
  width: 92px;
  height: 34px;
  bottom: 4px;
  border-radius: 7px;
  border-color: #4b9de4;
  background: #55aaf0 !important;
  overflow: visible;
  transform: none;
}
.ilc-send span {
  width: calc(100% - 28px);
  background: #55aaf0 !important;
  border-radius: 7px 0 0 7px;
  transition: background-color .16s ease;
}
.ilc-send i {
  width: 28px;
  background: #18bf20 !important;
  border-left: 1px solid rgba(255, 255, 255, .65);
  border-radius: 0 7px 7px 0;
  color: #fff;
  cursor: pointer;
  transition: background-color .16s ease, filter .16s ease;
}
.ilc-send:hover,
.ilc-send:focus {
  border-color: #178d21 !important;
  box-shadow: 0 2px 7px rgba(24, 191, 32, .28);
  transform: none;
}
.ilc-send:hover span,
.ilc-send:focus span {
  background: #18bf20 !important;
}
.ilc-send:hover i,
.ilc-send:focus i,
.ilc-send.is-menu-open i {
  background: #0ea414 !important;
  filter: brightness(1.02);
}
.ilc-send:disabled span,
.ilc-send:disabled i {
  opacity: .72;
}
.ilc-send-menu {
  position: absolute;
  right: 8px;
  bottom: 38px;
  width: 210px;
  display: none;
  border: 1px solid #1d2327;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  z-index: 8;
}
.ilc-send-menu.is-open {
  display: block;
}
.ilc-send-menu button {
  width: 100%;
  height: 42px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: #fff;
  color: #000;
  text-align: left;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.ilc-send-menu button + button {
  border-top: 1px solid #eee;
}
.ilc-send-menu button:hover,
.ilc-send-menu button:focus {
  background: #f2f4f7;
  outline: none;
}
.ilc-send-menu b {
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #eef0f2;
  color: #607083;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.ilc-send-menu span {
  display: block;
  padding-right: 12px;
  background: transparent !important;
}

@media (max-width: 520px) {
  .ilc-restart-notice {
    max-width: calc(100% - 24px);
    margin-left: 12px;
    font-size: 13px;
  }
  .ilc-send-menu {
    right: 6px;
    bottom: 40px;
    width: 188px;
  }
}

/* v0.7.0: idle prompt alignment and 商务通 send/menu behavior */
.ilc-restart-notice {
  width: auto;
  max-width: calc(100% - 96px);
  margin: 8px 0 12px 44px;
  padding: 0 0 2px;
  border: 0 !important;
  background: transparent !important;
  color: #7e8794;
  font-size: 14px;
  line-height: 1.55;
}
.ilc-restart-notice[hidden] {
  display: none !important;
}
.ilc-restart-line {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin: 0 0 12px;
}
.ilc-restart-line + .ilc-restart-line {
  align-items: center;
  margin-top: 2px;
  margin-bottom: 0;
}
.ilc-restart-icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e0e3e7;
  color: #fff;
  font: 700 13px/1 Arial, Helvetica, sans-serif;
}
.ilc-restart-line + .ilc-restart-line .ilc-restart-icon {
  margin-top: 0;
}
.ilc-restart-notice button {
  width: 122px;
  height: 38px;
  margin: 0;
  border: 1px solid #4b9de4;
  border-radius: 7px;
  background: #55aaf0;
  color: #fff;
  font: 500 16px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.ilc-restart-notice button:hover,
.ilc-restart-notice button:focus {
  background: #18bf20;
  border-color: #18bf20;
  box-shadow: 0 2px 8px rgba(24, 191, 32, .28);
  transform: translateY(-1px);
  outline: none;
}

.ilc-send {
  width: 92px;
  height: 34px;
  bottom: 4px;
  border: 1px solid #4b9de4 !important;
  border-radius: 7px;
  background: #55aaf0 !important;
  box-shadow: none;
  overflow: visible;
  transform: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.ilc-send span,
.ilc-send i,
.ilc-send.is-menu-open i {
  background: #55aaf0 !important;
  color: #fff;
}
.ilc-send span {
  width: calc(100% - 28px);
  border-radius: 7px 0 0 7px;
  font-size: 17px;
  letter-spacing: 2px;
}
.ilc-send i {
  width: 28px;
  border-left: 1px solid rgba(255, 255, 255, .72);
  border-radius: 0 7px 7px 0;
  cursor: pointer;
  font-size: 16px;
}
.ilc-send:hover,
.ilc-send:focus {
  border-color: #18bf20 !important;
  box-shadow: 0 2px 8px rgba(24, 191, 32, .28);
  transform: translateY(-1px);
}
.ilc-send:hover span,
.ilc-send:focus span,
.ilc-send:hover i,
.ilc-send:focus i {
  background: #18bf20 !important;
}
.ilc-send:disabled,
.ilc-send:disabled span,
.ilc-send:disabled i {
  opacity: .72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.ilc-send-menu {
  right: 8px;
  bottom: 40px;
  width: 210px;
  border: 1px solid #1f2933;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}
.ilc-send-menu button {
  height: 42px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  font-size: 15px;
}
.ilc-send-menu button:hover,
.ilc-send-menu button:focus {
  background: #f4f6f8;
}
.ilc-send-menu b {
  background: #eef0f2;
  color: #667085;
}

@media (max-width: 520px) {
  .ilc-restart-notice {
    max-width: calc(100% - 24px);
    margin-left: 12px;
    font-size: 13px;
  }
  .ilc-restart-notice button {
    width: 116px;
    height: 36px;
    font-size: 15px;
  }
  .ilc-send-menu {
    right: 6px;
    bottom: 40px;
    width: 188px;
  }
}


/* v0.7.1: separate Send / arrow hover and keep idle notice after latest messages */
.ilc-send,
.ilc-send:hover,
.ilc-send:focus {
  background: #55aaf0 !important;
  border-color: #4b9de4 !important;
  box-shadow: none !important;
  transform: none !important;
}
.ilc-send span,
.ilc-send i,
.ilc-send:hover span,
.ilc-send:hover i,
.ilc-send:focus span,
.ilc-send:focus i,
.ilc-send.is-menu-open i {
  background: #55aaf0 !important;
  color: #fff !important;
}
.ilc-send span:hover,
.ilc-send span:focus-visible {
  background: #18bf20 !important;
}
.ilc-send i:hover,
.ilc-send i:focus-visible {
  background: #18bf20 !important;
  border-left-color: rgba(255,255,255,.72) !important;
}
.ilc-send span:hover,
.ilc-send i:hover {
  box-shadow: inset 0 0 0 999px rgba(0,0,0,.02);
}
.ilc-send:disabled span,
.ilc-send:disabled i,
.ilc-send:disabled:hover span,
.ilc-send:disabled:hover i {
  background: #55aaf0 !important;
  opacity: .72;
}
.ilc-restart-notice.is-visible {
  display: block !important;
}


/* v0.7.2: keep previous transcript on chat restart; smaller 商务通-style send controls and menu */
.ilc-send {
  width: 84px !important;
  height: 30px !important;
  bottom: 5px !important;
  border-radius: 6px !important;
}
.ilc-send span {
  width: calc(100% - 25px) !important;
  height: 100% !important;
  min-height: 0 !important;
  border-radius: 6px 0 0 6px !important;
  font-size: 15px !important;
  letter-spacing: 2px !important;
  line-height: 30px !important;
}
.ilc-send i {
  width: 25px !important;
  height: 100% !important;
  min-height: 0 !important;
  border-radius: 0 6px 6px 0 !important;
  font-size: 14px !important;
  line-height: 30px !important;
}
.ilc-send span:hover,
.ilc-send span:focus-visible {
  background: #18bf20 !important;
}
.ilc-send i:hover,
.ilc-send i:focus-visible,
.ilc-send.is-menu-open i {
  background: #18bf20 !important;
}
.ilc-send-menu {
  width: 165px !important;
  right: 8px !important;
  bottom: 36px !important;
  border-color: #2f343a !important;
  box-shadow: 0 5px 14px rgba(0,0,0,.16) !important;
}
.ilc-send-menu button {
  height: 32px !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 8px !important;
  font-size: 13px !important;
}
.ilc-send-menu b {
  width: 30px !important;
  height: 32px !important;
  font-size: 15px !important;
}
.ilc-send-menu span {
  padding-right: 8px !important;
}
@media (max-width: 520px) {
  .ilc-send {
    width: 82px !important;
    height: 30px !important;
    bottom: 5px !important;
  }
  .ilc-send-menu {
    width: 160px !important;
    bottom: 36px !important;
  }
}


/* v1.0.1: make idle Chat again button more compact and remove redundant admin visitor card in JS */
.ilc-restart-notice button {
  width: auto !important;
  min-width: 86px !important;
  height: 30px !important;
  padding: 0 14px !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  line-height: 28px !important;
  font-weight: 500 !important;
}
.ilc-restart-line + .ilc-restart-line {
  margin-top: 0 !important;
}
