*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#0f172a;background:#f8fafc}button,input,select,textarea{font:inherit}.app-shell{height:100vh;display:flex;flex-direction:column}.upload-panel{display:flex;align-items:center;gap:18px;padding:12px 16px;background:#0f172a;color:#fff;border-bottom:1px solid #1e293b}.title{font-weight:800;font-size:18px}.subtitle{color:#cbd5e1;font-size:12px}.upload-button{display:inline-flex;align-items:center;justify-content:center;background:#2563eb;color:#fff;border-radius:10px;padding:9px 14px;cursor:pointer;font-weight:700}.upload-button input{display:none}.status-message{color:#dbeafe;font-size:13px}.summary-bar{display:flex;gap:24px;padding:8px 16px;background:#fff;border-bottom:1px solid #e2e8f0;font-size:13px}.main-layout{flex:1;min-height:0;display:grid;grid-template-columns:330px 1fr 380px}.left-panel,.right-panel{min-height:0;background:#fff;overflow:hidden}.left-panel{border-right:1px solid #e2e8f0}.right-panel{border-left:1px solid #e2e8f0;overflow-y:auto}.center-panel{min-height:0;background:#f1f5f9}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid #e2e8f0;background:#f8fafc}.panel-header.stacked{align-items:stretch;flex-direction:column}.panel-header input{width:100%;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px}.relationship-queue{height:100%;display:flex;flex-direction:column}.queue-list{overflow-y:auto;flex:1}.queue-item{width:100%;display:flex;gap:10px;text-align:left;border:0;border-bottom:1px solid #e2e8f0;background:#fff;padding:10px;cursor:pointer}.queue-item:hover,.queue-item.active{background:#eff6ff}.queue-score{min-width:42px;height:32px;display:flex;align-items:center;justify-content:center;background:#e0f2fe;color:#0369a1;border-radius:8px;font-weight:800;font-size:12px}.queue-main{min-width:0}.queue-title{font-weight:800;font-size:13px}.queue-path{font-size:12px;color:#334155;word-break:break-word}.queue-type{font-size:11px;color:#64748b}.graph-panel{width:100%;height:100%}.inspector,.entity-panel{padding-bottom:16px;border-bottom:1px solid #e2e8f0}.detail-block,.detail-grid{padding:10px 14px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}label{display:block;color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}select,textarea{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:8px;background:#fff}textarea{min-height:80px;resize:vertical}.evidence-list{margin:0;padding-left:18px;font-size:13px}.button-row{display:flex;gap:10px;padding:12px 14px}.button-row button{border:0;color:#fff;padding:9px 14px;border-radius:9px;cursor:pointer;font-weight:800}.button-row .confirm{background:#16a34a}.button-row .reject{background:#dc2626}.empty-state{padding:18px;color:#64748b}.entity-panel h3{padding:0 14px;margin-bottom:0}.bottom-panel{height:260px;min-height:180px;border-top:1px solid #e2e8f0;background:#020617;color:#bbf7d0;display:flex;flex-direction:column}.tabs{display:flex;gap:4px;padding:6px;background:#0f172a}.tabs button{border:0;padding:6px 10px;border-radius:8px;background:transparent;color:#cbd5e1;cursor:pointer}.tabs button.active{background:#1e293b;color:#fff}.json-viewer{height:100%;display:flex;flex-direction:column;min-height:0}.json-viewer .panel-header{background:#020617;color:#e2e8f0;border-color:#1e293b}.json-viewer .panel-header input{max-width:280px;background:#0f172a;color:#fff;border-color:#334155}.json-viewer pre{flex:1;overflow:auto;margin:0;padding:12px;font-size:12px;line-height:1.45}.semantic-layout{flex:1;min-height:0;display:grid;grid-template-columns:420px minmax(650px,1fr) 520px;overflow:hidden}.semantic-left-panel,.semantic-center-panel,.semantic-right-panel{min-height:0;overflow:hidden}.semantic-left-panel{background:#fff;border-right:1px solid #e2e8f0;overflow-y:auto}.semantic-center-panel{background:#f8fafc}.semantic-right-panel{border-left:1px solid #e2e8f0;background:#020617;overflow-y:auto}.graph-empty-state{width:100%;height:100%;min-height:400px;display:flex;align-items:center;justify-content:center;color:#64748b;font-weight:700}.semantic-explorer{height:100%;overflow-y:auto;padding:16px}.semantic-header h2{margin:0 0 6px;font-size:22px}.semantic-subtitle{color:#64748b;font-size:13px;margin-bottom:16px}.semantic-section{margin-bottom:22px}.semantic-section h3{margin:0 0 10px;font-size:15px}.field-list{display:flex;flex-direction:column;gap:6px}.field-pill{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #e2e8f0;border-radius:9px;padding:8px 10px;background:#f8fafc;font-size:13px}.field-pill small{color:#64748b;font-size:11px}.relationship-card-list{display:flex;flex-direction:column;gap:12px}.semantic-card{border:1px solid #cbd5e1;border-radius:12px;padding:12px;background:#fff;box-shadow:0 6px 14px #0f172a14}.semantic-card.confirmed{border-color:#16a34a;background:#f0fdf4}.semantic-card.rejected{border-color:#dc2626;background:#fef2f2;opacity:.75}.semantic-card-topline{display:flex;align-items:center;gap:8px;margin-bottom:6px;font-size:13px}.confidence-badge{min-width:44px;height:30px;display:inline-flex;align-items:center;justify-content:center;background:#e0f2fe;color:#0369a1;border-radius:8px;font-weight:900;font-size:12px}.semantic-card-path,.semantic-card-type{color:#475569;font-size:12px;margin-bottom:4px}.semantic-evidence{margin:8px 0 0 18px;padding:0;color:#334155;font-size:12px}.semantic-actions{display:flex;gap:8px;margin-top:10px}.semantic-actions button{border:0;color:#fff;padding:7px 11px;border-radius:8px;cursor:pointer;font-weight:800;font-size:12px}.semantic-actions button:disabled{opacity:.55;cursor:not-allowed}.semantic-actions .confirm{background:#16a34a}.semantic-actions .reject{background:#dc2626}.empty-state.small{padding:12px;font-size:13px;border:1px dashed #cbd5e1;border-radius:10px;background:#f8fafc}.semantic-layout-v2{flex:1;min-height:0;display:grid;grid-template-columns:minmax(520px,36vw) minmax(600px,1fr) minmax(360px,26vw);overflow:hidden}.semantic-left-panel,.semantic-right-panel,.semantic-graph-panel{min-height:0;overflow:hidden}.semantic-left-panel{overflow-y:auto;background:#fff}.semantic-right-panel{background:#020617;color:#d1fae5;overflow-y:auto}.semantic-graph-panel{background:#f8fafc}.semantic-bottom-panel{height:280px;min-height:220px}.graph-panel-expanded{width:100%;height:100%}.graph-empty-state{height:100%;display:flex;align-items:center;justify-content:center;color:#64748b;font-weight:700}.relationship-builder{height:100%;display:grid;grid-template-rows:260px minmax(360px,1fr) minmax(320px,45%);background:#fff}.builder-section{min-height:0;overflow:auto;border-bottom:1px solid #e2e8f0;padding:14px}.builder-section h2,.builder-section h3{margin:0 0 12px}.builder-search{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;margin-bottom:12px;background:#fff}.entity-list-v2,.candidate-list-v2,.field-pair-list-v2{display:flex;flex-direction:column;gap:8px}.entity-row-v2,.candidate-card-v2,.field-pair-card-v2{width:100%;text-align:left;border:1px solid #e2e8f0;background:#fff;border-radius:12px;padding:10px;cursor:pointer}.entity-row-v2:hover,.candidate-card-v2:hover,.field-pair-card-v2:hover{background:#eff6ff;border-color:#93c5fd}.entity-row-v2.active,.candidate-card-v2.active,.field-pair-card-v2.active{background:#dbeafe;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb2e}.entity-name-v2,.candidate-title-v2{display:block;font-weight:800;color:#0f172a}.entity-meta-v2,.candidate-meta-v2,.candidate-evidence-v2{display:block;font-size:12px;color:#64748b;margin-top:2px}.selected-entity-card{border:1px solid #bbf7d0;background:#f0fdf4;border-radius:14px;padding:12px;margin-bottom:14px}.selected-label{text-transform:uppercase;font-size:11px;color:#166534;letter-spacing:.08em;font-weight:800}.selected-title{font-size:22px;font-weight:900;color:#14532d}.selected-subtitle{color:#166534;font-size:13px}.candidate-card-v2,.field-pair-card-v2{display:flex;gap:12px;align-items:flex-start}.candidate-score-v2,.field-pair-score-v2{min-width:46px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#e0f2fe;color:#0369a1;font-weight:900;font-size:12px}.candidate-body-v2,.field-pair-body-v2{min-width:0;flex:1}.mapping-title{font-weight:900;color:#0f172a;padding:10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;margin-bottom:12px}.builder-actions-v2{padding-left:0;padding-right:0}.builder-actions-v2 button:disabled{opacity:.45;cursor:not-allowed}.field-mapping-panel{display:flex;gap:12px}.relationship-builder{padding:16px}.relationship-builder h2{margin-top:0;font-size:22px}.relationship-builder h3{margin-top:22px;margin-bottom:10px;font-size:16px}.relationship-summary{background:#f1f5f9;border:1px solid #cbd5e1;border-radius:10px;padding:12px;margin-bottom:16px}.hint-box{border:1px dashed #cbd5e1;background:#f8fafc;color:#64748b;border-radius:10px;padding:12px;margin-bottom:12px}.suggestion-list{display:flex;flex-direction:column;gap:8px}.suggestion-card{text-align:left;border:1px solid #cbd5e1;background:#fff;border-radius:10px;padding:10px;cursor:pointer}.suggestion-card:hover{background:#eff6ff}.suggestion-card.active{background:#dcfce7;border-color:#16a34a}.suggestion-title{font-weight:800}.suggestion-confidence{font-size:12px;color:#0369a1;margin-top:4px}.suggestion-evidence{font-size:12px;color:#64748b;margin-top:4px}.field-map-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}.field-list{max-height:260px;overflow-y:auto;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;padding:6px}.field-choice{width:100%;display:flex;flex-direction:column;gap:3px;text-align:left;border:0;background:#fff;border-bottom:1px solid #e2e8f0;padding:8px;cursor:pointer}.field-choice:hover{background:#eff6ff}.field-choice.active{background:#dbeafe;outline:2px solid #2563eb}.field-choice span{font-size:11px;color:#64748b}.confirm-relationship{width:100%;margin-top:14px;border:0;border-radius:10px;padding:12px;background:#16a34a;color:#fff;font-weight:900;cursor:pointer}.confirm-relationship:disabled{background:#94a3b8;cursor:not-allowed}
