*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #f4f5f7;--surface: #ffffff;--border: #e1e4e8;--border-focus: #f26522;--text: #1a2332;--text-muted: #6b7280;--text-light: #9ca3af;--accent: #f26522;--accent-hover: #d95510;--accent-light: #fff4ee;--accent-border: #fcd5b8;--green: #16a34a;--amber: #d97706;--red: #dc2626;--cbam-bg: #fff4ee;--cbam-border: #f26522;--radius: 8px;--shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);--shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:14px;color:var(--text);background:var(--bg);line-height:1.5}.app{min-height:100vh;display:flex;flex-direction:column}.app-main{flex:1;max-width:1200px;margin:0 auto;padding:24px 20px 48px;width:100%;display:flex;flex-direction:column;gap:20px}.app-header{background:var(--surface);border-bottom:3px solid var(--accent);padding:0 20px}.header-inner{max-width:1200px;margin:0 auto;height:68px;display:flex;align-items:center;justify-content:space-between}.header-brand{display:flex;align-items:center;gap:16px}.header-logo{height:32px;width:auto;display:block}.header-logo-fallback{font-size:22px;font-weight:900;color:var(--accent);letter-spacing:-.5px}.header-divider{width:1px;height:28px;background:var(--border)}.header-titles h1{font-size:15px;font-weight:700;color:var(--text)}.header-sub{font-size:11px;color:var(--text-muted);margin-top:1px}.app-footer{background:var(--surface);border-top:1px solid var(--border);padding:12px 20px;text-align:center}.app-footer p{font-size:11px;color:var(--text-muted)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}.card h2{font-size:15px;font-weight:600;margin-bottom:16px;display:flex;align-items:center;gap:8px}.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.section-header h2{margin-bottom:0}.disclaimer-banner{background:#fffbeb;border:1px solid #fcd34d;border-radius:var(--radius);padding:14px 18px;display:flex;gap:12px;align-items:flex-start}.disclaimer-icon{font-size:16px;flex-shrink:0;margin-top:1px}.disclaimer-banner p{font-size:13px;color:#92400e;line-height:1.55}.form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}.field{display:flex;flex-direction:column;gap:5px}.field label{font-size:12px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.4px}.required{color:var(--red)}.hint{font-size:11px;color:var(--text-light)}input[type=text],input[type=number],select,textarea{border:1px solid var(--border);border-radius:5px;padding:7px 10px;font-size:13px;color:var(--text);background:var(--surface);outline:none;width:100%;transition:border-color .15s}input:focus,select:focus{border-color:var(--border-focus);box-shadow:0 0 0 2px #3b82f626}input::placeholder{color:var(--text-light)}.radio-group{display:flex;gap:16px}.radio-label{display:flex;align-items:center;gap:5px;font-size:13px;color:var(--text);cursor:pointer;font-weight:500}.radio-label input[type=radio]{width:auto;cursor:pointer}.btn{display:inline-flex;align-items:center;gap:6px;border:none;border-radius:5px;padding:8px 14px;font-size:13px;font-weight:500;cursor:pointer;transition:background .15s,opacity .15s;white-space:nowrap}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-hover)}.btn-secondary{background:var(--surface);color:var(--text);border:1px solid var(--border)}.btn-secondary:hover{background:var(--bg)}.btn-ghost{background:transparent;color:var(--accent);border:1px solid var(--border)}.btn-ghost:hover{background:var(--bg)}.btn-remove{background:none;border:none;cursor:pointer;color:var(--text-light);font-size:18px;line-height:1;padding:4px 6px;border-radius:4px;transition:color .1s}.btn-remove:hover{color:var(--red)}.commodity-select,.cs-input-wrap{position:relative}.cs-input{padding-right:28px}.cs-clear{position:absolute;right:6px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--text-light);font-size:16px;line-height:1;padding:2px}.cs-clear:hover{color:var(--red)}.cs-dropdown{position:absolute;top:calc(100% + 3px);left:0;right:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-md);z-index:100;max-height:260px;overflow-y:auto;list-style:none}.cs-option{padding:9px 12px;cursor:pointer;display:flex;flex-direction:column;gap:2px;border-bottom:1px solid var(--border)}.cs-option:last-child{border-bottom:none}.cs-option:hover{background:var(--bg)}.cs-opt-name{font-size:13px;color:var(--text);font-weight:500}.cs-opt-meta{font-size:11px;color:var(--text-muted)}.cs-empty{padding:10px 12px;font-size:12px;color:var(--text-muted);font-style:italic;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-md);position:absolute;top:calc(100% + 3px);left:0;right:0;z-index:100}.commodity-info{margin-top:5px;display:flex;flex-direction:column;gap:2px;padding:6px 8px;background:#f8fafc;border-radius:4px;border:1px solid var(--border)}.ci-hs{font-size:11px;font-family:Courier New,monospace;color:var(--accent);font-weight:600}.ci-cat{font-size:11px;color:var(--text-muted)}.ci-desc{font-size:11px;color:var(--text);line-height:1.4}.bom-table-wrap{overflow-x:auto}.bom-table{width:100%;border-collapse:collapse}.bom-table th{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.4px;text-align:left;padding:8px 10px;border-bottom:2px solid var(--border);white-space:nowrap}.bom-table td{padding:10px 8px;vertical-align:top;border-bottom:1px solid var(--border)}.bom-table tr:last-child td{border-bottom:none}.td-commodity{min-width:240px}.empty-state{color:var(--text-muted);font-size:13px;font-style:italic;text-align:center;padding:24px 0}.product-cbam-status{margin-bottom:14px}.status-row{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:6px;font-size:13px}.status-row--cbam{background:var(--cbam-bg);border:1px solid var(--cbam-border)}.status-row--ok{background:#f0fdf4;border:1px solid #bbf7d0;color:var(--green)}.status-row--neutral{background:var(--bg);border:1px solid var(--border);color:var(--text-muted)}.status-icon{font-size:16px;flex-shrink:0;margin-top:1px}.status-row strong{display:block;color:var(--text);margin-bottom:2px}.status-detail{font-size:11px;color:var(--text-muted);display:block;margin-top:2px}.factor-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 12px;background:#f8fafc;border:1px solid var(--border);border-radius:5px;margin-bottom:14px;font-size:12px}.factor-label{font-weight:600;color:var(--text-muted)}.factor-value{font-weight:700;color:var(--text);font-size:13px}.factor-meta{color:var(--text-muted)}.section-note{font-size:12px;color:var(--text-muted);margin-top:-10px;margin-bottom:14px}.summary-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;margin-bottom:14px}.summary-card{background:#f8fafc;border:1px solid var(--border);border-radius:6px;padding:14px}.summary-card--highlight{background:var(--accent-light);border-color:var(--accent-border)}.sc-label{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.4px;margin-bottom:4px}.sc-value{font-size:20px;font-weight:700;color:var(--text);line-height:1.2}.sc-sub{font-size:11px;color:var(--text-muted);margin-top:3px}.summary-note{font-size:11px;color:var(--text-muted);font-style:italic;line-height:1.5}.results-table-wrap{overflow-x:auto}.results-table{width:100%;border-collapse:collapse;font-size:13px}.results-table th{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.4px;text-align:left;padding:8px 10px;border-bottom:2px solid var(--border);white-space:nowrap}.results-table td{padding:10px;vertical-align:top;border-bottom:1px solid var(--border)}.results-table tr:last-child td{border-bottom:none}.row-cbam{background:var(--cbam-bg)}.row-ok{background:var(--surface)}.td-name{display:block;font-weight:500}.td-hs-code{display:block;font-size:11px;color:var(--text-muted);font-family:Courier New,monospace}.td-num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.td-factor,.td-country{min-width:140px}.td-country .hint,.td-factor .hint{display:block;font-size:11px;color:var(--text-muted)}.cbam-match{display:flex;flex-direction:column;gap:3px}.match-detail{font-size:11px;color:var(--text-muted)}.cn-note{font-size:11px;color:var(--amber);font-weight:500}.muted{color:var(--text-light);font-style:italic}.badge{display:inline-block;padding:2px 7px;border-radius:10px;font-size:11px;font-weight:600;letter-spacing:.2px;white-space:nowrap}.badge-cbam{background:#fff3cd;color:#92400e;border:1px solid #fcd34d}.badge-none{background:#f0fdf4;color:#15803d;border:1px solid #bbf7d0}.badge-warn{background:#fffbeb;color:#92400e;border:1px solid #fcd34d}.badge-conf-high{background:#dcfce7;color:#15803d}.badge-conf-medium{background:#fef9c3;color:#854d0e}.badge-conf-low{background:#fee2e2;color:#991b1b}.indicative-tag{font-size:10px;font-weight:500;color:var(--text-muted);background:var(--bg);border:1px solid var(--border);padding:1px 6px;border-radius:10px;text-transform:uppercase;letter-spacing:.4px}.card-next-steps{border-left:4px solid var(--amber)}.ns-intro{font-size:13px;color:var(--text);margin-bottom:14px}.ns-steps{list-style:none;display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.ns-steps li{display:flex;align-items:flex-start;gap:10px;font-size:13px}.ns-num{flex-shrink:0;width:22px;height:22px;background:var(--amber);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;margin-top:1px}.ns-data-gaps{background:#fef9f0;border:1px solid #fde68a;border-radius:6px;padding:14px}.ns-data-gaps h3{font-size:13px;font-weight:600;margin-bottom:8px;color:#92400e}.ns-data-gaps ul{list-style:disc;padding-left:18px;display:flex;flex-direction:column;gap:5px}.ns-data-gaps li{font-size:12px;color:#78350f}.export-row{display:flex;justify-content:flex-end}.loading-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;gap:16px;color:var(--text-muted)}.loading-spinner{width:32px;height:32px;border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-screen.error{color:var(--red)}
