288 lines
4.2 KiB
CSS
288 lines
4.2 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
--bg: #111315;
|
|
--panel: #1b1f22;
|
|
--panel-2: #22282c;
|
|
--line: #31383d;
|
|
--text: #eef1ed;
|
|
--muted: #a8b1aa;
|
|
--accent: #69b578;
|
|
--accent-2: #e3b341;
|
|
--danger: #d35f54;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
select {
|
|
font: inherit;
|
|
}
|
|
|
|
.app {
|
|
display: grid;
|
|
grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
min-width: 0;
|
|
padding: 14px;
|
|
overflow: auto;
|
|
border-right: 1px solid var(--line);
|
|
background: #16191b;
|
|
}
|
|
|
|
.brand h1 {
|
|
margin: 0 0 6px;
|
|
font-size: 24px;
|
|
line-height: 1.05;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.brand p {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.panel {
|
|
padding: 12px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: var(--panel);
|
|
}
|
|
|
|
.row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
button,
|
|
select {
|
|
min-height: 34px;
|
|
border: 1px solid #3d464b;
|
|
border-radius: 6px;
|
|
background: var(--panel-2);
|
|
color: var(--text);
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
}
|
|
|
|
button:hover,
|
|
select:hover {
|
|
border-color: #59656b;
|
|
}
|
|
|
|
button.primary {
|
|
background: #254b30;
|
|
border-color: #3d794b;
|
|
}
|
|
|
|
.controls label {
|
|
display: grid;
|
|
gap: 6px;
|
|
margin-top: 11px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
input[type="range"] {
|
|
width: 100%;
|
|
accent-color: var(--accent);
|
|
}
|
|
|
|
select {
|
|
width: 100%;
|
|
padding: 0 9px;
|
|
}
|
|
|
|
.stats dl {
|
|
display: grid;
|
|
gap: 7px;
|
|
margin: 0;
|
|
}
|
|
|
|
.stats div {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
min-height: 22px;
|
|
}
|
|
|
|
.stats dt {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.stats dd {
|
|
margin: 0;
|
|
font-variant-numeric: tabular-nums;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.ledger {
|
|
min-height: 0;
|
|
}
|
|
|
|
.ledger h2 {
|
|
margin: 0 0 10px;
|
|
font-size: 14px;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.ledger ol {
|
|
display: grid;
|
|
gap: 7px;
|
|
max-height: 260px;
|
|
margin: 0;
|
|
padding-left: 22px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.ledger li {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.lineage-chip {
|
|
display: inline-block;
|
|
width: 10px;
|
|
height: 10px;
|
|
margin-right: 7px;
|
|
border-radius: 2px;
|
|
vertical-align: -1px;
|
|
}
|
|
|
|
.sim {
|
|
position: relative;
|
|
display: grid;
|
|
place-items: center;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
padding: 16px;
|
|
background: #101214;
|
|
}
|
|
|
|
canvas {
|
|
display: block;
|
|
width: min(calc(100vh - 32px), calc(100vw - 380px));
|
|
height: min(calc(100vh - 32px), calc(100vw - 380px));
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
border: 1px solid #293035;
|
|
background: #0b0d0f;
|
|
image-rendering: pixelated;
|
|
}
|
|
|
|
.legend {
|
|
position: absolute;
|
|
right: 24px;
|
|
bottom: 20px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
max-width: min(560px, calc(100% - 48px));
|
|
padding: 8px 10px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: rgba(20, 23, 25, 0.92);
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.legend span {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.legend i {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.tooltip {
|
|
position: absolute;
|
|
z-index: 3;
|
|
min-width: 180px;
|
|
max-width: 260px;
|
|
padding: 8px 10px;
|
|
border: 1px solid #435057;
|
|
border-radius: 6px;
|
|
background: rgba(15, 18, 20, 0.96);
|
|
color: var(--text);
|
|
font-size: 11px;
|
|
line-height: 1.35;
|
|
pointer-events: none;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
|
|
}
|
|
|
|
.tooltip strong {
|
|
display: block;
|
|
margin-bottom: 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.tooltip span {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 14px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
@media (max-width: 820px) {
|
|
body {
|
|
overflow: auto;
|
|
}
|
|
|
|
.app {
|
|
grid-template-columns: 1fr;
|
|
height: auto;
|
|
min-height: 100%;
|
|
}
|
|
|
|
.sidebar {
|
|
border-right: 0;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.sim {
|
|
min-height: 70vh;
|
|
padding: 10px;
|
|
}
|
|
|
|
canvas {
|
|
width: min(calc(100vw - 20px), 92vh);
|
|
height: min(calc(100vw - 20px), 92vh);
|
|
}
|
|
}
|