*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
background: #080a0f;
color: #e2e8f0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: 14px;
height: 100vh;
overflow: hidden;
display: flex;
flex-direction: column;
}
header {
background: #0d1117;
border-bottom: 1px solid #1e293b;
padding: 12px 24px;
flex-shrink: 0;
}
header h1 {
font-size: 20px;
font-weight: 700;
color: #f1f5f9;
margin-bottom: 4px;
}
header .summary {
color: #94a3b8;
font-size: 13px;
}
#graph {
width: 100%;
flex: 1;
position: relative;
overflow: hidden;
}
#graph svg {
width: 100%;
height: 100%;
cursor: grab;
}
#graph svg.panning {
cursor: grabbing;
}
.tooltip {
position: absolute;
display: none;
background: #1e293b;
border: 1px solid #334155;
border-radius: 6px;
padding: 8px 12px;
color: #e2e8f0;
font-size: 12px;
pointer-events: none;
z-index: 100;
white-space: nowrap;
box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.tooltip .name { font-weight: 600; font-size: 13px; color: #f1f5f9; }
.tooltip .detail { color: #94a3b8; margin-top: 2px; }
.tabs {
display: flex;
gap: 0;
background: #0d1117;
border-bottom: 1px solid #1e293b;
padding: 0 24px;
flex-shrink: 0;
}
.tab {
background: transparent;
border: none;
color: #94a3b8;
padding: 10px 20px;
cursor: pointer;
font-size: 14px;
border-bottom: 2px solid transparent;
transition: color 0.2s, border-color 0.2s;
}
.tab:hover { color: #e2e8f0; }
.tab.active {
color: #3b82f6;
border-bottom-color: #3b82f6;
}
.tab-content { display: none; flex: 1; overflow: hidden; }
.tab-content.active { display: flex; flex-direction: column; }
#tab-matrix, #tab-methodology { overflow-y: auto; }
.filters {
background: #0d1117;
padding: 8px 24px;
display: flex;
gap: 16px;
border-bottom: 1px solid #1e293b;
flex-shrink: 0;
}
.filters label {
color: #94a3b8;
font-size: 13px;
cursor: pointer;
display: flex;
align-items: center;
gap: 4px;
}
.filters input[type="checkbox"] {
accent-color: #3b82f6;
}
#matrix {
padding: 24px;
overflow-x: auto;
overflow-y: visible;
}
#matrix table {
border-collapse: collapse;
margin: 0 auto;
}
#matrix th {
padding: 6px 10px;
color: #94a3b8;
font-size: 12px;
font-weight: 600;
white-space: nowrap;
}
#matrix td {
width: 48px;
height: 48px;
text-align: center;
font-size: 11px;
color: #e2e8f0;
border: 1px solid #1e293b;
position: relative;
}
#matrix td.matrix-cell {
cursor: default;
}
#matrix td.diagonal {
background: #0d1117;
}
.methodology {
max-width: 700px;
margin: 0 auto;
padding: 32px 24px;
line-height: 1.6;
overflow-x: hidden;
word-wrap: break-word;
}
.methodology h2 {
font-size: 18px;
font-weight: 700;
color: #f1f5f9;
margin-bottom: 8px;
}
.methodology .intro {
color: #94a3b8;
margin-bottom: 24px;
font-size: 14px;
}
.method-section {
margin-bottom: 28px;
padding-bottom: 20px;
border-bottom: 1px solid #1e293b;
}
.method-section:last-child {
border-bottom: none;
}
.method-section h3 {
font-size: 15px;
font-weight: 600;
color: #e2e8f0;
margin-bottom: 8px;
}
.method-section p {
color: #cbd5e1;
margin-bottom: 8px;
font-size: 13px;
}
.method-section ol, .method-section ul {
color: #cbd5e1;
margin: 8px 0 12px 20px;
font-size: 13px;
}
.method-section li {
margin-bottom: 4px;
}
.method-section .formula {
background: #0d1117;
border: 1px solid #1e293b;
border-radius: 4px;
padding: 8px 12px;
font-family: 'SF Mono', 'Fira Code', monospace;
font-size: 12px;
color: #7dd3fc;
margin: 8px 0;
overflow-x: auto;
white-space: nowrap;
}
.legend {
position: absolute;
bottom: 16px;
left: 16px;
background: rgba(13,17,23,0.92);
border: 1px solid #1e293b;
border-radius: 8px;
padding: 12px 16px;
font-size: 12px;
color: #94a3b8;
z-index: 50;
max-width: 260px;
}
.legend h3 {
font-size: 12px;
font-weight: 600;
color: #e2e8f0;
margin-bottom: 8px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.legend-section {
margin-bottom: 10px;
}
.legend-section:last-child {
margin-bottom: 0;
}
.legend-section .label {
font-weight: 600;
color: #cbd5e1;
margin-bottom: 4px;
}
.legend-row {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 3px;
}
.legend-swatch {
width: 24px;
height: 4px;
border-radius: 2px;
flex-shrink: 0;
}
.legend-circle {
border-radius: 50%;
flex-shrink: 0;
background: #3b82f6;
border: 1.5px solid #60a5fa;
}
.matrix-legend {
display: flex;
align-items: center;
gap: 8px;
margin: 0 auto 16px auto;
justify-content: center;
font-size: 12px;
color: #94a3b8;
}
.matrix-legend .gradient {
width: 180px;
height: 12px;
border-radius: 3px;
border: 1px solid #1e293b;
}