#resultimgbox{margin-top:24px;display:none}
#resultimgbox .resultimgbox2{border:1px solid #e8e8e8;border-radius:10px;background:#fafafa;text-align:center;max-height:400px;overflow:hidden;display:flex;justify-content:center;align-items:center;padding:8px}
#resultimgbox .resultimgbox2 .preview-image{max-width:100%;max-height:380px;width:auto;height:auto;object-fit:contain;display:block;margin:0 auto;border-radius:6px}
#actionBtnGroup{justify-content:center}
.irbg-progress-panel{margin-top:24px;display:none;background:#0d1117;border-radius:12px;overflow:hidden;box-shadow:0 4px 24px rgba(0,0,0,0.3);border:1px solid #30363d}
.irbg-progress-panel.irbg-show{display:block}
.irbg-progress-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#161b22;border-bottom:1px solid #30363d}
.irbg-progress-title{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:#58a6ff;font-family:'Courier New',Consolas,monospace}
.irbg-progress-spinner{color:#3fb950;animation:irbgSpin 1s linear infinite}
@keyframes irbgSpin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
.irbg-progress-time{font-size:12px;color:#8b949e;font-family:'Courier New',Consolas,monospace}
.irbg-progress-bar-wrapper{background:#161b22;padding:16px;border-bottom:1px solid #21262d}
.irbg-progress-bar-track{background:#21262d;border-radius:8px;height:8px;overflow:hidden;position:relative;margin-bottom:8px}
.irbg-progress-bar{height:100%;background:linear-gradient(90deg,#3fb950,#238636);border-radius:8px;transition:width .4s cubic-bezier(.4,0,.2,1);position:relative;min-width:8px}
.irbg-progress-bar::after{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.15),transparent);animation:irbgShimmer 2s infinite}
@keyframes irbgShimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}
.irbg-progress-stats{display:flex;gap:16px;justify-content:space-between;align-items:center}
.irbg-progress-stat{text-align:center;flex:1}
.irbg-progress-stat-value{font-size:20px;font-weight:700;color:#f0f6fc;font-family:'Courier New',Consolas,monospace}
.irbg-progress-stat-label{font-size:11px;color:#8b949e;margin-top:2px;text-transform:uppercase;letter-spacing:0.5px}
.irbg-status-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;background:rgba(63,185,80,0.1);border:1px solid rgba(63,185,80,0.2);border-radius:16px;font-size:12px;color:#3fb950;font-family:'Courier New',Consolas,monospace}
.irbg-status-dot{width:6px;height:6px;background:#3fb950;border-radius:50%;animation:irbgPulse 1.5s infinite}
@keyframes irbgPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:0.5;transform:scale(0.8)}}
.irbg-log-area{background:#0d1117;padding:12px 16px;max-height:200px;overflow-y:auto;font-family:'Courier New',Consolas,monospace;font-size:12px;line-height:1.6;scroll-behavior:smooth}
.irbg-log-area::-webkit-scrollbar{width:6px}
.irbg-log-area::-webkit-scrollbar-track{background:#0d1117}
.irbg-log-area::-webkit-scrollbar-thumb{background:#30363d;border-radius:3px}
.irbg-log-area::-webkit-scrollbar-thumb:hover{background:#484f58}
.irbg-log-line{padding:3px 0;border-bottom:1px solid #161b22;display:flex;align-items:baseline;gap:8px;animation:irbgFadeIn .3s ease}
@keyframes irbgFadeIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.irbg-log-line:last-child{border-bottom:none}
.irbg-log-prompt{color:#8b949e;flex-shrink:0}
.irbg-log-timestamp{color:#484f58;font-size:11px;flex-shrink:0}
.irbg-log-info{color:#58a6ff}
.irbg-log-success{color:#3fb950}
.irbg-log-warning{color:#d29922}
.irbg-log-error{color:#f85149}
.irbg-log-system{color:#a371f7}
.irbg-result-panel{margin-top:24px;display:none;background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 12px rgba(0,0,0,0.08);border:1px solid #e8e8e8;text-align:center}
.irbg-result-panel.irbg-show{display:block}
.irbg-download-icon{font-size:48px;color:#28a745;margin-bottom:12px}
.irbg-download-icon .material-icons{font-size:48px}
.irbg-download-title{font-size:20px;font-weight:700;color:#333;margin-bottom:8px}
.irbg-download-info{font-size:14px;color:#666;margin-bottom:16px}
.irbg-download-link{margin-bottom:16px;font-size:13px;color:#667eea;word-break:break-all}
.irbg-download-link a{color:#667eea;text-decoration:underline}
.irbg-download-link a:hover{color:#764ba2}
.irbg-result-panel .btngroup{justify-content:center;margin-top:16px}
.irbg-checkerboard{background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
.irbg-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);display:flex;justify-content:center;align-items:center;z-index:10000;opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease}
.irbg-modal-overlay.irbg-show{opacity:1;visibility:visible}
.irbg-modal{background:#fff;border-radius:16px;max-width:420px;width:90%;padding:32px;text-align:center;box-shadow:0 8px 32px rgba(0,0,0,0.15);transform:translateY(20px);transition:transform .3s ease}
.irbg-modal-overlay.irbg-show .irbg-modal{transform:translateY(0)}
.irbg-modal-icon{font-size:48px;color:#667eea;margin-bottom:16px}
.irbg-modal-icon .material-icons{font-size:48px}
.irbg-modal-title{font-size:20px;font-weight:700;color:#333;margin-bottom:12px}
.irbg-modal-desc{font-size:14px;color:#666;line-height:1.6;margin-bottom:24px}
.irbg-modal-desc strong{color:#333}
.irbg-modal-notice{background:#f0f4ff;border-radius:8px;padding:12px;font-size:12px;color:#667eea;margin-bottom:20px;display:flex;align-items:center;gap:8px;text-align:left}
.irbg-modal-notice .material-icons{font-size:20px;flex-shrink:0}
.irbg-modal .btngroup{justify-content:center;flex-wrap:wrap;gap:12px}
@media(max-width:600px){
  .btngroup{flex-direction:column;align-items:stretch}
  .btngroup .btn{text-align:center}
  .irbg-progress-info{flex-direction:column;gap:12px;align-items:center}
}