/* A non-modal support card: the manual stays readable and scrollable. */
.manual-support {
  position: fixed; right: 24px; bottom: 24px; z-index: 950;
  bottom: max(24px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  max-width: calc(100% - 32px); font-family: var(--font-family, sans-serif); color: #172b4d;
}
.manual-support-card[hidden] { display: none !important; }
.manual-support.is-open { z-index: 1100; }
.manual-support-card {
  width: 260px; max-width: 100%; max-height: calc(100vh - 112px);
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid #dce6f5; border-radius: 12px; background: #fff;
  box-shadow: 0 8px 28px rgba(15, 37, 76, .18);
}
.manual-support-heading {
  display: flex; align-items: center; justify-content: space-between; flex: none;
  min-height: 48px; padding: 2px 6px 2px 14px; gap: 6px;
  background: linear-gradient(115deg, #1e40af, #2563eb); color: #fff;
}
.manual-support-heading h2 { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.4; color: inherit; }
.manual-support-close {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #fff; font: 400 24px/1 sans-serif; cursor: pointer; touch-action: manipulation;
}
.manual-support-close:hover { background: rgba(255,255,255,.16); }
.manual-support-content { min-height: 0; padding: 12px 14px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; text-align: center; }
.manual-support-content p { margin: 0; font-size: 12px; line-height: 1.6; color: #42526e; }
.manual-support-qr { display: block; width: 168px; height: auto; max-width: 100%; margin: 12px auto; background: #fff; }
.manual-support-content .manual-support-hint { font-size: 11px; color: #65758b; }
.manual-support-save {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  margin-top: 10px; padding: 8px 10px; border: 1px solid #d5e3fb; border-radius: 7px;
  background: #eff6ff; color: #1d4ed8; font-size: 12px; font-weight: 600; text-decoration: none;
}
.manual-support-save:hover { background: #dbeafe; color: #1e40af; }
.manual-support-launcher {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 9px 14px; border: 1px solid #1d4ed8; border-radius: 999px;
  background: #2563eb; color: #fff; box-shadow: 0 5px 20px rgba(37,99,235,.25);
  font-size: 13px; font-weight: 650; line-height: 1.5; text-decoration: none; touch-action: manipulation;
}
.manual-support-launcher svg { width: 20px; height: 20px; }
.manual-support-launcher:hover { background: #1d4ed8; color: #fff; }
.manual-support :focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
@media (max-width: 767px) {
  .manual-support { right: 16px; bottom: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .manual-support-launcher { min-height: 44px; padding: 9px 13px; font-size: 12px; }
}
@media print { .manual-support { display: none !important; } }
@media (max-height: 540px) {
  .manual-support-content { padding: 12px 16px; }
  .manual-support-qr { width: 148px; margin: 12px auto; }
}
