/* Lobby audit dialog and cookie banner: the bvs.studio forms.css in the Labs dark scheme.
   Lime only as a fill (submit button) and as the focus ring. */

/* ── audit dialog ── */
.cf {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 24px;
  background: var(--surface); color: var(--text);
  box-shadow: 0 40px 120px rgb(0 0 0 / 0.6);
}
.cf::backdrop { background: rgb(0 0 0 / 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cf[open] { animation: cf-in 0.35s cubic-bezier(0.2, 1, 0.68, 1); }
@keyframes cf-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.cf__in { padding: clamp(24px, 4vw, 40px); }
.cf__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 28px; }
.cf__head h2 { font-size: clamp(28px, 3.4vw, 38px); max-width: none; }
.cf__x {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; font: inherit; font-size: 20px; line-height: 1;
}
.cf__x:hover { background: var(--line); }
.cf form { display: grid; gap: 14px; }
.cf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.cf label { display: grid; align-content: start; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.cf label small { font-weight: 400; }
.cf input, .cf textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cf textarea { min-height: 112px; resize: vertical; }
.cf input:focus, .cf textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(212 255 63 / 0.14); }
.cf { --err: #ff7a6b; }
.cf label.is-invalid { color: var(--err); }
.cf label.is-invalid input, .cf label.is-invalid textarea {
  border-color: color-mix(in srgb, var(--err) 70%, transparent);
  background: color-mix(in srgb, var(--err) 6%, var(--bg));
}
.cf label.is-invalid input:focus, .cf label.is-invalid textarea:focus {
  border-color: var(--err); box-shadow: 0 0 0 3px color-mix(in srgb, var(--err) 18%, transparent);
}
.cf__err { display: flex; align-items: start; gap: 6px; font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--err); }
.cf__err:empty { display: none; }
.cf__err::before {
  content: "!"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 1px;
  border-radius: 50%; background: var(--err); color: var(--bg); font-size: 11px; font-weight: 700; line-height: 1;
}
.cf label.is-invalid .cf__err { animation: cf-err-in 0.25s ease; }
@keyframes cf-err-in { from { opacity: 0; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .cf label.is-invalid .cf__err, .cf[open] { animation: none; } }
.cf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf__ts:empty { display: none; }
.cf__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.cf__note { font-size: 13px; color: var(--muted); max-width: 30ch; }
.cf__note a, .cf__status a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cf button[type=submit] { border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.cf button[type=submit]:disabled { opacity: 0.6; cursor: progress; }
.cf__status { min-height: 1.4em; font-size: 15px; }
.cf[data-state="error"] .cf__status { color: var(--err); }
.cf[data-state="sent"] form { display: none; }
.cf[data-state="sent"] .cf__status { font-size: 20px; font-weight: 500; color: var(--text); }
@media (max-width: 560px) { .cf__row { grid-template-columns: 1fr; } }

/* ── cookie banner ── */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 520px; margin-left: auto;
  display: grid; gap: 16px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); color: var(--text);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.5);
  font-size: 14px; line-height: 1.5;
}
.cookie[hidden] { display: none; }
.cookie p { color: #c4c8d0; }
.cookie a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cookie__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie__btns button {
  flex: 1 1 0; height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 500; font-size: 14px;
  border: 1px solid var(--line); background: transparent; color: var(--text);
}
.cookie__btns button[data-consent="granted"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cookie__btns button:hover { border-color: var(--muted); }

.foot button.foot__btn { all: unset; cursor: pointer; color: inherit; }
.foot button.foot__btn:hover { color: var(--text); }
