
.sm-app{width:100%;}
.sm-hero{padding:30px 0 14px;}
.sm-hero h1{font-size:18px;font-weight:700;color:#172033;margin:0 0 6px;line-height:1.2;}
.sm-hero p{font-size:16px;color:#5c677d;margin:0;line-height:1.65;}
.sm-workspace{display:grid;grid-template-columns:minmax(0,39%) minmax(0,61%);gap:16px;align-items:stretch;}
.sm-card{background:#fff;border:1px solid #dbe2ed;border-radius:14px;overflow:hidden;box-shadow:0 1px 3px rgba(15,23,42,.05);}
.sm-tabs{display:grid;grid-template-columns:1fr 1fr;background:#e8f0fe;border-radius:7px 7px 0 0;}
.sm-tab{padding:11px 16px;text-align:center;border:none;background:#e8f0fe;font-size:14px;font-weight:600;color:#5c677d;cursor:pointer;transition:.2s;box-shadow:inset 0 0 0 1px #d0dcf0;}
.sm-tab.active{background:#fff;color:#1262d6;font-weight:720;box-shadow:none;}
.sm-panel{display:none;}
.sm-panel.active{display:block;}
.sm-drop{padding:24px 18px;background:#f8fafc;border:2px dashed #cbd5e1;border-radius:14px;text-align:center;cursor:pointer;transition:.2s;margin:16px;min-height:371px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;}
.sm-drop.drag{border-color:#1262d6;background:#eef4ff;}
.sm-drop-icon{width:44px;height:44px;margin:0 auto 26px;display:flex;align-items:center;justify-content:center;}
.sm-drop-icon img{width:44px;height:44px;}
.sm-drop-title{font-size:16px;font-weight:760;color:#172033;margin:0 0 10px;}
.sm-drop-title .touch{display:none;}
.sm-drop-copy{font-size:14px;color:#5c677d;margin:0 0 14px;}
.sm-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 17px;background:#1262d6;color:#fff;border:1px solid #1262d6;border-radius:8px;font-size:14px;font-weight:720;cursor:pointer;transition:.2s;}
.sm-btn:hover{background:#0f55ba;}
.sm-paste{font-size:13px;color:#5c677d;margin:20px 0 0;}
.sm-paste kbd{background:#eef1f5;border:1px solid #dbe2ed;border-bottom-width:2px;border-radius:4px;padding:1px 6px;font-size:12px;font-family:inherit;}
.sm-formats{font-size:12px;font-weight:700;color:#667289;margin:13px 0 0;}
.sm-privacy{font-size:12px;font-weight:650;color:#4e5a70;margin:13px 0 5px;}
.sm-preview{margin:0 16px 16px;padding:12px;background:#fff;border:1px solid #dbe2ed;border-radius:12px;display:flex;align-items:center;gap:12px;}
.sm-preview img{width:55px;height:55px;object-fit:cover;border-radius:6px;flex-shrink:0;}
.sm-preview .pv-name{font-size:14px;color:#172033;font-weight:600;word-break:break-all;line-height:1.4;min-width:0;}
.sm-preview .pv-label{font-size:12px;color:#667289;margin-top:3px;}
.sm-cam{padding:16px;text-align:center;}
.sm-cam-placeholder{margin:0;padding:24px 18px;background:#f8fafc;border:2px dashed #cbd5e1;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:371px;box-sizing:border-box;}
.sm-cam-intro{display:flex;flex-direction:column;align-items:center;text-align:center;margin-bottom:28px;}
.sm-cam-icon{width:44px;height:44px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;margin-bottom:26px;}
.sm-cam-icon img{width:44px;height:44px;}
.sm-cam-intro h2{font-size:16px;font-weight:700;color:#172033;margin:0 0 14px;}
.sm-cam-intro p{font-size:13px;color:#5c677d;margin:0;}
.sm-cam-privacy{font-size:12px;color:#667289;margin:19px 0 0;}
.sm-cam-live{position:relative;}
#smReader{width:100%;border-radius:12px;overflow:hidden;}
#smReader video{width:100%;display:block;border-radius:12px;}
#smReader img{max-width:100%;border-radius:12px;display:block;margin:0 auto;}
.sm-corners span{position:absolute;width:26px;height:26px;border:3px solid #1262d6;opacity:.85;}
.sm-corners span:nth-child(1){top:8px;left:8px;border-right:none;border-bottom:none;border-radius:6px 0 0 0;}
.sm-corners span:nth-child(2){top:8px;right:8px;border-left:none;border-bottom:none;border-radius:0 6px 0 0;}
.sm-corners span:nth-child(3){bottom:8px;left:8px;border-right:none;border-top:none;border-radius:0 0 0 6px;}
.sm-corners span:nth-child(4){bottom:8px;right:8px;border-left:none;border-top:none;border-radius:0 0 6px 0;}
.sm-scan-line{position:absolute;left:10%;right:10%;height:2px;border-radius:2px;pointer-events:none;top:12%;background:linear-gradient(90deg,transparent,#1262d6,transparent);box-shadow:0 0 10px #1262d6;animation:smScan 2.2s ease-in-out infinite;}
@keyframes smScan{0%,100%{top:14%;}50%{top:84%;}}
.sm-feedback{background:#fff;border:1px solid #dbe2ed;border-radius:14px;box-shadow:0 1px 3px rgba(15,23,42,.05);display:flex;flex-direction:column;min-height:100%;box-sizing:border-box;}
.sm-feedback-top{display:flex;align-items:center;gap:8px;padding:14px 14px 14px;}
.sm-feedback-top.withline{border-bottom:1px solid #e5eaf2;}
.sm-state-check{width:32px;height:32px;flex:0 0 auto;display:none;align-items:center;justify-content:center;border-radius:50%;background:#e6f7ee;color:#15a34a;font-size:17px;font-weight:800;}
.sm-state-check.show{display:flex;}
.sm-state-title{flex:1;min-width:0;margin:0;font-size:20px;font-weight:760;color:#172033;display:none;text-align:left;line-height:1.3;}
.sm-state-title.show{display:block;}
.sm-state-title.err{color:#e5484d;}
.sm-history{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;background:#f6f8fb;color:#62728a;border:1px solid #e5eaf2;border-radius:7px;font-size:13px;font-weight:680;cursor:pointer;transition:.2s;flex:0 0 auto;margin-left:auto;}
.sm-history:hover{background:#edf1f6;color:#1262d6;}
.sm-history svg{width:15px;height:15px;}
.sm-history .cnt{color:#1262d6;font-weight:800;}
.sm-res-clear{display:none;flex:0 0 auto;min-height:30px;padding:5px 8px;border:0;border-radius:6px;background:transparent;color:#62708a;font:inherit;font-size:13px;font-weight:680;cursor:pointer;transition:.2s;}
.sm-res-clear.show{display:inline-block;}
.sm-res-clear:hover{color:#1262d6;background:#e8f0fe;}
.sm-history-list{margin:4px 16px 0;border:1px solid #e5eaf2;border-radius:10px;background:#f8fafc;padding:10px;display:none;}
.sm-history-list.show{display:block;}
.sm-his-item{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-radius:8px;cursor:pointer;transition:.15s;}
.sm-his-item:hover{background:#eef4ff;}
.sm-his-item .t{font-size:13px;color:#172033;flex:1;margin-right:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sm-his-item .ty{font-size:12px;color:#1262d6;flex:0 0 auto;}
.sm-his-clear{display:block;width:100%;margin-top:8px;padding:6px;border:none;background:none;color:#99a2b5;font-size:12px;cursor:pointer;}
.sm-his-clear:hover{color:#e5484d;}
.sm-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:34px;color:#536078;}
.sm-empty-icon{width:56px;height:56px;display:flex;align-items:center;justify-content:center;margin-bottom:16px;}
.sm-empty-icon img{width:56px;height:56px;}
.sm-empty h2{font-size:16px;font-weight:700;color:#172033;margin:0 0 6px;}
.sm-empty p{font-size:13px;color:#667289;margin:0;}
.sm-status{padding:0 16px;font-size:13px;color:#667289;}
.sm-result{flex:1;padding:16px 16px 0;display:none;text-align:left;overflow-y:auto;}
.sm-result.show{display:block;}
.sm-res-kind{display:inline-flex;align-items:center;gap:7px;margin:0 0 10px;color:#1262d6;font-size:14px;font-weight:760;}
.sm-res-kind svg{width:17px;height:17px;flex:0 0 auto;}
.sm-urlbox{padding:13px 14px;border:1px solid #e5eaf2;border-radius:10px;background:#f8fafc;}
.sm-urlbox p{margin:0;overflow-wrap:anywhere;word-break:break-all;color:#1d2d46;font-weight:680;line-height:1.5;}
.sm-security{display:none;align-items:flex-start;gap:8px;margin:12px 0 0;padding:6px 12px;color:#92400e;background:#fffbeb;border-left:4px solid #f59e0b;border-radius:4px;font-size:12px;line-height:1.6;}
.sm-security.show{display:flex;}
.sm-security svg{width:14px;height:14px;flex:0 0 auto;margin-top:1px;color:#b45309;}
.sm-res-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.sm-act{display:inline-flex;align-items:center;gap:6px;padding:9px 17px;border-radius:8px;font-size:14px;font-weight:650;cursor:pointer;transition:.2s;border:1px solid transparent;}
.sm-act.copy{background:#1262d6;color:#fff;}
.sm-act.copy:hover{background:#0f55ba;}
.sm-act.open{background:#1262d6;color:#fff;}
.sm-act.open:hover{background:#0f55ba;}
.sm-act.dl{min-height:32px;padding:6px 10px;color:#52617a;background:transparent;border-color:transparent;font-size:13px;font-weight:650;}
.sm-act.dl:hover{color:#1262d6;background:#e8f0fe;}
.sm-raw{margin-top:14px;border-top:1px solid #e5eaf2;padding-top:10px;}
.sm-raw summary{color:#52617a;font-size:13px;font-weight:680;cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:5px;user-select:none;}
.sm-raw summary::-webkit-details-marker{display:none;}
.sm-raw summary::before{content:'';width:0;height:0;border-left:5px solid #7a879c;border-top:4px solid transparent;border-bottom:4px solid transparent;transition:transform .15s;}
.sm-raw[open] summary::before{transform:rotate(90deg);}
.sm-raw summary:hover{color:#1262d6;}
.sm-raw pre{max-height:280px;overflow:auto;margin:12px 0 0;padding:14px;white-space:pre-wrap;overflow-wrap:anywhere;color:#2b364c;background:#f8fafc;border:1px solid #e5eaf2;border-radius:10px;font:13px/1.6 ui-monospace,Consolas,monospace;}
.sm-fail{display:none;flex:1;flex-direction:column;align-items:stretch;justify-content:flex-end;text-align:left;padding:16px 16px 20px;}
.sm-fail.show{display:flex;}
.sm-cam-err{display:none;flex-direction:column;align-items:center;text-align:center;}
.sm-cam-err-icon{width:44px;height:44px;display:flex;align-items:center;justify-content:center;margin-bottom:26px;}
.sm-cam-err-icon img{width:44px;height:44px;}
.sm-cam-err h2{font-size:16px;font-weight:700;color:#172033;margin:0 0 8px;}
.sm-cam-err p{font-size:13px;color:#5c677d;margin:0 0 26px;line-height:1.7;max-width:none;width:100%;white-space:normal;word-break:break-word;padding:0 16px;box-sizing:border-box;}
.sm-cam-err .sm-cam-privacy{margin:19px 0 0;font-size:12px;color:#667289;}
.sm-err{display:none;flex:1;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:34px;color:#e5484d;font-size:13px;line-height:1.6;background:none;border:none;margin:0;}
.sm-err-mark{width:34px;height:34px;line-height:34px;flex:0 0 auto;border-radius:50%;background:#e5484d;color:#fff;font-weight:700;font-size:19px;text-align:center;margin-bottom:16px;}
.sm-err span.t{max-width:300px;}
.sm-noqr-desc{font-size:14px;color:#667289;line-height:1.6;}
.sm-noqr-tips{margin-top:14px;}
.sm-noqr-tip-h{font-size:14px;font-weight:700;color:#172033;margin-bottom:6px;}
.sm-noqr-tip{font-size:14px;color:#667289;line-height:1.7;display:flex;align-items:center;gap:7px;}
.sm-noqr-tip::before{content:'';width:5px;height:5px;border-radius:50%;background:#c7cfdd;flex:0 0 auto;}
.sm-noqr-btn{margin-top:18px;background:#1262d6;color:#fff;border:none;border-radius:8px;padding:10px 20px;font-size:14px;font-weight:600;cursor:pointer;transition:.2s;width:100%;text-align:center;}
.sm-noqr-btn:hover{background:#0f55ba;}
.night .sm-hero h1{color:#e6e8eb !important;}
.night .sm-hero p{color:#9aa2ad !important;}
.night .sm-card,.night .sm-feedback{background:#1a1d24 !important;border-color:#3a3f48 !important;box-shadow:0 4px 20px rgba(0,0,0,.4) !important;}
.night .sm-tabs{background:#1c2436 !important;}
.night .sm-tab{color:#9aa2ad !important;background:#1c2436 !important;box-shadow:inset 0 0 0 1px #3a3f48 !important;}
.night .sm-tab.active{background:#1a1d24 !important;color:#6ea2ff !important;box-shadow:none !important;}
.night .sm-drop{background:#1a1d24 !important;border-color:#3a3f48 !important;}
.night .sm-cam-placeholder{background:#1a1d24 !important;border-color:#3a3f48 !important;}
.night .sm-drop.drag{border-color:#6ea2ff !important;background:#1c2436 !important;}
.night .sm-err{color:#ff6b6b !important;background:none !important;border:none !important;}
.night .sm-state-title{color:#e6e8eb !important;}
.night .sm-state-title.err{color:#ff6b6b !important;}
.night .sm-state-check{background:#143523 !important;color:#3ecf7e !important;}
.night .sm-res-kind{color:#6ea2ff !important;}
.night .sm-urlbox{background:#1a1d24 !important;border-color:#3a3f48 !important;}
.night .sm-urlbox p{color:#e6e8eb !important;}
.night .sm-security{background:#2a2413 !important;border-left-color:#b9821a !important;color:#d8a24a !important;}
.night .sm-security svg{color:#d8a24a !important;}
.night .sm-res-clear{color:#9aa2ad !important;}
.night .sm-res-clear:hover{color:#6ea2ff !important;background:#1c2436 !important;}
.night .sm-act.dl{color:#c8d0dc !important;}
.night .sm-act.dl:hover{color:#6ea2ff !important;background:#1c2436 !important;}
.night .sm-history .cnt{color:#6ea2ff !important;}
.night .sm-noqr-desc{color:#9aa2ad !important;}
.night .sm-feedback-top.withline{border-bottom-color:#3a3f48 !important;}
.night .sm-raw{border-top-color:#3a3f48 !important;}
.night .sm-raw summary{color:#c8d0dc !important;}
.night .sm-raw summary:hover{color:#6ea2ff !important;}
.night .sm-raw pre{background:#1a1d24 !important;border-color:#3a3f48 !important;color:#c8d0dc !important;}
.night .sm-noqr-tip-h{color:#e6e8eb !important;}
.night .sm-noqr-tip{color:#9aa2ad !important;}
.night .sm-noqr-tip::before{background:#4a5261 !important;}
.night .sm-noqr-btn{background:#6ea2ff !important;color:#0d1320 !important;}
.night .sm-noqr-btn:hover{background:#5c93f5 !important;}
.night .sm-cam-err h2{color:#e6e8eb !important;}
.night .sm-cam-err p{color:#9aa2ad !important;}
.night .sm-scan-line{background:linear-gradient(90deg,transparent,#6ea2ff,transparent) !important;box-shadow:0 0 10px #6ea2ff !important;}
.night .sm-drop-title,.night .sm-cam-intro h2,.night .sm-empty h2,.night .sm-preview .pv-name{color:#e6e8eb !important;}
.night .sm-drop-copy,.night .sm-paste,.night .sm-cam-intro p{color:#9aa2ad !important;}
.night .sm-paste kbd{background:#222630 !important;border-color:#3a3f48 !important;color:#c8d0dc !important;}
.night .sm-preview{background:#222630 !important;border-color:#3a3f48 !important;}
.night .sm-history{background:#222630 !important;color:#9aa2ad !important;border-color:#3a3f48 !important;}
.night .sm-history:hover{color:#6ea2ff !important;}
.night .sm-history-list{background:#1a1d24 !important;border-color:#3a3f48 !important;}
.night .sm-his-item:hover{background:#232b3d !important;}
.night .sm-his-item .t{color:#e6e8eb !important;}
.night .sm-act.dl{background:transparent !important;color:#c8d0dc !important;border-color:transparent !important;}
.night .sm-act.dl:hover{background:#2a3242 !important;}
.sm-modal-mask{display:none;position:fixed;inset:0;z-index:2147483000;background:rgba(15,23,42,.45);align-items:center;justify-content:center;padding:20px;}
.sm-modal-mask.show{display:flex;}
.sm-modal{background:#fff;border-radius:16px;box-shadow:0 20px 60px rgba(15,23,42,.25);width:380px;max-width:100%;padding:28px 26px 22px;text-align:center;animation:smPop .22s ease-out;}
@keyframes smPop{from{transform:scale(.92) translateY(8px);opacity:0;}to{transform:scale(1) translateY(0);opacity:1;}}
.sm-modal-icon{width:56px;height:56px;border-radius:50%;background:#e8f0fe;color:#1262d6;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;}
.sm-modal h3{font-size:17px;font-weight:700;color:#172033;margin:0 0 6px;}
.sm-modal-url{font-size:13px;color:#1262d6;background:#f0f6ff;border:1px solid #d6e4fb;border-radius:8px;padding:10px 12px;word-break:break-all;line-height:1.5;margin:14px 0 10px;text-align:left;}
.sm-modal-tip{font-size:12px;color:#99a2b5;margin:0 0 20px;}
.sm-modal-actions{display:flex;gap:10px;}
.sm-modal-btn{flex:1;padding:10px 0;border-radius:9px;border:none;font-size:14px;font-weight:650;cursor:pointer;transition:.2s;}
.sm-modal-btn.cancel{background:#f2f5fa;color:#536078;}
.sm-modal-btn.cancel:hover{background:#e9eef5;}
.sm-modal-btn.ok{background:#1262d6;color:#fff;}
.sm-modal-btn.ok:hover{background:#0f55ba;}
.night .sm-modal{background:#222630 !important;box-shadow:0 20px 60px rgba(0,0,0,.5) !important;}
.night .sm-modal-icon{background:#1c2436 !important;color:#6ea2ff !important;}
.night .sm-modal h3{color:#e6e8eb !important;}
.night .sm-modal-url{background:#1a1d24 !important;border-color:#3a3f48 !important;color:#6ea2ff !important;}
.night .sm-modal-tip{color:#9aa2ad !important;}
.night .sm-modal-btn.cancel{background:#2a3242 !important;color:#c8d0dc !important;}
.night .sm-modal-btn.cancel:hover{background:#323c50 !important;}
@media (max-width:860px){
    .sm-modal{width:100%;}
    .sm-hero{padding:20px 0 10px;}
    .sm-hero h1{font-size:22px;}
    .sm-workspace{grid-template-columns:1fr;}
    .sm-drop-title .touch{display:block;}
    .sm-drop-title .desktop{display:none;}
    .sm-feedback{min-height:240px;}
}
