.assistant-launch {
  position: fixed; z-index: 10; inset: auto 1.2rem 1.2rem auto;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .45rem 1rem; border: 1px solid #5984a5; border-radius: 999px;
  background: #122d43; color: #fff; font-size: .9rem; font-weight: 730;
  box-shadow: 0 4px 0 #0b1d2c, 0 8px 22px #071b34a3;
}
.assistant-launch:hover { background: #204e71; }
.assistant-launch svg { color: var(--amber); }
.assistant-dialog {
  position: fixed; inset: auto 1.2rem 1.2rem auto; margin: 0;
  width: min(26rem, calc(100% - 2.4rem)); max-width: none; max-height: none; overflow: hidden;
  padding: 0; border: 1px solid #90abb9; border-radius: 15px;
  background: #f2f7fa; color: var(--ink); box-shadow: 0 15px 54px #0817276e;
}
.assistant-dialog::backdrop { background: #09192744; }
.assistant-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: min(35rem, calc(100dvh - 2.4rem)); }
.assistant-header { display: grid; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; padding: .7rem .85rem; background: #122d43; color: #fff; }
.assistant-header img { object-fit: contain; }
.assistant-header h2 { font-size: 1.16rem; line-height: 1.2; letter-spacing: -.025em; }
.assistant-header p { color: #d7e7f2; font-size: .77rem; }
.assistant-close { display: grid; place-items: center; width: 44px; height: 44px; background: #254960; border: 1px solid #66899d; border-radius: 9px; }
.assistant-close:hover { background: #325c76; }
.assistant-content { min-height: 0; padding: 1rem; overflow: auto; overscroll-behavior: contain; }
.assistant-log { display: flex; flex-direction: column; gap: .6rem; }
.assistant-message {
  align-self: flex-start; max-width: 94%; padding: .6rem .72rem;
  border: 1px solid #d4e3ec; border-radius: 4px 12px 12px; background: #fff;
  font-size: .9rem; line-height: 1.49; white-space: pre-wrap; overflow-wrap: anywhere;
}
.assistant-customer { align-self: flex-end; border-color: #a0c4dc; border-radius: 12px 4px 12px 12px; background: #dceef9; }
.assistant-urgent { border-color: #cc9b59; background: #fff2da; }
.assistant-suggestions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; }
.assistant-suggestions button {
  min-height: 36px; padding: .25rem .61rem; border: 1px solid #a8c4d5; border-radius: 999px;
  background: #ecf6fc; color: #153a55; font-size: .77rem; font-weight: 680;
}
.assistant-suggestions button:hover { background: #d9ebf6; }
.assistant-footer { padding: .55rem .85rem .85rem; border-top: 1px solid #d1e0e8; background: #fff; }
.assistant-status:not(:empty) { margin: .1rem 0 .45rem; color: #254c65; font-size: .76rem; }
.assistant-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; }
.assistant-input input {
  min-width: 0; min-height: 44px; padding: .4rem .57rem; border: 1px solid #9ab5c4;
  border-radius: 7px; background: #f7fbfd; font-size: 1rem;
}
.assistant-input button, .assistant-estimate { min-height: 44px; padding: .38rem .65rem; border: 1px solid #1c465f; border-radius: 7px; background: #122d43; color: #fff; font-size: .8rem; font-weight: 700; }
.assistant-input button:hover:not(:disabled) { background: #214e6e; }
.assistant-privacy { margin: .41rem 0; color: #425b68; font-size: .72rem; line-height: 1.35; }
.assistant-actions { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.assistant-estimate { border-color: #d7a750; background: var(--amber); color: var(--deep); }
.assistant-estimate:hover { background: var(--amber-hover); }
.assistant-actions a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .28rem; color: #204d69; font-size: .8rem; font-weight: 720; }
.assistant-actions a:hover { text-decoration: underline; }
.assistant-actions .assistant-emergency { padding-inline: .65rem; border-radius: 7px; background: #a22f25; color: #fff; }
.assistant-dialog :focus-visible { outline: 2px solid #22639a; outline-offset: 2px; }
.assistant-header :focus-visible { outline-color: var(--amber); }
@media (max-width: 720px) {
  .assistant-launch { right: .8rem; bottom: calc(66px + env(safe-area-inset-bottom)); }
  .assistant-dialog { inset: auto .55rem max(.55rem, env(safe-area-inset-bottom)) .55rem; width: auto; }
  .assistant-shell { height: min(33rem, calc(100dvh - 2.4rem)); }
}
