/* BkL: «Друзья» (friends.js): экран в кабинете и окно «Позвать друга». Цвета только из переменных темы. */
.fr-list { display: flex; flex-direction: column; }
.fr-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.fr-list > .fr-row:first-child, .ccard h3 + .fr-row, .csub + .fr-row { border-top: 0; }
.fr-who { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; }
.fr-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; background: var(--surface2); color: var(--gold); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="light"] .fr-av { color: var(--red); }
.fr-nm { min-width: 0; display: flex; flex-direction: column; }
.fr-nm b { font-size: 15.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-nm span { font-size: 12.5px; color: var(--muted); }
.fr-btn { flex: none; min-height: 40px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
.fr-ask { flex: none; display: flex; gap: 6px; }
.fr-row.asking { flex-wrap: wrap; }
.fr-done { flex: none; font-weight: 800; font-size: 14px; color: #3fb865; }
:root[data-theme="light"] .fr-done { color: #1f7a3c; }
.fr-ok { margin: 0; font-weight: 700; color: #3fb865; }
:root[data-theme="light"] .fr-ok { color: #1f7a3c; }
.fr-none { margin: 4px 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.fr-msg { margin: 8px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); min-height: 0; }
.fr-msg:empty { display: none; }
.fr-msg.bad { color: var(--red-hi); font-weight: 700; }
.fr-inp { width: 100%; box-sizing: border-box; min-height: 44px; padding: 0 12px; margin: 0 0 6px; font: inherit; font-size: 16px; color: var(--text); background: var(--surface2); border: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.fr-inp:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.fr-err { margin: 0 0 4px 48px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--red) 16%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 55%, transparent); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.fr-err p { margin: 0; font-size: 14px; line-height: 1.35; font-weight: 700; color: var(--text); }

.fr-sheet { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .55); }
.fr-card { width: 100%; max-height: 86vh; overflow-y: auto; box-sizing: border-box; padding: 16px 16px calc(14px + var(--safe-b)); background: var(--surface); color: var(--text); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 36px rgba(0, 0, 0, .5), inset 0 2px 0 var(--gold); }
.fr-card h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.fr-card .csub { margin: 0 0 8px; }
.fr-card .fr-list { max-height: 46vh; overflow-y: auto; }
.fr-foot { display: flex; gap: 8px; margin-top: 12px; }
.fr-foot .btn { flex: 1; min-height: 44px; }
.frbtn { width: 100%; margin: 0 0 14px; }
.fr-row.played .fr-who { opacity: .5; }
.fr-played { flex: none; font-weight: 700; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }
