.dashboard-page .chat-launcher {
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 17px;
  background: #ff942f;
  color: #21180e;
  border: 1px solid #a35109;
  font-weight: 700;
  box-shadow: 0 3px 14px #111b2a40;
}
.dashboard-page .chat-launcher svg { width: 26px; height: 26px; }
.dashboard-page .chat-launcher span { margin: 0; }
.dashboard-page .chat-launcher .chat-label-short { display: none; }
#support-chat-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) auto;
  margin: 0;
  padding: 0;
  width: min(420px, calc(100vw - 32px));
  height: min(680px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  overflow: hidden;
  background: var(--portal-panel);
  border: 1px solid var(--dash-control-line);
  border-radius: 20px;
  color: var(--ink);
}
#support-chat-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
#support-chat-dialog::backdrop { background: #09142055; backdrop-filter: none; }
.chat-dialog-head, .chat-dialog-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 14px;
}
.chat-dialog-head { justify-content: space-between; border-bottom: 1px solid var(--line); }
.chat-dialog-head h2 { margin: 0; font-size: 18px; }
.chat-dialog-head button, .chat-dialog-actions :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--dash-link);
  font: inherit;
  cursor: pointer;
}
.chat-dialog-head button { min-width: 44px; color: var(--ink); font-size: 28px; }
.chat-dialog-body { min-height: 0; position: relative; }
.chat-dialog-body iframe { width: 100%; height: 100%; display: block; border: 0; background: #fff; }
.chat-dialog-body p:not([hidden]) {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  margin: 0;
  padding: 20px;
  background: var(--portal-panel);
  color: var(--dash-muted);
  text-align: center;
}
.chat-dialog-actions { justify-content: flex-end; border-top: 1px solid var(--line); }
.chat-dialog-actions :is(a, button) { padding-inline: 6px; font-size: 14px; text-decoration: underline; }
#support-chat-dialog :is(a, button):focus-visible { outline: 2px solid var(--dash-focus); outline-offset: -2px; border-radius: 4px; }
@media (max-width: 600px) {
  .dashboard-page .chat-launcher {
    width: auto;
    padding-inline: 12px;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .dashboard-page .chat-launcher .chat-label-full { display: none; }
  .dashboard-page .chat-launcher .chat-label-short { display: inline; }
  #support-chat-dialog {
    inset: auto 0 0;
    width: 100%;
    height: min(760px, calc(100dvh - env(safe-area-inset-top)));
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
}
