.telegram-dialog{position:fixed;inset:0;width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 28px);margin:auto;padding:0;border:1px solid #6d8aa077;border-radius:22px;color:#f3f5ff;background:linear-gradient(145deg,#132b3c,#151b32);box-shadow:0 18px 80px #0009;overflow:auto;overscroll-behavior:contain;font-family:inherit}
.telegram-dialog::backdrop{background:#020818c9;backdrop-filter:blur(12px)}
.telegram-dialog-header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:#142437;z-index:1;border-bottom:1px solid #4e63764d}
.telegram-dialog-header h2{font-family:inherit;font-size:20px;font-weight:700;line-height:1.25;letter-spacing:-.02em;margin:0;color:#f3f5ff}
.telegram-close{border:1px solid #7c90a65c;border-radius:11px;background:#203449;color:#e0f7ff;min-height:44px;padding:8px 12px;font:inherit;font-size:13px;cursor:pointer}
.telegram-content{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:20px}
.telegram-help,.telegram-status{font-size:14px;line-height:1.6;color:#b7c7dd;margin:0;overflow-wrap:anywhere}
.telegram-status{padding:0 20px 20px;color:#a5e7f2}
.telegram-status[hidden]{display:none}
.telegram-song{font-size:20px;line-height:1.3;font-weight:650;margin:0 0 2px;color:#fff;overflow-wrap:anywhere}
.telegram-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 16px;border:1px solid #8be6f2;border-radius:13px;background:#84e7f1;color:#092534;font:inherit;font-weight:650;font-size:14px;line-height:1.4;text-decoration:none;text-align:center;cursor:pointer}
.telegram-button.secondary{border-color:#4b647e;background:#182c42;color:#c6d9ed;font-weight:550}
.telegram-button:disabled{opacity:.5;cursor:wait}
.telegram-success{color:#91f1cd;margin:0;padding:12px;border:1px solid #6cae9255;border-radius:11px;background:#1a493b55;font-size:15px}
.telegram-settings{display:flex;flex-direction:column;align-items:flex-start;gap:12px;border:1px solid #34516b;border-radius:16px;padding:20px;background:#10223566;margin-top:18px}
.telegram-settings h3{font-size:18px;margin:0;color:#f1f5ff}
.telegram-dialog :is(button,a):focus-visible,.telegram-settings button:focus-visible{outline:2px solid #8ce9f7;outline-offset:3px}
.music-library .ml-telegram{display:none}
.music-library.is-expanded .ml-expanded .ml-telegram:not([hidden]){display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;margin:12px 0 0;padding:10px 14px;border:1px solid #527a91;border-radius:12px;background:#16354a88;color:#b6eff9;font:inherit;font-size:13px;cursor:pointer}
.music-library .ml-telegram[hidden]{display:none!important}
@media(max-width:480px){.telegram-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:18px}.telegram-dialog-header{padding:12px 14px}.telegram-dialog-header h2{font-size:18px}.telegram-content{padding:16px}.telegram-status{padding:0 16px 16px}}
@media(prefers-reduced-transparency:reduce){.telegram-dialog::backdrop{backdrop-filter:none;background:#030818f5}}
