745 lines
15 KiB
CSS
745 lines
15 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) ──────────────────────────── */
|
|
/* lives outside .content so it spans edge-to-edge, matching the top
|
|
stats-bar exactly: flat strip, bottom border, vertical separators
|
|
between cells. kept distinct from the stats.html throughput tiles
|
|
which deliberately still read as standalone cards. */
|
|
|
|
#intel-stats-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
background: var(--bg-card);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
#intel-stats-row .intel-stat-card {
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 0;
|
|
border-right: 1px solid var(--border);
|
|
padding: 14px 28px;
|
|
flex: 0 0 auto;
|
|
min-width: 140px;
|
|
}
|
|
|
|
#intel-stats-row .intel-stat-card:first-child { padding-left: 24px; }
|
|
#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 ── */
|
|
/* on the graph page the whole chrome becomes a vertical flex column so
|
|
the graph + sidebar together fill the remaining viewport. every
|
|
intermediate container needs min-height:0 for the flex child to
|
|
actually grow, and the two children explicitly take 100% of the row. */
|
|
|
|
html, body.page-graph { height: 100%; }
|
|
|
|
body.page-graph {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
overflow: hidden; /* the svg/info panes scroll internally, not the body */
|
|
}
|
|
|
|
body.page-graph main.content {
|
|
flex: 1 1 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
padding: 12px;
|
|
}
|
|
|
|
body.page-graph #intel-content {
|
|
flex: 1 1 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
|
|
body.page-graph #intel-graph-layout {
|
|
flex: 1 1 0;
|
|
min-height: 0;
|
|
height: 100%; /* belt-and-braces for safari flex quirks */
|
|
}
|
|
|
|
/* kill the 600px fallback + let the children stretch to the row */
|
|
body.page-graph #intel-graph-svg-wrap,
|
|
body.page-graph #graph-info {
|
|
height: 100%;
|
|
min-height: 0;
|
|
align-self: stretch;
|
|
}
|
|
|
|
|
|
#intel-graph-layout {
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
#intel-graph-svg-wrap {
|
|
flex: 1 1 0;
|
|
position: relative;
|
|
background: var(--bg-subtle);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
height: 600px; /* fallback for any other page that might reuse this */
|
|
}
|
|
|
|
#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 ── */
|
|
/* compact tiles — just company + ticker + signal badge. everything else
|
|
(summary, drivers, risks, tags, timestamp, references) lives in the
|
|
detail dialog opened via openSignalModal(). */
|
|
|
|
.signal-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
|
gap: 10px;
|
|
}
|
|
|
|
.signal-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 12px 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
cursor: pointer;
|
|
transition: border-color .15s, background .15s;
|
|
}
|
|
|
|
.signal-card:hover {
|
|
border-color: var(--muted-dark);
|
|
background: #13203a;
|
|
}
|
|
|
|
.signal-card-main {
|
|
min-width: 0; /* so the text children can truncate if ever needed */
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.signal-company {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--foreground);
|
|
line-height: 1.2;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.signal-ticker {
|
|
font-size: 11px;
|
|
color: var(--muted-dark);
|
|
letter-spacing: .04em;
|
|
}
|
|
|
|
.signal-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 3px 9px;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: .05em;
|
|
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); }
|
|
|
|
|
|
/* the .signal-tag style is still used inside the detail dialog */
|
|
.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-detail-label {
|
|
font-size: 10.5px;
|
|
text-transform: uppercase;
|
|
letter-spacing: .06em;
|
|
color: var(--muted-dark);
|
|
font-weight: 600;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
|
|
/* ── signal detail modal ─────────────────────────────────────────────────── */
|
|
/* wider than the default modal (920px) and split into two columns so the
|
|
summary/drivers/risks live alongside the reference event list.
|
|
fixed height gives it a predictable aspect ratio and lets each column
|
|
own its own scroll. */
|
|
|
|
.signal-modal {
|
|
width: 920px;
|
|
max-width: 95vw;
|
|
height: 620px;
|
|
max-height: 92vh;
|
|
padding: 0; /* reset default modal padding — we manage it per section */
|
|
overflow: hidden; /* body is the one that scrolls */
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.signal-modal-head {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 22px 28px 4px;
|
|
}
|
|
|
|
.signal-modal-company {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
letter-spacing: -.01em;
|
|
color: var(--foreground);
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.signal-modal-ticker {
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
margin-top: 4px;
|
|
font-weight: 500;
|
|
letter-spacing: .04em;
|
|
}
|
|
|
|
.signal-modal-head .signal-badge {
|
|
font-size: 13px;
|
|
padding: 6px 14px;
|
|
}
|
|
|
|
.signal-modal-tags {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
padding: 10px 28px 18px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
|
|
.signal-modal-body {
|
|
flex: 1;
|
|
display: grid;
|
|
grid-template-columns: 1.2fr 1fr;
|
|
min-height: 0; /* required so the columns inside can scroll */
|
|
}
|
|
|
|
.signal-modal-col {
|
|
padding: 20px 24px;
|
|
overflow-y: auto;
|
|
min-height: 0;
|
|
}
|
|
|
|
.signal-modal-col-main {
|
|
border-right: 1px solid var(--border);
|
|
background: var(--bg-card);
|
|
}
|
|
|
|
.signal-modal-col-refs {
|
|
background: var(--bg-subtle);
|
|
}
|
|
|
|
|
|
.signal-modal-section {
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.signal-modal-section:last-child { margin-bottom: 0; }
|
|
|
|
.signal-modal-section p,
|
|
#signal-modal-summary {
|
|
font-size: 13px;
|
|
color: var(--foreground);
|
|
line-height: 1.6;
|
|
margin: 0;
|
|
}
|
|
|
|
.signal-modal-section ul {
|
|
padding-left: 18px;
|
|
margin: 0;
|
|
font-size: 13px;
|
|
color: var(--muted);
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.signal-modal-meta-row {
|
|
display: flex;
|
|
gap: 18px;
|
|
color: var(--muted-dark);
|
|
font-size: 11.5px;
|
|
padding-top: 8px;
|
|
border-top: 1px dashed var(--border);
|
|
}
|
|
|
|
|
|
.signal-modal .modal-footer {
|
|
margin: 0;
|
|
padding: 14px 24px;
|
|
border-top: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
|
|
/* responsive — stack the two columns on narrow screens */
|
|
@media (max-width: 720px) {
|
|
.signal-modal-body {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.signal-modal-col-main {
|
|
border-right: none;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
}
|
|
|
|
|
|
.signal-ref-event {
|
|
border-left: 2px solid var(--border);
|
|
padding: 4px 0 10px 10px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.signal-ref-event:last-child { margin-bottom: 0; }
|
|
|
|
.signal-ref-event-title {
|
|
font-size: 13px;
|
|
color: var(--foreground);
|
|
font-weight: 600;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
align-items: baseline;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.signal-ref-articles {
|
|
list-style: none;
|
|
padding-left: 0;
|
|
margin: 6px 0 0;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.signal-ref-articles li {
|
|
padding: 4px 0;
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
|
|
.signal-ref-articles li:last-child { border-bottom: none; }
|
|
|
|
.signal-ref-articles a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
display: block;
|
|
}
|
|
|
|
.signal-ref-articles a:hover { text-decoration: underline; }
|
|
|
|
.signal-ref-source {
|
|
margin-left: 6px;
|
|
font-size: 10.5px;
|
|
color: var(--muted-dark);
|
|
text-transform: uppercase;
|
|
letter-spacing: .04em;
|
|
}
|
|
|
|
.signal-ref-date {
|
|
font-size: 10.5px;
|
|
color: var(--muted-dark);
|
|
margin-left: 6px;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.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;
|
|
}
|