/* The support button, fixed at the bottom right of every website page, and its form (inc/support.php). Only the site's
   own colour variables (the public site and the account site name them the same; the account site's day mode changes them). */
.sup-btn { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; place-items: center; width: 54px; height: 54px; padding: 0;
  border: 0; border-radius: 50%; background: var(--green); color: var(--green-ink, #03140d); cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .45), 0 0 0 5px color-mix(in srgb, var(--green) 16%, transparent); transition: transform .15s ease, filter .15s ease; }
.sup-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.sup-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.sup-btn svg, .sup-ico svg, .sup-check svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.sup-btn svg { width: 26px; height: 26px; stroke-width: 1.9; }
.sup-btn.sup-up { bottom: 44px; } /* the account site: above its status line */
html.rail-open .sup-btn { display: none; } /* the account site's phone menu is open over the page */

dialog.sup { width: min(440px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
dialog.sup::backdrop { background: rgba(0, 0, 0, .55); }
.sup-box { padding: 18px 20px 20px; }
.sup-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sup-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; color: var(--green);
  background: color-mix(in srgb, var(--green) 14%, transparent); }
.sup-ico svg { width: 21px; height: 21px; stroke-width: 1.9; }
.sup-head h2 { flex: 1; margin: 0; color: var(--text); font: 600 21px/1.2 var(--title); letter-spacing: .3px; }
.sup-x { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted);
  font: 26px/1 system-ui, sans-serif; cursor: pointer; }
.sup-x:hover { background: var(--raised); color: var(--text); }
.sup-lead { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.sup-to { margin: 0 0 14px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--raised); font-size: 14px; overflow-wrap: anywhere; }
.sup-field { display: block; margin: 0 0 12px; }
.sup-field span { display: block; margin-bottom: 5px; color: var(--muted); font: 600 12px/1.2 var(--title); letter-spacing: .7px; text-transform: uppercase; }
.sup-field input, .sup-field textarea { display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.sup-field textarea { min-height: 128px; resize: vertical; }
.sup-field input:focus, .sup-field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent); }
.sup-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sup-error { margin: 0 0 12px; padding: 9px 12px; border: 1px solid var(--pink); border-radius: 10px; background: color-mix(in srgb, var(--pink) 12%, transparent);
  color: var(--text); font-size: 14px; }
.sup-send { display: block; width: 100%; min-height: 46px; margin: 0; padding: 0 16px; border: 0; border-radius: 10px; background: var(--green);
  color: var(--green-ink, #03140d); font: 600 16px/1 var(--title); letter-spacing: .8px; cursor: pointer; }
.sup-send:hover { filter: brightness(1.08); }
.sup-send:disabled { opacity: .6; cursor: progress; filter: none; }
.sup-done { padding: 6px 4px 2px; text-align: center; }
.sup-check { display: grid; place-items: center; width: 58px; height: 58px; margin: 4px auto 12px; border-radius: 50%; color: var(--green);
  background: color-mix(in srgb, var(--green) 14%, transparent); }
.sup-check svg { width: 30px; height: 30px; stroke-width: 2.4; }
.sup-done h3 { margin: 0 0 6px; color: var(--text); font: 600 21px/1.2 var(--title); }
.sup-done p { margin: 0 0 18px; color: var(--muted); }

@media (max-width: 560px) {
  .sup-btn { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .sup-btn.sup-up { bottom: 38px; }
  /* A sheet from the bottom of the screen on phones. */
  dialog.sup { width: 100%; max-height: 92dvh; margin: auto 0 0; border-width: 1px 0 0; border-radius: 16px 16px 0 0; }
}
@media print { .sup-btn { display: none; } }
@media (prefers-reduced-motion: reduce) { .sup-btn { transition: none; } .sup-btn:hover { transform: none; } }
