
:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#173b50;background:#eff5f8;font-synthesis:none;--navy:#123f56;--blue:#087e9b;--line:#dce8ef;--muted:#698398;--light:#e5f3f8;--green:#148867;--red:#bd4053}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{color:var(--blue)}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px}h2{font-size:18px;letter-spacing:-.3px}h3{font-size:15px}p{line-height:1.6}.muted,small{color:var(--muted)}small{font-size:12px;line-height:1.5}.shell{display:grid;grid-template-columns:224px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:28px 16px;position:fixed;width:224px;height:100vh;display:flex;flex-direction:column;gap:26px}.brand{display:flex;align-items:center;gap:11px;font-size:19px;font-weight:800;letter-spacing:-.5px;padding:0 10px}.brandmark{width:35px;height:35px;background:var(--navy);border-radius:11px;color:#fff;display:grid;place-items:center;font-size:21px}.brand b{color:#09a2be}.navlabel{font-size:10px;letter-spacing:1.6px;color:#8b9ba7;margin:0 12px 12px}.nav{display:grid;gap:6px}.nav button{border:0;background:none;color:#607d91;text-align:left;padding:12px 13px;border-radius:10px;display:flex;align-items:center;gap:12px;font-size:13px;transition:background .15s}.nav button:hover{background:#f2f7fa}.nav button.active{background:#e4f3f8;color:#076e90;font-weight:700}.ico{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.signature{margin-top:auto;color:#8599a8;font-size:11px;padding:15px 12px;border-top:1px solid var(--line)}.signature strong{color:var(--navy)}.main{grid-column:2}.topbar{height:80px;background:#fff;border-bottom:1px solid var(--line);padding:0 34px;display:flex;align-items:center;justify-content:space-between;gap:12px}.breadcrumb{font-size:12px;color:var(--muted);margin-top:4px}.topright{display:flex;align-items:center;gap:14px}.avatar{border-radius:50%;background:var(--navy);color:white;display:grid;place-items:center;width:35px;height:35px;font-weight:700}.status{font-size:11px;border:1px solid #cbe3ec;border-radius:20px;padding:7px 11px;display:inline-flex;align-items:center;gap:7px;background:#f5fbfd;color:#38728c}.dot{width:7px;height:7px;border-radius:50%;background:#159b80}.content{padding:32px 38px;max-width:1600px;margin:auto}.pagehead{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.pagehead p{color:var(--muted);font-size:13px;margin-top:7px}.btn{padding:11px 15px;border:1px solid #cbdfe9;color:var(--navy);background:white;border-radius:9px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:hover{border-color:var(--blue);background:#f5fbfd}.btn.primary{background:var(--blue);color:white;border-color:var(--blue)}.btn.ghost{background:transparent;border-color:transparent}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);border-radius:14px;padding:21px;min-height:132px}.stat .label{font-size:12px;color:var(--muted);display:flex;justify-content:space-between}.stat strong{font-size:30px;display:block;margin:12px 0 4px;letter-spacing:-1px}.stat small{font-size:11px}.grid2{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}.card{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden}.cardhead{padding:20px 22px;border-bottom:1px solid #edf2f5;display:flex;align-items:center;justify-content:space-between;gap:12px}.cardbody{padding:22px}.stack{display:grid;gap:18px}.empty{text-align:center;padding:46px 24px}.empty .emptyicon{width:58px;height:58px;background:#eaf5f8;border-radius:18px;display:grid;place-items:center;margin:0 auto 17px;color:var(--blue)}.empty .emptyicon svg{width:26px;height:26px}.empty p{font-size:13px;color:var(--muted);max-width:360px;margin:8px auto 18px}.badge{font-size:10px;letter-spacing:.3px;text-transform:uppercase;padding:5px 8px;border-radius:6px;background:#edf3f7;color:#6d8596;font-weight:700;white-space:nowrap}.badge.green{background:#e6f7ef;color:#167d57}.badge.yellow{background:#fff2d6;color:#976a13}.badge.red{background:#ffebee;color:#bd4053}.badge.blue{background:#e2f2fa;color:#187594}.row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 21px;border-bottom:1px solid #edf2f5}.row:last-child{border-bottom:0}.row p{font-size:12px;color:var(--muted);margin-top:4px}.row .left{display:flex;align-items:center;gap:12px}.round{width:36px;height:36px;background:#e7f4f8;color:#147998;display:grid;place-items:center;border-radius:11px;flex:none}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.toolbar{display:flex;gap:12px;margin-bottom:19px}.toolbar input{max-width:420px}.bmgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.bmcard{padding:23px}.bmcard h2{margin:18px 0 4px}.bmcard .phone{font-size:13px;color:var(--muted)}.bmcard .line{border-top:1px solid var(--line);padding-top:16px;margin-top:20px;display:flex;justify-content:space-between;align-items:center}.bmcard .actions{margin-top:22px}.bmcard .actions .btn{flex:1}.bmicon{display:flex;justify-content:space-between;align-items:center}.field{display:grid;gap:7px}.field label{font-size:12px;font-weight:600}.field input,.field textarea,.field select,input.search{width:100%;border:1px solid #cddfe9;border-radius:8px;padding:11px 12px;background:#fff;color:#183e55;min-height:42px}.field textarea{resize:vertical;min-height:110px;line-height:1.5}.field input:focus,.field textarea:focus,input.search:focus{border-color:#1686a3}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.full{grid-column:1/-1}.notice{padding:13px 16px;border:1px solid #cbe5ef;background:#eff9fc;border-radius:9px;font-size:12px;line-height:1.6;color:#35748d}.notice.warn{background:#fff9ec;border-color:#f1dfb3;color:#916522}.notice.error{background:#fff0f2;border-color:#efccd3;color:#ad3d50}.space{margin-top:20px}.spacer{margin-top:12px}dialog{border:1px solid var(--line);border-radius:18px;padding:0;width:min(720px,calc(100vw - 28px));max-height:90vh;color:var(--navy);box-shadow:0 25px 100px #0b354d30}dialog::backdrop{background:#102e4660;backdrop-filter:blur(3px)}.modalhead{padding:21px 25px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.modalbody{padding:25px}.close{background:#f2f7fa;border:1px solid var(--line);border-radius:8px;width:32px;height:32px;font-size:20px;color:var(--muted)}.modalfoot{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th,td{text-align:left;padding:15px 20px;border-bottom:1px solid #eaf1f5}th{font-size:10px;letter-spacing:.7px;text-transform:uppercase;background:#f8fbfc;color:#708a9b}td small{display:block}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.authhero{background:radial-gradient(ellipse at 20% 10%,#1f788c 0%,#153e55 55%,#102d42 100%);color:white;padding:60px;display:flex;flex-direction:column;justify-content:space-between}.authhero .brand{padding:0}.authhero h1{font-size:49px;max-width:480px;line-height:1.14;letter-spacing:-2px}.authhero p{color:#b7d5df;margin-top:22px;max-width:390px}.authhero small{color:#87afbe}.authbody{display:flex;align-items:center;justify-content:center;padding:32px}.authform{width:min(360px,100%)}.authform h1{font-size:26px}.authform>p{font-size:13px;color:var(--muted);margin:10px 0 30px}.authform form{display:grid;gap:19px}.authform .btn{width:100%;padding:14px}.authorb{width:160px;height:110px;margin-bottom:45px;border:1px solid #ffffff30;border-radius:30px;transform:rotate(-8deg);background:linear-gradient(135deg,#ffffff18,transparent);display:flex;align-items:center;justify-content:center;font-size:55px;font-weight:800;color:#ffffff85}.split{display:grid;grid-template-columns:300px 1fr;gap:18px}.chatlist{max-height:620px;overflow:auto}.contact{width:100%;text-align:left;background:white;border:0;border-bottom:1px solid var(--line);padding:17px;display:flex;gap:12px;color:var(--navy)}.contact:hover,.contact.active{background:#eaf7fb}.contact small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:210px}.chatbody{min-height:370px;max-height:500px;overflow:auto;padding:24px;display:flex;flex-direction:column;gap:14px;background:#f7fafc}.bubble{border:1px solid #deebf2;background:white;padding:13px 16px;border-radius:12px;max-width:80%;align-self:flex-start;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.out{align-self:flex-end;background:#ddf2f7}.bubble small{display:block;font-size:10px;margin-top:7px}.step{display:grid;grid-template-columns:36px 1fr 105px;gap:14px;padding:17px;border:1px solid var(--line);border-radius:11px;background:#f8fbfd;align-items:start}.stepnum{width:29px;height:29px;background:#dceff5;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:12px}.step textarea{min-height:80px}.steps{display:grid;gap:13px}.chart{width:100%;height:190px}.checkrow{display:flex;gap:10px;align-items:center;font-size:13px}.checkrow input{width:18px;height:18px}.guide{display:grid;gap:20px;padding:22px}.guideitem{display:flex;gap:12px}.guideitem b{font-size:13px}.guideitem p{font-size:12px;color:var(--muted);margin-top:4px}#toast{position:fixed;bottom:25px;right:25px;background:var(--navy);color:white;border-radius:11px;box-shadow:0 10px 30px #15394e30;padding:15px 21px;max-width:420px;z-index:100;display:none;font-size:13px}#toast.show{display:block}.loading{padding:70px;text-align:center;color:var(--muted)}.mobilemenu{display:none}.pending{color:#99701f}.secretbox{font-family:monospace;overflow-wrap:anywhere;user-select:all;background:#f4f8fa;padding:13px;border:1px solid var(--line);border-radius:8px;font-size:12px}pre{white-space:pre-wrap;overflow-wrap:anywhere}.hide{display:none!important}@media(max-width:1200px){.bmgrid{grid-template-columns:repeat(2,1fr)}.content{padding:26px}.grid2{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.shell{display:block}.sidebar{display:none;width:224px;z-index:20;box-shadow:10px 0 40px #123e5520}.sidebar.open{display:flex}.main{display:block}.mobilemenu{display:inline-flex}.topbar{padding:0 18px;height:68px}.topright .muted,.topright .status{display:none}.content{padding:23px 16px}.pagehead{align-items:flex-start}h1{font-size:26px}.pagehead .btn{white-space:nowrap}.stats{gap:10px}.stat{padding:16px}.stat strong{font-size:26px}.bmgrid,.formgrid,.split{grid-template-columns:1fr}.auth{grid-template-columns:1fr}.authhero{display:none}.authbody{min-height:100vh}.cardhead{padding:18px}.chatlist{max-height:250px}.bubble{max-width:95%}.step{grid-template-columns:28px 1fr}.step>.field:last-child{grid-column:2}.signature{font-size:11px}.modalbody{padding:19px}}
.source-tabs{margin-bottom:22px}.pager{display:flex;justify-content:center;align-items:center;gap:20px;padding:20px}.source-chart{padding:22px;display:grid;gap:12px}.source-bar{display:grid;grid-template-columns:1fr 55px 55px;align-items:center;gap:12px;font-size:12px}.source-bar meter{width:100%;height:20px;accent-color:#087e9b}.source-nodes{display:grid;gap:12px}.source-node{border:1px solid var(--line);padding:16px;border-radius:10px}.source-node summary{cursor:pointer;display:flex;justify-content:space-between;gap:14px;font-size:13px}.source-node summary span{color:var(--muted)}.source-node .bubble{max-width:100%}.source-node p{margin-top:12px}
.source-image{max-width:100%;height:auto;max-height:250px;object-fit:contain;border-radius:9px}.source-node audio,.bmcard audio{width:100%;margin-top:12px}.source-bar meter::-webkit-meter-bar{background:#e7f0f5;border:0}.source-bar meter::-webkit-meter-optimum-value{background:linear-gradient(90deg,#50bdcb,#087e9b)}
