:root{--purple: #6e5cff;--purple-2: #8b5cf6;--ink: #121529;--muted: #68708a;--line: rgba(31, 38, 74, .1);--bg: #eef0f8;--sheet: #fff;--red: #f04f7a;--green: #19b783}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%}body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}.sheet{max-width:768px;min-height:100dvh;margin:0 auto;background:var(--sheet);box-shadow:0 0 0 1px var(--line),0 24px 80px #48498e1f;padding:16px 16px 48px;overflow:auto}.head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.tabs{display:flex;background:#f3f4fb;border-radius:12px;padding:3px}.tabs button{border:0;background:transparent;padding:8px 14px;border-radius:10px;font-weight:700;color:var(--muted)}.tabs button.on{background:#fff;color:var(--ink);box-shadow:0 4px 12px #48498e1f}.text-btn,.linkish{border:0;background:none;color:var(--purple);font-weight:700;padding:0}.brand-row{display:flex;align-items:center;gap:10px;font-size:20px;letter-spacing:-.04em}.brand-mark{width:32px;height:32px;border-radius:11px;background:linear-gradient(145deg,#4b80ff,#755bff);display:inline-block}.auth{padding:24px 8px 48px;text-align:center}.auth .head{justify-content:center;margin-bottom:24px}.auth .tabs{margin:0 auto}.auth h1{font-size:28px;margin:18px 0 8px}.auth p{color:var(--muted)}.hourglass{font-size:42px;margin:24px 0}.btn{min-height:46px;border:none;border-radius:14px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;color:#fff;background:linear-gradient(135deg,#496dff,#6f5bff 45%,#9a54f8);box-shadow:0 12px 24px #604fff45;text-decoration:none;width:100%;margin-top:12px}.btn.ghost,.btn.sm{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:none;width:auto}.btn.sm{min-height:36px;padding:0 12px;font-size:13px;margin:0}.btn.danger-ghost{background:#fff5f7;color:var(--red);box-shadow:none}.picker{width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--line);background:#fafbff;border-radius:16px;padding:12px 14px;text-align:left;margin:8px 0 16px}.picker b,.pick-item b{display:block}.picker small,.pick-item small,.card small,.list-row small,.hint{color:var(--muted);font-size:13px}.picker-panel{border:1px solid var(--line);border-radius:16px;padding:10px;margin:-8px 0 16px;background:#fff}.pick-item{width:100%;text-align:left;border:0;background:transparent;padding:10px 8px;border-radius:10px}.pick-item.on,.pick-item:hover{background:#f3f4fb}section{border-top:1px solid var(--line);padding:18px 0}.sec-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}h2{font-size:18px;margin:0 0 12px}.row{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px}.switch{width:48px;height:28px;border:0;border-radius:999px;background:#d8dbe8;position:relative}.switch:after{content:"";position:absolute;width:22px;height:22px;border-radius:50%;background:#fff;top:3px;left:3px;transition:left .15s ease}.switch.on{background:var(--purple)}.switch.on:after{left:23px}.empty{background:#f6f7fc;border-radius:14px;padding:16px;color:var(--muted);font-size:14px}.card{border:1px solid var(--line);border-radius:16px;padding:14px;margin-top:10px;position:relative}.card-top{display:flex;justify-content:space-between;gap:8px}.stats{display:flex;gap:12px;margin-top:8px;color:var(--muted);font-size:13px}.icon-btn{border:0;background:#f3f4fb;width:32px;height:32px;border-radius:10px}.menu{display:flex;flex-direction:column;margin-top:8px;border-top:1px solid var(--line)}.menu button{border:0;background:transparent;text-align:left;padding:10px 0}.menu .danger{color:var(--red)}.modal-back{position:fixed;top:0;right:0;bottom:0;left:0;background:#12152973;display:flex;align-items:flex-end;justify-content:center;z-index:20}.modal{width:min(768px,100%);max-height:92dvh;overflow:auto;background:#fff;border-radius:20px 20px 0 0;padding:16px 16px 28px}.modal.wide{min-height:50dvh;width:min(980px,100%)}.modal-head{display:flex;justify-content:space-between;align-items:center}.modal-body{display:flex;flex-direction:column;gap:8px}label{font-size:13px;color:var(--muted);font-weight:600}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:10px 12px}.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.type-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.type-card{border:1px solid var(--line);background:#fff;border-radius:14px;padding:14px;text-align:left;font-weight:700}.badge{display:inline-flex;width:28px;height:28px;border-radius:8px;background:var(--purple);color:#fff;align-items:center;justify-content:center;margin-right:8px;font-size:12px}.list-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}.error{color:var(--red)}.pad{padding:24px}.adv{display:flex;flex-direction:column;gap:8px}.builder-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:16px;align-items:start}@media(max-width:720px){.builder-grid{grid-template-columns:1fr}}.row-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:10px}.phone-preview{background:#111427;border-radius:28px;padding:14px;box-shadow:inset 0 0 0 1px #ffffff14}.phone-screen{min-height:420px;border-radius:20px;padding:22px 16px;background:radial-gradient(500px 240px at 20% -10%,color-mix(in srgb,var(--accent, #8b5cf6) 40%,transparent),transparent),#0f1221;color:#fff}.phone-screen h3{margin:0 0 8px;font-size:24px;letter-spacing:-.03em}.phone-screen .muted{color:#b7bed6;line-height:1.45}.preview-btn{display:inline-flex;margin-top:18px;min-height:44px;padding:0 16px;align-items:center;border-radius:12px;background:linear-gradient(135deg,var(--accent, #8b5cf6),#4b80ff);color:#fff;font-weight:700;text-decoration:none}.err{color:var(--red);font-weight:600}.preview-img{width:100%;border-radius:14px;margin:12px 0;display:block}.builder-form{display:flex;flex-direction:column;gap:10px}.builder-section{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}.builder-section-accent{background:#f5f3ff;border-color:#ddd6fe}.builder-section-title{margin:0 0 4px;font-size:14px;font-weight:800;letter-spacing:-.02em;color:#111827}.preview-caption{font-size:12px;font-weight:700;color:#c7cce0;margin:0 0 8px;text-align:center}.phone-preview.theme-light .preview-caption{color:#4b5563}.seg-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:8px 0 4px}@media(max-width:720px){.seg-row{grid-template-columns:1fr}.builder-grid{display:flex;flex-direction:column}.builder-grid .phone-preview{order:-1;position:sticky;top:0;z-index:2}}.seg{display:inline-flex;width:100%;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.seg button{flex:1;border:0;background:transparent;padding:9px 8px;font-weight:700;font-size:13px;color:var(--muted);cursor:pointer}.seg button.on{background:#111827;color:#fff}.builder-section-accent .seg{background:#fff;border-color:#c4b5fd;box-shadow:0 1px #6d28d914}.builder-section-accent .seg button.on{background:#5b21b6}.legal-fold{background:#fafafa}.legal-fold summary{cursor:pointer;font-weight:700;font-size:13px;color:var(--muted);margin-bottom:6px}.phone-preview{position:relative}.phone-notch{width:96px;height:8px;border-radius:999px;background:#ffffff1f;margin:0 auto 10px}.phone-preview.theme-light .phone-notch{background:#0000001f}.phone-preview.theme-light{background:#e8ecf4}.phone-screen{display:flex;flex-direction:column;align-items:center;text-align:center;background:radial-gradient(500px 240px at 20% -10%,color-mix(in srgb,var(--accent, #2AABEE) 40%,transparent),transparent),var(--lp-bg, #0f1221);color:var(--lp-text, #fff)}.phone-preview.theme-light .phone-screen{box-shadow:inset 0 0 0 1px #0f12210f}.phone-screen .muted{color:var(--lp-muted, #b7bed6)}.preview-avatar{width:88px;height:88px;border-radius:50%;margin:8px 0 16px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent, #2AABEE) 28%,#1b2038);color:#fff;font-size:32px;font-weight:800;overflow:hidden;box-shadow:0 10px 24px #00000038}.phone-preview.theme-light .preview-avatar{background:color-mix(in srgb,var(--accent, #2AABEE) 22%,#fff);color:#111;box-shadow:0 8px 20px #0f12211f}.preview-avatar img{width:100%;height:100%;object-fit:cover;display:block}.preview-btn.style-tg{background:linear-gradient(135deg,#2aabee,#229ed9);border-radius:12px}.preview-btn.style-max{background:linear-gradient(135deg,#7c3aed,#4c1d95);border-radius:999px}.preview-legal{margin-top:auto;padding-top:28px;width:100%;font-size:11px;line-height:1.4;color:var(--lp-muted, #b7bed6);opacity:.85;text-align:center}.preview-legal-links{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:6px}.preview-legal-links span{text-decoration:underline;text-underline-offset:2px}:root{--acc-grey: #b0b0b0;--acc-ink: #333333;--acc-muted: #888888;--acc-line: #eeeeee;--cta-green: #34a853}.sheet{background:#fff}section.acc{border-top:1px solid var(--acc-line);padding:0}.acc-head{width:100%;display:flex;align-items:center;gap:12px;border:0;background:transparent;padding:16px 2px;text-align:left;color:var(--acc-ink)}.acc-count{flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:var(--acc-grey);color:#fff;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;line-height:1}.acc-title{flex:1;font-size:17px;font-weight:700;letter-spacing:-.02em}.acc-chev{color:#c5c5c5;font-size:16px;transition:transform .15s ease;transform:rotate(0)}.acc-chev.up{transform:rotate(180deg)}.acc-body{padding:0 2px 14px}.empty-bot{color:var(--acc-muted);font-size:14px;line-height:1.45;padding:6px 4px 10px;text-align:left}.empty-bot b{color:var(--acc-ink);font-weight:700}.empty-bot code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;color:var(--acc-ink)}.green-cta{width:100%;display:flex;align-items:center;justify-content:space-between;border:0;background:transparent;color:var(--cta-green);font-weight:700;font-size:15px;padding:10px 4px 12px;margin:0}.green-plus{font-size:22px;font-weight:500;line-height:1}.item-row{display:flex;align-items:flex-start;gap:10px;padding:12px 2px;border-top:1px solid var(--acc-line);position:relative;flex-wrap:wrap}.item-row:first-of-type{border-top:1px solid var(--acc-line)}.item-main{flex:1;min-width:0}.item-main b{display:block;font-size:15px;color:var(--acc-ink);margin-bottom:2px}.item-main small{display:block;color:var(--acc-muted);font-size:12px;line-height:1.35}.oauth-banner{margin:0 0 12px;padding:10px 12px;border-radius:10px;font-size:13px;line-height:1.4}.oauth-banner.ok{background:#ecfdf3;color:#166534}.oauth-banner.wait{background:#fff7ed;color:#9a3412}.oauth-line.wait{color:#b45309}.oauth-grant{display:inline-block;margin-top:6px;font-size:13px;font-weight:600;color:#1a5cff}.icon-btn.dots{background:transparent;color:var(--acc-muted);font-size:20px;width:28px;height:28px;line-height:1;padding:0}.int-badge{flex:0 0 32px;width:32px;height:32px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:13px;background:#6e5cff}.int-badge.type-yandex{background:#fc3f1d}.int-badge.type-facebook{background:#1877f2}.int-badge.type-google{background:#4285f4}.int-badge.type-vk{background:#07f}.int-badge.type-website{background:#5b6b8c}.int-badge.type-keytaro{background:#0f766e}.keys-block{display:flex;flex-direction:column;gap:10px;padding:18px 0 8px;border-top:1px solid var(--acc-line)}.key-row{width:100%;display:flex;align-items:center;gap:12px;border:1px solid #e4e4e4;border-radius:12px;background:#fff;padding:12px 14px;text-align:left;color:var(--acc-ink)}.key-row:disabled{opacity:.6}.key-row-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.key-row-label{font-size:14px;font-weight:600;color:var(--acc-ink)}.key-row-mask{font-size:13px;color:var(--acc-muted);letter-spacing:.04em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.key-eye{color:#a0a0a0;display:inline-flex}.danger-sec{border-top:1px solid var(--acc-line);padding:18px 0 8px}.item-row .menu{flex:0 0 100%;width:100%;margin-top:4px;padding-top:4px}.sheet.rich-sheet{max-width:980px}.rich-editor{display:flex;flex-direction:column;gap:8px}.fmt-bar{display:flex;flex-wrap:wrap;gap:4px}.fmt-btn{min-width:34px;height:34px;padding:0 8px;border:1px solid var(--line);background:#fff;border-radius:8px;font-weight:800;font-size:13px;color:var(--ink)}.fmt-btn.fmt-i{font-style:italic;font-weight:600}.fmt-btn.fmt-u{text-decoration:underline}.fmt-btn.fmt-s{text-decoration:line-through;font-weight:600}.fmt-btn.fmt-code,.fmt-btn.fmt-link{font-weight:700}.rich-count.over{color:var(--red);font-weight:700}.rich-photo-thumb{width:100%;max-height:160px;object-fit:cover;border-radius:10px;margin-top:6px}.tg-preview-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.tg-phone{background:#1c1c1e;border-radius:28px;padding:10px 8px 14px;box-shadow:0 16px 40px #08101c47}.tg-phone.light{background:#3a3a3c}.tg-phone-speaker{width:72px;height:5px;border-radius:999px;background:#111;margin:0 auto 8px}.tg-preview{font-family:Roboto,SF Pro Text,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#0e1621;border-radius:12px;overflow:hidden}.tg-preview-head{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#17212b}.tg-preview-back,.tg-preview-more{color:#6ab3f3;font-size:26px;line-height:1;width:22px;text-align:center;flex:0 0 auto}.tg-preview-more{font-size:20px;color:#fff}.tg-preview-names{flex:1;min-width:0}.tg-preview-avatar{width:36px;height:36px;border-radius:50%;background:#2b5278;color:#fff;display:grid;place-items:center;font-weight:700;font-size:15px;flex:0 0 auto}.tg-preview-title{color:#fff;font-weight:600;font-size:16px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tg-preview-sub{color:#708499;font-size:13px}.tg-preview-feed{padding:10px 8px 16px;min-height:380px;background-color:#0e1621;background-image:radial-gradient(circle at 18% 22%,rgba(90,130,160,.16) 0 1.2px,transparent 1.6px),radial-gradient(circle at 72% 64%,rgba(90,130,160,.1) 0 1px,transparent 1.4px);background-size:22px 22px,30px 30px}.tg-post{max-width:92%}.tg-bubble{background:#182533;border-radius:4px 14px 14px;overflow:hidden;box-shadow:0 1px 1px #00000047}.tg-bubble-photo{display:block;width:100%;max-height:240px;object-fit:cover;background:#0e1621}.tg-bubble-text{padding:7px 11px 2px;color:#fff;font-size:16px;line-height:21px;white-space:pre-wrap;word-break:break-word}.tg-bubble-text a{color:#6ab3f3;text-decoration:none}.tg-bubble-text b,.tg-bubble-text strong{font-weight:700}.tg-bubble-text i,.tg-bubble-text em{font-style:italic}.tg-bubble-text u,.tg-bubble-text ins{text-decoration:underline}.tg-bubble-text s,.tg-bubble-text strike,.tg-bubble-text del{text-decoration:line-through}.tg-bubble-text code{font-family:Roboto Mono,ui-monospace,monospace;background:#ffffff14;border-radius:4px;padding:0 4px;font-size:14px}.tg-bubble-text pre{font-family:Roboto Mono,ui-monospace,monospace;background:#00000040;border-radius:6px;padding:8px;overflow:auto;font-size:14px;white-space:pre-wrap;margin:4px 0}.tg-bubble-text blockquote{margin:4px 0;padding-left:8px;border-left:3px solid #6ab3f3;color:#c5d0db}.tg-bubble-text .tg-spoiler{background:#3e5468;color:transparent;border-radius:4px}.tg-bubble-text .tg-spoiler:hover{background:transparent;color:inherit}.tg-bubble-meta{text-align:right;color:#6d7f8f;font-size:12px;padding:0 8px 6px}.tg-kb{display:flex;flex-direction:column;gap:3px;margin-top:3px}.tg-kb-btn{display:block;text-align:center;background:#253443;color:#64b5f6;border-radius:6px;padding:8px 10px;font-size:14px;font-weight:500;text-decoration:none;box-shadow:0 1px 1px #0003}.tg-preview.light .tg-preview-head{background:#517da2}.tg-preview.light .tg-preview-back{color:#fff}.tg-preview.light .tg-preview-sub{color:#ffffffc7}.tg-preview.light .tg-preview-feed{background-color:#8ca2b4;background-image:radial-gradient(circle at 18% 22%,rgba(255,255,255,.28) 0 1.2px,transparent 1.6px),radial-gradient(circle at 72% 64%,rgba(255,255,255,.16) 0 1px,transparent 1.4px)}.tg-preview.light .tg-bubble{background:#fff;box-shadow:0 1px 1px #0000001f}.tg-preview.light .tg-bubble-text{color:#111}.tg-preview.light .tg-bubble-text a{color:#168dcd}.tg-preview.light .tg-bubble-text code,.tg-preview.light .tg-bubble-text pre{background:#eef2f5}.tg-preview.light .tg-bubble-text blockquote{color:#4b5563;border-left-color:#168dcd}.tg-preview.light .tg-bubble-text .tg-spoiler{background:#c5d0db}.tg-preview.light .tg-bubble-meta{color:#8d98a4}.tg-preview.light .tg-kb-btn{background:#fff;color:#168dcd}@media(max-width:720px){.sheet.rich-sheet{max-width:none}.builder-grid .tg-phone{order:-1}}
