lilith-platform.live/codebase/@features/user-data/dashboard-network/src/styles.css
2026-05-15 22:00:01 -07:00

91 lines
4.3 KiB
CSS

:root {
--bg: #1a1614;
--bg-2: #25201d;
--bg-3: #2f2925;
--fg: #ede4d6;
--fg-dim: #9d8f7a;
--accent: #d9b08c;
--att: #c97b7b;
--sansonnet: #b3a3c4;
--cocotte: #d9b08c;
--transq: #7eb09f;
--lilith: #d4a5a5;
--rule: #3a342f;
}
* { box-sizing: border-box; }
html, body, #root { margin: 0; padding: 0; min-height: 100%; background: var(--bg); color: var(--fg); }
body { font: 14px/1.45 'Inter', system-ui, sans-serif; }
a { color: var(--accent); }
header {
display: flex; align-items: baseline; gap: 1.25rem;
padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--rule);
}
header h1 { margin: 0; font-size: 1.125rem; letter-spacing: 0.04em; font-weight: 500; }
header .sub { color: var(--fg-dim); font-size: 0.85rem; }
header nav { margin-left: auto; display: flex; gap: 0.5rem; }
header nav button {
background: transparent; border: 1px solid var(--rule); color: var(--fg-dim);
padding: 0.35rem 0.75rem; border-radius: 0.25rem; cursor: pointer;
font: inherit;
}
header nav button.on { background: var(--bg-3); color: var(--fg); border-color: var(--accent); }
main { padding: 1.5rem; display: grid; gap: 1.5rem; max-width: 1400px; }
@media (min-width: 1100px) { main { grid-template-columns: 1fr 1fr; } }
.panel {
background: var(--bg-2);
border: 1px solid var(--rule);
border-radius: 0.5rem;
padding: 1.25rem;
}
.panel h2 { margin: 0 0 0.75rem; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-dim); }
.panel .sub { color: var(--fg-dim); font-size: 0.8rem; margin-bottom: 1rem; }
.panel.full { grid-column: 1 / -1; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--rule); }
th { color: var(--fg-dim); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: none; }
tr.idle td { color: var(--fg-dim); }
.bar-row { display: grid; grid-template-columns: 9rem 1fr auto; align-items: center; gap: 0.75rem; padding: 0.35rem 0; }
.bar-row .label { color: var(--fg); }
.bar-row .track { background: var(--bg-3); height: 0.5rem; border-radius: 0.25rem; overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 0.25rem; }
.bar-row .val { font-variant-numeric: tabular-nums; color: var(--fg-dim); min-width: 4rem; text-align: right; }
.pill { font-size: 0.7rem; padding: 0.1rem 0.4rem; border-radius: 0.25rem; background: var(--bg-3); color: var(--fg-dim); }
.empty { color: var(--fg-dim); padding: 1rem; text-align: center; font-style: italic; }
.matrix { display: grid; gap: 0.4rem; }
.matrix .cell { padding: 0.6rem 0.75rem; background: var(--bg-3); border-radius: 0.25rem; display: flex; justify-content: space-between; align-items: center; }
.matrix .cell .pair { color: var(--fg-dim); font-size: 0.85rem; }
.matrix .cell .v { font-variant-numeric: tabular-nums; font-weight: 500; }
svg.sankey text { fill: var(--fg); font: 11px sans-serif; }
svg.sankey .node rect { stroke: var(--bg); stroke-width: 1; }
svg.sankey .link { fill: none; opacity: 0.4; }
svg.sankey .link:hover { opacity: 0.7; }
.status-bar { padding: 0.5rem 1.5rem; color: var(--fg-dim); font-size: 0.78rem; border-top: 1px solid var(--rule); }
/* Corp drill-down (O7) */
a.bar-row { text-decoration: none; color: inherit; border-radius: 0.25rem; padding-left: 0.25rem; padding-right: 0.25rem; margin-left: -0.25rem; margin-right: -0.25rem; transition: background 0.12s ease; }
a.bar-row.bar-row--link { cursor: pointer; }
a.bar-row.bar-row--link:hover { background: var(--bg-3); }
a.bar-row.bar-row--link:hover .label { color: var(--accent); }
.bar-row.bar-row--disabled { cursor: not-allowed; opacity: 0.6; }
/* Realtime panel */
.rt-dot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); }
.rt-dot--pulse { animation: rt-pulse 1.2s ease-out infinite; }
@keyframes rt-pulse {
0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
70% { box-shadow: 0 0 0 0.5rem color-mix(in srgb, var(--accent) 0%, transparent); }
100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
}