:root{--bg:#eef0f4;--card:#fff;--text:#14171f;--muted:#545b6b;--muted2:#5f6676;--soft:#3a4050;--accent:#3447d4;--accent-h:#1f2e9e;--sel:#eef0ff;--ring:#c9cffa;--line:#eef0f3;--line2:#eceef2;--border:#d6dae6;--border2:#c3c9da;--fill:#f1f2f6;--shadow:0 1px 3px rgba(20,23,31,.08);--mono:'Geist Mono',ui-monospace,Consolas,monospace}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font:13px/1.4 Geist,system-ui,sans-serif}
a{color:var(--accent)}a:hover{color:var(--accent-h)}
button{font:inherit;color:inherit;cursor:pointer;text-align:left;background:transparent;border:0;padding:0}
button:hover{filter:brightness(.97)}
button:disabled{opacity:.5;cursor:default}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
input,textarea,select{font:inherit;color:inherit;border:1px solid var(--border);border-radius:8px;background:#fff;padding:0 10px;height:32px;min-width:0}
textarea{height:auto;padding:8px 10px;resize:vertical;line-height:1.5;width:100%}
input[type=checkbox]{height:auto;width:auto}
input[type=file]{border:0;padding:4px 0;height:auto}
h1,h2,h3{margin:0}
h2{font-size:13px;font-weight:600}
code{font-family:var(--mono);font-size:12px}
.pad{padding:16px}
.mono{font-family:var(--mono)}
.small{font-size:11px}
.s12{font-size:12px}
.muted{color:var(--muted)}
.grow{flex:1;min-width:0}
.clip{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.row{display:flex;align-items:center;gap:8px}
.wrap{flex-wrap:wrap}
.between{justify-content:space-between}
.col{display:flex;flex-direction:column;gap:8px;min-width:0}
.card{background:var(--card);border-radius:12px;box-shadow:var(--shadow);min-width:0}
.card.p{padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.card.hide-x{overflow:hidden}
.card.scroll-x{overflow-x:auto}
.card.fill{flex:1}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;padding:0 11px;border-radius:7px;background:var(--fill);font-weight:500;text-decoration:none;white-space:nowrap}
.btn.primary{background:var(--accent);color:#fff}
.btn.primary:hover{color:#fff}
.btn.white{background:#fff;box-shadow:0 1px 2px rgba(20,23,31,.1)}
.btn.sm{height:28px;padding:0 10px;border-radius:6px}
.btn.big{height:38px;width:100%;font-weight:600}
.btn.pill{height:36px;padding:0 18px;border-radius:18px;border:1px solid var(--border2);background:#fff}
.btn.icon{width:32px;padding:0}
.btn.ai{background:#f6f7ff;border:1px solid var(--ring);color:#2c357a;border-radius:16px}
.btn.danger{color:#8a1c1c}
.link{color:var(--accent);font-weight:500;font-size:12px;min-height:24px}
.link.red{color:#8a1c1c}

.shell{display:flex;flex-wrap:wrap;gap:8px;padding:8px;min-height:100vh;align-items:stretch}
.side{flex:1 0 212px;max-width:260px;display:flex;flex-direction:column;gap:2px;padding:6px 4px}
.brand{display:flex;align-items:center;gap:8px;font-weight:700;font-size:15px;letter-spacing:-.01em;padding:2px 8px 10px}
.search-btn{display:flex;align-items:center;justify-content:space-between;height:34px;padding:0 10px;margin-bottom:8px;border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(20,23,31,.08);color:var(--muted)}
.nav{display:flex;align-items:center;gap:9px;min-height:32px;padding:0 8px;border-radius:7px;width:100%}
.nav.on{background:#fff;box-shadow:0 1px 2px rgba(20,23,31,.1);font-weight:600}
.nav.drop{outline:2px dashed var(--accent)}
.boxrow{display:flex;align-items:center;border-radius:7px}
.boxrow.on{background:#fff;box-shadow:0 1px 2px rgba(20,23,31,.1)}
.boxrow .nav{flex:1;min-width:0;padding-right:4px}
.boxrow.on .nav{font-weight:600}
.refresh{flex:none;width:26px;height:26px;border-radius:6px;display:flex;align-items:center;justify-content:center;color:var(--muted);opacity:.55}
.boxrow:hover .refresh,.refresh:focus-visible{opacity:1}
.refresh:hover{background:#e2e5ed;color:var(--accent)}
.refresh:disabled{opacity:.3}
.refresh.spin{opacity:1;color:var(--accent)}
.refresh.spin svg{animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.refresh.spin svg{animation:none}}
.nav-ico{width:20px;height:20px;border-radius:6px;display:flex;align-items:center;justify-content:center;flex:none}
.ico-dash{background:var(--accent);color:#fff}.ico-stats{background:#dcf2e3;color:#14532d}.ico-star{background:#fdf0c8}.ico-all{background:var(--text);color:#fff}.ico-set{background:#e2e5ed}
.side-head{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 4px;font-size:11px;color:var(--muted)}
.side-head button{width:24px;height:24px;border-radius:6px;display:flex;align-items:center;justify-content:center;background:#fff}
.badge{font-family:var(--mono);font-size:11px;min-width:18px;text-align:center;border-radius:5px;color:var(--muted);padding:0 3px}
.badge.hot{background:#15803d;color:#fff}
.side-foot{margin-top:auto;padding:10px 8px 4px;display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--muted)}
.dot{width:7px;height:7px;border-radius:50%;flex:none;background:#15803d;display:inline-block}
.dot.warn{background:#d97706}.dot.bad{background:#b91c1c}
.dot.me{background:#15803d}.dot.svc{background:var(--accent)}.dot.check{background:#b45309}.dot.noise{background:#9aa1b1}

.avatar{width:20px;height:20px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;flex:none}
.avatar.big{width:34px;height:34px;border-radius:9px;font-size:12px}
.avatar.round{width:40px;height:40px;border-radius:50%;font-size:12px}
.c0{background:#dcf2e3;color:#14532d}.c1{background:#dcecfb;color:#0c4a7e}.c2{background:#fdeadb;color:#7c2d12}.c3{background:#ece4fb;color:#4c1d95}.c4{background:#fbe3ef;color:#831843}.c5{background:#f5efc9;color:#5c4a06}.cme{background:var(--accent);color:#fff}
.pill{font-size:10px;font-weight:600;padding:1px 7px;border-radius:5px;white-space:nowrap}
.pill.me{background:#e4f5e9;color:#14532d}.pill.svc{background:#eaecfd;color:#2c357a}.pill.check{background:#fdf1dc;color:#7a4300}.pill.noise{background:#eef0f4;color:#454c5e}.pill.warn{background:#fdecec;color:#8a1c1c}
.tag{font-size:10px;padding:1px 6px;border-radius:5px;background:#eef0f4;color:var(--soft);white-space:nowrap}
.tag.big{display:inline-flex;align-items:center;gap:2px;font-size:11px;padding:0 2px 0 7px;background:#e6e9f2;color:#2c3246}
.tag.big button{width:20px;height:20px;text-align:center}
.count{flex:none;font-family:var(--mono);font-size:10px;padding:0 6px;border-radius:8px;border:1px solid var(--border2);color:var(--soft)}
.star{flex:none;width:30px;height:30px;border-radius:7px;display:flex;align-items:center;justify-content:center}
.star svg{fill:none;stroke:#7b8296}
.star.on svg,svg.gold{fill:#f5b301;stroke:#8f6200}
.time{font-family:var(--mono);font-size:11px;color:var(--muted);white-space:nowrap}

main.page{flex:999 1 640px;min-width:0;display:flex;flex-direction:column;gap:8px}
.split{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch;flex:1}
.head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:6px 6px 2px}
.head h1{font-size:21px;font-weight:600;letter-spacing:-.02em}
.notice{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:9px 14px;border-radius:10px;background:#fdf1dc;color:#7a4300}
.notice.red{background:#fdecec;color:#8a1c1c}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:8px}
.tile{padding:11px 14px;display:flex;align-items:center;gap:12px}
.tile .num{font-family:var(--mono);font-size:24px;font-weight:500;min-width:30px}
.num.gold{color:#8f6200}.num.me{color:#15803d}.num.svc{color:var(--accent)}.num.check{color:#b45309}.num.noise{color:#6b7283}
.tile span.col{gap:0}
.dash-main{flex:999 1 560px}
.dash-side{flex:1 1 290px}
.starbox{border:1px solid #f1dfae;overflow:hidden}
.starbox header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 14px;background:#fff9ec}
.starrow{display:flex;align-items:center;gap:4px;height:33px;padding:0 10px 0 8px;border-top:1px solid #f4eedb}
.starrow .open{flex:1;min-width:0;height:100%;display:grid;grid-template-columns:20px 132px minmax(0,1fr) auto;gap:10px;align-items:center;white-space:nowrap}
.more{width:100%;height:30px;text-align:center;border-top:1px solid #f4eedb;color:var(--accent);font-weight:500;font-size:12px}
.sec-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 14px 6px}
.top{display:flex;align-items:center;gap:8px;padding:0 10px 0 14px;border-top:1px solid var(--line)}
.stripe{width:3px;height:26px;border-radius:2px;flex:none}
.stripe.me{background:#15803d}.stripe.svc{background:var(--accent)}.stripe.check{background:#b45309}.stripe.noise{background:#9aa1b1}
.top .open{flex:1;min-width:0;display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:10px;align-items:center;padding:7px 0}
.empty{padding:18px 14px;border-top:1px solid var(--line);color:var(--muted)}
.table{min-width:520px}
.t-dash{display:grid;grid-template-columns:minmax(0,1.5fr) 70px 70px 110px minmax(0,1fr);gap:10px;align-items:center;padding:0 14px;width:100%}
.t-row{height:36px;border-top:1px solid var(--line)}
.t-head{padding-top:11px;padding-bottom:6px;font-size:11px;color:var(--muted)}
.t-head h2{color:var(--text)}
.spark{display:flex;align-items:flex-end;gap:2px;height:18px}
.spark i{flex:1;background:#dfe3ec;border-radius:1px;height:2px}
.spark i.on{background:#15803d}
.edge{background:#fff9ec;border:1px solid #f1dfae}
.edge .btn{background:#fff;border:1px solid #e3cd90}
.due{width:44px;text-align:center;border-radius:7px;background:var(--fill);font-family:var(--mono);font-size:11px;padding:4px 0;flex:none}
.due.soon{background:#fdecec;color:#8a1c1c}
.chart{display:flex;align-items:flex-end;gap:4px;height:96px}
.chart.tall{height:170px;gap:3px;border-bottom:1px solid #e2e5ed}
.chart>span{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;gap:1px;height:100%}
.chart i{display:block;border-radius:2px}
.chart i.me{background:#15803d}.chart i.svc{background:var(--accent)}.chart i.noise{background:#cdd2de}
.legend{display:flex;gap:14px;font-size:11px;color:var(--muted);flex-wrap:wrap}
.legend span{display:flex;align-items:center;gap:5px}
.legend b{width:8px;height:8px;border-radius:2px;background:#15803d}
.legend b.svc{background:var(--accent)}.legend b.noise{background:#cdd2de}

.list-col{flex:500 1 520px;display:flex;flex-direction:column;overflow:hidden}
.preview{flex:500 1 470px;display:flex;flex-direction:column;overflow:hidden}
.list-head{padding:12px 14px 10px;border-bottom:1px solid var(--line2);display:flex;flex-direction:column;gap:9px}
.list-head h1{font-size:15px;font-weight:600}
.funnel{display:flex;gap:3px}
.funnel button{display:flex;flex-direction:column;gap:5px;padding:2px 2px 3px;border-radius:5px;font-size:12px;min-width:0}
.funnel button.on{background:var(--sel)}
.funnel .bar{display:block;height:5px;border-radius:3px;background:#e4e7ee}
.funnel .bar.me{background:#15803d}.funnel .bar.svc{background:var(--accent)}.funnel .bar.check{background:#b45309}.funnel .bar.noise{background:#9aa1b1}
.group{display:flex;align-items:center;gap:7px;padding:12px 14px 4px;font-size:11px;font-weight:600;color:var(--muted);margin:0}
.item{display:flex;align-items:stretch}
.item.on{background:var(--sel);box-shadow:inset 0 0 0 1px var(--ring)}
.item .star{width:32px;margin-left:5px;height:auto}
.item .open{flex:1;min-width:0;display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:10px;align-items:center;padding:7px 14px 7px 5px}
.allclear{padding:48px 20px;text-align:center;display:flex;flex-direction:column;gap:4px;align-items:center;color:var(--muted)}
.allclear strong{font-size:14px;color:var(--text)}
.drawer{margin-top:auto;border-top:1px solid var(--line2);background:#fafbfc}
.drawer>button{width:100%;display:flex;justify-content:space-between;gap:10px;padding:11px 14px}
.junk{display:flex;align-items:center;gap:10px;padding:0 14px;height:32px;border-top:1px solid var(--line)}
.toolbar{display:flex;align-items:center;gap:4px;padding:9px 12px;border-bottom:1px solid var(--line2);flex-wrap:wrap}
.pv{padding:18px 20px;display:flex;flex-direction:column;gap:14px}
.pv h2{font-size:19px;letter-spacing:-.015em;line-height:1.3}
.aicard{border:1px solid #dfe3fb;background:#f6f7ff;border-radius:10px;padding:11px 13px;display:flex;flex-direction:column;gap:8px}
.aicard .label{font-size:11px;font-weight:600;color:#2c357a}
.aicard .sum{font-size:14px;line-height:1.5}
.chip{font-size:11px;padding:2px 8px;border-radius:5px;background:#fff;border:1px solid #dfe3fb;color:#2c357a}
.body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.65;max-width:72ch}
.foot{margin-top:auto;padding:10px 20px;border-top:1px solid var(--line2);font-size:11px;color:var(--muted)}
.danger{background:#fdecec;color:#8a1c1c;border-radius:9px;padding:10px 12px;display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.danger button{font-weight:600;text-decoration:underline;min-height:24px}
.danger code{display:block;background:#fff;border-radius:6px;padding:8px 10px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto;width:100%}
.menu-wrap{position:relative}
.menu{position:absolute;top:36px;right:0;z-index:5;width:220px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 32px rgba(20,23,31,.16);padding:5px;display:flex;flex-direction:column;gap:1px}
.menu button,.menu input{height:32px;padding:0 9px;border-radius:6px;display:flex;justify-content:space-between;align-items:center}
.menu input{border:1px solid var(--border)}

.mb{flex:999 1 600px;display:flex;flex-direction:column;overflow:hidden}
.mb-side{flex:1 1 260px}
.mb-head{display:flex;align-items:center;gap:12px;padding:12px 14px 10px;flex-wrap:wrap}
.mb-head h1{font-size:17px;font-weight:600;letter-spacing:-.015em}
.tabs{display:flex;gap:2px;padding:0 10px;border-bottom:1px solid var(--line2);flex-wrap:wrap}
.tabs button{height:34px;padding:0 10px;border-bottom:2px solid transparent;color:#454c5e}
.tabs button.on{border-color:var(--accent);font-weight:600;color:var(--text)}
.bulk{display:flex;align-items:center;gap:6px;padding:6px 14px;background:var(--sel);flex-wrap:wrap}
.bulk .btn{background:#fff}
.mbrows{overflow-x:auto}
.mbrows>div{min-width:600px}
.mbrow{display:flex;align-items:stretch;height:34px;padding-left:8px;border-top:1px solid #f0f1f5}
.mbrow.on{background:var(--sel)}
.mbrow .tick,.mbrow .star{width:28px;display:flex;align-items:center;justify-content:center;height:auto}
.box{width:14px;height:14px;border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:10px;line-height:1;color:#fff;border:1.5px solid #9aa1b1;background:#fff}
.on>.tick .box{border-color:var(--accent);background:var(--accent)}
.mbrow .open{flex:1;min-width:0;display:grid;grid-template-columns:150px minmax(0,1fr) auto 62px;gap:10px;align-items:center;padding:0 14px 0 6px;white-space:nowrap}
.mbrow .from{font-weight:600}.mbrow .subj{font-weight:500}
.mbrow.done .from{font-weight:400}.mbrow.done .subj{font-weight:400;color:var(--muted2);text-decoration:line-through}
.meter{height:6px;border-radius:3px;background:#eceef3;overflow:hidden;display:block}
.meter i{display:block;height:100%;background:var(--accent)}
.meter i.high{background:#d97706}.meter i.noise{background:#cdd2de}.meter i.type{background:#9aa1b1}

.article{flex:999 1 580px;display:flex;flex-direction:column;overflow:hidden}
.msg-side{flex:1 1 270px}
.content{padding:20px 28px;display:flex;flex-direction:column;gap:16px;max-width:780px;width:100%;margin:0 auto}
.content h1{font-size:22px;font-weight:500;letter-spacing:-.015em;line-height:1.3;overflow-wrap:anywhere}
.thread{border-top:1px solid #e6e8ef}
.tm{border-bottom:1px solid #e6e8ef}
.tm .hd{width:100%;display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 0}
.tm .hd strong{font-size:14px;font-weight:600}
.tm .hd .time{align-self:start}
.tm .open-body{padding:0 0 16px 52px;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.sign{white-space:pre-wrap;font-size:12px;line-height:1.55;color:var(--muted);border-top:1px solid var(--line2);padding-top:8px;min-width:200px}
.dots{height:16px;padding:0 9px;border-radius:8px;background:#e6e9f2;font-weight:700;line-height:12px;letter-spacing:1px}
.quote{border-left:2px solid var(--ring);padding-left:10px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;color:var(--muted)}
.file{display:inline-flex;align-items:center;gap:11px;border:1px solid #e2e5ee;border-radius:10px;padding:8px 12px}
.file .ext{width:30px;height:30px;border-radius:7px;background:#fdecec;color:#8a1c1c;font-size:9px;font-weight:700;display:flex;align-items:center;justify-content:center;text-transform:uppercase}
iframe.html{width:100%;height:520px;border:1px solid var(--border);border-radius:10px;background:#fff}
.gap{width:100%;display:flex;align-items:center;gap:12px;padding:5px 0;color:var(--accent);font-weight:500;font-size:12px}
.gap i{margin:0 5px;width:30px;height:30px;border-radius:50%;border:1px solid var(--ring);background:#f6f7ff;display:flex;align-items:center;justify-content:center;font-family:var(--mono);font-style:normal}
.replies{display:flex;gap:8px;padding-left:52px;flex-wrap:wrap}
.composer-row{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px}
.composer{border:1px solid var(--border);border-radius:12px;box-shadow:0 4px 18px rgba(20,23,31,.1);overflow:hidden}
.composer .to{display:flex;align-items:center;gap:8px;padding:8px 12px 0;font-size:12px;flex-wrap:wrap}
.composer .to .addr{padding:2px 9px;border-radius:12px;border:1px solid var(--border)}
.composer .to input{flex:1;min-width:140px;height:26px;border:0;border-bottom:1px solid var(--border);border-radius:0}
.editor{min-height:170px;max-height:50vh;overflow:auto;padding:10px 12px;font-size:14px;line-height:1.6;outline:none;overflow-wrap:anywhere}
.editor.empty::before{content:attr(data-placeholder);color:#7b8296;pointer-events:none;float:left;width:0;white-space:nowrap}
.editor blockquote:not([style]){margin:6px 0;border-left:3px solid var(--border2);padding-left:10px;color:var(--muted)}
.editor ul,.editor ol{margin:4px 0;padding-left:24px}
.ed-bar{display:flex;align-items:center;gap:1px;flex-wrap:wrap;margin:0 10px 4px;padding:3px 8px;background:#f1f3fa;border-radius:18px}
.ed-btn{min-width:26px;height:28px;padding:0 4px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:14px}
.ed-btn:hover{background:#e2e5ed}
.ed-btn.on{background:#dde3fb;color:#1f2e9e}
.ed-sep{width:1px;height:18px;background:var(--border);margin:0 3px}
.ed-select{height:28px;width:76px;border:0;background:transparent;padding:0;border-radius:6px;cursor:pointer;font-size:12px}
.ed-color{font-weight:700;border-bottom:3px solid #b91c1c;line-height:1.05}
.ed-pop:empty{display:none}
.ed-pop{padding:4px 12px 8px}
.ed-grid{display:flex;flex-wrap:wrap;gap:3px}
.ed-btn.swatch{width:26px;height:26px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px var(--border)}
.attached{display:flex;flex-wrap:wrap;gap:5px;padding:4px 12px 8px}
.hidden{display:none}
.composer .bar{display:flex;align-items:center;gap:6px;padding:8px 10px;border-top:1px solid var(--line2);flex-wrap:wrap}
.composer .send{height:34px;padding:0 20px;border-radius:17px;font-weight:600}
.chips{display:flex;flex-wrap:wrap;gap:5px}
.fchip{height:28px;padding:0 10px;border-radius:14px;border:1px solid var(--border);font-size:12px}
.fchip.on{background:var(--sel);border-color:var(--ring);font-weight:600}
.reason{display:flex;align-items:flex-start;gap:8px}
.reason i{width:6px;height:6px;border-radius:50%;background:var(--accent);flex:none;margin-top:6px}
.kv{display:flex;justify-content:space-between;gap:10px}
.good{color:#15803d;font-weight:600}.bad{color:#8a1c1c;font-weight:600}.mid{color:#92500a;font-weight:600}

.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}
.kpi{padding:10px 14px;display:flex;flex-direction:column;gap:1px}
.kpi .val{font-family:var(--mono);font-size:22px;font-weight:500;letter-spacing:-.02em}
.seg{display:flex;gap:2px;padding:3px;border-radius:9px;background:#e2e5ed}
.seg button{height:26px;padding:0 10px;border-radius:7px}
.seg button.on{background:#fff;font-weight:600;box-shadow:0 1px 2px rgba(20,23,31,.1)}
.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:8px}
.t-stats{display:grid;grid-template-columns:minmax(150px,1.5fr) repeat(3,58px) minmax(100px,1fr) 96px 84px 96px minmax(100px,.8fr);gap:10px;align-items:center;padding:0 14px;width:100%}
.t-health{display:grid;grid-template-columns:minmax(150px,1.5fr) repeat(6,minmax(70px,1fr)) minmax(140px,1.2fr);gap:10px;align-items:center;padding:0 14px;min-height:36px}
.wide-table{min-width:940px}
.t-stats button.sort{font-size:11px;color:var(--muted)}
.t-stats button.sort.on{color:var(--text);font-weight:600}
.wait{width:100%;display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:10px;align-items:center;padding:6px 14px;border-top:1px solid var(--line)}
.nrow{display:grid;grid-template-columns:132px minmax(0,1fr) 38px;gap:9px;align-items:center}
.line{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:6px;border-top:1px solid var(--line)}
.heat{display:grid;grid-template-columns:24px repeat(6,minmax(0,1fr));gap:3px;align-items:center}
.heat i{height:16px;border-radius:3px;background:#eef0f4}
.heat i.h1{background:#cfe9d7}.heat i.h2{background:#7cc495}.heat i.h3{background:#15803d}

.settings{max-width:880px}
.form{display:flex;flex-direction:column;gap:10px}
.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.field{display:flex;flex-direction:column;gap:4px;min-width:0}
.field>span{font-size:11px;color:var(--muted)}
.field input,.field select{width:100%;height:34px}
.check{display:flex;gap:7px;align-items:center}
.qr-box{display:flex;justify-content:center;margin:4px 0 12px}
.qr{border:1px solid var(--border);border-radius:10px;max-width:100%;height:auto}
details{margin-bottom:10px}
summary{cursor:pointer;color:var(--accent);margin-bottom:8px}
.secret{font-family:var(--mono);font-size:15px;background:var(--fill);border-radius:8px;padding:12px;overflow-wrap:anywhere;line-height:1.8}
.alert{background:#fdecec;color:#8a1c1c;border-radius:8px;padding:9px 12px;margin:0}

.gate{min-height:100vh;display:flex;align-items:flex-start;justify-content:center;padding:8vh 16px}
.gate-card{width:100%;max-width:360px;padding:20px 22px}
.gate-card.wide{max-width:600px}
.gate-card .brand{padding:0 0 12px}
.gate-card h1{font-size:18px;margin-bottom:12px}
.gate-card h2{margin:6px 0 0}
.gate-card form{display:flex;flex-direction:column;gap:10px}
.gate-card p{margin:0 0 10px}

.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #cfd4e2;box-shadow:0 8px 28px rgba(20,23,31,.16);border-radius:10px;padding:8px 14px;max-width:92vw;z-index:30}
.toast.red{border-color:#e9b4b4;color:#8a1c1c}
.toast button{color:var(--accent);font-weight:600;min-height:30px;white-space:nowrap}
#sends{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);display:flex;flex-direction:column;gap:8px;z-index:31;width:max-content;max-width:92vw}
.sendbar{background:#fff;border:1px solid #cfd4e2;box-shadow:0 8px 28px rgba(20,23,31,.16);border-radius:10px;overflow:hidden;min-width:300px}
.sendbar>.row{gap:14px;padding:6px 14px;min-height:42px}
.sendbar button{color:var(--accent);font-weight:600;min-height:30px;white-space:nowrap}
.sendbar .progress{display:none;height:3px;background:#e4e7ee}
.sendbar .progress i{display:block;height:100%;background:var(--accent);width:100%}
.sendbar.count .progress,.sendbar.busy .progress{display:block}
.sendbar.count .progress i{animation:drain linear forwards}
.sendbar.busy .progress i{width:35%;animation:slide 1.1s ease-in-out infinite}
.sendbar.done{border-color:#a9d8b8;color:#14532d}
.sendbar.red{border-color:#e9b4b4;color:#8a1c1c}
@keyframes drain{from{width:100%}to{width:0}}
@keyframes slide{from{transform:translateX(-100%)}to{transform:translateX(290%)}}
.has-send .toast{bottom:84px}
.overlay{position:fixed;inset:0;background:rgba(226,229,238,.78);display:flex;justify-content:center;align-items:flex-start;padding:96px 16px;z-index:20}
.palette{width:100%;max-width:580px;background:#fff;border-radius:14px;box-shadow:0 24px 64px rgba(20,23,31,.22);overflow:hidden}
.palette .q{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line2)}
.palette .q input{flex:1;border:0;font-size:16px}
.palette .hit{width:100%;display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px}
.palette .hit.first{background:var(--sel)}
