.support {
  position: fixed;
  z-index: 20;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
}
.support [hidden] { display: none !important; }
.support button, .support input { font: inherit; }
.support button { cursor: pointer; }
#support-open, #support-send {
  border: 0; background: #b9321e; color: white; font-weight: 700;
}
#support-open {
  display: flex; align-items: center; gap: 8px; min-height: 48px;
  padding: 10px 17px; border-radius: 30px; box-shadow: 0 4px 18px #0003;
}
#support-panel {
  display: flex; flex-direction: column; width: min(365px, calc(100vw - 36px));
  height: min(465px, calc(100vh - 36px)); height: min(465px, calc(100dvh - 36px));
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 10px 36px #0004; overflow: hidden;
}
.support-heading {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--line);
}
#support-close {
  width: 42px; height: 42px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text); font-size: 26px;
}
.support-hint, #support-status {
  margin: 10px 16px; color: var(--muted); font-size: 14px;
}
#support-status:empty { margin: 0; }
#support-log {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 8px; padding: 12px 16px;
}
#support-log p {
  align-self: flex-start; max-width: 87%; margin: 0; padding: 8px 12px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px;
}
#support-log p.outgoing { align-self: flex-end; background: #98311f; color: white; }
#support-form { display: flex; padding: 10px; gap: 8px; border-top: 1px solid var(--line); }
#support-input {
  min-width: 0; flex: 1; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-size: 16px;
}
#support-send { border-radius: 9px; padding: 8px 13px; }
#support-send:disabled { opacity: .55; cursor: default; }
.support :focus-visible { outline: 2px solid var(--accent2); outline-offset: -2px; }
