/* The support page (support.html): the legal layout, with a form in its
   right column. The fields take the look of the sign-up form (auth.css),
   written once more here so the page loads only what it uses. */

.sup-form { display: grid; gap: clamp(18px, 2.4vh, 24px); max-width: 560px; }
.sup-form[hidden], .sup-done[hidden] { display: none; }
.sup-row { display: grid; gap: 8px; }
.sup-label { font-size: 14px; color: var(--muted); }
.sup-opt { margin-left: 6px; color: var(--label); font-size: 12.5px; }
.sup-input {
  display: block; width: 100%; height: 50px; padding: 0 16px;
  border-radius: var(--r-field); border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--text) 3.5%, transparent);
  font: inherit; font-size: 16px; color: var(--text);
  transition: border-color var(--mi-fast), box-shadow var(--mi-fast), background-color var(--mi-fast);
}
.sup-input::placeholder { color: var(--label); }
.sup-input:focus {
  outline: none; border-color: color-mix(in srgb, var(--text) 60%, transparent);
  background: color-mix(in srgb, var(--text) 5.5%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 8%, transparent);
}
.sup-input[aria-invalid="true"] { border-color: var(--accent, #ff4a00); }
.sup-area { height: auto; min-height: 168px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.sup-select { position: relative; }
.sup-select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.sup-select select option { color: #111; background: #fff; }
.sup-select svg { position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.sup-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sup-err { min-height: 1.4em; margin-top: -8px; color: var(--accent, #ff4a00); font-size: 14px; line-height: 1.4; }
.sup-err:empty { display: none; }
.sup-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.sup-foot .btn { height: 48px; padding-inline: 22px; }
.sup-foot .btn[disabled] { opacity: .55; pointer-events: none; }
.sup-note { color: var(--muted); font-size: 14px; line-height: 1.5; }
.sup-note .u { color: var(--text); }
.sup-done { max-width: 560px; padding: 22px 24px; border-radius: var(--r-card-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); }
.sup-done:focus { outline: none; }
.sup-done > * + * { margin-top: 10px; }
.sup-done-title { font-weight: 440; font-size: clamp(22px, 1.8vw, 26px); line-height: 1.1; letter-spacing: calc(-.03em * var(--track, 1)); }
.sup-done b { font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .sup-input { transition: none; } }

/* The component picker: the field, the still of the chosen one at its left,
   a cross to clear it, and the list of matches under it. */
.sup-pick { position: relative; }
.sup-pick .sup-input { padding-right: 44px; }
.sup-pick.has-still .sup-input { padding-left: 74px; }
.sup-pick-still { position: absolute; left: 9px; top: 50%; width: 51px; height: 32px; translate: 0 -50%; border-radius: 4px; object-fit: cover; background: var(--surface); }
.sup-pick-still[hidden] { display: none; }
.sup-pick-clear { position: absolute; right: 8px; top: 50%; display: grid; place-items: center; width: 32px; height: 32px; translate: 0 -50%; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); cursor: pointer; transition: color var(--mi-fast), background-color var(--mi-fast); }
.sup-pick-clear svg { width: 14px; height: 14px; }
.sup-pick-clear[hidden] { display: none; }
@media (hover: hover) { .sup-pick-clear:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); } }
.sup-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); max-height: 336px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; border-radius: var(--r-card-sm); border: 1px solid var(--line-strong); background: var(--bg, #0e0b09); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.sup-list[hidden] { display: none; }
.sup-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; padding: 7px 8px; border-radius: 6px; cursor: pointer; }
.sup-list li[aria-selected="true"] { background: color-mix(in srgb, var(--text) 7%, transparent); }
.sup-list img { width: 64px; height: 40px; border-radius: 4px; object-fit: cover; background: var(--surface); }
.sup-list b { display: block; font-weight: 500; font-size: 15px; line-height: 1.3; color: var(--text); }
.sup-list span { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.sup-list .sup-none { display: block; padding: 10px 8px; color: var(--muted); font-size: 14px; cursor: default; }
