:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.app{width:100%;height:100%;background:#f5f6fa;display:flex;flex-direction:column;overflow:hidden}.app-nav{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px;background:#fffe;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border-bottom:1px solid #e5e7eb;box-shadow:0 2px 12px #0f172a0f;position:sticky;top:0;z-index:10}.app-nav .brand{font-size:1.1rem;font-weight:700;letter-spacing:.02em;border:none;background:none;color:#1f2933;padding:8px 12px;border-radius:8px;cursor:pointer;transition:background-color .2s,color .2s;display:inline-flex;align-items:center}.app-nav .brand:hover{background:#6366f11f;color:#4338ca}.nav-group{display:flex;align-items:center;gap:12px}.nav-item{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:8px;font-size:.95rem;border:1px solid transparent;background:none;color:#495057;cursor:pointer;transition:background-color .2s,border-color .2s,color .2s}.nav-item:hover{background:#6366f114;color:#4338ca}.nav-item.active{background:#6366f129;border-color:#6366f152;color:#1f2933;font-weight:600}.nav-icon{font-size:1.1rem;line-height:1}.page-container{flex:1;display:flex;flex-direction:column;overflow:hidden}.page-header{display:flex;flex-direction:column;gap:8px}.page-header h1{margin:0;font-size:1.8rem;color:#1f2937}.page-subtitle{margin:0;color:#4b5563;font-size:1rem}.log-page{display:flex;flex-direction:column;flex:1;overflow:hidden}.app-header{flex:0 0 auto;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:20px 24px;text-align:center;box-shadow:0 2px 10px #0000001a}.app-header h1{margin:0 0 8px;font-size:2.5rem;font-weight:700;text-shadow:0 2px 4px rgba(0,0,0,.3)}.app-header p{margin:0;font-size:1.1rem;opacity:.9;font-weight:300}.app-main{flex:1;display:flex;flex-direction:column;overflow:hidden}.main-content{flex:1;display:flex;overflow:hidden}.sidebar{flex:0 0 clamp(320px,24vw,400px);max-width:clamp(320px,24vw,400px);background:#f8f9fa;border-right:1px solid #e9ecef;display:flex;flex-direction:column;overflow-y:auto;height:100%;max-height:100%}.content-area{flex:1;display:flex;flex-direction:column;background:#fff;height:100%;max-height:100%;overflow:hidden}.sidebar-section{padding:24px;border-bottom:1px solid #e9ecef}.sidebar-section:last-child{border-bottom:none;flex:1}.step-header{margin-bottom:20px}.step-header h2{margin:12px 0 0;font-size:1.2rem;color:#333}.back-btn{padding:8px 12px;background:#6c757d;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.9rem;transition:background-color .2s}.back-btn:hover{background:#5a6268}.step-header-with-back{display:flex;align-items:center;justify-content:flex-start;gap:16px;margin-bottom:20px}.step-header-with-back h2{margin:0;flex:1;font-size:1.2rem;color:#333}.step-header-with-back .back-btn{flex-shrink:0}.content-header{padding:16px 24px;border-bottom:1px solid #e9ecef;background:#fff;display:flex;align-items:center;justify-content:space-between}.content-header h2{margin:0;font-size:1.25rem;color:#333;display:flex;align-items:center;gap:8px}.clear-btn{padding:6px 12px;background:#dc3545;color:#fff;border:none;border-radius:4px;font-size:.875rem;cursor:pointer;transition:background-color .2s}.log-viewer-container{flex:1;padding:0;overflow:hidden}.log-viewer-placeholder{height:100%;padding:24px;background:#f8f9fa;overflow-y:auto}.debug-dashboard{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto 1fr;gap:20px;height:100%}.info-card{background:#fff;border-radius:8px;padding:20px;box-shadow:0 2px 4px #0000001a}.info-card h3{margin:0 0 16px;font-size:1.1rem;color:#333;display:flex;align-items:center;gap:8px}.status-grid{display:grid;grid-template-columns:auto 1fr;gap:12px 20px;font-size:.9rem}.status-label{color:#666;font-weight:500}.status-value{color:#333;font-family:Monaco,Menlo,monospace}.status-value.success{color:#28a745}.status-value.error{color:#dc3545}.status-value.warning{color:#ffc107}.quick-actions{display:flex;flex-direction:column;gap:12px}.action-btn{padding:10px 16px;border:1px solid #ddd;background:#fff;border-radius:6px;cursor:pointer;font-size:.9rem;text-align:left;transition:all .2s}.action-btn:hover{background:#f8f9fa;border-color:#007bff}.action-btn:disabled{opacity:.5;cursor:not-allowed}.log-preview{grid-column:1 / -1;background:#1e1e1e;color:#d4d4d4;border-radius:8px;padding:16px;font-family:Monaco,Menlo,monospace;font-size:.85rem;overflow-y:auto;min-height:200px}.log-preview h3{color:#569cd6;margin:0 0 12px}.preview-message{color:#9cdcfe;font-style:italic;text-align:center;margin-top:40px}.placeholder-page{flex:1;padding:48px 56px;background:linear-gradient(160deg,#f8fafc,#eef2ff);overflow-y:auto;color:#1f2933}.placeholder-page h1{margin:0;font-size:2.2rem;font-weight:700}.placeholder-subtitle{margin:12px 0 32px;font-size:1.05rem;color:#4b5563}.feature-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px;font-size:1rem;color:#374151}.feature-list li{padding:12px 16px;background:#ffffffc7;border-radius:12px;border:1px dashed rgba(99,102,241,.3)}*{box-sizing:border-box}html,body{margin:0;padding:0;width:100%;height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f5f6fa;overflow:hidden}#root{width:100%;height:100%}button{font-family:inherit}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#a8a8a8}@media (max-width: 1024px){.app-nav{flex-wrap:wrap;justify-content:flex-start;gap:8px 12px;padding:12px 18px}.nav-group{flex-wrap:wrap;width:100%}.placeholder-page{padding:32px 24px}.main-content{flex-direction:column}.sidebar{flex:none;max-width:none;border-right:none;border-bottom:1px solid #e9ecef;background:#fff}.sidebar-section{padding:20px}.content-area{min-height:400px}}@media (max-width: 768px){.app-header{padding:20px 16px}.app-header h1{font-size:2rem}.app-header p{font-size:1rem}.app-main{height:calc(100vh - 100px)}.content-header{padding:12px 16px;flex-direction:column;align-items:flex-start;gap:8px}.sidebar-section{padding:12px}.nav-item{padding:8px 12px}.placeholder-page{padding:24px 18px}}.text-center{text-align:center}.mb-0{margin-bottom:0}.mt-0{margin-top:0}.hidden{display:none}.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}.connection-status{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 40px;text-align:center;background:#fff;border-radius:12px;border:2px dashed #e0e0e0;margin:40px 0;min-height:300px}.connection-status-icon{color:#6c757d;margin-bottom:24px;opacity:.7}.connection-status-title{font-size:24px;font-weight:600;color:#495057;margin:0 0 12px}.connection-status-description{font-size:16px;color:#6c757d;margin:0 0 32px;line-height:1.5;max-width:400px}.connection-status-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}.connection-status-button{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;border:none;border-radius:8px;font-size:16px;font-weight:500;cursor:pointer;transition:all .2s ease;text-decoration:none}.connection-status-button.primary{background:#007bff;color:#fff}.connection-status-button.primary:hover{background:#0056b3;transform:translateY(-2px);box-shadow:0 4px 12px #007bff4d}.connection-status-button.secondary{background:#6c757d;color:#fff}.connection-status-button.secondary:hover{background:#5a6268;transform:translateY(-2px);box-shadow:0 4px 12px #6c757d4d}.connection-status-button:active{transform:translateY(0)}@media (max-width: 768px){.connection-status{padding:40px 20px;margin:20px 0;min-height:250px}.connection-status-title{font-size:20px}.connection-status-description{font-size:14px}.connection-status-actions{flex-direction:column;width:100%}.connection-status-button{padding:10px 20px;font-size:14px;width:100%;justify-content:center}}.serial-error-alert{position:fixed;top:20px;right:20px;z-index:9999;max-width:450px;width:calc(100% - 40px);background:linear-gradient(135deg,#ff6b6b,#ee5a52);border-radius:12px;box-shadow:0 8px 24px #ff6b6b4d,0 4px 8px #0000001a;opacity:0;transform:translate(calc(100% + 20px));transition:all .3s cubic-bezier(.4,0,.2,1);pointer-events:none}.serial-error-alert.visible{opacity:1;transform:translate(0);pointer-events:auto}.serial-error-content{display:flex;align-items:flex-start;gap:12px;padding:16px;color:#fff}.serial-error-icon{flex-shrink:0;width:24px;height:24px;color:#fff;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.serial-error-text{flex:1;min-width:0}.serial-error-title{font-size:15px;font-weight:600;margin-bottom:4px;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.1)}.serial-error-message{font-size:14px;line-height:1.5;color:#fffffff2;word-wrap:break-word}.serial-error-detail{font-size:12px;margin-top:6px;padding-top:6px;border-top:1px solid rgba(255,255,255,.2);color:#ffffffd9;font-family:Monaco,Menlo,Consolas,monospace}.serial-error-close{flex-shrink:0;width:32px;height:32px;border:none;background:#ffffff26;border-radius:8px;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;padding:0}.serial-error-close:hover{background:#ffffff40;transform:scale(1.05)}.serial-error-close:active{transform:scale(.95)}@media (max-width: 768px){.serial-error-alert{top:10px;right:10px;left:10px;width:auto;max-width:none}.serial-error-content{padding:14px;gap:10px}.serial-error-title{font-size:14px}.serial-error-message{font-size:13px}}.tools-page{display:flex;flex-direction:column;gap:32px;padding:32px clamp(24px,5vw,64px);height:100%;overflow-y:auto;width:100%;max-width:1600px;margin:0 auto}.tools-page .tools-header{text-align:center;margin-bottom:16px}.tools-page .tools-header h1{margin:0;font-size:2rem;color:#1f2937;font-weight:700}.tools-page .tools-subtitle{margin:8px 0 0;color:#6b7280;font-size:1.1rem}.tools-connection-status{max-width:600px;margin:0 auto}.tools-connection-wrapper{margin:20px 0}.tools-connection-wrapper .connection-status{min-height:auto;padding:30px 20px;margin:0}.tools-page .tools-content{display:grid;grid-template-columns:1fr 2fr;gap:32px;align-items:start}.tools-page .tools-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:24px;box-shadow:0 4px 6px -1px #0000001a}.tools-page .tools-card h2{margin:0 0 20px;font-size:1.3rem;color:#1f2937;font-weight:600;display:flex;align-items:center;gap:8px}.tools-page .tools-command-builder{position:sticky;top:32px}.tools-page .tools-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.tools-page .tools-form-group{display:flex;flex-direction:column;gap:6px}.tools-page .tools-form-group label{font-weight:500;color:#374151;font-size:.9rem}.tools-page .tools-form-input,.tools-page .tools-form-textarea{padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;font-family:Courier New,monospace;transition:border-color .2s ease,box-shadow .2s ease}.tools-page .tools-form-input:focus,.tools-page .tools-form-textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.tools-page .tools-form-textarea{resize:vertical;min-height:80px}.tools-card.tools-management{display:flex;flex-direction:column;gap:24px}.tools-card.tools-management h2{margin-bottom:0}.tools-management-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px}.tools-management-block{display:flex;flex-direction:column;gap:12px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:16px}.tools-management-block h3{margin:0;font-size:1.05rem;color:#1f2937}.tools-management-field{display:flex;flex-direction:column;gap:6px}.tools-management-field label,.tools-management-checkboxes label{font-weight:500;color:#374151;font-size:.9rem}.tools-management-select{padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;font-family:Courier New,monospace;transition:border-color .2s ease,box-shadow .2s ease;background:#fff}.tools-management-select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.tools-management-actions{display:flex;flex-wrap:wrap;gap:8px}.tools-management-actions .tools-btn{min-width:110px}.tools-management-feedback{padding:8px 12px;border-radius:8px;font-size:.85rem}.tools-management-feedback.success{background:#dcfce7;color:#166534}.tools-management-feedback.error{background:#fee2e2;color:#991b1b}.tools-management-checkboxes{display:flex;flex-direction:column;gap:8px}.tools-management-checkboxes label{display:flex;align-items:center;gap:8px;font-weight:500;color:#1f2937}.tools-management-checkboxes input{width:16px;height:16px}.tools-management-note{font-size:.85rem;color:#6b7280;margin:0}@media (max-width: 960px){.tools-page .tools-content{grid-template-columns:1fr}.tools-card.tools-management{padding:20px}}.tools-page .tools-command-actions{display:flex;flex-direction:column;gap:16px;margin:24px 0 16px}.tools-page .tools-quick-fills{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tools-page .tools-quick-label{font-size:.85rem;color:#6b7280;font-weight:500}.tools-page .tools-btn-quick{padding:6px 12px;background:#f3f4f6;color:#374151;border:1px solid #d1d5db;border-radius:6px;font-size:.8rem;font-weight:500;cursor:pointer;transition:all .2s ease}.tools-page .tools-btn-quick:hover{background:#e5e7eb;border-color:#9ca3af}.tools-page .tools-btn{padding:10px 20px;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease;font-size:.9rem;display:flex;align-items:center;gap:6px}.tools-page .tools-btn-primary{background:#3b82f6;color:#fff}.tools-page .tools-btn-primary:hover:not(:disabled){background:#2563eb;transform:translateY(-1px)}.tools-page .tools-btn-primary:disabled{background:#9ca3af;cursor:not-allowed;transform:none}.tools-page .tools-btn-secondary{background:#6b7280;color:#fff}.tools-page .tools-btn-secondary:hover{background:#4b5563;transform:translateY(-1px)}.tools-page .tools-btn-outline{background:transparent;color:#6b7280;border:1px solid #d1d5db}.tools-page .tools-btn-outline:hover{background:#f9fafb;border-color:#9ca3af}.tools-page .tools-command-history{max-height:80vh;overflow:hidden;display:flex;flex-direction:column}.tools-page .tools-history-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.tools-page .tools-history-list{flex:1;overflow-y:auto;display:block;padding:0}.tools-page .tools-history-list>*{margin-bottom:16px}.tools-page .tools-history-list>*:last-child{margin-bottom:0}.tools-page .tools-empty-history{text-align:center;padding:40px 20px;color:#6b7280}.tools-page .tools-empty-history p{margin:0}.tools-page .tools-empty-hint{font-size:.9rem;opacity:.8}.tools-page .tools-history-item{border:2px solid;border-radius:12px;padding:16px;transition:all .2s ease;position:relative;overflow:hidden}.tools-page .tools-history-item.request{background:linear-gradient(135deg,#f0f9ff,#e0f2fe);border-color:#0ea5e9;box-shadow:0 2px 8px #0ea5e91a}.tools-page .tools-history-item.request:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:#0ea5e9}.tools-page .tools-history-item.response{background:linear-gradient(135deg,#f0fdf4,#dcfce7);border-color:#22c55e;box-shadow:0 2px 8px #22c55e1a}.tools-page .tools-history-item.response:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:#22c55e}.tools-page .tools-direction-icon{font-size:1.1rem}.tools-page .tools-command-info{padding-left:8px;display:flex;flex-direction:column;gap:12px}.tools-page .tools-command-header{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.tools-page .tools-module-info,.tools-page .tools-message-info,.tools-page .tools-seq-info{font-size:.85rem;font-weight:500;color:#374151;background:#ffffffb3;padding:4px 8px;border-radius:6px;border:1px solid rgba(0,0,0,.1);font-family:Courier New,monospace}.tools-page .tools-result-info{font-size:.85rem;font-weight:600;padding:4px 8px;border-radius:6px;border:1px solid}.tools-page .tools-result-info.success{background:#dcfce7;color:#166534;border-color:#22c55e}.tools-page .tools-result-info.error{background:#fef2f2;color:#dc2626;border-color:#ef4444}.tools-page .tools-payload-section{display:flex;flex-direction:column;gap:6px}.tools-page .tools-payload-data{font-family:Courier New,monospace;font-size:.8rem;color:#1f2937;word-break:break-all;line-height:1.4;padding:12px;background:#fffc;border-radius:8px;border:1px solid rgba(0,0,0,.1);min-height:20px}.tools-page .tools-timestamp{font-size:.85rem;color:#6b7280;font-family:Courier New,monospace}@media (max-width: 1024px){.tools-page .tools-content{grid-template-columns:1fr}.tools-page .tools-command-builder{position:static}}@media (max-width: 768px){.tools-page{padding:24px 16px}.tools-page .tools-card{padding:20px}.tools-page .tools-form-grid{grid-template-columns:1fr}.tools-page .tools-command-actions{flex-direction:column}.tools-page .tools-btn{justify-content:center}.tools-page .tools-command-header{flex-direction:column;align-items:flex-start;gap:8px}.tools-page .tools-quick-fills{justify-content:center}}.device-info-page{padding:24px;max-width:1400px;margin:0 auto;background:#f8f9fa;height:100%;width:100%;overflow-y:auto;overflow-x:hidden;box-sizing:border-box}.device-info-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px;padding:24px;background:#fff;border-radius:12px;box-shadow:0 2px 8px #00000014;border:1px solid #e9ecef}.device-info-title{font-size:28px;font-weight:700;color:#212529;margin:0;background:linear-gradient(135deg,#007bff,#0056b3);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.device-info-refresh-button{display:flex;align-items:center;gap:8px;padding:12px 20px;background:linear-gradient(135deg,#007bff,#0056b3);color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;transition:all .3s ease;box-shadow:0 2px 8px #007bff4d}.device-info-refresh-button:hover:not(:disabled){background:linear-gradient(135deg,#0056b3,#004085);transform:translateY(-2px);box-shadow:0 4px 12px #007bff66}.device-info-refresh-button:disabled{background:#6c757d;cursor:not-allowed;transform:none}.device-info-refresh-button.loading{background:#6c757d}.device-info-refresh-icon{width:16px;height:16px}.device-info-refresh-icon.spinning{animation:device-info-spin 1s linear infinite}@keyframes device-info-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.device-info-content{display:flex;flex-direction:column;gap:32px}.device-info-details-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:24px}@media (max-width: 1200px){.device-info-details-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}}@media (max-width: 768px){.device-info-page{padding:16px}.device-info-header{padding:20px;margin-bottom:24px}.device-info-content{gap:24px}.device-info-details-grid{grid-template-columns:1fr;gap:20px}}.device-info-status-indicator{display:inline-flex!important;align-items:center;gap:8px;padding:8px 16px;border-radius:8px;font-size:14px;font-weight:600;width:100%;justify-content:center}.device-info-status-indicator.connected{background:#d4edda;color:#155724;border:1px solid #c3e6cb}.device-info-status-indicator.disconnected{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb}.device-info-status-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.device-info-status-dot.connected{background:#28a745}.device-info-status-dot.disconnected{background:#dc3545}.device-info-mode-badge{padding:4px 8px;border-radius:4px;font-size:12px;font-weight:500}.device-info-mode-badge.factory{background:#fff3cd;color:#856404}.device-info-mode-badge.dut{background:#cce5ff;color:#004085}.device-info-mode-badge.ft{background:#e2e3e5;color:#383d41}.device-info-mode-badge.normal{background:#d4edda;color:#155724}.device-info-error-message{background:#f8d7da;color:#721c24;padding:16px;border-radius:6px;margin-bottom:20px;border:1px solid #f5c6cb}.device-info-loading-overlay{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;color:#6c757d}.device-info-loading-spinner{width:32px;height:32px;border:3px solid #f3f3f3;border-top:3px solid #007bff;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:16px}.device-info-no-data{text-align:center;padding:40px;color:#6c757d}.device-info-validation-warnings{background:#fff3cd;border:1px solid #ffeaa7;border-radius:6px;padding:16px;margin-bottom:20px}.device-info-validation-warnings h4{margin:0 0 12px;color:#856404;font-size:16px}.device-info-validation-list{list-style:none;padding:0;margin:0}.device-info-validation-list li{padding:4px 0;color:#856404;font-size:14px}.device-info-validation-list li:before{content:"⚠️ ";margin-right:8px}.device-info-last-updated{text-align:center;color:#6c757d;font-size:12px;margin-top:32px;padding:16px;background:#fff;border-radius:8px;border:1px solid #e9ecef;box-shadow:0 2px 4px #0000000d}.device-info-connection-status{max-width:600px;margin:0 auto}.device-info-connection-status .connection-status{min-height:auto;padding:40px 30px}.device-info-summary-card{background:linear-gradient(135deg,#f8f9ff,#fff);border:2px solid #e3f2fd;border-radius:12px;padding:24px;box-shadow:0 6px 20px #007bff1a;transition:all .3s ease;position:relative;overflow:hidden}.device-info-summary-card:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#007bff,#0056b3);opacity:1;transition:opacity .3s ease}.device-info-summary-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px #0000001f}.device-info-summary-card:hover:before{opacity:1}.device-info-summary-card-header{display:flex;align-items:center;gap:8px;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #f0f0f0}.device-info-summary-card-title{font-size:18px;font-weight:600;color:#1a1a1a;margin:0}.device-info-summary-card-icon{width:20px;height:20px;color:#007bff}.device-info-summary-status-indicator{display:inline-flex!important;align-items:center;gap:8px;padding:8px 16px;border-radius:8px;font-size:14px;font-weight:600;width:100%;justify-content:center}.device-info-summary-status-indicator.connected{background:#d4edda;color:#155724;border:1px solid #c3e6cb}.device-info-summary-status-indicator.disconnected{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb}.device-info-summary-status-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.device-info-summary-status-dot.connected{background:#28a745}.device-info-summary-status-dot.disconnected{background:#dc3545}.device-info-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-top:8px}.device-info-summary-item{text-align:center;padding:16px;background:#fff9;border-radius:8px;border:1px solid rgba(0,123,255,.1);transition:all .3s ease}.device-info-summary-item:hover{background:#ffffffe6;border-color:#007bff33;transform:translateY(-1px)}.device-info-summary-label{font-size:12px;font-weight:500;color:#6c757d;text-transform:uppercase;letter-spacing:.5px;margin-bottom:8px}.device-info-summary-value{font-size:16px;font-weight:600;color:#212529;word-break:break-all;display:flex;justify-content:center;align-items:center;min-height:24px}.device-info-summary-value.chip-version{font-family:Monaco,Menlo,Ubuntu Mono,monospace;background:linear-gradient(135deg,#28a745,#20c997);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.device-info-summary-value.bluetooth-address{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:14px}@media (max-width: 768px){.device-info-summary-grid{grid-template-columns:repeat(2,1fr);gap:16px}.device-info-summary-item{padding:12px}.device-info-summary-value{font-size:14px}}.device-info-card-container{background:#fff;border:1px solid #e9ecef;border-radius:12px;padding:24px;box-shadow:0 4px 12px #00000014;transition:all .3s ease;position:relative;overflow:hidden}.device-info-card-container:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#007bff,#6f42c1,#e83e8c);opacity:0;transition:opacity .3s ease}.device-info-card-container:hover{transform:translateY(-2px);box-shadow:0 8px 24px #0000001f}.device-info-card-container:hover:before{opacity:1}.device-info-card-header{display:flex;align-items:center;gap:8px;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #f0f0f0}.device-info-card-title{font-size:18px;font-weight:600;color:#1a1a1a;margin:0}.device-info-card-icon{width:20px;height:20px;color:#007bff}.device-info-card-info-item{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid #f8f9fa}.device-info-card-info-item:last-child{border-bottom:none}.device-info-card-info-label{font-weight:500;color:#495057;font-size:14px}.device-info-card-info-value{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:14px;color:#1a1a1a;background:#f8f9fa;padding:4px 8px;border-radius:4px}.device-info-card-info-value.null{color:#6c757d;font-style:italic}.device-info-card-info-value.multiline{white-space:pre-line;text-align:left;max-width:300px;word-wrap:break-word}.factory-page{height:100vh;background:#f8f9fa;display:flex;justify-content:center;align-items:center}.factory-step{background:#fff;padding:40px;box-shadow:0 8px 32px #0000001a;width:100%;height:100%;text-align:center}.factory-step h1{font-size:2rem;color:#2d3748;margin:0 0 40px;font-weight:600}.factory-step h2{font-size:1.3rem;color:#4a5568;margin:0 0 24px;font-weight:500;text-align:left}.factory-selection-section{margin-bottom:40px}.factory-color-section{min-height:200px}.factory-hidden-content,.factory-color-card.placeholder{opacity:.3;pointer-events:none}.factory-color-card.placeholder .factory-model-name,.factory-color-card.placeholder .factory-color-name{background:linear-gradient(transparent,#0000004d);color:#fff9}.factory-model-grid{display:flex;gap:20px;overflow-x:auto;overflow-y:hidden;padding:10px 40px;margin:0 -40px 20px;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.factory-model-grid::-webkit-scrollbar{height:8px}.factory-model-grid::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.factory-model-grid::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:4px}.factory-model-grid::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.factory-color-grid{display:flex;gap:20px;overflow-x:auto;overflow-y:hidden;padding:10px 40px;margin:0 -40px 20px;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.factory-color-grid::-webkit-scrollbar{height:8px}.factory-color-grid::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.factory-color-grid::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:4px}.factory-color-grid::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.factory-model-card,.factory-color-card{border:2px solid #e2e8f0;border-radius:12px;cursor:pointer;transition:all .3s ease;background:#f7fafc;flex-shrink:0;display:flex;flex-direction:column;position:relative;overflow:hidden}.factory-model-card,.factory-color-card{width:18vw;height:20vh}.factory-model-card:hover,.factory-color-card:hover{border-color:#3182ce;transform:translateY(-2px);box-shadow:0 4px 20px #0000001a}.factory-model-card.selected,.factory-color-card.selected{border-color:#3182ce;box-shadow:0 0 0 4px #3182ce4d;transform:scale(1.02)}.factory-model-card.selected:after,.factory-color-card.selected:after{content:"✓";position:absolute;top:8px;right:8px;width:24px;height:24px;background:#3182ce;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;z-index:2;box-shadow:0 2px 4px #0003}.factory-model-image,.factory-color-image{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#fff;overflow:hidden}.factory-model-image img,.factory-color-image img{width:100%;height:100%;object-fit:cover}.factory-model-name,.factory-color-name{position:absolute;bottom:0;left:0;right:0;font-size:1rem;color:#000;font-weight:600;text-align:center;padding:20px 8px 8px;margin:0;z-index:1}.factory-dut-section{margin:30px 0;display:flex;justify-content:center}.factory-dut-checkbox{display:flex;align-items:center;cursor:pointer;font-size:1rem;color:#4a5568;-webkit-user-select:none;user-select:none}.factory-dut-checkbox input[type=checkbox]{display:none}.factory-dut-checkbox .factory-checkmark{width:20px;height:20px;border:2px solid #cbd5e0;border-radius:4px;margin-right:12px;display:flex;align-items:center;justify-content:center;transition:all .3s ease}.factory-dut-checkbox input[type=checkbox]:checked+.factory-checkmark{background:#3182ce;border-color:#3182ce}.factory-dut-checkbox input[type=checkbox]:checked+.factory-checkmark:after{content:"✓";color:#fff;font-size:14px;font-weight:700}.factory-connection-wrapper{display:flex;justify-content:center;align-items:center;min-height:60vh;padding:20px}.factory-connection-wrapper .connection-status{max-width:500px;margin:0 auto}.factory-next-btn,.factory-burn-btn,.factory-result-btn{background:#2d3748;color:#fff;border:none;border-radius:8px;padding:16px 40px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;min-width:200px}.factory-next-btn:hover,.factory-burn-btn:hover,.factory-result-btn:hover{background:#1a202c;transform:translateY(-1px);box-shadow:0 4px 12px #0003}.factory-next-btn:disabled{background:#a0aec0;cursor:not-allowed;transform:none;box-shadow:none}.factory-confirmation-content{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-bottom:40px;text-align:left}.factory-confirmation-left h2,.factory-confirmation-right h2{text-align:center;margin-bottom:30px}.factory-selected-product{display:flex;flex-direction:column;align-items:center;gap:0}.factory-product-image{width:auto;height:100%;max-width:100%;display:flex;align-items:center;justify-content:center;background:#f7fafc;border-radius:16px;border:2px solid #3182ce;position:relative;overflow:hidden;box-shadow:0 4px 20px #3182ce33;aspect-ratio:4/3}.factory-product-image img{width:100%;height:100%;object-fit:cover}.factory-product-image:after{content:"✓";position:absolute;top:12px;right:12px;width:32px;height:32px;background:#22c55e;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;z-index:2;box-shadow:0 3px 8px #22c55e4d;border:2px solid white}.factory-product-info{position:absolute;bottom:0;left:0;right:0;text-align:center;background:linear-gradient(transparent,#000c);padding:30px 12px 12px;margin:0}.factory-product-info div{font-size:.85rem;color:#fff;margin-bottom:4px;font-weight:600;text-shadow:0 1px 3px rgba(0,0,0,.8);line-height:1.3}.factory-burn-info{background:#f7fafc;border-radius:12px;padding:24px;border:1px solid #e2e8f0}.factory-info-item{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #e2e8f0}.factory-info-item:last-child{border-bottom:none}.factory-info-label{font-weight:500;color:#4a5568}.factory-info-value{font-weight:600;color:#2d3748}.factory-dut-status{margin:30px 0;font-size:1rem;color:#4a5568}.factory-dut-badge{font-weight:600;padding:4px 12px;border-radius:16px;margin-left:8px}.factory-dut-badge.enabled{background:#c6f6d5;color:#22543d}.factory-dut-badge.disabled{background:#fed7d7;color:#742a2a}.factory-burning-step{display:flex;align-items:center;justify-content:center;min-height:400px}.factory-burning-content{display:flex;flex-direction:column;align-items:center;gap:30px}.factory-burning-spinner{width:60px;height:60px;border:4px solid #e2e8f0;border-top:4px solid #3182ce;border-radius:50%;animation:factory-spin 1s linear infinite}@keyframes factory-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.factory-burning-content h2{font-size:1.5rem;color:#2d3748;margin:0;text-align:center}.factory-progress-bar{width:300px;height:8px;background:#e2e8f0;border-radius:4px;overflow:hidden}.factory-progress-fill{height:100%;background:#3182ce;border-radius:4px;transition:width .3s ease}.factory-progress-text{font-size:1.1rem;font-weight:600;color:#3182ce}.factory-result-step{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;gap:40px}.factory-result-content{display:flex;flex-direction:column;align-items:center;gap:20px}.factory-result-icon{width:80px;height:80px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:700;color:#fff}.factory-result-icon.success{background:#48bb78}.factory-result-icon.failure{background:#f56565}.factory-result-content h2{font-size:1.8rem;color:#2d3748;margin:0;text-align:center}@media (max-width: 768px){.factory-step{padding:24px 20px}.factory-model-grid,.factory-color-grid{padding:10px 20px;margin:0 -20px 20px}.factory-step h1{font-size:1.5rem;margin-bottom:30px}.factory-model-card,.factory-color-card{width:25vw;height:22vh}.factory-confirmation-content{grid-template-columns:1fr;gap:30px}.factory-product-image{width:auto;height:100%;max-width:100%}.factory-product-image:after{width:28px;height:28px;font-size:16px;top:10px;right:10px}.factory-progress-bar{width:250px}}@media (max-width: 480px){.factory-model-card,.factory-color-card{width:20vw;height:20vh}.factory-product-image{width:auto;height:100%;max-width:100%}.factory-product-image:after{width:24px;height:24px;font-size:14px;top:8px;right:8px}.factory-product-info div{font-size:.75rem}.factory-next-btn,.factory-burn-btn,.factory-result-btn{min-width:auto;width:100%}}.log-source-panel{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:24px;display:flex;flex-direction:column;gap:16px;height:100%;overflow-y:auto}.log-source-title{margin:0;font-size:1.15rem;color:#1f2937;display:flex;align-items:center;gap:8px}.log-source-subtitle{margin:0;color:#64748b;font-size:.95rem}.log-source-panel-options{display:flex;flex-direction:column;gap:12px}.log-source-card{border-radius:10px;border:2px solid #e2e8f0;overflow:hidden;transition:all .25s ease;background:#fff}.log-source-card:hover{border-color:#4f46e5;box-shadow:0 8px 18px #4f46e51f}.log-source-card.selected{border-color:#4f46e5;box-shadow:0 0 0 2px #4f46e52e}.log-source-card-header{display:flex;align-items:center;padding:16px;cursor:pointer;gap:14px}.log-source-card-header .icon{font-size:2rem;opacity:.8}.log-source-card-info{flex:1}.log-source-card-info h3{margin:0 0 4px;color:#1f2937;font-size:1.1rem;font-weight:600}.log-source-card-info p{margin:0;color:#64748b;line-height:1.4}.log-source-card-status{display:flex;align-items:center}.log-source-card-selected{font-size:1.5rem;color:#16a34a;font-weight:700}.log-source-card-body{padding:12px 16px 16px;border-top:1px solid #e9ecef;background:#f8fafc}.log-source-uploader{padding:16px;text-align:center;border-radius:10px;transition:all .2s ease}.log-source-dropzone{padding:24px 16px;border:2px dashed #dee2e6;border-radius:10px;transition:all .3s ease;position:relative}.log-source-dropzone.drag-over{border-color:#4f46e5;background:#eef2ff}.log-source-upload-icon{font-size:2.4rem;display:block;margin-bottom:10px;opacity:.65}.log-source-upload-text{font-size:1rem;font-weight:500;color:#1f2937;margin:0 0 6px}.log-source-upload-hint{margin:0;color:#94a3b8;font-size:.9rem}.log-source-file-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.log-source-file-label{display:inline-block;padding:10px 22px;margin-top:12px;background:#2563eb;color:#fff;border-radius:8px;cursor:pointer;font-weight:600;transition:all .2s ease;border:none;text-decoration:none}.log-source-file-label:hover{background:#1d4ed8;transform:translateY(-1px)}.log-source-file-input:disabled+.log-source-file-label{background:#94a3b8;cursor:not-allowed;transform:none}.log-source-serial{padding:16px}.log-source-serial-status{display:flex;align-items:center;gap:8px;margin-bottom:12px}.log-source-status-dot{width:12px;height:12px;border-radius:50%;background:#dc2626}.log-source-status-dot.connected{background:#16a34a}.log-source-status-text{font-weight:500;color:#1f2937}.log-source-serial-actions{display:flex;gap:12px}.log-source-connect,.log-source-disconnect{flex:1;padding:10px 16px;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease;color:#fff}.log-source-connect{background:#2563eb}.log-source-connect:hover{background:#1d4ed8}.log-source-disconnect{background:#dc2626}.log-source-disconnect:hover{background:#b91c1c}@media (max-width: 768px){.log-source-panel{padding:20px}.log-source-card-header{padding:14px;flex-direction:column;text-align:center;gap:12px}.log-source-card-body{padding:14px}}.log-source-serial-disconnected{display:flex;flex-direction:column;align-items:center;text-align:center;padding:24px 16px;background:#f8f9fa;border-radius:8px;border:1px solid #e9ecef}.serial-disconnect-icon{color:#6c757d;margin-bottom:12px;opacity:.7}.serial-disconnect-title{font-size:16px;font-weight:600;color:#495057;margin:0 0 8px}.serial-disconnect-description{font-size:14px;color:#6c757d;margin:0 0 16px;line-height:1.4}.serial-disconnect-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.log-source-goto-serial{padding:6px 12px;background:#6c757d;color:#fff;border:none;border-radius:4px;font-size:12px;cursor:pointer;transition:background-color .2s ease}.log-source-goto-serial:hover{background:#5a6268}@media (max-width: 768px){.serial-disconnect-actions{flex-direction:column;width:100%}.log-source-connect,.log-source-goto-serial{width:100%}}.log-viewer{background:#f8f9fa;border-radius:12px;padding:24px;border:1px solid #e9ecef;height:100%;display:flex;flex-direction:column;overflow:hidden}.viewer-header{display:flex;justify-content:flex-end;align-items:center;margin-bottom:20px}.log-stats{display:flex;gap:16px;font-size:.9rem}.stat-item{color:#666}.stat-item strong{color:#333;font-weight:600}.viewer-controls{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:16px;flex-wrap:wrap}.filters{display:flex;gap:12px;flex:1;align-items:center}.search-container{flex:1;max-width:300px;position:relative}.search-input{width:100%;padding:8px 12px;border:1px solid #ced4da;border-radius:4px;font-size:14px;transition:border-color .2s ease}.search-input.regex-error{border-color:#dc3545;box-shadow:0 0 0 .2rem #dc354540}.regex-error-hint{position:absolute;top:100%;left:0;right:0;background:#dc3545;color:#fff;font-size:12px;padding:4px 8px;border-radius:0 0 4px 4px;z-index:10}.level-select,.module-select,.core-select{padding:8px 12px;border:1px solid #ced4da;border-radius:4px;background:#fff;font-size:14px;min-width:100px}.controls{display:flex;gap:12px;align-items:center}.checkbox-label{display:flex;align-items:center;gap:6px;font-size:14px;color:#666;cursor:pointer}.checkbox-label input[type=checkbox]{margin:0}.export-btn,.clear-btn{padding:8px 16px;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.export-btn{background:#007bff;color:#fff}.export-btn:hover{background:#0056b3}.clear-btn{background:#dc3545;color:#fff}.clear-btn:hover{background:#c82333}.log-container{flex:1;background:#fff;border:1px solid #e9ecef;border-radius:8px;overflow-y:auto;position:relative}.no-logs{display:flex;align-items:center;justify-content:center;height:100%;color:#666;font-style:italic}.log-list{padding:0}.log-entry{padding:12px 16px;border-bottom:1px solid #f1f3f4;cursor:pointer;transition:background-color .2s ease}.log-entry:hover{background-color:#f8f9fa}.log-entry:last-child{border-bottom:none}.log-meta{display:flex;align-items:center;gap:12px;margin-bottom:4px;font-size:12px}.timestamp{color:#666;font-family:Courier New,monospace;font-weight:500}.level{padding:2px 6px;border-radius:3px;font-weight:600;font-size:11px;text-transform:uppercase}.level-critical,.level-error{background:#fee;color:#d63384}.level-warn{background:#fff3cd;color:#f57c00}.level-info{background:#d1ecf1;color:#0c5460}.level-debug{background:#e2f3ff;color:#06c}.level-verbose{background:#f8f9fa;color:#666}.level-default{background:#e9ecef;color:#495057}.module{color:#6f42c1;font-weight:500;font-size:11px;background:#f8f5ff;padding:2px 6px;border-radius:3px}.core{color:#007bff;font-weight:500;font-size:11px;background:#e2f3ff;padding:2px 6px;border-radius:3px}.log-content{font-family:Courier New,monospace;font-size:13px;line-height:1.4;font-weight:600;color:#333;word-break:break-all}.log-raw{margin-top:8px;padding-top:8px;border-top:1px solid #f1f3f4}.log-raw details summary{cursor:pointer;color:#666;font-size:12px;-webkit-user-select:none;user-select:none}.log-raw pre{margin:8px 0 0;padding:8px;background:#f8f9fa;border-radius:4px;font-size:11px;overflow-x:auto;max-height:200px;overflow-y:auto}.log-detail-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.log-detail-panel{background:#fff;border-radius:8px;width:90%;max-width:600px;max-height:80vh;overflow:hidden;display:flex;flex-direction:column}.detail-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #e9ecef;background:#f8f9fa}.detail-header h3{margin:0;color:#333}.close-btn{background:none;border:none;font-size:20px;cursor:pointer;color:#666;padding:4px;line-height:1}.close-btn:hover{color:#333}.detail-content{padding:20px;overflow-y:auto}.detail-item{margin-bottom:16px}.detail-item label{display:block;font-weight:600;color:#333;margin-bottom:6px;font-size:14px}.detail-item span{color:#666}.content-text{background:#f8f9fa;padding:12px;border-radius:4px;font-family:Courier New,monospace;font-size:13px;line-height:1.4;word-break:break-all}.raw-data{background:#f8f9fa;padding:12px;border-radius:4px;font-size:11px;line-height:1.4;overflow-x:auto;max-height:300px;overflow-y:auto;margin:0}.highlight-match{background:#ffeb3b;color:#333;padding:1px 2px;border-radius:2px;font-weight:700;box-shadow:0 1px 2px #0000001a}@media (max-width: 768px){.log-viewer{padding:16px;height:60vh}.viewer-controls{flex-direction:column;align-items:stretch;gap:12px}.filters{flex-wrap:wrap;gap:8px}.search-input{max-width:none}.controls{justify-content:center;flex-wrap:wrap}.log-meta{flex-wrap:wrap;gap:8px}.log-content{font-size:12px;font-weight:600}.log-detail-panel{width:95%;max-height:90vh}.detail-header,.detail-content{padding:16px}}.status-bar-container{flex:0 0 48px;background:#343a40;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-top:1px solid #495057;font-size:14px}.status-bar-status-section{display:flex;align-items:center;gap:12px}.status-bar-status-indicator{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;font-size:12px}.status-bar-status-indicator.processing{background:#ffc107;animation:status-bar-pulse 1.5s ease-in-out infinite}.status-bar-status-indicator.idle{background:#28a745}@keyframes status-bar-pulse{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.8}to{transform:scale(1);opacity:1}}.status-bar-status-text{color:#f8f9fa;font-weight:500}.status-bar-info-section{display:flex;align-items:center;gap:24px}.status-bar-info-item{display:flex;align-items:center;gap:6px}.status-bar-info-item .label{color:#adb5bd;font-size:13px}.status-bar-info-item .value{color:#f8f9fa;font-weight:600}@media (max-width: 768px){.status-bar{padding:0 16px;font-size:13px;height:44px}.status-bar-info-section{gap:16px}.status-bar-info-item .label{display:none}}.log-page{display:flex;flex-direction:column;height:100%;overflow:hidden}.log-page .app-main{flex:1;display:flex;flex-direction:column;overflow:hidden}.log-page .main-content{flex:1;display:flex;overflow:hidden}.log-page .sidebar{flex:0 0 clamp(320px,24vw,400px);max-width:clamp(320px,24vw,400px);background:#f8f9fa;border-right:1px solid #e9ecef;display:flex;flex-direction:column;overflow-y:auto;height:100%}.log-page .content-area{flex:1;display:flex;flex-direction:column;background:#fff;height:100%;overflow:hidden}.log-page .content-header{flex:0 0 auto;padding:16px 24px;border-bottom:1px solid #e9ecef;background:#fff;display:flex;align-items:center;justify-content:space-between}.log-page .log-viewer-container{flex:1;padding:0;overflow:hidden}.log-page-empty{display:flex;flex-direction:column;gap:20px;padding:40px;height:100%;justify-content:center;align-items:center}.log-page-empty .status-hint{color:#6b7280}.log-page-empty .go-wpk-btn{align-self:center;border:none;border-radius:8px;padding:10px 20px;background:#6366f1;color:#fff;cursor:pointer}.log-page-empty .go-wpk-btn:hover{background:#4f46e5}.log-viewer-placeholder{display:flex;align-items:center;justify-content:center;height:100%;color:#6b7280}.log-viewer-placeholder .empty-message{font-size:1rem}.header-main{display:flex;flex-direction:column;gap:4px}.log-header-meta{display:flex;gap:16px;font-size:.9rem;color:#475569}.header-actions{display:flex;align-items:center;gap:8px}@media (max-width: 1024px){.log-page .main-content{flex-direction:column}.log-page .sidebar{flex:none;max-width:none;border-right:none;border-bottom:1px solid #e9ecef;background:#fff;height:auto;max-height:40vh}.log-page .content-area{min-height:400px;flex:1}}@media (max-width: 768px){.log-header-meta{flex-wrap:wrap;gap:8px}.log-page .content-header{padding:12px 16px;flex-direction:column;align-items:flex-start;gap:8px}.log-page-empty{padding:24px 16px}}.export-page{display:flex;flex-direction:column;align-items:center;gap:32px;padding:32px clamp(24px,5vw,64px);height:100%;overflow-y:auto;width:100%;max-width:1280px;margin:0 auto}.export-page .page-header{display:flex;flex-direction:column;gap:8px;text-align:center;width:100%;max-width:640px}.export-page .page-header h1{margin:0;font-size:1.8rem;color:#1f2937}.export-page .page-subtitle{margin:0;color:#4b5563;font-size:1rem}.export-page .export-card{background:#fff;border:1px solid #e0e7ff;border-radius:12px;padding:24px;box-shadow:0 15px 35px #4f46e51f;width:100%;max-width:640px}.export-page .file-uploader{border:2px dashed #d7dfe7;border-radius:16px;padding:clamp(28px,5vw,48px) clamp(28px,5vw,40px);background:#f9fbff;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;transition:all .3s ease;min-height:clamp(300px,35vh,400px);cursor:pointer}.export-page .file-uploader.drag-over{border-color:#4f46e5;background:#eef2ff;transform:scale(1.01)}.export-page .file-uploader.processing{border-color:#f59e0b;background:#fffbeb;cursor:not-allowed}.export-page .upload-zone{display:flex;flex-direction:column;align-items:center;gap:18px;width:100%}.export-page .upload-icon{font-size:clamp(2.6rem,4vw,3.4rem);opacity:.65}.export-page .upload-text{font-size:clamp(1.1rem,2vw,1.3rem);font-weight:600;color:#1f2937;margin:0}.export-page .file-hint{margin:0;color:#64748b;font-size:.95rem}.export-page .file-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.export-page .file-input-label{display:inline-flex;justify-content:center;align-items:center;min-width:200px;padding:14px 32px;border-radius:10px;font-weight:600;font-size:.98rem;cursor:pointer;transition:all .2s ease;border:none;background:#2563eb;color:#fff;text-decoration:none;margin-top:16px}.export-page .file-input-label:hover:not(.disabled){background:#1d4ed8;transform:translateY(-1px)}.export-page .file-input:disabled+.file-input-label,.export-page .file-input-label.disabled{background:#94a3b8;cursor:not-allowed;transform:none;color:#f8fafc}.export-page .export-progress{width:100%;max-width:300px;margin-top:16px}.export-page .progress-bar{width:100%;height:8px;background:#e5e7eb;border-radius:4px;overflow:hidden}.export-page .progress-fill{height:100%;background:#4f46e5;border-radius:4px;transition:width .3s ease}.export-page .progress-text{margin:8px 0 0;font-size:.9rem;color:#6b7280;text-align:center}.export-page .export-footer{display:flex;flex-direction:column;gap:4px;color:#475569;font-size:.95rem;padding:16px 20px;background:#fffc;border-radius:8px;border:1px solid #e5e7eb;width:100%;max-width:640px;text-align:center}.export-page.empty{padding:32px clamp(24px,5vw,64px);display:flex;flex-direction:column;gap:20px;justify-content:center;align-items:center;text-align:center;min-height:60vh}.export-page.empty .status-hint{margin:0;color:#6b7280}.export-page.empty .go-wpk-btn{align-self:center;border:none;border-radius:8px;padding:12px 24px;background:#6366f1;color:#fff;cursor:pointer;font-weight:600;transition:all .2s ease}.export-page.empty .go-wpk-btn:hover{background:#4f46e5;transform:translateY(-1px)}@media (max-width: 768px){.export-page,.export-page.empty{padding:24px 16px;width:100%}.export-page .export-card{padding:20px;max-width:none}.export-page .file-uploader{padding:24px 16px;min-height:250px}.export-page .upload-icon{font-size:2.5rem}.export-page .upload-text{font-size:1.05rem}.export-page .file-input-label{min-width:160px;padding:12px 24px}}.serial-page{display:flex;justify-content:center;padding:48px 32px 56px;height:100%;overflow-y:auto;background:linear-gradient(180deg,#f8fafc,#fff 45%)}.serial-page-container{width:min(1120px,100%);display:flex;flex-direction:column}.serial-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.serial-card{background:#fff;border:1px solid #dbe4f3;border-radius:16px;padding:28px;box-shadow:0 20px 60px #0f172a14;display:flex;flex-direction:column;gap:20px}.serial-card--primary{min-height:320px}.serial-card-title h2{margin:0;font-size:1.3rem;color:#0f172a}.serial-card-caption{display:block;margin-top:6px;font-size:.9rem;color:#64748b}.serial-status-block{display:flex;gap:14px;align-items:center;padding:20px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.status-dot{flex-shrink:0;width:16px;height:16px;border-radius:50%;background:#cbd5f5}.status-dot.online{background:#16a34a}.status-dot.offline{background:#ef4444}.status-text{font-size:1.1rem;font-weight:600;color:#111827}.status-hint{margin-top:4px;font-size:.9rem;color:#64748b}.serial-actions{display:flex;gap:12px}.connect-btn,.disconnect-btn{border:none;border-radius:10px;padding:12px 24px;font-size:1rem;font-weight:600;cursor:pointer;color:#fff;transition:transform .2s ease,box-shadow .2s ease}.connect-btn{background:linear-gradient(135deg,#2563eb,#1d4ed8);box-shadow:0 12px 24px #2563eb4d}.connect-btn:hover{transform:translateY(-1px);box-shadow:0 16px 30px #2563eb59}.disconnect-btn{background:linear-gradient(135deg,#ef4444,#dc2626);box-shadow:0 12px 24px #ef444440}.disconnect-btn:hover{transform:translateY(-1px);box-shadow:0 16px 30px #ef44444d}.serial-divider{height:1px;background:linear-gradient(90deg,#e2e8f000,#e2e8f0 30% 70%,#e2e8f000)}.serial-device-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.meta-label{display:block;font-size:.85rem;color:#94a3b8}.meta-value{display:block;margin-top:4px;font-size:1rem;font-weight:600;color:#1f2937}.serial-tip{margin:0;padding:12px 16px;border-radius:12px;background:#f1f5f9;color:#475569;font-size:.9rem;line-height:1.5}.serial-card--devices{min-height:320px}.serial-device-list{display:flex;flex-direction:column;gap:14px;margin:0;padding:0;list-style:none;max-height:360px;overflow-y:auto}.serial-device-item{border:1px solid #e2e8f0;border-radius:12px;padding:16px 18px;background:#f8fafc;display:flex;flex-direction:column;gap:8px;transition:border-color .2s ease,box-shadow .2s ease}.serial-device-item:hover{border-color:#2563eb;box-shadow:0 10px 24px #2563eb29}.serial-device-item--active{border-color:#2563eb;background:linear-gradient(135deg,#2563eb1f,#2563eb0f)}.serial-device-item-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.serial-device-item-title{font-weight:600;color:#1f2937}.serial-device-connect-btn{border:1px solid transparent;border-radius:999px;padding:6px 14px;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;font-size:.85rem;font-weight:600;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,filter .2s ease}.serial-device-connect-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 12px 24px #2563eb40}.serial-device-connect-btn:disabled{cursor:not-allowed;opacity:.6;filter:grayscale(.2)}.serial-device-badge{font-size:.75rem;font-weight:600;color:#1d4ed8;background:#2563eb1f;padding:4px 10px;border-radius:999px}.serial-device-item-meta{display:flex;flex-wrap:wrap;gap:12px;font-size:.85rem;color:#475569}.serial-device-empty{display:flex;flex-direction:column;gap:8px;padding:36px 24px;border-radius:12px;background:#f8fafc;text-align:center;color:#475569}.serial-device-empty-title{font-weight:600;color:#1f2937}.serial-device-empty-desc{font-size:.9rem;line-height:1.6}@media (max-width: 1024px){.serial-layout{grid-template-columns:minmax(0,1fr)}.serial-card{min-height:auto}}@media (max-width: 768px){.serial-page{padding:32px 16px 48px}.serial-card{padding:24px}.serial-device-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}.wpk-upload-panel{display:flex;flex-direction:column;gap:24px}.wpk-upload-panel h2{margin:0;display:flex;align-items:center;gap:8px;font-size:1.3rem;color:#1f2937;font-weight:600}.wpk-upload-panel h2 .icon{font-size:1.3em}.wpk-upload-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,1fr);gap:clamp(24px,6vw,48px);align-items:stretch;min-height:clamp(460px,55vh,640px)}.wpk-dropzone{border:2px dashed #d7dfe7;border-radius:16px;padding:clamp(28px,5vw,48px) clamp(28px,5vw,40px);background:#f9fbff;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;transition:all .3s ease;min-height:clamp(360px,45vh,520px);height:100%;align-self:stretch}.wpk-dropzone.drag-over{border-color:#4f46e5;background:#eef2ff;transform:scale(1.01)}.wpk-dropzone.success{border-color:#16a34a;background:#f0fdf4}.wpk-dropzone.processing{border-color:#f59e0b;background:#fffbeb}.wpk-upload-content,.wpk-success-indicator,.wpk-processing-indicator{display:flex;flex-direction:column;align-items:center;gap:18px}.wpk-upload-icon,.wpk-success-indicator .icon{font-size:clamp(2.6rem,4vw,3.4rem);opacity:.65}.wpk-main-text{font-size:clamp(1.1rem,2vw,1.3rem);font-weight:600;color:#1f2937;margin:0}.wpk-hint{margin:0;color:#64748b;font-size:.95rem}.wpk-file-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.wpk-primary-btn,.wpk-secondary-btn{display:inline-flex;justify-content:center;align-items:center;min-width:200px;padding:14px 32px;border-radius:10px;font-weight:600;font-size:.98rem;cursor:pointer;transition:all .2s ease;border:none;color:#fff;text-decoration:none}.wpk-primary-btn{background:#2563eb}.wpk-primary-btn:hover:not(:disabled){background:#1d4ed8;transform:translateY(-1px)}.wpk-primary-btn:disabled,.wpk-file-input:disabled+.wpk-primary-btn{background:#94a3b8;cursor:not-allowed;transform:none;color:#f8fafc}.wpk-secondary-btn{background:#16a34a}.wpk-secondary-btn:hover{background:#15803d;transform:translateY(-1px)}.wpk-secondary-btn:disabled{background:#94a3b8;cursor:not-allowed;transform:none}.wpk-upload-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;margin-top:16px}.wpk-processing-indicator .spinner{width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #f59e0b;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.wpk-stored-pane{display:flex;flex-direction:column;background:#fff;border-radius:14px;border:1px solid #e2e8f0;box-shadow:inset 0 1px #fff9,0 12px 24px #0f172a14;overflow:hidden;min-height:clamp(420px,48vh,560px)}.wpk-stored-header{display:flex;justify-content:space-between;align-items:center;padding:18px 24px;background:linear-gradient(135deg,#eef2ff,#f8fafc);border-bottom:1px solid #e2e8f0}.wpk-stored-header h3{margin:0;color:#1f2937;font-size:1.05rem;display:flex;align-items:center;gap:8px}.wpk-clear-btn{background:#dc2626;color:#fff;border:none;padding:8px 14px;border-radius:6px;font-size:.85rem;cursor:pointer;transition:background-color .2s ease}.wpk-clear-btn:hover:not(:disabled){background:#b91c1c}.wpk-clear-btn:disabled{background:#e2e8f0;color:#94a3b8;cursor:not-allowed}.wpk-saved-list{display:flex;flex-direction:column;gap:12px;padding:16px 18px;max-height:min(400px,45vh);overflow-y:auto}.wpk-saved-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px;min-height:92px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;transition:background-color .2s ease,border-color .2s ease}.wpk-saved-row:hover{border-color:#4f46e5;background:#eef2ff}.wpk-saved-row.current{border-color:#4f46e5;background:#edf2ff;box-shadow:0 0 0 2px #4f46e529}.wpk-saved-row-info{flex:1;min-width:0}.wpk-saved-row-name{font-weight:600;color:#1f2937;margin-bottom:6px;display:flex;align-items:center;gap:8px;word-break:break-word}.wpk-saved-row-badge{background:#4f46e5;color:#fff;font-size:11px;padding:2px 6px;border-radius:4px;font-weight:500}.wpk-saved-row-meta{display:flex;gap:16px;font-size:12px;color:#64748b}.wpk-saved-row-symbols{font-weight:500}.wpk-saved-row-timestamp{color:#94a3b8}.wpk-saved-row-actions{display:flex;gap:10px;flex-shrink:0}.wpk-ghost-btn,.wpk-danger-btn{padding:6px 10px;border:none;border-radius:4px;font-size:12px;cursor:pointer;transition:all .2s ease}.wpk-ghost-btn{background:#2563eb;color:#fff}.wpk-ghost-btn:hover:not(:disabled){background:#1d4ed8}.wpk-danger-btn{background:#dc2626;color:#fff}.wpk-danger-btn:hover:not(:disabled){background:#b91c1c}.wpk-ghost-btn:disabled,.wpk-danger-btn:disabled{background:#e2e8f0;color:#94a3b8;cursor:not-allowed}.wpk-stored-empty{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:48px 20px;color:#64748b;text-align:center}.wpk-empty-icon{font-size:2.2rem}@media (max-width: 1200px){.wpk-upload-layout{grid-template-columns:1fr}.wpk-stored-pane{max-height:none}}@media (max-width: 768px){.wpk-dropzone{padding:24px 16px}.wpk-upload-icon{font-size:2.5rem}.wpk-main-text{font-size:1.05rem}.wpk-saved-row-meta{flex-direction:column;gap:4px}}.cloud-wpk-panel{display:flex;flex-direction:column;gap:16px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:20px 24px;box-shadow:0 8px 22px #0f172a0f}.cloud-wpk-header{display:flex;justify-content:space-between;align-items:center}.cloud-wpk-title{display:flex;align-items:center;gap:8px;font-weight:600;font-size:1.1rem;color:#1f2937}.cloud-wpk-refresh{border:none;background:#0ea5e9;color:#fff;border-radius:6px;padding:6px 14px;cursor:pointer;font-size:.9rem;transition:background .2s ease}.cloud-wpk-refresh:hover:not(:disabled){background:#0284c7}.cloud-wpk-refresh:disabled{background:#bae6fd;color:#0c4a6e;cursor:not-allowed}.cloud-wpk-error{padding:14px;border-radius:10px;background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;font-size:.95rem}.cloud-wpk-loading,.cloud-wpk-empty{display:flex;align-items:center;justify-content:center;gap:12px;padding:24px;color:#475569;background:#f8fafc;border-radius:12px;border:1px dashed #cbd5f5}.cloud-wpk-loading .spinner{width:20px;height:20px;border-radius:50%;border:3px solid #e2e8f0;border-top-color:#0ea5e9;animation:cloud-spin 1s linear infinite}@keyframes cloud-spin{to{transform:rotate(360deg)}}.cloud-wpk-empty .icon{font-size:1.4rem}.cloud-wpk-list{display:flex;flex-direction:column;gap:14px;max-height:806px;overflow-y:auto;padding-right:4px}.cloud-wpk-item{border:1px solid #e2e8f0;border-radius:12px;padding:16px 18px;background:#f8fafc;display:flex;flex-direction:column;gap:12px;transition:border-color .2s ease,box-shadow .2s ease}.cloud-wpk-item:hover{border-color:#38bdf8;box-shadow:0 8px 16px #0ea5e91f}.cloud-wpk-item-meta{display:flex;flex-direction:column;gap:6px}.cloud-wpk-item-title{display:flex;align-items:center;gap:10px;font-weight:600;color:#0f172a}.cloud-wpk-item-title .badge{background:#bae6fd;color:#0c4a6e;padding:2px 6px;border-radius:4px;font-size:11px;font-weight:700}.cloud-wpk-item-title .version{font-size:1rem}.cloud-wpk-item-desc{margin:0;color:#475569;font-size:.95rem}.cloud-wpk-item-desc.muted{color:#94a3b8;font-style:italic}.cloud-wpk-item-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.cloud-wpk-item-timestamps{display:flex;flex-direction:column;gap:2px;font-size:.85rem;color:#64748b}.cloud-wpk-action{min-width:140px;padding:8px 16px;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}.cloud-wpk-action.primary{background:#2563eb;color:#fff}.cloud-wpk-action.primary:hover:not(:disabled){background:#1d4ed8;transform:translateY(-1px)}.cloud-wpk-action.cached{background:#0ea5e9;color:#fff}.cloud-wpk-action.cached:hover:not(:disabled){background:#0284c7}.cloud-wpk-action.current{background:#22c55e;color:#fff;cursor:default}.cloud-wpk-action:disabled{background:#e2e8f0;color:#94a3b8;cursor:not-allowed}@media (max-width: 768px){.cloud-wpk-item-footer{flex-direction:column;align-items:flex-start}.cloud-wpk-action{width:100%}}.wpk-manager-panel{display:flex;flex-direction:column;gap:20px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:24px;box-shadow:0 12px 30px #0f172a14}.wpk-status-bar{display:flex;align-items:center;gap:12px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;padding:12px 16px;font-size:.95rem}.wpk-status-bar .status-label{font-weight:600;color:#1e293b}.wpk-status-bar .status-text{flex:1;color:#475569}.wpk-status-bar .status-action{border:none;background:#6366f1;color:#fff;border-radius:6px;padding:6px 12px;cursor:pointer;font-size:.9rem}.wpk-status-bar .status-action:hover{background:#4f46e5}.wpk-page-wrapper{display:flex;flex-direction:column;gap:32px;padding:32px clamp(24px,5vw,64px);height:100%;overflow-y:auto;width:min(1280px,90vw);margin:0 auto}@media (max-width: 768px){.wpk-page-wrapper{padding:24px 16px;width:100%}}.home-page{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:linear-gradient(135deg,#eef2ff,#e0f2fe);color:#1f2933;font-size:clamp(2.5rem,6vw,4rem);font-weight:700;letter-spacing:.08em;text-align:center}.home-subtitle{margin:0;font-size:1.125rem;font-weight:500;letter-spacing:.04em}.home-meta{margin:0;font-size:.95rem;color:#475569}.home-error-text{color:#dc2626}.home-versions{display:flex;flex-direction:column;align-items:center;gap:14px;padding:18px 24px;background:#ffffffa6;border-radius:16px;box-shadow:0 12px 35px #1e40af29;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.home-version{display:flex;flex-direction:column;align-items:center;gap:6px}.home-version-label{font-size:.95rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#1d4ed8}.home-version-value{display:inline-flex;align-items:center;padding:6px 12px;border-radius:999px;background:#2563eb1f;color:#1f2937;font-size:.95rem;letter-spacing:.03em;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}
