566 lines
11 KiB
CSS
566 lines
11 KiB
CSS
/* intelligence-specific styling: stat cards, detail body, graph, signals */
|
|
|
|
|
|
/* ── intel stats ── */
|
|
/* default card — used by the stats.html throughput tiles as standalone cards */
|
|
|
|
.intel-stat-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
padding: 14px 18px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-width: 130px;
|
|
}
|
|
|
|
.intel-stat-card .label {
|
|
font-size: 11px;
|
|
color: var(--muted-dark);
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: .06em;
|
|
}
|
|
|
|
.intel-stat-card .value {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: var(--foreground);
|
|
letter-spacing: -.02em;
|
|
line-height: 1;
|
|
}
|
|
|
|
|
|
/* ── intel stats row (the 6-up on intel pages) ──────────────────────────── */
|
|
/* one integrated strip with edge-to-edge separators, mirrors the top
|
|
stats-bar. we wrap the ordinary .intel-stat-card children and strip
|
|
their individual borders + radius so the container reads as one unit. */
|
|
|
|
#intel-stats-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
margin-bottom: 24px;
|
|
gap: 0;
|
|
}
|
|
|
|
#intel-stats-row .intel-stat-card {
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 0;
|
|
border-right: 1px solid var(--border);
|
|
padding: 16px 28px;
|
|
flex: 0 0 auto;
|
|
min-width: 140px;
|
|
}
|
|
|
|
#intel-stats-row .intel-stat-card:last-child {
|
|
border-right: none;
|
|
}
|
|
|
|
|
|
/* ── intel detail body (modal) ── */
|
|
|
|
.intel-body {
|
|
font-size: 13px;
|
|
line-height: 1.7;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
background: var(--bg-subtle);
|
|
padding: 14px;
|
|
border-radius: var(--radius);
|
|
border: 1px solid var(--border);
|
|
font-family: "SF Mono", "Fira Code", monospace;
|
|
}
|
|
|
|
|
|
/* ── graph view ── */
|
|
|
|
#intel-graph-layout {
|
|
display: flex;
|
|
gap: 14px;
|
|
}
|
|
|
|
#intel-graph-svg-wrap {
|
|
flex: 1;
|
|
position: relative;
|
|
background: var(--bg-subtle);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
height: 600px;
|
|
}
|
|
|
|
#intel-graph-svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
cursor: grab;
|
|
}
|
|
#intel-graph-svg:active { cursor: grabbing; }
|
|
|
|
|
|
#graph-controls {
|
|
position: absolute;
|
|
top: 10px;
|
|
left: 10px;
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
z-index: 10;
|
|
}
|
|
|
|
#graph-search {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
color: var(--foreground);
|
|
padding: 5px 9px;
|
|
border-radius: var(--radius);
|
|
font-size: 12px;
|
|
min-width: 170px;
|
|
outline: none;
|
|
font-family: inherit;
|
|
}
|
|
#graph-search:focus { border-color: var(--accent); }
|
|
#graph-search::placeholder { color: var(--muted-dark); }
|
|
|
|
#graph-chips {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
.graph-chip {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
color: var(--muted);
|
|
padding: 4px 10px;
|
|
border-radius: var(--radius);
|
|
font-size: 11px;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
transition: color 120ms, background 120ms, border-color 120ms;
|
|
}
|
|
.graph-chip:hover { color: var(--foreground); }
|
|
.graph-chip.active {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
#graph-legend {
|
|
position: absolute;
|
|
bottom: 10px;
|
|
left: 10px;
|
|
display: flex;
|
|
gap: 14px;
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 6px 10px;
|
|
z-index: 10;
|
|
}
|
|
|
|
.graph-legend-dot {
|
|
display: inline-block;
|
|
width: 12px;
|
|
height: 3px;
|
|
border-radius: 2px;
|
|
margin-right: 5px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
#graph-info {
|
|
width: 270px;
|
|
flex-shrink: 0;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
padding: 16px;
|
|
overflow-y: auto;
|
|
height: 600px;
|
|
}
|
|
|
|
#graph-info-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
#graph-info-sector {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
border-radius: 11px;
|
|
font-size: 11px;
|
|
background: var(--border);
|
|
color: var(--foreground);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.graph-group-title {
|
|
margin-top: 14px;
|
|
font-size: 10.5px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.6px;
|
|
color: var(--muted);
|
|
padding-bottom: 3px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.graph-conn-row {
|
|
font-size: 12px;
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
|
|
.graph-conn-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.graph-conn-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 0;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.graph-conn-head:hover .graph-conn-label { color: var(--accent); }
|
|
|
|
.graph-conn-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.graph-conn-toggle {
|
|
color: var(--muted-dark);
|
|
font-size: 10px;
|
|
width: 10px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.graph-conn-row.expanded .graph-conn-toggle { color: var(--accent); }
|
|
|
|
.graph-conn-sector {
|
|
color: var(--muted-dark);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.graph-conn-body {
|
|
display: none;
|
|
padding: 4px 0 10px 10px;
|
|
border-left: 2px solid var(--border);
|
|
margin-left: 2px;
|
|
}
|
|
|
|
.graph-conn-row.expanded .graph-conn-body {
|
|
display: block;
|
|
}
|
|
|
|
.graph-evidence-loading,
|
|
.graph-evidence-error,
|
|
.graph-evidence-empty {
|
|
color: var(--muted-dark);
|
|
font-size: 11px;
|
|
padding: 4px 0;
|
|
}
|
|
.graph-evidence-error { color: var(--destructive-fg); }
|
|
|
|
.graph-evidence-stats {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
padding: 2px 0 6px;
|
|
}
|
|
|
|
.graph-evidence-badge {
|
|
display: inline-block;
|
|
padding: 1px 7px;
|
|
border-radius: 10px;
|
|
background: var(--border);
|
|
color: var(--foreground);
|
|
font-size: 10px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.4px;
|
|
}
|
|
|
|
.graph-evidence-section {
|
|
margin-top: 8px;
|
|
margin-bottom: 4px;
|
|
font-size: 10px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: var(--muted-dark);
|
|
}
|
|
|
|
.graph-evidence-fact {
|
|
padding: 5px 0;
|
|
border-bottom: 1px dashed var(--border-light);
|
|
}
|
|
.graph-evidence-fact:last-child { border-bottom: none; }
|
|
|
|
.graph-evidence-claim {
|
|
font-size: 11.5px;
|
|
color: var(--foreground);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.graph-evidence-meta {
|
|
font-size: 10.5px;
|
|
color: var(--muted-dark);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.graph-evidence-event {
|
|
margin: 4px 0;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.graph-evidence-event > summary {
|
|
cursor: pointer;
|
|
list-style: none;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding: 4px 0;
|
|
color: var(--foreground);
|
|
}
|
|
.graph-evidence-event > summary::-webkit-details-marker { display: none; }
|
|
.graph-evidence-event > summary:hover { color: var(--accent); }
|
|
|
|
.graph-evidence-event-title {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.graph-evidence-event-id {
|
|
color: var(--muted-dark);
|
|
font-size: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.graph-evidence-articles {
|
|
list-style: none;
|
|
padding: 4px 0 6px 10px;
|
|
margin: 0;
|
|
border-left: 1px solid var(--border-light);
|
|
}
|
|
|
|
.graph-evidence-articles li {
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.graph-evidence-articles a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
font-size: 11px;
|
|
line-height: 1.4;
|
|
display: block;
|
|
}
|
|
.graph-evidence-articles a:hover { text-decoration: underline; }
|
|
|
|
.graph-evidence-article-meta {
|
|
color: var(--muted-dark);
|
|
font-size: 10px;
|
|
margin-top: 1px;
|
|
}
|
|
|
|
.graph-empty-msg {
|
|
color: var(--muted-dark);
|
|
font-size: 13px;
|
|
margin: 0;
|
|
}
|
|
|
|
.graph-node-label {
|
|
font-size: 11px;
|
|
fill: var(--foreground);
|
|
pointer-events: none;
|
|
user-select: none;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.graph-node-label-untracked {
|
|
fill: var(--muted-dark);
|
|
font-size: 10px;
|
|
}
|
|
|
|
.ig-label-bg {
|
|
fill: var(--bg-subtle);
|
|
fill-opacity: 0.8;
|
|
}
|
|
|
|
.graph-conn-row.untracked .graph-conn-head {
|
|
cursor: default;
|
|
}
|
|
.graph-conn-row.untracked .graph-conn-head:hover .graph-conn-label {
|
|
color: inherit;
|
|
}
|
|
.graph-conn-row.untracked .graph-conn-label {
|
|
color: var(--muted);
|
|
}
|
|
.graph-conn-row.untracked .graph-conn-sector {
|
|
font-style: italic;
|
|
}
|
|
|
|
|
|
/* ── signal cards ── */
|
|
|
|
.signal-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 14px;
|
|
}
|
|
|
|
.signal-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
transition: border-color .15s;
|
|
}
|
|
|
|
.signal-card:hover { border-color: var(--muted-dark); }
|
|
|
|
.signal-card-glance {
|
|
padding: 16px;
|
|
}
|
|
|
|
.signal-card-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
margin-bottom: 10px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.signal-company {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--foreground);
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.signal-ticker {
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.signal-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 4px 10px;
|
|
border-radius: 5px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
letter-spacing: .04em;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.signal-badge.BUY { background: rgba(20,83,45,.6); color: #4ade80; border: 1px solid rgba(74,222,128,.2); }
|
|
.signal-badge.HOLD { background: rgba(92,66,14,.6); color: #fbbf24; border: 1px solid rgba(251,191,36,.2); }
|
|
.signal-badge.SELL { background: rgba(127,29,29,.6); color: #f87171; border: 1px solid rgba(248,113,113,.2); }
|
|
|
|
.signal-tags {
|
|
display: flex;
|
|
gap: 5px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.signal-tag {
|
|
background: var(--bg-subtle);
|
|
border: 1px solid var(--border);
|
|
color: var(--muted);
|
|
padding: 2px 7px;
|
|
border-radius: 3px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.signal-summary {
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
line-height: 1.5;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.signal-ts {
|
|
font-size: 10.5px;
|
|
color: var(--muted-dark);
|
|
}
|
|
|
|
.signal-card-detail {
|
|
display: none;
|
|
padding: 0 16px 16px;
|
|
border-top: 1px solid var(--border-light);
|
|
padding-top: 14px;
|
|
}
|
|
|
|
.signal-card.expanded .signal-card-detail { display: block; }
|
|
|
|
.signal-detail-section {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.signal-detail-label {
|
|
font-size: 10.5px;
|
|
text-transform: uppercase;
|
|
letter-spacing: .06em;
|
|
color: var(--muted-dark);
|
|
font-weight: 600;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.signal-detail-section ul {
|
|
padding-left: 16px;
|
|
margin: 0;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.signal-detail-section p {
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
line-height: 1.6;
|
|
margin: 0;
|
|
}
|
|
|
|
.signal-regen-btn {
|
|
margin-top: 10px;
|
|
font-size: 12px;
|
|
padding: 5px 12px;
|
|
background: transparent;
|
|
border-color: var(--border);
|
|
color: var(--muted);
|
|
}
|
|
|
|
.signal-regen-btn:hover { color: var(--foreground); background: var(--bg-subtle); }
|
|
|
|
.signal-empty {
|
|
color: var(--muted-dark);
|
|
font-size: 13px;
|
|
padding: 40px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
|
|
/* ── intel unavailable notice ── */
|
|
|
|
.intel-unavailable {
|
|
color: var(--muted);
|
|
padding: 24px 0;
|
|
}
|