/* A small contact launcher on the homepage's right edge, with a native disclosure fallback. */
.support-widget {
  --support-radius: 16px;
  --support-control-radius: var(--nav-control-radius, 10px);
  --support-duration: 200ms;
  --support-shadow: var(--nav-panel-shadow);
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  color: var(--ce-ink);
}
.support-disclosure { position: relative; }
.support-launcher {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 72px;
  min-height: 80px;
  padding: 12px 8px;
  border-radius: var(--support-radius);
  background: var(--ce-bg);
  box-shadow: var(--support-shadow);
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  transition: background-color var(--support-duration) var(--ce-ease), color var(--support-duration) var(--ce-ease), transform var(--support-duration) var(--ce-ease);
}
.support-launcher::-webkit-details-marker { display: none; }
.support-launcher::marker { content: ""; }
.support-launcher .icon { width: 24px; height: 24px; color: var(--ce-accent-hover); }
.support-launcher .support-launcher-close { display: none; }
.support-launcher:hover { background: var(--ce-accent-soft); transform: translateY(-2px); }
.support-disclosure[open] .support-launcher { background: var(--ce-accent-soft); }
.support-disclosure[open] .support-launcher-open { display: none; }
.support-disclosure[open] .support-launcher-close { display: block; }
.support-panel {
  position: absolute;
  right: calc(100% + 16px);
  bottom: 0;
  width: 320px;
  max-height: calc(100dvh - 64px - env(safe-area-inset-bottom, 0px));
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--support-radius);
  background: var(--ce-bg);
  box-shadow: var(--support-shadow);
  animation: support-reveal 240ms var(--ce-ease) both;
}
.support-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.support-panel h2 { font-size: 18px; font-weight: 650; line-height: 1.5; letter-spacing: -.025em; }
.support-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; margin: -10px -10px -10px 0; padding: 0; border: 0; border-radius: var(--support-control-radius); color: var(--ce-muted); background: transparent; cursor: pointer; }
.support-close .icon { width: 18px; height: 18px; }
.support-close:hover { background: var(--ce-surface); color: var(--ce-ink); }
.support-description { margin-top: 8px; color: var(--ce-muted); font-size: 13px; line-height: 1.8; }
.support-qr { margin: 20px 0 0; text-align: center; }
.support-qr-image { display: block; width: min(224px, 100%); margin-inline: auto; padding: 8px; border-radius: 12px; background: #fff; }
.support-qr img { display: block; width: 100%; height: auto; }
.support-qr figcaption { margin-top: 10px; font-size: 13px; font-weight: 550; line-height: 1.7; }
.support-qr figcaption span { display: block; margin-top: 2px; color: var(--ce-muted); font-size: 12px; font-weight: 400; }
.support-contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-block: 16px; border-block: 1px solid var(--ce-line); }
.support-contact-details { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.support-contact-label { color: var(--ce-muted); font-size: 12px; line-height: 1.5; }
.support-number { font-size: 20px; font-weight: 650; line-height: 1.5; letter-spacing: -.025em; font-variant-numeric: tabular-nums; user-select: all; }
.support-copy { display: inline-flex; flex-shrink: 0; min-height: 44px; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border: 0; border-radius: var(--support-control-radius); background: var(--ce-surface); color: var(--ce-muted); cursor: pointer; font-size: 12px; font-weight: 550; }
.support-copy .icon { width: 15px; height: 15px; }
.support-copy:hover { background: var(--ce-accent-soft); color: var(--ce-ink); }
.support-contact-link { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin-top: 20px; padding: 12px 16px; border-radius: var(--support-control-radius); background: var(--ce-button); color: var(--ce-button-text); font-size: 13px; font-weight: 600; line-height: 1.5; }
.support-contact-link .icon { width: 16px; height: 16px; }
.support-contact-link:hover { background: color-mix(in srgb, var(--ce-button) 86%, var(--ce-accent)); }
.support-feedback { min-height: 3.4em; margin-top: 12px; color: var(--ce-muted); font-size: 12px; line-height: 1.7; }
.support-widget :is(button, a) { transition: background-color var(--support-duration) var(--ce-ease), color var(--support-duration) var(--ce-ease), transform 150ms var(--ce-ease); }
.support-widget :is(summary, button, a):active { transform: scale(.98); }
.support-widget :focus-visible { outline-width: 2px; outline-offset: 4px; }
.support-widget [hidden] { display: none !important; }
@media (max-width: 600px) {
  .support-widget { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .support-launcher { flex-direction: row; gap: 8px; width: auto; min-height: 52px; padding: 12px 16px; }
  .support-launcher .icon { width: 20px; height: 20px; }
  .support-panel { right: 0; bottom: calc(100% + 12px); width: min(320px, calc(100vw - 32px)); max-height: calc(100dvh - 104px - env(safe-area-inset-bottom, 0px)); padding: 20px; }
}
@keyframes support-reveal {
  from { opacity: 0; transform: translateY(6px); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
