* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #000; color: #fff;
  font: 16px/1.4 "Inter Tight", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { -webkit-user-select: none; user-select: none; }
input { -webkit-user-select: text; user-select: text; }
.hidden { display: none !important; }
.screen { max-width: 420px; margin: 0 auto; padding: 16px 16px 56px; }
.logo { font-size: 32px; font-weight: 300; text-align: center; margin: 15vh 0 32px; }
.logo b, .logo.small b { font-weight: 700; color: #4cc0e6; }
.logo.small { font-size: 18px; margin: 0; }
header { display: flex; align-items: center; justify-content: space-between; height: 44px; }
header #me { color: #888; font-size: 14px; }
input, button { font: inherit; color: #fff; border-radius: 12px; border: 1px solid #333; background: #111;
  padding: 12px 14px; width: 100%; margin: 0 0 10px; outline: none; -webkit-appearance: none; }
input:focus { border-color: #219dff; }
button { cursor: pointer; background: #1a1a1a; }
button.primary { background: #219dff; border-color: #219dff; font-weight: 600; }
button.link { background: none; border: 0; width: auto; padding: 8px 0; margin: 0; color: #4cc0e6; }
.row { display: flex; margin-top: 16px; }
.row input { margin-right: 8px; }
.row button { width: auto; }
.error { color: #ff5a5a; min-height: 22px; text-align: center; }
.hint { color: #888; font-size: 14px; text-align: center; min-height: 20px; }
#list { list-style: none; padding: 0; margin: 8px 0; }
#list li { display: flex; align-items: center; padding: 18px 14px; margin-bottom: 6px; border-radius: 14px; background: #111;
  cursor: pointer; font-size: 19px; touch-action: pan-y; -webkit-touch-callout: none; }
#list li .name { flex: 1; overflow: hidden; text-overflow: ellipsis; }
#list li .what { font-size: 14px; color: #fff; }
#list li.off { color: #555; cursor: default; }
#list li.talking { background: #ff3b5c; }
#list li.listening { background: #ffb020; color: #000; }
#list li.listening .what { color: #000; }
.dot { width: 10px; height: 10px; border-radius: 5px; background: #444; margin-right: 12px; flex: none; }
.dot.online { background: #3ddc84; }
.dot.busy { background: #ffb020; }
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 4, 12, .88); }
.modal .card { width: 100%; max-width: 380px; padding: 30px 24px 24px; text-align: center; background: #0e1014; border: 1px solid #232a35; border-radius: 24px; box-shadow: 0 0 60px rgba(33, 157, 255, .25); }
.modal .bell { font-size: 56px; line-height: 1; margin-bottom: 14px; }
.modal h2 { margin: 0 0 10px; font-size: 22px; }
.modal p { margin: 0 0 22px; color: #a9b0bb; font-size: 15px; line-height: 1.5; -webkit-user-select: text; user-select: text; }
.modal button { margin: 0; }
.banner { position: fixed; top: 0; left: 0; right: 0; padding: 10px; text-align: center; background: #219dff; z-index: 10; cursor: pointer; }
#offline { background: #444; }
.downloads { position: fixed; left: 0; right: 0; bottom: 0; text-align: center; padding: 10px 0 14px; background: #000; }
.downloads a { display: inline-block; color: #666; font-size: 12px; text-decoration: none; margin: 0 10px; }
.downloads a:hover { color: #4cc0e6; }
.downloads svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }

/* ---- Список, профиль, статусы ---- */
.screen.wide { max-width: 560px; padding-left: 0; padding-right: 0; }
.screen.wide header.top { padding: 0 16px; }
header.top { display: flex; align-items: center; justify-content: space-between; height: 52px; margin-bottom: 4px; }
.logo.small, .logo.small b { font-weight: 700; }
.logo { font-weight: 700; }
.icons { display: flex; align-items: center; gap: 12px; }
button.icon { width: 38px; height: 38px; padding: 0; margin: 0; border-radius: 19px; display: flex; align-items: center; justify-content: center; border: 0; background: #1a1a1a; }
button.icon svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
button.icon .av { width: 38px; height: 38px; font-size: 15px; }
.av { width: 46px; height: 46px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 17px; color: #fff; background-size: cover; background-position: center; }
.av.big { width: 104px; height: 104px; font-size: 40px; cursor: pointer; }
.av.on { box-shadow: 0 0 0 2px #000, 0 0 0 4.5px #3ddc84; }
.av.busy { box-shadow: 0 0 0 2px #000, 0 0 0 4.5px #ffb020; }
#list li { border-radius: 0; margin: 0; padding: 11px 16px; background: none; border-bottom: 1px solid #161616; gap: 14px; }
#list li .who { flex: 1; min-width: 0; }
#list li .name { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#list li .name svg { width: 16px; height: 16px; vertical-align: -2px; margin-left: 4px; }
#list li .when { display: block; font-size: 13px; color: #8a8a8a; }
#list li.off { color: #555; } #list li.off .av { background-color: #2a2a2a !important; color: #777; filter: grayscale(1) brightness(.6); }
#list li.talking { background: #ff3b5c; } #list li.talking .when { color: #ffe0e5; }
#list li.listening { background: #1a6fd1; color: #fff; } #list li.listening .when { color: #d6e8ff; }
#list li.talking .av, #list li.listening .av { box-shadow: 0 0 0 2px transparent, 0 0 0 4.5px #fff; }
.request { display: flex; align-items: center; gap: 10px; margin: 0 16px 8px; padding: 10px 12px; background: #13263d; border-radius: 12px; font-size: 15px; }
.request span { flex: 1; } .request button { width: auto; margin: 0; padding: 8px 12px; }
h1 { font-size: 26px; margin: 4px 0 16px; }
.cap { display: block; font-size: 12px; color: #8a8a8a; margin: 0 0 6px 4px; }
.field { border-radius: 12px; padding: 12px 14px; background: #111; margin-bottom: 10px; }
.field.muted { color: #aaa; }
.or { display: flex; align-items: center; gap: 10px; color: #555; font-size: 13px; margin: 18px 0 14px; }
.or:before, .or:after { content: ""; flex: 1; height: 1px; background: #222; }
#scan-video { width: 100%; border-radius: 12px; background: #111; }
.me { display: flex; flex-direction: column; align-items: center; margin: 4px 0 18px; }
.me .link { margin-top: 8px; color: #4cc0e6; cursor: pointer; font-size: 15px; }
.qr { display: flex; flex-direction: column; align-items: center; margin: 4px 0 18px; }
.qr img { width: 150px; height: 150px; background: #fff; border-radius: 12px; padding: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chips button { width: auto; margin: 0; padding: 7px 12px; border-radius: 18px; font-size: 14px; }
.chips button.on { border-color: #219dff; background: #0d2a4a; }
.chips svg, .status-big svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.check { display: flex; align-items: center; gap: 10px; margin: 4px 4px 16px; font-size: 15px; cursor: pointer; }
.check input { -webkit-appearance: checkbox; appearance: auto; width: 20px; height: 20px; padding: 0; margin: 0; accent-color: #219dff; }
.switch { display: flex; align-items: center; gap: 12px; background: #111; border-radius: 12px; padding: 12px 14px; font-size: 15px; cursor: pointer; }
.switch span { flex: 1; }
.switch input { display: none; }
.switch i { width: 46px; height: 28px; border-radius: 14px; background: #333; position: relative; flex: none; transition: background .2s; }
.switch i:after { content: ""; position: absolute; left: 2px; top: 2px; width: 24px; height: 24px; border-radius: 12px; background: #fff; transition: left .2s; }
.switch input:checked + i { background: #3ddc84; } .switch input:checked + i:after { left: 20px; }
.hint.left { text-align: left; margin: 6px 4px 22px; }
.link.danger, .danger { color: #ff5a5a; }
#delete { display: block; margin: 8px auto 0; }
.blocked { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.status-big svg { width: 120px; height: 120px; margin: 0; stroke-width: 1.5; }
.blocked p { color: #aaa; margin: 0 0 28px; }
.danger-fill { background: #d92d4a; border-color: #d92d4a; font-weight: 600; }
#list li .more { width: 40px; height: 40px; margin: 0 -8px 0 0; padding: 0; border: 0; background: none; color: #777; font-size: 22px; line-height: 1; flex: none; }
#list li.talking .more, #list li.listening .more { color: #fff; }
#person .me h1 { margin: 12px 0 2px; }
#person-remove { display: block; margin: 18px auto 0; }
button.icon { position: relative; }
.badge { position: absolute; right: -4px; top: -4px; width: 18px; height: 18px; border-radius: 9px; background: #000; display: flex; align-items: center; justify-content: center; }
.badge svg { width: 13px; height: 13px; }
ul.plain { list-style: none; padding: 0; margin: 0 0 10px; }
ul.plain li { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid #161616; }
ul.plain li .av { width: 36px; height: 36px; font-size: 14px; }
ul.plain li .who { flex: 1; min-width: 0; }
ul.plain li .sub { display: block; font-size: 12px; color: #8a8a8a; }
ul.plain li button { width: auto; margin: 0; padding: 6px 10px; font-size: 14px; }
select { font: inherit; color: #fff; background: #111; border: 1px solid #333; border-radius: 12px; padding: 12px 14px; width: 100%; margin: 0 0 10px; -webkit-appearance: none; }
.av.group { background: #2a3a55 !important; }
.av.group svg { width: 55%; height: 55%; fill: none; stroke: #cfe3ff; stroke-width: 2; stroke-linecap: round; }
#app-version { margin-top: 18px; font-size: 12px; color: #555; }
#bot-token { word-break: break-all; -webkit-user-select: text; user-select: text; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.logo { display: flex; align-items: center; justify-content: center; }
.logo.small { display: inline-flex; }
.logo .mark { width: 1.05em; height: 1.05em; margin-right: 0.35em; flex: none; }
