/* Вход в команду по личной ссылке (r16 Р, 26.10) — js/screens/team-join.js. Во весь экран, поверх меню, в языке тёмного ядра
   (окно оплаты «Токенов», «Баланс»): глубокий фиолетовый, сетка, свечение; карточка приглашения — стекло. Тёмный в обеих темах. */
.screen-join { position: relative; }
.tj { position: fixed; inset: 0; z-index: 450; display: flex; flex-direction: column; overflow: auto; color: #f6f3ff;
  background: radial-gradient(50% 60% at 10% 0%, rgba(124, 77, 255, .5), transparent 62%), radial-gradient(45% 55% at 100% 100%, rgba(94, 234, 212, .18), transparent 62%), linear-gradient(165deg, #1e1244 0%, #150c33 55%, #0c0820 100%); }
.tj-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 78%); mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 78%); }
.tj-bg i { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(70px); opacity: .35; animation: tj-float 14s ease-in-out infinite alternate; }
.tj-bg i:first-child { left: 8%; top: 12%; background: #7c4dff; }
.tj-bg i:last-child { right: 6%; bottom: 4%; background: #2dd4bf; opacity: .18; animation-delay: -6s; }
@keyframes tj-float { to { transform: translate(40px, -30px) scale(1.08); } }
.tj-top, .tj-main, .tj-foot { position: relative; z-index: 1; }
.tj-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px; }
.tj-brand { display: flex; align-items: center; gap: 10px; }
.tj-brand > span { display: flex; flex-direction: column; line-height: 1.2; }
.tj-brand b { font-size: 15px; color: #fff; }
.tj-brand em { font-style: normal; font-size: 12px; color: rgba(229, 222, 255, .6); }
.tj-back { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05);
  color: rgba(229, 222, 255, .8); font-size: 12.5px; cursor: pointer; }
.tj-back:hover { background: rgba(255, 255, 255, .1); color: #fff; }
/* карточка по центру, а выше экрана — прокрутка с верха (margin: auto вместо align-items: center — верх не обрезается) */
.tj-main { flex: 1 0 auto; display: flex; justify-content: center; padding: 8px 20px 20px; }
.tj-main > .tj-card { margin: auto 0; }
/* приглашение: слева кто и что будет видно, справа — пароль; на узком — одна колонка */
.tj-card.is-ok { width: min(960px, 100%); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 26px; align-items: stretch; }
.tj-l { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tj-r { padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, .1); justify-content: center; }
.tj-form-h { display: flex; flex-direction: column; gap: 3px; margin-bottom: 4px; }
.tj-form-h b { font-size: 17px; color: #fff; font-weight: 650; }
.tj-form-h span { font-size: 12.5px; color: rgba(229, 222, 255, .6); }
@media (max-width: 900px) { .tj-card.is-ok { grid-template-columns: minmax(0, 1fr); } .tj-r { padding-left: 0; border-left: 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); } }
.tj-foot { padding: 0 28px 16px; text-align: center; font-size: 11.5px; color: rgba(229, 222, 255, .45); }

.tj-card { width: min(560px, 100%); display: flex; flex-direction: column; gap: 16px; padding: 26px 28px 22px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 40px 90px -40px rgba(6, 2, 24, .9), inset 0 1px 0 rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: tj-in .5s cubic-bezier(.2, .8, .2, 1) both; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .5s, box-shadow .5s; }
@keyframes tj-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.tj-card.is-in { box-shadow: 0 40px 90px -40px rgba(6, 2, 24, .9), 0 0 0 2px rgba(94, 234, 212, .8), 0 0 60px rgba(94, 234, 212, .35); transform: scale(1.01); }
.tj-k { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: rgba(196, 181, 253, .85); }
.tj-who { display: flex; gap: 16px; align-items: center; }
.tj-ava { --rc: #5eead4; flex: 0 0 auto; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(140deg, #6a3ce0, #2a1d72);
  box-shadow: 0 0 0 2px var(--rc), 0 0 26px -2px var(--rc); }
.tj-ava[data-role="manager"] { --rc: #c4b5fd; } .tj-ava[data-role="viewer"] { --rc: rgba(255, 255, 255, .55); }
.tj-ava b { font-size: 22px; font-weight: 700; color: #fff; }
.tj-who h1 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 650; letter-spacing: -.015em;
  background: linear-gradient(180deg, #ffffff 40%, #d8cbff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #fff; }
.tj-who p, .tj-card > p { margin: 4px 0 0; font-size: 13.5px; line-height: 19px; color: rgba(229, 222, 255, .72); }
.tj-who p b { color: #fff; font-weight: 600; }
.tj-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tj-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; color: rgba(229, 222, 255, .85); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.tj-chip.is-role { color: #0f2e2a; background: #5eead4; border-color: transparent; font-weight: 650; }
.tj-sees { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); }
.tj-sees-h { font-size: 10.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: rgba(196, 181, 253, .78); }
.tj-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tj-tab { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; font-size: 12px; color: #fff; background: rgba(124, 77, 255, .22); }
.tj-tab svg { color: #c4b5fd; }
.tj-sees-r { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(229, 222, 255, .78); flex-wrap: wrap; }
.tj-sees-r b { color: #fff; font-weight: 600; }
.tj-sees-r > svg { color: #c4b5fd; }
.tj-ag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.tj-ag span { color: #fff; font-size: 12px; }
.tj-ag em { font-style: normal; font-size: 11px; color: rgba(229, 222, 255, .6); }

.tj-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.tj-f { display: flex; flex-direction: column; gap: 5px; }
.tj-f > span:first-child { font-size: 12px; font-weight: 600; color: rgba(229, 222, 255, .8); }
.tj-in { display: flex; align-items: center; height: 44px; border-radius: 12px; background: rgba(8, 4, 26, .55); border: 1px solid rgba(255, 255, 255, .14); transition: border-color .15s, box-shadow .15s; }
.tj-in:focus-within { border-color: rgba(196, 181, 253, .7); box-shadow: 0 0 0 3px rgba(124, 77, 255, .3); }
.tj-in input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 14px; border: 0; outline: 0; background: none; color: #fff; font-size: 14.5px; letter-spacing: .02em; }
.tj-in input::placeholder { color: rgba(229, 222, 255, .4); letter-spacing: 0; }
.tj-eye { display: grid; place-items: center; width: 40px; height: 100%; border: 0; background: none; color: rgba(229, 222, 255, .65); cursor: pointer; }
.tj-eye:hover { color: #fff; }
.tj-rules { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: rgba(229, 222, 255, .55); }
.tj-rules span { display: inline-flex; align-items: center; gap: 4px; transition: color .2s; }
.tj-rules span.is-ok { color: #5eead4; }
.tj-err { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; color: #fde68a; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .28); }
.tj-err[hidden] { display: none; }
.tj-go { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; margin-top: 4px; border-radius: 14px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 650; color: #2a1270; background: linear-gradient(180deg, #ffffff, #e9e1ff); box-shadow: 0 14px 30px -14px rgba(124, 77, 255, .9), inset 0 -2px 0 rgba(124, 77, 255, .18); }
.tj-go::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent); }
.tj-go:hover::after { animation: tj-sh .9s ease; }
@keyframes tj-sh { to { left: 130%; } }
.tj-go:hover { transform: translateY(-1px); }
.tj-go svg { color: #6d28d9; }
.tj-n { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 11.5px; color: rgba(229, 222, 255, .55); }
.tj-card.is-bad { align-items: center; text-align: center; gap: 12px; padding: 30px 28px; }
.tj-card.is-bad h1 { margin: 0; font-size: 22px; color: #fff; }
.tj-card.is-bad p { max-width: 420px; }
.tj-bad-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: #fbbf24; background: rgba(251, 191, 36, .1); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .3); }
@media (max-height: 760px) { .tj-top { padding: 12px 22px; } .tj-card { gap: 12px; padding: 20px 24px 18px; } .tj-who h1 { font-size: 20px; line-height: 25px; } .tj-in { height: 40px; } .tj-go { height: 44px; } }
@media (prefers-reduced-motion: reduce) { .tj-bg i, .tj-card, .tj-go::after { animation: none !important; } }
/* r25: вход на сервере (#/login, screens/sign-in.js) — та же карточка, что у личной ссылки */
.tj-login { gap: 14px; }
.tj-h { margin: 0; font-size: 22px; line-height: 28px; font-weight: 650; color: #fff; }
.tj-link { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 12.5px; color: rgba(229, 222, 255, .7); cursor: pointer; }
.tj-link:hover, .tj-link:focus-visible { color: #fff; background: rgba(255, 255, 255, .06); }
.tj-row { display: flex; justify-content: center; width: 100%; }
.tj-row .tj-go { min-width: 240px; }
.tj-bad-ic.is-ok { color: #5eead4; background: rgba(94, 234, 212, .1); box-shadow: inset 0 0 0 1px rgba(94, 234, 212, .3); }
.tj-wait { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 30px; color: rgba(229, 222, 255, .7); }
