.ics-chat-launcher {
  position: fixed; right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 40; display: flex; gap: .6rem; align-items: center; min-height: 3.25rem;
  padding: .75rem 1.1rem; border: 1px solid rgba(255,255,255,.3); border-radius: 2rem;
  color: #fff; background: #131a21; box-shadow: 0 5px 24px #11182030; cursor: pointer;
  font: 600 .95rem var(--sans, Arial, sans-serif);
}
.ics-chat-launcher[hidden], .ics-chat-intro[hidden], .ics-chat-frame-host[hidden] { display: none; }
.ics-chat-launcher:hover { background: #29343e; }
.ics-chat-symbol { color: #e8af90; font-size: 1.3rem; line-height: 1; }
.ics-chat-ai { padding: .12rem .35rem; border: 1px solid #ffffff50; border-radius: .3rem; font-size: .65rem; letter-spacing: .04em; }
.ics-chat-open { overflow: hidden; }
.ics-chat-dialog {
  inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
  margin: 0; padding: 0; width: min(25rem, calc(100vw - 2rem)); max-width: none;
  max-height: calc(100dvh - 2rem); border: 1px solid #dedbd5; border-radius: 1rem;
  color: #131a21; background: #fff; box-shadow: 0 16px 64px #11182030;
  font: .94rem/1.5 var(--sans, Arial, sans-serif); overflow: auto;
}
.ics-chat-dialog[open] { display: flex; flex-direction: column; }
.ics-chat-dialog::backdrop { background: #11182030; }
.ics-chat-heading { display: flex; align-items: center; justify-content: space-between; flex: none; padding: .85rem 1rem; color: white; background: #131a21; }
.ics-chat-heading strong { display: block; font-size: 1.08rem; }
.ics-chat-heading span { display: block; color: #d1d6da; font-size: .75rem; }
.ics-chat-heading button { width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; color: #fff; background: #ffffff12; cursor: pointer; font: 1.8rem/1 Arial, sans-serif; }
.ics-chat-intro { display: grid; gap: 1.1rem; padding: 1.5rem; overflow-y: auto; }
.ics-chat-welcome { font: 2rem/1.05 var(--serif, Georgia, serif); }
.ics-chat-notice { padding: .9rem; border-radius: .6rem; background: #f7f5f0; color: #535b61; font-size: .78rem; }
.ics-chat-start { border: 0; border-radius: 2rem; padding: .85rem 1rem; color: #fff; background: #131a21; font: 600 .95rem var(--sans, Arial, sans-serif); cursor: pointer; }
.ics-chat-start:hover { background: #29343e; }
.ics-chat-footer { flex: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .55rem 1rem; padding: .85rem 1rem; border-top: 1px solid #e6e4df; background: #f7f5f0; font-size: .75rem; }
.ics-chat-footer a { color: #303c47; text-underline-offset: .18rem; }
.ics-chat-footer span { width: 100%; color: #626970; font-size: .7rem; }
.ics-chat-frame-host { min-height: 16rem; height: min(30rem, calc(100dvh - 12rem)); flex: 1 1 auto; }
.ics-chat-frame-host iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.ics-chat-dialog button:focus-visible, .ics-chat-launcher:focus-visible { outline: 3px solid #c7734f; outline-offset: 3px; }
.ics-chat-noscript { padding: 1rem; text-align: center; }
@media (max-width: 480px) {
  .ics-chat-launcher { right: 1rem; bottom: max(.85rem, env(safe-area-inset-bottom)); min-height: 3rem; }
  .ics-chat-dialog { inset: auto .5rem max(.5rem, env(safe-area-inset-bottom)) .5rem; width: auto; max-height: calc(100dvh - 1rem); }
  .ics-chat-intro { padding: 1.2rem; gap: 1rem; }
  .ics-chat-started { height: calc(100dvh - 1rem); }
}
