:root{--radius: 10px;--background: #0a0a0a;--foreground: #fafafa;--card: #171717;--muted: #262626;--muted-foreground: #a1a1a1;--accent: #404040;--primary: #7f3dff;--primary-foreground: #fff;--destructive: #ff6568;--warning: #edb200;--success: #00b817;--info: #54a2ff;--border: #ffffff1a;--input: #ffffff26;--ring: #737373;--sidebar: #171717;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--background);color:var(--foreground);font-family:Geist,system-ui,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}.mono{font-family:Geist Mono,ui-monospace,monospace}.muted{color:var(--muted-foreground)}.label{display:block;font-weight:500;margin-bottom:8px}.input{width:100%;height:36px;padding:0 12px;border-radius:8px;border:1px solid var(--input);background:#ffffff0b;color:var(--foreground);font:inherit;outline:none;transition:border-color .15s,box-shadow .15s}.input::placeholder{color:#737373}.input:focus{border-color:var(--ring);box-shadow:0 0 0 3px #73737380}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:36px;padding:0 16px;border-radius:8px;border:1px solid transparent;font:inherit;font-weight:500;cursor:pointer;transition:background .15s,opacity .15s}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--primary);color:var(--primary-foreground)}.btn-primary:hover:not(:disabled){background:#6f2ff0}.btn-outline{background:#ffffff0b;border-color:var(--input);color:var(--foreground)}.btn-outline:hover:not(:disabled){background:var(--muted)}.btn-ghost{background:transparent;color:var(--muted-foreground)}.btn-ghost:hover:not(:disabled){background:var(--muted);color:var(--foreground)}.btn-sm{height:32px;padding:0 12px;font-size:13px}.w-full{width:100%}.error-box{padding:10px 12px;border-radius:8px;border:1px solid rgb(255 101 104 / .3);background:#ff656814;color:var(--destructive);font-size:13px}.auth{display:grid;grid-template-columns:1fr 1fr;min-height:100%}.auth-form-side{display:flex;flex-direction:column;align-items:flex-start;padding:32px}.auth-form-wrap{align-self:stretch}.auth-form-wrap{flex:1;display:flex;align-items:center;justify-content:center}.auth-form{width:100%;max-width:300px;display:flex;flex-direction:column;gap:20px}.auth-head{text-align:center}.auth-head h1{font-size:20px;font-weight:700;margin:0 0 8px}.auth-head p{margin:0;color:var(--muted-foreground);font-size:13px}.auth-image{background:linear-gradient(#00000059,#0000008c),radial-gradient(ellipse at 70% 30%,#3b2a6b 0%,transparent 60%),radial-gradient(ellipse at 20% 90%,#1c1233 0%,transparent 55%),#0f0f12;position:relative;overflow:hidden}.auth-image-content{position:absolute;left:48px;right:48px;bottom:48px}.auth-image-content h2{font-size:28px;margin:0 0 8px;font-weight:600}.auth-image-content p{margin:0;color:var(--muted-foreground);max-width:380px;line-height:1.5}.tg-glyph{position:absolute;right:-60px;top:80px;opacity:.08;width:420px;height:420px;color:#fff}.otp{position:relative;display:flex;gap:8px;justify-content:center}.otp-input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;font-size:16px;cursor:text}.otp-cell{width:42px;height:48px;display:grid;place-items:center;border:1px solid var(--input);border-radius:8px;background:#ffffff0b;font-size:20px;font-weight:600;transition:border-color .15s,box-shadow .15s}.otp-cell.on{border-color:var(--ring);box-shadow:0 0 0 3px #73737380}.link-btn{background:none;border:0;color:var(--foreground);cursor:pointer;font:inherit;text-decoration:underline;text-underline-offset:3px;padding:0}.center{text-align:center}@media (max-width: 860px){.auth{grid-template-columns:1fr}.auth-image{display:none}}.shell{display:flex;min-height:100%}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;z-index:20;background:var(--sidebar);display:flex;flex-direction:column;transition:transform .2s linear}.shell.collapsed .sidebar{transform:translate(-100%)}.inset{flex:1;min-width:0;margin-left:224px;display:flex;flex-direction:column;transition:margin .2s linear}.shell.collapsed .inset{margin-left:0}.sb-header{padding:8px}.sb-brand{display:flex;align-items:center;gap:8px;height:48px;padding:8px;border-radius:8px}.sb-brand-mark{width:32px;height:32px;border-radius:8px;background:var(--primary);display:grid;place-items:center;flex-shrink:0;color:#fff}.sb-brand-text{display:flex;flex-direction:column;min-width:0;line-height:1.25}.sb-brand-text b{font-weight:500;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sb-brand-text span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sb-content{flex:1;overflow:auto;padding:8px;display:flex;flex-direction:column;gap:4px}.sb-item{display:flex;align-items:center;gap:8px;height:32px;padding:8px;border-radius:8px;color:var(--foreground);text-decoration:none;font-size:14px;cursor:pointer;border:0;background:none;font-family:inherit;width:100%;text-align:left}.sb-item:hover{background:var(--muted)}.sb-sub{margin:0 14px;padding:2px 10px;border-left:1px solid var(--border);display:flex;flex-direction:column;gap:4px}.sb-sub .sb-item{height:28px;padding:0 8px}.sb-item.active{background:var(--muted);font-weight:500}.sb-footer{padding:8px}.sb-user{display:flex;align-items:center;gap:8px;height:48px;padding:8px;border-radius:8px}.sb-avatar{width:32px;height:32px;border-radius:8px;background:var(--muted);display:grid;place-items:center;font-size:12px;font-weight:600;flex-shrink:0}.sb-user .sb-brand-text{flex:1}.header{position:sticky;top:0;z-index:10;height:57px;flex-shrink:0;display:flex;align-items:center;gap:8px;padding:0 16px;background:var(--background);border-bottom:1px solid var(--border)}.icon-btn{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:transparent;border:1px solid transparent;color:var(--foreground);cursor:pointer;padding:0}.icon-btn:hover:not(:disabled){background:#26262680}.icon-btn.outline{border-color:var(--input);background:#ffffff0b}.icon-btn.outline:hover:not(:disabled){background:var(--muted)}.icon-btn:disabled{opacity:.5;cursor:not-allowed}.vsep{width:1px;height:16px;background:var(--border);margin:0 8px 0 2px}.crumbs{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--muted-foreground);min-width:0}.crumbs .cur{color:var(--foreground)}.header-actions{margin-left:auto;display:flex;gap:8px}.content{flex:1;display:flex;flex-direction:column;gap:16px;padding:16px}.btn-sm{height:32px;padding:0 10px;font-size:14px;box-shadow:0 1px 2px #0000000d}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stat{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:16px 20px;display:flex;flex-direction:column;gap:6px;text-align:left;font:inherit;color:inherit;cursor:pointer;transition:border-color .15s}.stat:hover{border-color:var(--input)}.stat.active{border-color:var(--primary)}.stat-top{display:flex;align-items:center;gap:8px;color:var(--muted-foreground);font-size:14px}.stat-dot{width:8px;height:8px;border-radius:50%}.stat-value{font-size:30px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1.2}.stat-sub{font-size:12px;color:var(--muted-foreground)}.stat-bar{height:4px;border-radius:999px;background:var(--muted);overflow:hidden;margin-top:4px}.stat-bar>span{display:block;height:100%;transition:width .4s}.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.search{position:relative;width:240px}.search svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--muted-foreground)}.search .input{height:32px;padding-left:32px;box-shadow:0 1px 2px #0000000d}.tabs{display:inline-flex;background:var(--muted);border-radius:8px;padding:3px;gap:2px}.tabs button{height:26px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:var(--muted-foreground);font:inherit;font-size:13px;font-weight:500;cursor:pointer}.tabs button.on{background:var(--background);color:var(--foreground);box-shadow:0 1px 2px #0006}.table-box{border:1px solid var(--border);border-radius:10px;overflow:hidden}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px}th{text-align:left;font-weight:500;color:var(--foreground);height:40px;padding:0 8px;white-space:nowrap}th:first-child,td:first-child{padding-left:16px}td{padding:8px;vertical-align:middle;white-space:nowrap}thead tr,tbody tr{border-bottom:1px solid var(--border)}tbody tr:last-child{border-bottom:0}tbody tr{cursor:pointer;transition:background .15s}tbody tr:hover{background:#26262680}.cell-text{max-width:420px;overflow:hidden;text-overflow:ellipsis}.cell-err{font-size:12px;color:var(--destructive);margin-top:2px;max-width:420px;overflow:hidden;text-overflow:ellipsis}.nowrap{white-space:nowrap}.row-inline{display:flex;align-items:center;gap:6px}.badge{display:inline-flex;align-items:center;gap:4px;width:fit-content;align-self:flex-start;height:20px;padding:2px 8px;border-radius:999px;border:1px solid transparent;font-size:12px;font-weight:500;white-space:nowrap;color:#fff}.badge svg{width:12px;height:12px}.badge-outline{border-color:var(--border);color:var(--foreground)}.badge-sent{background:#157a45}.badge-queued{background:#2b3440}.badge-failed{background:#df2225}.pager{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:4px;flex-wrap:wrap}.pager-left{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:500}.pager-right{display:flex;align-items:center;gap:32px;font-size:14px}.pager-btns{display:flex;gap:8px}.select{height:32px;padding:0 28px 0 10px;border-radius:8px;border:1px solid var(--input);background:#ffffff0b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a1' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;color:var(--foreground);font:inherit;font-size:14px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}.select option{background:var(--card)}@media (max-width: 900px){.stats{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.inset,.shell.collapsed .inset{margin-left:0}.shell .sidebar{transform:translate(-100%)}.shell.open .sidebar{transform:none}.scrim{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;z-index:15}.search{width:100%}.pager-left label{display:none}.pager-right{gap:12px}}@media (max-width: 480px){.stats{gap:8px}.stat{padding:12px 14px}.stat-value{font-size:24px}}.empty{padding:56px 16px;text-align:center;color:var(--muted-foreground)}.skeleton{height:14px;border-radius:4px;background:linear-gradient(90deg,var(--muted),#333,var(--muted));background-size:200% 100%;animation:sh 1.2s infinite}@keyframes sh{to{background-position:-200% 0}}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;z-index:40;animation:fade .15s}.drawer{position:fixed;top:0;right:0;bottom:0;width:min(460px,100%);z-index:50;background:var(--background);border-left:1px solid var(--border);display:flex;flex-direction:column;animation:slide .2s ease-out}.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border)}.drawer-head h3{margin:0;font-size:16px;font-weight:600}.drawer-body{padding:20px;overflow-y:auto;display:flex;flex-direction:column;gap:18px}.kv{display:grid;grid-template-columns:110px 1fr;gap:10px 12px;font-size:13px}.kv dt{color:var(--muted-foreground)}.kv dd{margin:0;word-break:break-all}.msg-bubble{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:14px;white-space:pre-wrap;line-height:1.5}@keyframes fade{0%{opacity:0}}@keyframes slide{0%{transform:translate(24px);opacity:0}}.badge-pending{background:#2b3440}.badge-retrying{background:#b45309}.badge-suppressed{background:transparent;border-color:var(--border);color:var(--muted-foreground)}.cell-sub{font-size:12px;color:var(--muted-foreground);margin-top:2px}.cell-company{max-width:180px;overflow:hidden;text-overflow:ellipsis;color:var(--muted-foreground)}.date-input{width:auto;height:32px;color-scheme:dark;box-shadow:0 1px 2px #0000000d}.msg-bubble a{color:var(--info)}.msg-bubble code,.msg-bubble pre{font-family:Geist Mono,monospace;font-size:13px}.qr-box{display:grid;place-items:center}.qr-box img{border-radius:10px;background:#fff;display:block}.qr-box .skeleton{border-radius:10px}
