.support-icon { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.support-entry { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 58px; min-height: 44px; padding: 4px; border: 0; border-radius: 6px; color: #535f58; background: transparent; font-size: 12px; line-height: 1.2; letter-spacing: 0; white-space: nowrap; }
.support-entry:hover { color: var(--green-deep); background: var(--green-soft); }
.support-entry .support-icon { opacity: .72; }
.support-help { display: flex; justify-content: center; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.support-help button { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 0; color: #535f58; background: transparent; font-size: 13px; }
.support-help .support-icon { opacity: .72; }
.support-dialog { width: 368px; max-width: calc(100% - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; overflow: auto; overscroll-behavior: contain; border: 1px solid #dce1da; border-radius: 8px; color: var(--ink); background: #fff; box-shadow: 0 20px 70px rgba(20, 34, 26, .2); letter-spacing: 0; }
.support-dialog::backdrop { background: rgba(28, 36, 31, .32); }
.support-dialog [hidden] { display: none !important; }
.support-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 22px; }
.support-heading h2 { margin: 4px 0 7px; font-size: 23px; line-height: 1.3; letter-spacing: 0; }
.support-heading p { margin: 0; color: #68736b; font-size: 12px; line-height: 1.6; }
.support-close { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; margin: -8px -8px 0 0; padding: 8px; border: 0; border-radius: 6px; background: transparent; }
.support-close:hover { background: #f1f4f1; }
.support-close .support-icon { opacity: .7; }
.support-contact { text-align: center; }
.support-qr { display: grid; place-items: center; width: 240px; height: 240px; max-width: 100%; aspect-ratio: 1; margin: 0 auto 20px; padding: 8px; border: 1px solid #e4e8e2; background: #fff; }
.support-qr-image { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-height: 100%; object-fit: contain; -webkit-touch-callout: default; }
.support-wechat { text-align: left; padding: 12px 0; border-top: 1px solid #e4e8e2; border-bottom: 1px solid #e4e8e2; }
.support-wechat label { display: block; margin-bottom: 5px; color: #68736b; font-size: 12px; }
.support-wechat-row { display: flex; align-items: center; gap: 8px; min-height: 40px; }
#support-wechat-id { width: 0; min-width: 0; flex: 1; padding: 6px 0; border: 0; border-radius: 0; color: #293b30; background: transparent; font-size: 17px; font-weight: 600; line-height: 1.5; letter-spacing: 0; text-overflow: clip; }
.support-wechat-wide { flex-wrap: wrap; }
.support-wechat-wide #support-wechat-id { flex-basis: 100%; width: 100%; }
.support-copy { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 68px; min-height: 40px; padding: 7px 8px; border: 1px solid #cbdad0; border-radius: 6px; color: var(--green-deep); background: #f2f7f3; font-size: 12px; }
.support-copy .support-icon { width: 16px; height: 16px; flex-basis: 16px; opacity: .7; }
.support-copy:hover { background: #e7f0e9; }
.support-save { min-height: 40px; display: inline-flex; align-items: center; margin-top: 8px; color: #53695a; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.support-feedback { min-height: 20px; margin: 2px 0 0; text-align: center; color: var(--green-deep); font-size: 12px; line-height: 1.6; }
.support-unavailable { padding: 30px 0; text-align: center; }
.support-unavailable p, .support-qr-error p { margin: 0 0 10px; color: #68736b; font-size: 13px; }
.support-retry, .support-retry-image { min-height: 40px; padding: 7px 12px; border: 1px solid #cbdad0; border-radius: 6px; color: var(--green-deep); background: #f2f7f3; font-size: 12px; }
.support-dialog a:focus-visible { outline: 3px solid rgba(195, 94, 77, .34); outline-offset: 3px; }
@media (max-width: 760px) {
  .header-actions:has(.support-entry) { gap: 7px; }
  .support-entry { min-width: 40px; width: 40px; flex-direction: column; gap: 3px; padding: 2px; font-size: 10px; }
  .support-entry .support-icon { width: 18px; height: 18px; flex-basis: 18px; }
}
@media (max-width: 360px) {
  .support-dialog { padding: 20px; }
  .support-wechat-row { flex-wrap: wrap; }
  #support-wechat-id { flex-basis: 100%; width: 100%; }
  .support-copy { width: 100%; }
}
@media (max-height: 600px) and (min-width: 600px) {
  .support-dialog { width: 540px; }
  .support-heading { margin-bottom: 12px; }
  .support-contact { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 24px; align-items: center; }
  .support-qr { grid-row: span 2; width: 200px; height: 200px; margin: 0; }
  .support-save { justify-self: start; align-self: start; }
  .support-wechat-row { flex-wrap: wrap; }
  #support-wechat-id { flex-basis: 100%; width: 100%; }
  .support-feedback { margin-top: 10px; }
}
