/* Вхід і реєстрація в один клік (js/tnp-auth.js) — веб-плеєр і /accounts. Кольори прямими значеннями:
   у вебі змінних ЛК немає. Брендовий індиго #6366f1 / #818cf8. */
.ta-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ta-overlay {
    position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(0,0,0,0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.ta-card, .ta-chooser {
    position: relative; width: 100%; max-width: 400px; box-sizing: border-box;
    display: flex; flex-direction: column; gap: 12px;
    background: rgba(14,14,18,0.98); color: #f4f4f5;
    border: 1px solid rgba(255,255,255,0.1); border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0,0,0,0.6); padding: 26px 22px 20px;
}
.ta-close {
    position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; color: rgba(255,255,255,0.6); cursor: pointer;
}
.ta-close:hover { background: rgba(255,255,255,0.08); color: #fff; }
.ta-badge {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
    background: rgba(99,102,241,0.16); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3);
}
.ta-badge .ta-icon { width: 14px; height: 14px; }
.ta-title { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.25; }
.ta-sub { margin: -4px 0 4px; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,0.62); }
.ta-note {
    margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.4;
    color: #fcd34d; background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.25);
    border-radius: 10px; padding: 8px 10px;
}
.ta-note .ta-icon { width: 15px; height: 15px; margin-top: 1px; }
.ta-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box;
    width: 100%; min-height: 46px; padding: 0 16px; border-radius: 12px; cursor: pointer;
    font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none;
    border: 1px solid transparent; transition: background .15s, border-color .15s, opacity .15s;
}
.ta-btn:disabled { opacity: .55; cursor: default; }
.ta-google { background: #fff; color: #1f1f1f; }
.ta-google:hover { background: #ececf0; }
.ta-primary { background: #6366f1; color: #fff; width: auto; flex: none; }
.ta-primary:hover:not(:disabled) { background: #4f46e5; }
.ta-buy { background: #6366f1; color: #fff; }
.ta-buy:hover { background: #4f46e5; }
.ta-ghost { background: rgba(255,255,255,0.05); color: #e4e4e7; border-color: rgba(255,255,255,0.12); }
.ta-ghost:hover { background: rgba(255,255,255,0.09); }
.ta-link { background: transparent; color: rgba(255,255,255,0.6); min-height: 38px; font-weight: 500; }
.ta-link:hover:not(:disabled) { color: #fff; }
.ta-or { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(255,255,255,0.4); }
.ta-or::before, .ta-or::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.ta-email { display: flex; gap: 8px; }
.ta-input {
    flex: 1; min-width: 0; height: 46px; box-sizing: border-box; padding: 0 14px; border-radius: 12px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: #fff;
    font: inherit; font-size: 15px; outline: none;
}
.ta-input:focus { border-color: #818cf8; background: rgba(99,102,241,0.08); }
.ta-captcha:empty { display: none; }
.ta-captcha { margin-top: 8px; }
.ta-msg { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.7); margin-top: 8px; }
.ta-msg.ta-ok { color: #86efac; }
.ta-msg.ta-warn { color: #fcd34d; }
.ta-msg.ta-err { color: #fca5a5; }
.ta-email-host[hidden] { display: none; }

/* Список акаунтів */
.ta-chooser { margin: 0 auto; }
.ta-list { display: flex; flex-direction: column; gap: 8px; }
.ta-list:empty { display: none; }
.ta-empty { font-size: 13px; color: rgba(255,255,255,0.5); }
.ta-acc { display: flex; align-items: center; gap: 4px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.ta-acc:hover { border-color: rgba(129,140,248,0.5); }
.ta-acc.ta-busy { opacity: .5; pointer-events: none; }
.ta-acc-main {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    background: transparent; border: 0; color: inherit; cursor: pointer; text-align: left; font: inherit;
}
.ta-ava {
    width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-weight: 700;
}
.ta-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ta-acc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ta-acc-name { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-acc-mail { font-size: 12.5px; color: rgba(255,255,255,0.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-forget {
    width: 36px; height: 36px; margin-right: 6px; border-radius: 10px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; color: rgba(255,255,255,0.45); cursor: pointer;
}
.ta-forget:hover { background: rgba(255,255,255,0.08); color: #fff; }
.ta-forget .ta-icon { width: 16px; height: 16px; }
@media (max-width: 420px) {
    .ta-card, .ta-chooser { padding: 22px 16px 16px; border-radius: 16px; }
    .ta-email { flex-direction: column; }
    .ta-primary { width: 100%; }
}
.ta-card:focus { outline: none; }
.ta-list:empty { display: none; }
[data-google] { display: block; }
.ta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ta-tabs { display: flex; gap: 6px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.ta-tab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; cursor: pointer;
    background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
    font: inherit; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.6);
}
.ta-tab.ta-on { color: #fff; border-bottom-color: #6366f1; }
/* Кабінет у модалці: на ПК — панель біля аватара, на телефоні — на весь екран */
.ta-cab-back { z-index: 1001; align-items: stretch; justify-content: flex-end; padding: 8px; }
.ta-cab { display: flex; flex-direction: column; width: min(720px, 100%); min-height: 0; background: #0e0e12; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; overflow: hidden; box-shadow: 0 28px 80px rgba(0,0,0,0.6); }
.ta-cab-head { position: relative; flex: none; padding: 6px 48px 0 10px; }
.ta-cab-head .ta-close { top: 6px; right: 6px; }
.ta-cab-frame { flex: 1; min-height: 0; width: 100%; border: 0; background: #0e0e12; }
@media (max-width: 560px) {
    .ta-cab-back { padding: 0; }
    .ta-cab { width: 100%; border: 0; border-radius: 0; }
}
/* «Підключіть свій АІ» (23.11, tnp-auth.js renderAi) */
.ta-ai { display: flex; flex-direction: column; gap: 10px; }
.ta-ai-apps { display: flex; flex-direction: column; gap: 8px; }
.ta-ai-app { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 16px; text-align: left;
    background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #fff; }
.ta-ai-app:hover { background: rgba(255,255,255,0.11); }
.ta-ai-app span { font-weight: 400; font-size: 12.5px; color: rgba(255,255,255,0.6); }
.ta-ai-copy { display: flex; flex-direction: column; gap: 6px; }
.ta-ai-copy-label { font-size: 12.5px; color: rgba(255,255,255,0.6); }
.ta-ai-code { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,0.35); color: #e5e7eb;
    font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.ta-ai-copybtn { min-height: 36px; }
.ta-ai .ta-primary { width: 100%; }
.ta-ai-status { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px;
    background: rgba(99,102,241,0.12); font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.85); }
.ta-ai-spin { flex: none; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25); border-top-color: #a5b4fc; animation: ta-ai-spin .9s linear infinite; }
@keyframes ta-ai-spin { to { transform: rotate(360deg); } }
.ta-ai-ok { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; animation: ta-ai-pop .35s ease-out; }
.ta-ai-check { width: 72px; height: 72px; }
.ta-ai-check circle { fill: none; stroke: #22c55e; stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151;
    animation: ta-ai-draw .6s ease-out forwards; }
.ta-ai-check path { fill: none; stroke: #22c55e; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 40; stroke-dashoffset: 40; animation: ta-ai-draw .35s .5s ease-out forwards; }
@keyframes ta-ai-draw { to { stroke-dashoffset: 0; } }
@keyframes ta-ai-pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ta-ai-check circle, .ta-ai-check path { animation: none; stroke-dashoffset: 0; } .ta-ai-ok, .ta-ai-spin { animation: none; } }
.ta-ai-on { font-style: normal; font-weight: 500; font-size: 12px; color: #86efac; margin-left: 6px; }
.ta-ai-ok-still, .ta-ai-ok-still .ta-ai-check circle, .ta-ai-ok-still .ta-ai-check path { animation: none; stroke-dashoffset: 0; }
.ta-ai-reissue { font-size: 12.5px; font-weight: 500; opacity: .7; }
.ta-ai-more summary { cursor: pointer; font-size: 13px; color: rgba(255,255,255,0.7); padding: 4px 2px; }
.ta-ai-more[open] summary { margin-bottom: 8px; }
/* чат на сайті (23.11) */
.ta-ai-or { text-align: center; font-size: 12.5px; color: rgba(255,255,255,0.5); margin: 2px 0 -2px; }
.ta-ai-chat { display: flex; flex-direction: column; gap: 8px; height: min(70vh, 560px); }
.ta-ai-chathead { display: flex; align-items: center; gap: 8px; }
.ta-ai-chathead .ta-btn { width: auto; min-height: 32px; padding: 0 8px; }
.ta-ai-chathead b { flex: 1; font-size: 15px; }
.ta-ai-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.ta-ai-hint { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.45; }
.ta-ai-msg { max-width: 88%; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.ta-ai-me { align-self: flex-end; background: #4f46e5; color: #fff; }
.ta-ai-bot { align-self: flex-start; background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
.ta-ai-bot a { color: #a5b4fc; }
.ta-ai-typing { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.6); }
.ta-ai-form { display: flex; gap: 8px; align-items: flex-end; }
.ta-ai-in { flex: 1; resize: none; min-height: 44px; }
.ta-ai-send { width: auto; }
.ta-card:has(.ta-ai-chat) { width: min(560px, calc(100vw - 24px)); max-width: none; }
.ta-ai .ta-ai-send { width: auto; flex: none; }
.ta-ai .ta-ai-in { width: auto; min-width: 0; flex: 1 1 auto; }
