:root{color:#1f1a17;background:#efe7dc;font-family:Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;line-height:1.5;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html{height:100%}body{margin:0;min-height:100dvh;min-height:100svh;background:radial-gradient(circle at top left,rgba(20,145,140,.16),transparent 28rem),#efe7dc}#root{min-height:100dvh;min-height:100svh}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}h1{margin:0 0 .4rem;font-size:1.7rem;letter-spacing:-.03em}p{margin:0}.screen{position:relative;min-height:100dvh;display:grid;place-items:center;padding:1.5rem}.lang-switch{display:flex;gap:.1rem;flex:none}.lang-switch button{border:0;background:transparent;color:#8d969c;padding:.2rem .45rem;border-radius:999px;font-size:.85rem}.lang-switch button.active{color:#0f6e6b;font-weight:700}.screen>.lang-switch{position:absolute;top:1rem;right:1rem}.card{width:min(100%,28rem);background:#fffdf8;border:1px solid #e6d9c8;border-radius:1.25rem;padding:1.5rem;box-shadow:0 20px 50px #50341c14;display:grid;gap:.9rem}.card.wide{width:min(100%,34rem)}.eyebrow{color:#0f6e6b;font-size:.82rem;font-weight:700;letter-spacing:.08em}.muted{color:#6f645c}.field,.check{display:grid;gap:.35rem}.field span,.search span{font-size:.92rem}input,textarea,select{width:100%;border:1px solid #e0d3c4;background:#fff;border-radius:.8rem;padding:.75rem .85rem}textarea{resize:vertical;min-height:4.5rem}input:focus,textarea:focus,select:focus{outline:2px solid rgba(15,110,107,.25);border-color:#0f6e6b}.primary,.ghost,.link-button{border-radius:999px;padding:.7rem 1.1rem;border:1px solid transparent}.primary,.link-button{background:#0f6e6b;color:#fff;text-decoration:none;display:inline-flex;justify-content:center}.ghost{background:transparent;border-color:#e0d3c4}.danger{color:#9f2d2d}.primary:disabled,.ghost:disabled{opacity:.6;cursor:default}.row{display:flex;gap:.6rem;flex-wrap:wrap}.session-table-wrap{overflow-x:auto;margin-top:.75rem}.session-table{width:100%;border-collapse:collapse;font-size:.92rem}.session-table th,.session-table td{padding:.55rem .65rem;border-bottom:1px solid #e0d3c4;text-align:left;vertical-align:middle}.session-table th{color:#6f645c;font-weight:600}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.82rem;word-break:break-all}.field select,.field textarea{width:100%;border-radius:12px;border:1px solid #e0d3c4;padding:.65rem .75rem;font:inherit;background:#fffdf9}.field textarea{min-height:5rem;resize:vertical}.admin-shell{min-height:100vh;display:grid;grid-template-columns:240px 1fr;background:#f6efe6}.admin-sidebar{padding:1.25rem 1rem;border-right:1px solid #e0d3c4;background:#fffaf3;display:flex;flex-direction:column;gap:.75rem}.admin-brand{margin:0;font-size:1.15rem}.admin-user-line{margin:0;font-size:.92rem}.admin-role{display:inline-block;margin-left:.35rem;padding:.1rem .45rem;border-radius:999px;background:#ebe2d7;font-size:.75rem}.admin-nav{display:flex;flex-direction:column;gap:.25rem}.admin-nav-link{padding:.55rem .7rem;border-radius:10px;border:none;background:transparent;width:100%;text-align:left;font:inherit;color:#3b342f;text-decoration:none;cursor:pointer}.admin-nav-link.active,.admin-nav-link:hover{background:#ebe2d7}.admin-sidebar-foot{margin-top:auto;display:flex;flex-direction:column;gap:.5rem}.admin-main{padding:1.25rem}.admin-page h1{margin-top:0}.admin-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.75rem;margin-top:1rem}.admin-stat{border:1px solid #e0d3c4;border-radius:14px;padding:.85rem;background:#fffdf9;display:flex;flex-direction:column;gap:.25rem}.admin-stat strong{font-size:1.4rem}.admin-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:1rem 0}.admin-form-grid .span-2{grid-column:span 2}.admin-domain-picks{display:flex;flex-direction:column;gap:.45rem;margin:.75rem 0 1rem}.admin-check-row{display:flex;align-items:center;gap:.55rem;font-size:.92rem}.admin-check-row input{width:auto}.admin-edit-sheet{margin-top:1.25rem;border-top:1px solid var(--border);padding-top:1rem}.admin-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:.5rem}.admin-page-header h1{margin:0 0 .35rem}.admin-page-actions{display:flex;flex-wrap:wrap;gap:.45rem}.admin-panel{border:1px solid #e8dfd4;border-radius:14px;padding:1rem;background:#fffdf9;margin-bottom:1rem}.admin-subtitle{margin:0 0 .75rem;font-size:1rem}.admin-quick-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.65rem;margin-top:1.25rem}.admin-quick-card{border:1px solid #e0d3c4;border-radius:14px;padding:.85rem;background:#fffdf9;text-align:left;cursor:pointer;font:inherit;display:flex;flex-direction:column;gap:.25rem}.admin-quick-card:hover{border-color:#0f6e6b}.admin-domain-chips{display:flex;flex-wrap:wrap;gap:.35rem}.admin-domain-chip{font-size:.72rem;padding:.15rem .45rem;border-radius:999px;background:#ebe2d7;word-break:break-all}.admin-preview{margin:0 0 .75rem;font-size:.92rem}.admin-search{max-width:420px;margin-bottom:.75rem}.admin-empty{margin-top:1rem}.admin-toast{position:fixed;right:1rem;bottom:1rem;z-index:30;background:#1f4f4d;color:#fff;padding:.65rem .9rem;border-radius:10px;box-shadow:0 8px 24px #00000026}.admin-login-card{max-width:420px}.badge{display:inline-block;padding:.12rem .45rem;border-radius:999px;font-size:.78rem}.badge.ok{background:#dcefe9;color:#0f6e6b}.badge.paused{background:#f0e8dc;color:#6f645c}.row-muted td{opacity:.72}@media(max-width:860px){.admin-shell{grid-template-columns:1fr}.admin-sidebar{border-right:none;border-bottom:1px solid #e0d3c4}.admin-form-grid{grid-template-columns:1fr}.admin-form-grid .span-2{grid-column:span 1}}.session-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:.25rem}.session-actions{display:flex;flex-wrap:wrap;gap:.35rem}.ghost.danger{border-color:#e8bcbc;color:#9f2d2d}.error{color:#9f2d2d}.notice{color:#0f6e6b}.quiet-link{color:#6f645c}.steps{list-style:none;display:flex;gap:.4rem;padding:0;margin:0}.steps li{flex:1;text-align:center;border-radius:999px;padding:.35rem .4rem;background:#f3ece3;color:#6f645c;font-size:.85rem}.steps li.active{background:#0f6e6b;color:#fff}.steps li.done{background:#d7f3ef;color:#0f6e6b}.chat-shell{height:100dvh;display:grid;grid-template-columns:22rem minmax(0,1fr)}.sidebar,.thread{min-height:0;display:flex;flex-direction:column}.sidebar{background:#fffdf8;border-right:1px solid #e6d9c8}.brand,.thread-head,.account,.tabs,.pane-tools{padding:.9rem 1rem}.brand,.thread-head{display:flex;gap:.75rem;align-items:center;border-bottom:1px solid #f0e6da}.brand-copy{min-width:0;flex:1}.brand .lang-switch{margin-left:auto}.brand p,.thread-head span{color:#6f645c;font-size:.85rem}.mark{width:2.4rem;height:2.4rem;display:grid;place-items:center;border-radius:.8rem;background:#0f6e6b;color:#fff;font-weight:700}.account{display:grid;gap:.55rem}.tabs{display:flex;gap:.4rem;padding-top:0}.tabs button,.back{border:0;background:#f3ece3;border-radius:999px;padding:.4rem .8rem}.tabs button.active{background:#0f6e6b;color:#fff}.list-pane{min-height:0;display:flex;flex-direction:column;flex:1}.search,.pad{padding:0 1rem .6rem}.scroll-list,.messages{overflow:auto;min-height:0}.scroll-list{flex:1}.dialog{width:100%;border:0;background:transparent;display:flex;gap:.75rem;text-align:left;padding:.75rem 1rem}.dialog.active,.dialog:hover{background:#f6f1ea}.avatar{width:2.5rem;height:2.5rem;flex:0 0 auto;display:grid;place-items:center;border-radius:50%;background:#d7f3ef;color:#0f6e6b;font-weight:700}.dialog-body{min-width:0;flex:1;display:grid;gap:.15rem}.dialog-top,.dialog-bottom{display:flex;justify-content:space-between;gap:.5rem;align-items:center}.dialog-top time,.preview{color:#6f645c;font-size:.85rem}.dialog-top strong,.preview{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview{display:flex;gap:.35rem;align-items:center;min-width:0}.badge{flex:0 0 auto;border-radius:999px;padding:0 .35rem;font-size:.72rem;background:#f3ece3}.badge-group{background:#d7f3ef;color:#0f6e6b}.badge-channel{background:#f8e7cf;color:#8a5a16}.unread{background:#0f6e6b;color:#fff;border-radius:999px;min-width:1.3rem;text-align:center;font-size:.75rem;padding:0 .3rem}.thread{background:#fffdf8b8}.thread-empty{margin:auto;text-align:center;max-width:24rem;display:grid;gap:.5rem}.messages{flex:1;padding:1rem;display:flex;flex-direction:column;gap:.7rem}.bubble{max-width:min(36rem,80%);padding:.7rem .85rem;border-radius:1rem;display:grid;gap:.35rem;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.in{background:#fff;border:1px solid #f0e6da}.bubble.out{align-self:flex-end;background:#d7f3ef}.bubble time,.sender{color:#6f645c;font-size:.75rem}.photo{max-width:18rem;border-radius:.8rem;display:block}.file-card,.file-chip{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.composer{padding:.8rem 1rem 1rem;border-top:1px solid #f0e6da;display:grid;gap:.5rem}.composer-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.6rem;align-items:end}.attach{position:relative;overflow:hidden;border:1px solid #e0d3c4;border-radius:999px;padding:.7rem .9rem;background:#fff}.attach input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.back{display:none}.empty,.text-button{color:#6f645c}.text-button{border:0;background:transparent;padding:.6rem 1rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}@media(max-width:800px){.chat-shell{grid-template-columns:1fr}.chat-shell[data-pane=thread] .sidebar,.chat-shell[data-pane=list] .thread{display:none}.back{display:inline-flex}.composer-row{grid-template-columns:1fr}.bubble{max-width:92%}}.tg-auth{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2;background:#fff;color:#222;display:flex;flex-direction:column;overflow:hidden;height:100%}.tg-auth-scroll{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}.tg-auth-inner{width:min(100%,26.5rem);margin:0 auto;padding:.35rem 1.35rem calc(1.5rem + env(safe-area-inset-bottom,0px));position:relative;box-sizing:border-box}.tg-fab-row{display:flex;justify-content:flex-end;margin-top:1.75rem;padding-top:.25rem}.tg-top{height:3rem;display:flex;align-items:center;justify-content:space-between}.tg-auth .lang-switch button.active{color:#3390ec}.tg-back{width:2.5rem;height:2.5rem;border:0;background:transparent;color:#3390ec;padding:0;display:grid;place-items:center}.tg-back svg,.tg-row svg,.tg-fab svg{width:1.55rem;height:1.55rem}.tg-logo{display:flex;justify-content:center;margin:1.6rem 0 1.35rem}.tg-logo svg{width:7.2rem;height:7.2rem;filter:drop-shadow(0 10px 18px rgba(42,171,238,.28))}.tg-copy{text-align:center;margin-bottom:1.6rem}.tg-copy h1{font-size:1.55rem;font-weight:700;letter-spacing:0;margin:0 0 .45rem}.tg-copy p{color:#8d969c;font-size:.98rem}.tg-copy-plain{text-align:left;margin-top:.4rem}.tg-copy-plain h1{color:#3390ec;font-size:1.35rem}.tg-notice,.tg-error{margin-top:.8rem;font-size:.92rem}.tg-notice{color:#3390ec}.tg-error{color:#e53935}.tg-fields{border-top:1px solid #e6e6e6;padding:.15rem 0 .5rem}.tg-fields .tg-row{min-height:0;padding:.4rem 0}.tg-fields>.tg-row:first-child{border-bottom:1px solid #e6e6e6}.tg-fields .tg-row.tg-phone{border-bottom:0;padding:.45rem 0 .2rem;min-height:0}.tg-row{width:100%;min-height:3.6rem;border:0;border-bottom:1px solid #e6e6e6;background:transparent;display:flex;align-items:center;justify-content:space-between;gap:.75rem;text-align:left;padding:.45rem 0;color:#9aa0a6}.tg-row small{display:block;font-size:.78rem;line-height:1.25;margin-bottom:.1rem}.tg-row strong{color:#222;font-size:1.05rem;font-weight:500;line-height:1.35}.tg-row.tg-phone{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;cursor:text;min-height:0;padding:.45rem 0 .15rem;overflow:visible;border-bottom:0}.tg-row.tg-phone>span{width:100%;display:block}.tg-phone-line{display:flex;align-items:center;flex-wrap:nowrap;gap:0;width:100%;margin-top:.2rem;min-height:2.35rem;padding-bottom:.4rem;border-bottom:1px solid #d7d7d7;transition:border-color .15s ease}.tg-phone-line:focus-within{border-bottom-color:#3390ec}.tg-phone-prefix{display:inline-flex;align-items:center;flex-shrink:0;color:#3390ec;font-size:1.05rem;font-weight:500;line-height:1.5;margin-right:.1rem}.tg-phone-prefix .tg-plus{flex-shrink:0;-webkit-user-select:none;user-select:none}.tg-phone-prefix.is-recognized,.tg-phone-prefix.is-recognized .tg-plus,.tg-phone-prefix.is-recognized .tg-dial{font-weight:700}.tg-phone-line .tg-dial{width:auto;min-width:.5rem;max-width:5rem;flex:0 0 auto;padding:0;margin:0;color:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;text-align:left}.tg-phone-line .tg-national{flex:1;min-width:0;font-size:1.05rem;line-height:1.5;padding:0;margin:0;color:#222;border:0;box-shadow:none;background:transparent}.tg-login-tabs{display:flex;gap:.35rem;margin:0 0 1rem;padding:.25rem;background:#f0f2f5;border-radius:.65rem}.tg-login-tabs button{flex:1;border:0;border-radius:.5rem;padding:.55rem .75rem;font-size:.92rem;font-weight:500;color:#707579;background:transparent}.tg-login-tabs button.active{background:#fff;color:#3390ec;box-shadow:0 1px 3px #00000014}.tg-qr-wrap{position:relative;display:flex;justify-content:center;align-items:center;min-height:16rem;padding:.5rem 0 1rem}.tg-qr-canvas{border-radius:.5rem;box-shadow:0 2px 12px #00000014}.tg-qr-spin{position:absolute}.tg-auth input{border:0;border-radius:0;background:transparent;padding:0;outline:none;box-shadow:none}.tg-auth input:focus{outline:none;border:0;box-shadow:none}.tg-code{position:relative;width:100%;border:0;background:transparent;display:flex;gap:.7rem;padding:.4rem 0 .2rem}.tg-code span{width:1.7rem;height:2.4rem;border-bottom:2px solid #d7d7d7;font-size:1.45rem;color:#222}.tg-code span.caret{border-bottom-color:#3390ec}.tg-code input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;width:100%;height:100%;cursor:text}.tg-password{display:grid;gap:.35rem;border-bottom:1px solid #e6e6e6;padding:.7rem 0 .45rem;position:relative}.tg-password input{font-size:1.05rem;color:#222;width:calc(100% - 3rem)}.tg-password input::placeholder{color:#b0b0b0}.tg-password>button{position:absolute;right:0;top:.65rem;border:0;background:transparent;color:#3390ec;padding:0}.tg-password small{color:#8d969c}.tg-fab{position:relative;right:auto;bottom:auto;flex:none;width:3.5rem;height:3.5rem;border:0;border-radius:50%;background:#3390ec;color:#fff;display:grid;place-items:center;box-shadow:0 8px 18px #3390ec59}.tg-fab:disabled{background:#c5dcf5;box-shadow:none;cursor:default}.tg-spin{width:1.25rem;height:1.25rem;border-radius:50%;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;animation:tg-spin .7s linear infinite}@keyframes tg-spin{to{transform:rotate(360deg)}}.tg-admin-link{position:fixed;left:max(1.35rem,calc((100vw - 26.5rem)/2 + 1.35rem));bottom:1.85rem;color:#8d969c;font-size:.92rem}.tg-sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:4;background:#00000059;display:flex;align-items:flex-end;justify-content:center}.tg-sheet{width:min(100%,26.5rem);max-height:min(78dvh,40rem);background:#fff;border-radius:1rem 1rem 0 0;display:flex;flex-direction:column;padding:.9rem 1rem .4rem}.tg-sheet-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.7rem}.tg-sheet-head button{border:0;background:transparent;color:#3390ec;padding:0}.tg-search{width:100%;border:0!important;border-radius:.7rem!important;background:#f1f3f4!important;padding:.7rem .8rem!important;margin-bottom:.4rem}.tg-country-list{overflow:auto;min-height:0}.tg-country-list button{width:100%;border:0;background:transparent;display:flex;justify-content:space-between;padding:.85rem .1rem;border-bottom:1px solid #f1f1f1}.tg-country-list button span:last-child{color:#8d969c}.tg-country-list button.active span:first-child{color:#3390ec}.tg-empty{color:#8d969c;padding:1rem 0}@media(min-width:700px){.tg-sheet-backdrop{align-items:center}.tg-sheet{border-radius:1rem;max-height:36rem}}@media(max-height:620px),(max-width:420px){.tg-logo{display:none}.tg-copy{margin-bottom:.65rem}.tg-copy h1{font-size:1.28rem;margin-bottom:.25rem}.tg-copy p{font-size:.9rem;line-height:1.35}.tg-login-tabs{margin-bottom:.55rem}.tg-top{height:2.65rem}.tg-row{min-height:3.35rem;padding:.4rem 0}.tg-row.tg-phone{min-height:4.5rem;padding-bottom:.75rem}}
