*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;line-height:1.6;color:#333;background-color:#f5f5f5}#app{min-height:100vh;display:flex;flex-direction:column}.header{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;text-align:center;padding:2rem 1rem}.header h1{font-size:2.5rem;margin-bottom:.5rem;font-weight:300}.header p{font-size:1.1rem;opacity:.9}.main-content{flex:1;max-width:800px;margin:0 auto;padding:2rem 1rem;width:100%}.upload-area{border:3px dashed #ccc;border-radius:12px;padding:3rem 2rem;text-align:center;background:white;transition:all .3s ease;cursor:pointer}.upload-area:hover,.upload-area.drag-over,.upload-area.focused{border-color:#667eea;background-color:#f8f9ff}.upload-area.uploading{pointer-events:none;opacity:.7}.upload-area.uploading:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:30px;height:30px;border:3px solid #f3f3f3;border-top:3px solid #667eea;border-radius:50%;animation:spin 1s linear infinite}.upload-content .upload-icon{font-size:4rem;margin-bottom:1rem}.upload-content h2{color:#333;margin-bottom:1rem;font-weight:400}.upload-content p{color:#666;margin-bottom:1.5rem}.file-select-btn{background:#667eea;color:#fff;border:none;padding:.75rem 2rem;border-radius:6px;font-size:1rem;cursor:pointer;transition:background-color .3s ease}.file-select-btn:hover{background:#5a6fd8}.file-queue{background:white;border-radius:12px;padding:2rem;margin-top:2rem;box-shadow:0 2px 10px #0000001a}.file-queue h3{margin-bottom:1.5rem;color:#333}.file-list{margin-bottom:2rem}.file-item{display:flex;align-items:center;padding:1rem;border:1px solid #eee;border-radius:8px;margin-bottom:.5rem;background:#fafafa;cursor:move}.file-item:hover{background:#f0f0f0}.file-thumbnail{width:40px;height:40px;background:#667eea;border-radius:4px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;margin-right:1rem}.file-info{flex:1}.file-name{font-weight:500;margin-bottom:.25rem}.file-details{font-size:.875rem;color:#666}.file-actions{display:flex;gap:.5rem}.remove-btn{background:#ff4757;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer;font-size:.875rem}.remove-btn:hover{background:#ff3742}.queue-actions{display:flex;gap:1rem;justify-content:center}.merge-btn{background:#2ed573;color:#fff;border:none;padding:.75rem 2rem;border-radius:6px;font-size:1rem;cursor:pointer;transition:background-color .3s ease}.merge-btn:hover:not(:disabled){background:#26d467}.merge-btn:disabled{background:#ccc;cursor:not-allowed}.clear-btn{background:#ff6b6b;color:#fff;border:none;padding:.75rem 2rem;border-radius:6px;font-size:1rem;cursor:pointer;transition:background-color .3s ease}.clear-btn:hover{background:#ff5252}.progress-area{background:white;border-radius:12px;padding:2rem;margin-top:2rem;text-align:center;box-shadow:0 2px 10px #0000001a}.progress-bar{width:100%;height:20px;background:#eee;border-radius:10px;overflow:hidden;margin:1rem 0}.progress-fill{height:100%;background:linear-gradient(90deg,#667eea,#764ba2);width:0%;transition:width .3s ease}#progress-text{font-size:1.1rem;font-weight:500;color:#333}.result-area{background:white;border-radius:12px;padding:2rem;margin-top:2rem;text-align:center;box-shadow:0 2px 10px #0000001a}.download-btn{background:#2ed573;color:#fff;border:none;padding:1rem 2rem;border-radius:6px;font-size:1.1rem;cursor:pointer;margin-right:1rem;transition:background-color .3s ease}.download-btn:hover{background:#26d467}.restart-btn{background:#667eea;color:#fff;border:none;padding:1rem 2rem;border-radius:6px;font-size:1.1rem;cursor:pointer;transition:background-color .3s ease}.restart-btn:hover{background:#5a6fd8}.footer{background:#333;color:#fff;text-align:center;padding:1rem;margin-top:auto}.footer p{font-size:.9rem;opacity:.8}@media (max-width: 1024px) and (min-width: 769px){.main-content{max-width:90%;padding:1.5rem}.upload-area{padding:2.5rem 1.5rem}.file-queue{padding:1.5rem}.queue-actions{gap:.75rem}.queue-actions button{padding:.75rem 1.5rem;font-size:.95rem}}@media (max-width: 768px){.header{padding:1.5rem 1rem}.header h1{font-size:2rem;margin-bottom:.25rem}.header p{font-size:1rem}.main-content{padding:1rem;max-width:100%}.upload-area{padding:2rem 1rem;margin-bottom:1rem}.upload-content .upload-icon{font-size:3rem;margin-bottom:.75rem}.upload-content h2{font-size:1.25rem;margin-bottom:.75rem}.upload-content p{font-size:.9rem;margin-bottom:1rem}.file-select-btn{padding:.75rem 1.5rem;font-size:.95rem;width:100%;max-width:200px}.file-queue{padding:1rem;margin-top:1rem}.file-queue h3{font-size:1.1rem;margin-bottom:1rem}.file-item{flex-direction:column;align-items:flex-start;gap:.75rem;padding:1rem .75rem}.file-thumbnail{align-self:center;width:50px;height:50px}.file-info{width:100%;text-align:center}.file-name{font-size:.95rem}.file-details{font-size:.85rem}.file-actions{align-self:center;width:100%;justify-content:center}.remove-btn{padding:.5rem 1.5rem;font-size:.85rem;width:100%;max-width:120px}.queue-actions{flex-direction:column;gap:.75rem}.queue-actions button{width:100%;padding:.875rem 1rem;font-size:1rem}.progress-area{padding:1.5rem 1rem;margin-top:1rem}.progress-area h3{font-size:1.1rem;margin-bottom:1rem}.progress-bar{height:16px;margin:.75rem 0}#progress-text{font-size:1rem}.result-area{padding:1.5rem 1rem;margin-top:1rem}.result-area h3{font-size:1.1rem;margin-bottom:1rem}.download-btn,.restart-btn{width:100%;margin:.5rem 0;padding:1rem;font-size:1rem}.footer{padding:1rem}.footer p{font-size:.85rem}}@media (max-width: 480px){.header{padding:1rem .75rem}.header h1{font-size:1.75rem}.header p{font-size:.9rem}.main-content{padding:.75rem}.upload-area{padding:1.5rem .75rem}.upload-content .upload-icon{font-size:2.5rem}.upload-content h2{font-size:1.1rem}.file-queue,.progress-area,.result-area{padding:1rem .75rem}.file-item{padding:.75rem}.file-thumbnail{width:40px;height:40px}}.error{background:#ff4757;color:#fff;padding:1rem;border-radius:6px;margin:1rem 0;text-align:center}.error.warning{background:#ffa502}.error.info{background:#3742fa}.loading{display:inline-block;width:20px;height:20px;border:3px solid #f3f3f3;border-top:3px solid #667eea;border-radius:50%;animation:spin 1s linear infinite}@media (hover: none) and (pointer: coarse){.file-select-btn,.merge-btn,.clear-btn,.download-btn,.restart-btn,.remove-btn{min-height:44px;min-width:44px;padding:.75rem 1rem}.upload-area{min-height:200px;padding:2rem 1rem}.file-item{min-height:80px;padding:1rem}.file-thumbnail{min-width:50px;min-height:50px}.btn-preview,.btn-remove,.notification-close,.modal-close{min-width:44px;min-height:44px;padding:.5rem}.file-item:active{background:#e8e8e8;transform:scale(.98)}.upload-area:active{background-color:#f0f0ff;transform:scale(.99)}button:active{transform:scale(.95)}}*:focus{outline:2px solid #667eea;outline-offset:2px}button:focus,input:focus,[tabindex]:focus{outline:2px solid #667eea;outline-offset:2px;box-shadow:0 0 0 4px #667eea33}.skip-link{position:absolute;top:-40px;left:6px;background:#667eea;color:#fff;padding:8px;text-decoration:none;border-radius:4px;z-index:10000;transition:top .3s}.skip-link:focus{top:6px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media (prefers-contrast: high){.upload-area{border-width:4px;border-color:#000}.file-item{border-width:2px;border-color:#000}button,.error{border:2px solid #000}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.loading{animation:none}.loading:after{content:"⏳";animation:none}}@media (prefers-color-scheme: dark){body{background-color:#1a1a1a;color:#e0e0e0}.header{background:linear-gradient(135deg,#4a5568 0%,#2d3748 100%)}.upload-area,.file-queue,.progress-area,.result-area{background:#2d3748;border-color:#4a5568}.file-item{background:#374151;border-color:#4b5563}.file-item:hover{background:#4b5563}.file-thumbnail{background:#4a5568}.footer{background:#2d3748}.error{background:#7f1d1d}.error.warning{background:#92400e}.error.info{background:#1e40af}}@media print{.header,.footer,.upload-area,.queue-actions,.progress-area,.result-area{display:none!important}.file-queue{background:white;box-shadow:none;border:1px solid #000}.file-item{background:white;border:1px solid #000;margin-bottom:.5rem;break-inside:avoid}body{background:white;color:#000;font-size:12pt;line-height:1.4}}.preview-container{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;padding:16px;max-height:400px;overflow-y:auto}.preview-item{border:1px solid #e0e0e0;border-radius:8px;padding:12px;background:white;cursor:pointer;transition:all .2s ease;position:relative}.preview-item:hover{border-color:#2196f3;box-shadow:0 2px 8px #2196f31a}.preview-item.loading{opacity:.7}.preview-item.error{border-color:#f44336;background-color:#ffeaea}.thumbnail-container{display:flex;justify-content:center;align-items:center;height:120px;margin-bottom:8px;background:#f5f5f5;border-radius:4px;overflow:hidden}.thumbnail-image{max-width:100%;max-height:100%;object-fit:contain}.loading-spinner{display:flex;align-items:center;justify-content:center;color:#666;font-size:14px}.loading-spinner:before{content:"";width:16px;height:16px;border:2px solid #e0e0e0;border-top:2px solid #2196f3;border-radius:50%;animation:spin 1s linear infinite;margin-right:8px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.error-icon{color:#f44336;font-size:24px;font-weight:700}.file-info{text-align:center}.file-name{font-weight:500;font-size:14px;color:#333;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-details{font-size:12px;color:#666;display:flex;justify-content:space-between;gap:8px}.error-message{color:#f44336;font-size:11px}.loading-text{color:#2196f3}.file-actions{position:absolute;top:8px;right:8px}.remove-button{width:24px;height:24px;border:none;background:rgba(244,67,54,.1);color:#f44336;border-radius:50%;cursor:pointer;font-size:16px;line-height:1;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.remove-button:hover{background:rgba(244,67,54,.2);transform:scale(1.1)}.empty-state{grid-column:1 / -1;text-align:center;padding:40px 20px;color:#999}.empty-icon{font-size:48px;margin-bottom:16px}.empty-text{font-size:18px;font-weight:500;margin-bottom:8px}.empty-hint{font-size:14px}.preview-modal{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000;display:flex;align-items:center;justify-content:center}.modal-backdrop{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5)}.modal-content{position:relative;background:white;border-radius:8px;max-width:600px;max-height:80vh;width:90%;overflow:hidden;box-shadow:0 4px 20px #0000004d}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #e0e0e0;background:#f5f5f5}.modal-header h3{margin:0;font-size:18px;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:500px}.modal-close{width:32px;height:32px;border:none;background:none;font-size:24px;cursor:pointer;color:#666;border-radius:4px;transition:all .2s ease}.modal-close:hover{background:rgba(0,0,0,.1);color:#333}.modal-body{padding:20px;display:flex;gap:20px;max-height:calc(80vh - 80px);overflow-y:auto}.detailed-thumbnail{flex:0 0 200px;display:flex;align-items:center;justify-content:center;background:#f5f5f5;border-radius:4px;min-height:250px}.detailed-thumbnail img{max-width:100%;max-height:100%;object-fit:contain}.no-preview{color:#999;font-size:14px}.detailed-info{flex:1}.info-row{display:flex;margin-bottom:12px;align-items:flex-start}.info-label{font-weight:500;color:#333;min-width:80px;margin-right:12px}.info-value{color:#666;word-break:break-all}@media (max-width: 768px){.preview-container{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;padding:8px;max-height:300px}.preview-item{padding:8px}.thumbnail-container{height:80px;margin-bottom:6px}.file-name{font-size:12px}.file-details{font-size:10px;flex-direction:column;gap:2px}.modal-body{flex-direction:column;gap:12px;padding:12px}.detailed-thumbnail{flex:none;min-height:150px}.info-row{flex-direction:column;gap:2px;margin-bottom:8px}.info-label{min-width:auto;margin-right:0;font-size:12px}.info-value{font-size:12px}.modal-content{width:95%;max-height:85vh}.modal-header{padding:12px 16px}.modal-header h3{font-size:16px;max-width:200px}}@media (max-width: 480px){.preview-container{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:6px;padding:6px}.thumbnail-container{height:60px}.file-name{font-size:11px}.file-details{font-size:9px}}.file-queue-container{background:white;border-radius:12px;padding:1.5rem;margin-top:1.5rem;box-shadow:0 2px 10px #0000001a}.queue-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid #eee}.queue-header h3{margin:0;color:#333;font-size:1.25rem;font-weight:500}.file-count{color:#666;font-size:.9rem;background:#f5f5f5;padding:.25rem .75rem;border-radius:12px}.queue-list{display:flex;flex-direction:column;gap:.75rem}.queue-empty{text-align:center;padding:3rem 1rem;color:#999}.queue-empty p{font-size:1.1rem;margin:0}.queue-item{display:flex;align-items:center;padding:1rem;border:1px solid #e0e0e0;border-radius:8px;background:#fafafa;transition:all .2s ease;cursor:grab;position:relative}.queue-item:hover{background:#f0f0f0;border-color:#ccc}.queue-item.dragging{opacity:.5;transform:rotate(2deg);cursor:grabbing}.queue-item.drop-target{border-color:#667eea;background:#f8f9ff;transform:scale(1.02)}.queue-item.status-loading{border-color:#2196f3;background:#e3f2fd}.queue-item.status-error{border-color:#f44336;background:#ffebee}.item-drag-handle{display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin-right:.75rem;color:#999;cursor:grab;transition:color .2s ease}.item-drag-handle:hover{color:#667eea}.queue-item.dragging .item-drag-handle{cursor:grabbing}.item-thumbnail{width:60px;height:80px;margin-right:1rem;border-radius:4px;overflow:hidden;background:#f5f5f5;display:flex;align-items:center;justify-content:center;flex-shrink:0}.item-thumbnail img{width:100%;height:100%;object-fit:cover}.thumbnail-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#999;font-size:.8rem}.thumbnail-placeholder.status-loading{background:#e3f2fd;color:#2196f3}.thumbnail-placeholder.status-error{background:#ffebee;color:#f44336}.loading-spinner{width:20px;height:20px;border:2px solid #e0e0e0;border-top:2px solid #2196f3;border-radius:50%;animation:spin 1s linear infinite}.error-icon{width:24px;height:24px;background:#f44336;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}.item-info{flex:1;min-width:0}.item-name{font-weight:500;color:#333;margin-bottom:.25rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.95rem}.item-details{display:flex;gap:1rem;font-size:.85rem;color:#666;flex-wrap:wrap}.file-size,.page-count{white-space:nowrap}.error-message{color:#f44336;font-weight:500}.item-actions{display:flex;gap:.5rem;margin-left:1rem}.btn-preview,.btn-remove{width:32px;height:32px;border:none;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.btn-preview{background:rgba(102,126,234,.1);color:#667eea}.btn-preview:hover{background:rgba(102,126,234,.2);transform:scale(1.1)}.btn-remove{background:rgba(244,67,54,.1);color:#f44336}.btn-remove:hover{background:rgba(244,67,54,.2);transform:scale(1.1)}@media (max-width: 768px){.file-queue-container{padding:1rem;margin-top:1rem}.queue-header{flex-direction:column;gap:.5rem;text-align:center;margin-bottom:1rem;padding-bottom:.75rem}.queue-header h3{font-size:1.1rem}.file-count{font-size:.85rem}.queue-item{flex-direction:column;align-items:flex-start;gap:.75rem;padding:.75rem}.item-drag-handle{align-self:flex-end;margin:0;order:1}.item-thumbnail{margin:0;align-self:center;order:2;width:50px;height:65px}.item-info{width:100%;text-align:center;order:3}.item-name{font-size:.9rem}.item-details{justify-content:center;font-size:.8rem;gap:.75rem}.item-actions{margin:0;align-self:center;order:4;gap:.75rem}.btn-preview,.btn-remove{width:36px;height:36px}}@media (max-width: 480px){.file-queue-container{padding:.75rem}.queue-item{padding:.5rem}.item-thumbnail{width:40px;height:55px}.item-name{font-size:.85rem}.item-details{font-size:.75rem;gap:.5rem}.btn-preview,.btn-remove{width:32px;height:32px}}body.dragging{cursor:grabbing}body.dragging *{pointer-events:none}body.dragging .queue-item{pointer-events:auto}.notification-container{position:fixed;z-index:10000;pointer-events:none;max-width:400px;width:100%}.notification-container.position-top{top:20px;right:20px}.notification-container.position-bottom{bottom:20px;right:20px}.notification-container.position-center{top:50%;left:50%;transform:translate(-50%,-50%);max-width:500px}.error-notification,.success-notification,.loading-notification{background:white;border-radius:8px;box-shadow:0 4px 20px #00000026;margin-bottom:12px;pointer-events:auto;transform:translate(100%);opacity:0;transition:all .3s ease;border-left:4px solid #ccc;overflow:hidden}.error-notification.show,.success-notification.show,.loading-notification.show{transform:translate(0);opacity:1}.error-notification.hide,.success-notification.hide,.loading-notification.hide{transform:translate(100%);opacity:0}.error-notification.severity-low{border-left-color:#2196f3}.error-notification.severity-medium{border-left-color:#ff9800}.error-notification.severity-high{border-left-color:#f44336}.error-notification.severity-critical{border-left-color:#9c27b0;animation:pulse 2s infinite}.success-notification{border-left-color:#4caf50}.loading-notification{border-left-color:#607d8b}@keyframes pulse{0%,to{box-shadow:0 4px 20px #00000026}50%{box-shadow:0 4px 20px #9c27b04d}}.notification-content{padding:16px}.notification-header{display:flex;align-items:center;margin-bottom:8px;gap:8px}.notification-icon{font-size:18px;flex-shrink:0}.notification-title{font-weight:600;color:#333;flex:1}.notification-time{font-size:12px;color:#999;flex-shrink:0}.notification-close{width:24px;height:24px;border:none;background:none;color:#999;cursor:pointer;border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:18px;line-height:1;transition:all .2s ease;flex-shrink:0}.notification-close:hover{background:rgba(0,0,0,.1);color:#666}.notification-body{margin-bottom:12px}.notification-message{color:#555;line-height:1.4;margin-bottom:8px}.notification-details{background:#f8f9fa;border-radius:4px;padding:12px;margin-top:8px;font-size:13px;border:1px solid #e9ecef}.detail-item{margin-bottom:8px;word-break:break-word}.detail-item:last-child{margin-bottom:0}.detail-item strong{color:#333;display:inline-block;min-width:80px}.notification-actions{display:flex;gap:8px;justify-content:flex-end}.notification-actions button{padding:6px 12px;border:none;border-radius:4px;font-size:13px;cursor:pointer;transition:all .2s ease;font-weight:500}.retry-btn{background:#2196f3;color:#fff}.retry-btn:hover{background:#1976d2}.details-btn{background:#607d8b;color:#fff}.details-btn:hover{background:#455a64}.dismiss-btn{background:#e0e0e0;color:#666}.dismiss-btn:hover{background:#d0d0d0;color:#333}.loading-spinner{display:inline-block;width:16px;height:16px;border:2px solid #e0e0e0;border-top:2px solid #607d8b;border-radius:50%;animation:spin 1s linear infinite}@media (max-width: 768px){.notification-container{left:8px;right:8px;max-width:none}.notification-container.position-top{top:8px}.notification-container.position-bottom{bottom:8px}.notification-container.position-center{left:8px;right:8px;transform:none;top:50%;margin-top:-100px}.notification-content{padding:12px}.notification-header{flex-wrap:wrap;gap:4px;margin-bottom:6px}.notification-title{font-size:14px}.notification-time{order:3;width:100%;margin-top:4px;font-size:11px}.notification-message{font-size:13px;line-height:1.3;margin-bottom:6px}.notification-details{padding:10px;font-size:12px}.notification-actions{flex-wrap:wrap;gap:6px}.notification-actions button{flex:1;min-width:70px;padding:5px 10px;font-size:12px}}@media (max-width: 480px){.notification-container{left:4px;right:4px}.notification-content{padding:10px}.notification-title{font-size:13px}.notification-message{font-size:12px}.notification-details{padding:8px;font-size:11px}.notification-actions button{min-width:60px;padding:4px 8px;font-size:11px}}.error-recovery-panel{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.8);z-index:20000;display:flex;align-items:center;justify-content:center;padding:20px}.recovery-content{background:white;border-radius:12px;padding:24px;max-width:500px;width:100%;text-align:center;box-shadow:0 8px 32px #0000004d}.recovery-icon{font-size:48px;margin-bottom:16px;color:#f44336}.recovery-title{font-size:24px;font-weight:600;color:#333;margin-bottom:12px}.recovery-message{color:#666;line-height:1.5;margin-bottom:24px}.recovery-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.recovery-actions button{padding:12px 24px;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;min-width:120px}.btn-retry{background:#2196f3;color:#fff}.btn-retry:hover{background:#1976d2}.btn-reset{background:#ff9800;color:#fff}.btn-reset:hover{background:#f57c00}.btn-reload{background:#4caf50;color:#fff}.btn-reload:hover{background:#388e3c}.error-log-viewer{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.8);z-index:15000;display:flex;align-items:center;justify-content:center;padding:20px}.log-viewer-content{background:white;border-radius:8px;width:90%;max-width:800px;height:80%;display:flex;flex-direction:column;overflow:hidden}.log-viewer-header{padding:16px 20px;border-bottom:1px solid #e0e0e0;display:flex;justify-content:space-between;align-items:center;background:#f8f9fa}.log-viewer-title{font-size:18px;font-weight:600;color:#333;margin:0}.log-viewer-close{width:32px;height:32px;border:none;background:none;font-size:20px;cursor:pointer;color:#666;border-radius:4px;transition:all .2s ease}.log-viewer-close:hover{background:rgba(0,0,0,.1)}.log-viewer-body{flex:1;overflow-y:auto;padding:16px}.log-entry{padding:12px;border-bottom:1px solid #f0f0f0;font-family:Courier New,monospace;font-size:13px}.log-entry:last-child{border-bottom:none}.log-entry.severity-low{background:#f8f9ff;border-left:3px solid #2196f3}.log-entry.severity-medium{background:#fff8f0;border-left:3px solid #ff9800}.log-entry.severity-high{background:#fff5f5;border-left:3px solid #f44336}.log-entry.severity-critical{background:#f8f5ff;border-left:3px solid #9c27b0}.log-timestamp{color:#999;font-size:11px;margin-bottom:4px}.log-type{display:inline-block;padding:2px 6px;border-radius:3px;font-size:10px;font-weight:600;text-transform:uppercase;margin-right:8px}.log-type.severity-low{background:#e3f2fd;color:#1976d2}.log-type.severity-medium{background:#fff3e0;color:#f57c00}.log-type.severity-high{background:#ffebee;color:#d32f2f}.log-type.severity-critical{background:#f3e5f5;color:#7b1fa2}.log-message{color:#333;margin-bottom:4px}.log-details{color:#666;font-size:11px;white-space:pre-wrap;word-break:break-word}.log-empty{text-align:center;color:#999;padding:40px;font-style:italic}.error-recovery-panel{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.8);z-index:20000;display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;transition:opacity .3s ease}.error-recovery-panel.show{opacity:1}.error-recovery-panel.hide{opacity:0}.recovery-content{background:white;border-radius:12px;padding:32px;max-width:600px;width:100%;text-align:center;box-shadow:0 8px 32px #0000004d;max-height:90vh;overflow-y:auto}.recovery-icon{font-size:64px;margin-bottom:20px;line-height:1}.recovery-title{font-size:28px;font-weight:600;color:#333;margin-bottom:16px}.recovery-message{color:#666;line-height:1.6;margin-bottom:24px;font-size:16px}.recovery-warning{background:#fff3cd;border:1px solid #ffeaa7;border-radius:8px;padding:16px;margin-bottom:24px;color:#856404;text-align:left}.recovery-options{display:grid;gap:12px;margin-bottom:24px;text-align:left}.recovery-option{display:flex;align-items:center;padding:16px;border:2px solid #e0e0e0;border-radius:8px;background:white;cursor:pointer;transition:all .2s ease;position:relative;text-align:left}.recovery-option:hover{border-color:#2196f3;background:#f8f9ff;transform:translateY(-1px);box-shadow:0 2px 8px #2196f31a}.recovery-option.recommended{border-color:#4caf50;background:#f8fff8}.recovery-option.recommended:hover{border-color:#4caf50;background:#f0fff0}.recovery-option.loading{opacity:.7;cursor:not-allowed;pointer-events:none}.recovery-option.loading:after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:20px;height:20px;border:2px solid #e0e0e0;border-top:2px solid #2196f3;border-radius:50%;animation:spin 1s linear infinite}.option-icon{font-size:24px;margin-right:16px;flex-shrink:0}.option-content{flex:1}.option-label{font-weight:600;color:#333;margin-bottom:4px;font-size:16px}.option-description{color:#666;font-size:14px;line-height:1.4}.recommended-badge{position:absolute;top:8px;right:8px;background:#4caf50;color:#fff;font-size:10px;font-weight:600;padding:2px 6px;border-radius:4px;text-transform:uppercase}.recovery-actions{display:flex;gap:12px;justify-content:center;margin-bottom:16px}.recovery-actions button{padding:12px 24px;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;min-width:100px}.btn-cancel{background:#e0e0e0;color:#666}.btn-cancel:hover{background:#d0d0d0;color:#333}.btn-details{background:#607d8b;color:#fff}.btn-details:hover{background:#455a64}.error-details{text-align:left;background:#f8f9fa;border-radius:8px;padding:20px;margin-top:16px;border:1px solid #e9ecef}.detail-section{margin-bottom:20px}.detail-section:last-child{margin-bottom:0}.detail-section h4{color:#333;margin-bottom:12px;font-size:16px;font-weight:600}.detail-content{font-size:13px;line-height:1.5}.detail-content>div{margin-bottom:8px;word-break:break-word}.detail-content strong{color:#333;font-weight:600;display:inline-block;min-width:80px}.detail-content pre{background:#f1f3f4;border-radius:4px;padding:12px;margin-top:8px;font-family:Courier New,monospace;font-size:12px;overflow-x:auto;white-space:pre-wrap;word-break:break-word}.stack-trace{background:#fff5f5;border:1px solid #ffcdd2;color:#d32f2f;max-height:200px;overflow-y:auto}@media (max-width: 768px){.recovery-content{padding:20px 16px;margin:8px;max-height:95vh}.recovery-icon{font-size:48px;margin-bottom:16px}.recovery-title{font-size:22px;margin-bottom:12px}.recovery-message{font-size:14px;margin-bottom:20px;line-height:1.5}.recovery-warning{padding:12px;margin-bottom:20px;font-size:13px}.recovery-option{padding:12px}.option-icon{font-size:20px;margin-right:12px}.option-label{font-size:14px;margin-bottom:3px}.option-description{font-size:12px;line-height:1.3}.recovery-actions{flex-direction:column;gap:8px;margin-bottom:12px}.recovery-actions button{width:100%;padding:10px 16px;font-size:13px}.recommended-badge{position:static;display:inline-block;margin-left:6px;font-size:9px;padding:1px 4px}.error-details{padding:16px;margin-top:12px}.detail-section h4{font-size:14px;margin-bottom:8px}.detail-content{font-size:12px}.detail-content pre{padding:8px;font-size:11px;max-height:150px}}@media (max-width: 480px){.recovery-content{padding:16px 12px;margin:4px}.recovery-icon{font-size:40px;margin-bottom:12px}.recovery-title{font-size:20px;margin-bottom:10px}.recovery-message{font-size:13px;margin-bottom:16px}.recovery-option{padding:10px}.option-icon{font-size:18px;margin-right:10px}.option-label{font-size:13px}.option-description{font-size:11px}.recovery-actions button{padding:8px 12px;font-size:12px}}.log-viewer-actions{padding:12px 20px;border-top:1px solid #e0e0e0;background:#f8f9fa;display:flex;gap:12px;justify-content:flex-end}.log-viewer-actions button{padding:8px 16px;border:none;border-radius:4px;font-size:13px;cursor:pointer;transition:all .2s ease}.btn-clear-log{background:#ff5722;color:#fff}.btn-clear-log:hover{background:#e64a19}.btn-export-log{background:#2196f3;color:#fff}.btn-export-log:hover{background:#1976d2}.btn-close-log{background:#e0e0e0;color:#666}.btn-close-log:hover{background:#d0d0d0;color:#333}.error-stats-panel{position:fixed;bottom:20px;left:20px;background:white;border-radius:8px;box-shadow:0 4px 20px #00000026;padding:16px;min-width:200px;z-index:5000;border-left:4px solid #f44336}.error-stats-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.error-stats-title{font-weight:600;color:#333;font-size:14px}.error-stats-close{width:20px;height:20px;border:none;background:none;color:#999;cursor:pointer;font-size:16px;line-height:1}.error-stats-close:hover{color:#666}.error-stats-content{font-size:13px}.error-stat-item{display:flex;justify-content:space-between;margin-bottom:6px;color:#666}.error-stat-item:last-child{margin-bottom:0}.error-stat-label{flex:1}.error-stat-count{font-weight:600;color:#333}.error-stat-count.critical{color:#9c27b0}.error-stat-count.high{color:#f44336}.error-stat-count.medium{color:#ff9800}.error-stat-count.low{color:#2196f3}
