/* WeVia: the share controls use the quiz's existing color and type tokens. */
.share-trigger { min-height: 44px; gap: 7px; }
.share-trigger svg { width: 18px; height: 18px; flex: none; }
.site-head, .result-top { flex-wrap: wrap; gap: 14px; }
.brand, .brand-text { min-width: 0; }
.brand-mark { flex: none; }
.site-head .head-actions { flex-wrap: wrap; }
.share-dialog {
  width: min(400px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.share-dialog::backdrop { background: rgba(15, 30, 55, .52); }
.share-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.share-dialog h2 { margin: 2px 0 8px; font-size: 21px; line-height: 1.4; }
.share-dialog p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.share-close { width: 44px; min-height: 44px; flex: none; padding: 10px; }
.share-close svg { width: 20px; height: 20px; }
.share-qr { display: block; width: 222px; max-width: 100%; height: auto; margin: 18px auto 12px; border-radius: 8px; }
.share-caption { text-align: center; }
.share-url-label { display: block; margin: 20px 0 7px; font-size: 13px; font-weight: 600; }
.share-url { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f7faff; color: var(--ink-2); font: inherit; font-size: 15px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.share-actions > * { flex: 1 1 130px; min-height: 44px; text-decoration: none; }
.share-status { min-height: 24px; margin-top: 12px !important; color: var(--primary) !important; }
.share-dialog :focus-visible, .share-trigger:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
@media (max-width: 600px) {
  .site-head .head-actions { gap: 8px; }
  .site-head .head-actions .share-trigger { font-size: 13px; padding: 8px 12px; }
  .share-dialog { padding: 20px; }
}
