/* The Contact button and the message card that opens from it. */
.ct-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.ct-link:hover { text-decoration: underline; }
.ct-open { position: relative; }
.ct-dot { position: absolute; top: -3px; inset-inline-end: -3px; width: 10px; height: 10px; border-radius: 50%; background: #fe2c55; box-shadow: 0 0 0 2px #000; }
.ct-dot[hidden] { display: none; }
.ct-back { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ct-back[hidden] { display: none; }
.ct-card { width: min(440px, 100%); max-height: min(640px, 92dvh); display: flex; flex-direction: column; background: #131313; color: #fff; border: 1px solid #313131; border-radius: 22px; box-shadow: 0 30px 90px rgba(0, 0, 0, .7); overflow: hidden; font-family: inherit; }
.ct-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #272727; }
.ct-head b { display: block; font-size: 16px; }
.ct-head small { display: block; color: #a7a7a7; font-size: 12px; line-height: 1.35; margin-top: 2px; }
.ct-x { margin-inline-start: auto; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #313131; background: #1b1b1b; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.ct-av { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, #6a6a6a, #2a2a2a); display: grid; place-items: center; font-weight: 800; color: #fff; overflow: hidden; }
.ct-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-list { flex: 1; min-height: 160px; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ct-empty { margin: auto; text-align: center; color: #a7a7a7; font-size: 14px; max-width: 280px; }
.ct-b { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; background: #212121; border-end-start-radius: 5px; align-self: flex-start; }
.ct-b.mine { align-self: flex-end; background: linear-gradient(135deg, #4a4a4a, #2e2e2e); border-end-start-radius: 16px; border-end-end-radius: 5px; }
.ct-b small { display: block; margin-top: 4px; font-size: 11px; opacity: .65; }
.ct-b.new { outline: 1px solid #fe2c55; }
.ct-form { padding: 12px 16px 16px; border-top: 1px solid #272727; display: grid; gap: 8px; }
.ct-form textarea { width: 100%; box-sizing: border-box; resize: none; min-height: 64px; max-height: 140px; padding: 10px 12px; border-radius: 14px; border: 1px solid #313131; background: #0d0d0d; color: #fff; font: inherit; font-size: 15px; }
.ct-form textarea:focus { outline: 2px solid #ffffff; outline-offset: 0; }
.ct-row { display: flex; align-items: center; gap: 10px; }
.ct-msg { margin: 0; flex: 1; min-height: 18px; font-size: 12.5px; color: #a7a7a7; }
.ct-msg.err { color: #ff6b8b; }
.ct-lock { padding: 22px 18px 24px; display: grid; gap: 12px; text-align: center; }
.ct-lock p { margin: 0; color: #c9c9c9; font-size: 14px; }
.ct-lock .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 560px) { .ct-back { align-items: flex-end; padding: 0; } .ct-card { width: 100%; max-height: 90dvh; border-radius: 22px 22px 0 0; } }
