/* Z4 NFC — public "Send a request" dialog (landing page) */
.rq-back { position: fixed; inset: 0; z-index: 120; background: rgba(10, 10, 10, .55); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; overflow-y: auto; animation: fade .12s; }
.rq-card { position: relative; width: 100%; max-width: 480px; background: var(--s1); color: var(--tx); border: 1px solid var(--line); border-radius: 16px; padding: 26px; animation: pop .2s var(--ease); }
.rq-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--tx3); font-size: 24px; line-height: 1; }
.rq-x:hover { background: var(--s2); color: var(--tx); }
.rq-card h2 { font-size: 22px; margin: 0 0 8px; }
.rq-p { color: var(--tx2); margin-bottom: 20px; }
.rq-fine { color: var(--tx3); font-size: 12.5px; margin-top: 12px; }
.rq-g { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 46px; border-radius: 10px; border: 1px solid var(--line2); background: #fff; color: #1f1f1f; font-weight: 600; font-size: 15px; }
.rq-g:hover { background: #f4f4f4; }
.rq-g:disabled { opacity: .5; cursor: wait; }
.rq-err { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--er-soft); color: var(--er); font-size: 13.5px; }
.rq-who { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 28px 18px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--s2); }
.rq-who small { display: block; color: var(--tx3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.rq-who b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--ink-fg); font-weight: 700; font-size: 12px; flex: none; }
.rq-grow { flex: 1; min-width: 0; }
.rq-link { border: 0; background: none; color: var(--tx2); font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#rqForm label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
.rq-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.rq-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rq-head h2 { margin: 0; flex: 1; }
.rq-t { font-size: 17px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-list { display: grid; gap: 8px; max-height: 50vh; overflow-y: auto; }
.rq-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line2); border-radius: 10px; background: var(--s1); text-align: left; }
.rq-item:hover { background: var(--s2); }
.rq-item b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-item small { color: var(--tx3); font-size: 12.5px; }
.rq-b { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--s3); color: var(--tx2); }
.rq-b.ok { background: var(--ok-soft); color: var(--ok); }
.rq-msgs { display: flex; flex-direction: column; gap: 10px; height: 300px; overflow-y: auto; padding: 4px 2px 8px; }
.rq-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 85%; }
.rq-msg.me { align-self: flex-end; align-items: flex-end; }
.rq-by { font-size: 12px; font-weight: 600; color: var(--tx2); margin-bottom: 3px; }
.rq-by span { margin-left: 8px; font-weight: 500; color: var(--tx3); }
.rq-bub { background: var(--s2); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rq-msg.me .rq-bub { background: var(--ink); border-color: var(--ink); color: var(--ink-fg); border-radius: 14px 14px 4px 14px; }
.rq-comp { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.rq-comp textarea { flex: 1; min-height: 40px; max-height: 120px; resize: none; field-sizing: content; }

.rq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Phones: the dialog becomes a bottom sheet with 16px inputs (no iOS zoom) and big tap targets */
@media (max-width: 600px) {
  .rq-back { padding: 0; align-items: flex-end; }
  .rq-card { max-width: none; max-height: 94dvh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .rq-card .inp, .rq-comp textarea { font-size: 16px; }
  .rq-card .btn { height: 46px; }
  .rq-g { height: 50px; }
  .rq-x { top: 8px; right: 8px; width: 40px; height: 40px; }
  .rq-msgs { height: 42dvh; }
  .rq-msg { max-width: 92%; }
  .rq-acts .btn { flex: 1; }
  .rq-item { padding: 14px; }
}

/* Unread badge on the buttons, notification row inside the dialog */
.rq-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px; border-radius: 999px; background: #e5342f; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.rq-notif { margin: -6px 0 14px; font-size: 13px; color: var(--tx2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rq-notif:empty { display: none; }
.rq-errtxt { color: var(--er); }
