*{box-sizing:border-box}body{margin:0;background:#f5f6f8;color:#303133;font:13px "Microsoft YaHei",Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-color:#409eff}button{cursor:pointer;border:1px solid #dcdfe6;background:white;color:#606266;border-radius:4px;padding:8px 12px;white-space:nowrap}button:hover{color:#1677ff;border-color:#a0cfff}button.primary{background:#1677ff;border-color:#1677ff;color:#fff}.danger{background:#fa696d!important;color:#fff!important;border-color:#fa696d!important}.warning{background:#e5a23c!important;color:#fff!important;border-color:#e5a23c!important}.success{background:#67c23a!important;color:white!important}.soft{background:#ecf5ff!important;color:#1677ff!important;border-color:#b3d8ff!important}button:disabled{opacity:.5;cursor:not-allowed}input,select,textarea{border:1px solid #dcdfe6;border-radius:4px;padding:8px 10px;background:#fff;color:#606266;min-width:0}input::placeholder,textarea::placeholder{color:#b5bbc4}textarea{resize:vertical;min-height:85px}a{color:#1677ff;text-decoration:none}.layout{display:flex;min-height:100vh}.sidebar{width:160px;background:#1f1f2e;color:#bfc4d0;position:fixed;inset:0 auto 0 0;overflow:auto;z-index:20}.brand{height:66px;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:24px;letter-spacing:2px}.brand b{font-size:30px;margin-right:6px}.nav-title{font-size:12px;color:#e1e3ea;padding:18px 16px 8px}.nav-group{font-size:10px;color:#858ba0;padding:15px 25px}.navitem{display:flex;align-items:center;gap:12px;color:#bcc0cc;padding:13px 20px;margin:3px 7px;border-radius:5px;font-size:12px}.navitem.active{background:#1677ff;color:#fff}.navitem:hover{background:#ffffff12}.navitem.active:hover{background:#1677ff}.navicon{font-size:16px;width:18px;text-align:center}.main{margin-left:160px;width:calc(100% - 160px)}.topbar{height:56px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid #eee}.toptools{display:flex;align-items:center;gap:13px;color:#8b94a3}.circle{height:28px;width:28px;border:1px solid #dce2eb;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}.previewbar{padding:11px 18px;margin:12px 14px 0;border-radius:4px;background:#fff8e8;border:1px solid #f2dfad;color:#9c6c15;font-size:12px;line-height:1.7}.content{padding:14px}.panel{background:#fff;padding:20px;border-radius:6px;min-height:200px}.filters{display:flex;gap:15px;flex-wrap:wrap;align-items:center;padding-bottom:18px}.fieldline{display:flex;gap:7px;align-items:center}.fieldline label{white-space:nowrap;font-size:12px}.fieldline input,.fieldline select{width:158px;padding:6px 10px}.toolbar{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:8px 0 18px}.toolbar button{font-size:11px;padding:7px 10px}.toolbar select{font-size:12px;padding:6px 10px;width:110px}.spacer{flex:1}.badge{display:inline-flex;border:1px solid #cce4ff;color:#1677ff;background:#ecf5ff;padding:3px 7px;border-radius:3px;font-size:11px}.pill{border-radius:20px;background:#ecf5ff;color:#1677ff;padding:4px 8px;font-size:11px}.muted{color:#909399}.orange{color:#ed9825}.red{color:#f56c6c}.green{color:#67a938}.scroll{width:100%;overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:12px}td,th{border-bottom:1px solid #e8edf5;text-align:left;padding:13px 10px;font-weight:400}th{color:#9097a4}td{color:#526076}td button{font-size:11px;padding:4px 8px}th input,td input{vertical-align:middle}.iconbutton{border-radius:50%;height:27px;width:27px;padding:0}.avatar{display:inline-flex;width:26px;height:26px;align-items:center;justify-content:center;border-radius:50%;background:#dae7f3;color:#5688aa;margin-right:7px}.empty{text-align:center;color:#a5aab2;padding:65px 20px}.pager{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin-top:18px;font-size:12px;color:#909399}.types{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:14px}.typecard{border:1px solid #e5e7eb;background:white;box-shadow:0 2px 4px #00000010;border-radius:4px}.typehead{padding:15px;border-bottom:1px solid #ebeef5;display:flex;justify-content:space-between}.typebody{padding:14px;line-height:2.2;font-size:12px;color:#5d697c}.typefoot{border-top:1px solid #ebeef5;display:flex;gap:8px;justify-content:flex-end;padding:10px}.settings h2,.intro h2{font-size:19px;font-weight:500;border-bottom:1px solid #dcdfe6;padding:0 0 18px;margin:0 0 18px}.settings h2:not(:first-child){margin-top:30px}.switches{display:flex;gap:22px;flex-wrap:wrap;margin-bottom:22px}.switchlabel{display:flex;gap:8px;align-items:center;font-size:12px;color:#1677ff}.switchlabel input{accent-color:#1677ff}.settingfield{margin:17px 0}.settingfield label{display:block;font-size:12px;margin-bottom:9px}.settingfield input,.settingfield textarea{width:100%}.settingfield select{min-width:180px}.savebar{display:flex;justify-content:flex-end;margin-top:24px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:18px}.stat{background:#fff;border-radius:6px;padding:24px;border:1px solid #e8edf4}.stat strong{font-size:30px;display:block;margin-top:12px;color:#1677ff}.stat span{font-size:13px;color:#909399}.chart-placeholder{height:160px;display:flex;align-items:center;justify-content:center;background:linear-gradient(#fff,#f4f8ff);color:#a4adbd;border-bottom:1px solid #e7eef9}.overlay{position:fixed;inset:0;background:#0006;z-index:100;display:flex;justify-content:center;align-items:center;padding:20px}.modal{background:#fff;border-radius:7px;width:440px;max-width:100%;max-height:92vh;overflow:auto;box-shadow:0 10px 40px #0002}.modalhead{display:flex;justify-content:space-between;align-items:center;padding:20px 20px 14px;font-size:15px}.modalhead button{border:0;padding:0;color:#a7aab0;font-size:20px}.modalbody{padding:0 20px 20px}.modalbody label{font-size:12px;display:block;margin:15px 0 7px}.modalbody input:not([type=radio]):not([type=checkbox]),.modalbody select,.modalbody textarea{width:100%}.modalbody .inline{display:flex;gap:15px;flex-wrap:wrap}.modalbody .inline label{display:flex;gap:6px;align-items:center;margin:8px 0}.modalbody .twocol{display:grid;grid-template-columns:1fr 1fr;gap:14px}.modalfoot{padding:0 20px 20px;display:flex;gap:10px;justify-content:flex-end}.notice{background:#fff2f0;color:#c4736b;border:1px solid #ffe0dc;padding:12px;border-radius:4px;line-height:1.8;font-size:12px}.previewqr{width:150px;height:150px;margin:8px auto;background:repeating-conic-gradient(#e1e5eb 0% 25%,white 0% 50%) 0/20px 20px;display:flex;align-items:center;justify-content:center}.previewqr span{background:white;color:#8b94a3;padding:12px;font-size:12px;text-align:center}.hint{font-size:12px;color:#909399;line-height:1.8;margin:12px 0}.phonegrid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}.phonewrap{text-align:center}.phone{width:250px;max-width:100%;height:440px;border:10px solid white;border-radius:30px;box-shadow:0 4px 22px #0002;margin:18px auto;background:#f4f5fa;overflow:hidden;text-align:left;position:relative}.notch{height:17px;width:96px;background:#111;border-radius:0 0 13px 13px;margin:auto}.phonebody{padding:20px 12px}.phone h3{font-size:20px;color:#777}.phonecard{background:white;border-radius:10px;padding:14px;margin:12px 0;line-height:1.8}.phone button{border-radius:22px;width:100%;margin:5px 0;font-size:11px}.phone.blue{background:#bdd1e7}.phone.purple{background:#f2efff}.phone.minimal{background:#fff}.minirow{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:11px}.minirow>div{background:#f4f5f7;border-radius:7px;padding:8px}.customer{max-width:430px;margin:20px auto}.customer .panel{padding:25px}.customer input{width:100%;margin:12px 0}.customer button{width:100%;margin-top:12px}.customer h1{font-size:25px}.banner{background:#eaf3ff;color:#1677ff;padding:20px;border-radius:8px;margin-bottom:20px}.intro p{line-height:2.2;color:#66768c}.num{display:inline-flex;width:20px;height:20px;border-radius:50%;background:#2699ff;color:white;align-items:center;justify-content:center;margin-right:10px}.intro section{margin:25px 0}.tabs{display:flex;gap:22px;margin:0 0 20px;border-bottom:1px solid #ebeef5;padding-bottom:13px}.tabs a.active{border-bottom:2px solid #1677ff;padding-bottom:13px}#toast{position:fixed;z-index:200;top:70px;left:50%;transform:translateX(-50%);background:#fff;border:1px solid #dfe7f0;border-radius:5px;padding:13px 24px;box-shadow:0 5px 18px #0002;max-width:90vw;line-height:1.7}.actionlink{border:0;background:transparent;color:#1677ff;padding:0;font-size:12px}.disclaimer{font-size:11px;color:#a5abb4;margin-top:15px}.headerlink{font-size:12px}.bulkbox{white-space:pre-wrap;word-break:break-all;padding:12px;background:#f5f7fa;max-height:180px;overflow:auto}.filterstatus{font-size:12px;color:#909399}body.collapsed .sidebar{width:60px}body.collapsed .sidebar .brand,body.collapsed .nav-title,body.collapsed .nav-group,body.collapsed .navtext{display:none}body.collapsed .main{margin-left:60px;width:calc(100% - 60px)}body.collapsed .navitem{padding:13px 10px}.phonechoice{display:flex;justify-content:center;gap:8px;align-items:center}.phonechoice input{accent-color:#1677ff}@media(max-width:1000px){.types{grid-template-columns:repeat(2,1fr)}.phonegrid{grid-template-columns:repeat(2,1fr)}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.sidebar{width:60px}.sidebar .brand,.nav-title,.nav-group,.navtext{display:none}.main{margin-left:60px;width:calc(100% - 60px)}.navitem{padding:13px 10px}.content{padding:9px}.panel{padding:14px}.types,.phonegrid{grid-template-columns:1fr}.filters{gap:10px}.fieldline{width:100%}.fieldline label{width:65px}.fieldline input,.fieldline select{flex:1;width:auto}.stats{gap:10px}.stat{padding:14px}.topbar{padding:0 12px}.previewbar{margin:8px 9px 0}.toptools .circle{display:none}.modalbody .twocol{grid-template-columns:1fr}}

[hidden]{display:none!important}.saving .layout,.saving #modal{pointer-events:none;opacity:.7}.auth-card{max-width:420px;margin:10vh auto;box-shadow:0 4px 25px #0001}.auth-card .brand{color:#303133}.auth-card input{width:100%;margin:10px 0 20px}.auth-card label{display:block}.auth-card button{width:100%}

.native-qr{display:flex;align-items:center;justify-content:center;min-height:216px;margin:12px auto;background:#fff;color:#444}.native-qr img{width:200px;height:200px;max-width:100%;image-rendering:pixelated}

.native-diagnostic-text{white-space:pre-wrap;overflow-wrap:anywhere}.customer-body{background:#f5f7fa}.customer-shell{max-width:640px;margin:32px auto;padding:16px}.customer-shell .panel{padding:24px}.customer-shell .banner{text-align:center}.customer-shell label{display:block;margin:16px 0 8px}.customer-shell textarea{width:100%;min-height:90px;margin-top:12px;overflow-wrap:anywhere}.customer-shell .customer-consent{display:flex;align-items:flex-start;gap:8px;line-height:1.7}.customer-consent input{margin-top:5px}.customer-shell button{margin:12px 8px 0 0}.customer-shell p{white-space:pre-wrap;line-height:1.8}.customer-shell #job-status{font-weight:600;color:#1677ff}

.customer-shell .customer-consent input{width:auto;flex:0 0 auto;margin:5px 0 0}

.column-picker{position:relative;margin-left:auto}.column-picker summary{cursor:pointer;color:#1677ff;white-space:nowrap}.column-picker>div{position:absolute;right:0;top:28px;z-index:12;width:200px;max-height:340px;overflow:auto;background:white;border:1px solid #dfe7f0;border-radius:6px;padding:12px;box-shadow:0 6px 18px #0002}.column-picker label{display:flex;gap:9px;align-items:center;padding:5px 0;white-space:nowrap}.scroll table th{white-space:nowrap}.scroll table td{max-width:320px;overflow-wrap:anywhere}.pager select{width:75px}.customer-portal{max-width:482px;margin:14px auto;padding:0 16px}.customer-card{background:white;border-radius:12px;padding:20px 12px;margin-bottom:12px;box-shadow:0 2px 9px #00000008}.customer-portal p{font-size:12px;line-height:1.8}.customer-portal .announcement-title{margin:0}.customer-portal #announcement{min-height:35px;margin:3px 0 10px}.card-summary>div:not(#card-detail){display:flex;justify-content:space-between;border-bottom:1px solid #f2f3f5;padding:5px 0;font-size:12px;gap:16px}.card-summary #card-detail{font-size:11px;margin-top:7px}.customer-actions{display:grid;gap:12px}.portal-action{display:flex;align-items:center;gap:12px;width:100%;height:46px;text-align:left;border:0;border-radius:10px;color:white;box-shadow:0 3px 8px #00000009}.portal-action:hover{color:white;filter:brightness(1.05)}.portal-action strong,.portal-action small{display:block}.portal-action strong{font-size:14px;font-weight:500}.portal-action small{font-size:10px;margin-top:2px}.portal-icon{font-size:22px;background:#ffffff20;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;flex-shrink:0}.action-scan{background:linear-gradient(110deg,#4caf50,#2e7d32)}.action-upload{background:linear-gradient(110deg,#2196f3,#1565c0)}.action-purchase{background:linear-gradient(110deg,#ff9800,#f57c00)}.action-tutorial{background:linear-gradient(110deg,#ad24ba,#7b1fa2)}.customer-portal label{display:block;margin:14px 0 7px}.customer-portal input[type=file],.customer-portal textarea{width:100%;margin-top:10px}.customer-portal .customer-consent{display:flex;gap:8px;line-height:1.7}.customer-portal .customer-consent input{width:auto;margin:4px 0 0}.customer-portal #customer-submit,.customer-portal #customer-refresh{width:100%;margin-top:12px}.customer-portal #job-status{color:#1677ff;font-weight:600}.customer-portal ol{padding-left:20px;line-height:2}.customer-portal #portal-status:empty{display:none}#camera-dialog{border:0;border-radius:12px;padding:18px;max-width:min(92vw,500px);width:100%}#camera-dialog::backdrop{background:#0009}.camera-head{display:flex;justify-content:space-between;align-items:center}.camera-head h3{font-size:15px}#camera-video{width:100%;max-height:55vh;background:#111;border-radius:8px}body[data-template="1"] .customer-card{border-top:3px solid #249a55}body[data-template="2"] .portal-action{background:#8050b4}body[data-template="3"] .portal-action{background:#1677ff}body[data-template="4"] .portal-action{background:white;color:#303133;border:1px solid #dcdfe6}body[data-template="6"]{background:#eaf2fa}body[data-template="6"] .customer-card{border:1px solid #cddfee}

.customer-actions .portal-action{margin:0}.customer-portal #upload-panel{margin-top:12px}.customer-portal #tutorial-panel{margin-top:12px}

/* Full viewport scanner; scanner motion only runs with an active camera. */
#camera-dialog{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding:0;background:#000;color:#fff;overflow:hidden}#camera-dialog::backdrop{background:#000}#camera-video{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain;border-radius:0;background:#000}.scanner-title{position:absolute;top:25px;left:20px;right:20px;z-index:2;text-align:center;font-size:14px;font-weight:400;margin:0;color:#fff9}.scanner-frame{position:absolute;inset:16px 0 95px;pointer-events:none}.scanner-frame i{position:absolute;width:24px;height:24px;border-color:#00d99d;border-style:solid}.scanner-frame i:nth-child(1){left:10px;top:0;border-width:2px 0 0 2px}.scanner-frame i:nth-child(2){right:10px;top:0;border-width:2px 2px 0 0}.scanner-frame i:nth-child(3){left:10px;bottom:0;border-width:0 0 2px 2px}.scanner-frame i:nth-child(4){right:10px;bottom:0;border-width:0 2px 2px 0}.scanner-line{position:absolute;left:10%;right:10%;top:24px;height:2px;background:#00efac;box-shadow:0 0 8px #00efac;animation:scanner-sweep 3s ease-in-out infinite alternate}.scanner-feedback{position:absolute;left:18px;right:18px;bottom:100px;text-align:center;z-index:2}#camera-status{font-size:14px;color:white;margin:8px 0;text-shadow:0 1px 4px #000}.scanner-privacy{color:#fff9;font-size:11px}.scanner-alternatives{display:flex;gap:12px;justify-content:center}.scanner-alternatives button{background:#222d;color:#fff;border:1px solid #777;border-radius:5px;padding:9px 13px}#camera-close{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:42px;height:42px;border-radius:50%;background:#292929;color:white;border:0;font-size:25px;padding:0;margin:0;z-index:3}#camera-dialog:not([data-state="active"]) .scanner-line{display:none}#camera-dialog[data-state="error"] .scanner-feedback{top:40%;bottom:auto}#camera-dialog[data-state="active"] #camera-retry{display:none}@keyframes scanner-sweep{from{top:24px}to{top:calc(100% - 24px)}}@media(prefers-reduced-motion:reduce){.scanner-line{animation:none;top:50%}}

/* Platform details use the available viewport; only the body scrolls vertically. */
.platform-modal{width:min(1100px,calc(100vw - 32px));max-width:100%;max-height:94dvh;display:flex;flex-direction:column;overflow:hidden}.platform-modal .modalhead{flex:none}.platform-modal form{display:flex;flex-direction:column;min-height:0;overflow:hidden}.platform-modal .modalbody{overflow-y:auto;overflow-x:hidden;min-height:0}.platform-modal .modalfoot{flex:none}.platform-modal .scroll{overflow:visible}.platform-modal table{table-layout:fixed;width:100%;min-width:0;white-space:normal}.platform-modal .scroll table th,.platform-modal .scroll table td{white-space:normal;overflow-wrap:anywhere;word-break:break-word;max-width:none;padding:12px 8px}.platform-modal button{max-width:100%;white-space:normal}.device-checked{display:block;color:#909399;font-size:10px;margin-top:3px}@media(max-width:650px){.overlay:has(.platform-modal){padding:6px}.platform-modal{width:calc(100vw - 12px);max-height:97dvh}.platform-modal .modalhead{padding:14px 12px}.platform-modal .modalbody{padding:0 10px 12px}.platform-modal .scroll table th,.platform-modal .scroll table td{padding:9px 3px;font-size:11px}}
.hover-count{color:#1677ff;cursor:pointer;border:0;background:transparent;padding:2px;display:inline-block}.device-blue{color:#1677ff}#account-hover{position:fixed;z-index:1200;background:white;border:1px solid #e6eaf1;box-shadow:0 5px 22px #18284830;border-radius:8px;padding:16px;width:min(680px,calc(100vw - 16px));max-height:80vh;overflow:auto;box-sizing:border-box}#account-hover.wide-hover{width:min(1050px,calc(100vw - 16px))}#account-hover table{min-width:0;width:100%;table-layout:fixed}#account-hover td,#account-hover th{white-space:normal;overflow-wrap:anywhere;padding:9px 7px}#account-hover .scroll{overflow:visible}#account-hover h3{margin:4px 0 12px}#account-hover button{white-space:normal}#account-hover .hint{font-size:12px}.task-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(240px,1fr);gap:14px}.task-layout .panel{margin-bottom:14px}.task-layout h3{font-size:14px}.task-layout table{min-width:0}.task-layout #task-refresh{float:right}@media(max-width:800px){.task-layout{grid-template-columns:1fr}}

.iconbutton{min-width:36px!important;width:36px!important;height:36px!important;font-size:20px!important;display:inline-flex;align-items:center;justify-content:center}.iconbutton svg{width:22px;height:22px}

.login-detected{padding:16px;background:#eaf9ee;color:#167b35;font-size:18px;font-weight:bold;border-radius:8px}
.session-good{color:#2db77c}.session-bad{color:#e34b56}.session-unknown{color:#999}
.account-switch{border-radius:16px;min-width:58px;padding:5px 12px;font-size:12px}.account-switch.is-on{color:white;background:#28ad78;border-color:#28ad78}.account-switch.is-off{color:white;background:#999;border-color:#999}.scan-modal{width:min(520px,calc(100vw - 20px));max-height:calc(100dvh - 20px);overflow:auto}.scan-modal .modalhead{padding:12px 16px}.scan-modal .modalbody{padding:0 16px 12px}.scan-modal .modalfoot{display:none}.scan-modal .scan-note{background:#eff6ff;color:#456;padding:8px;margin:6px 0}.scan-modal .native-qr{min-height:0;margin:8px auto}.scan-modal .native-qr img{width:180px;height:180px}.scan-modal p{margin:6px 0;font-size:12px}.scan-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.scan-fields label{margin:6px 0!important}.scan-fields input,.scan-fields select{width:100%;padding:6px 8px}.scan-modal .modalbody>label{margin:8px 0}.scan-modal .inline{margin-top:8px}.scan-modal #native-app{font-size:11px}.scan-modal #native-diagnostic-text{max-height:100px;overflow:auto}@media(max-height:650px){.scan-modal .native-qr img{width:150px;height:150px}.scan-modal p{margin:4px 0}.scan-modal .modalhead{padding:8px 12px}.scan-modal .scan-note{padding:5px}} 

img.avatar{object-fit:cover}

#instructions{white-space:pre-wrap;overflow-wrap:anywhere}.tutorial-media img,.tutorial-media video{display:block;max-width:100%;max-height:600px;height:auto;margin:auto}.tutorial-media figure{margin:16px 0}.tutorial-media figcaption{overflow-wrap:anywhere;color:#727987;font-size:13px}.media-item{border:1px solid #dce2ec;border-radius:8px;padding:12px;margin:12px 0}.media-item img,.media-item video{max-width:100%;max-height:240px;display:block}#tutorial-upload-progress{display:block;margin:8px 0}
