: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) minmax(260px, 340px); 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; } .history-sidebar { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px; overflow: hidden; border-left: 1px solid var(--line); background: #16191b; } .history-panel { display: flex; flex-direction: column; min-height: 0; height: 100%; } .history-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; } .history-header h2 { margin: 0; font-size: 14px; } .history-header span { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; } .history-controls, .history-group-controls { display: grid; gap: 6px; margin-bottom: 8px; } .history-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); } .history-controls select, .history-group-controls button { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: #101315; color: var(--text); font-size: 11px; height: 28px; } .history-group-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } .history-group-controls button[aria-pressed="false"] { color: var(--muted); background: #171b1d; } #stateGraph { display: block; width: 100%; height: auto; border: 0; background: #101315; image-rendering: auto; } .state-graph-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; border: 1px solid var(--line); border-radius: 6px; background: #101315; } .state-graph-info { min-height: 18px; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .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#world { display: block; width: min(calc(100vh - 32px), 100%); height: min(calc(100vh - 32px), 100%); max-width: 100%; max-height: 100%; aspect-ratio: 1 / 1; 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: min(300px, calc(100% - 16px)); max-height: calc(100% - 16px); overflow: auto; 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: auto; 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: 1100px) { body { overflow: auto; } .app { grid-template-columns: 1fr; height: auto; min-height: 100%; } .sidebar { border-right: 0; border-bottom: 1px solid var(--line); } .history-sidebar { border-left: 0; border-top: 1px solid var(--line); overflow: hidden; } .sim { min-height: 70vh; padding: 10px; } canvas#world { width: min(calc(100vw - 20px), 92vh); height: min(calc(100vw - 20px), 92vh); } .state-graph-scroll { height: 420px; flex: none; } }