/* Magpie's own look. The launcher passes the window's real colours as --magpie-* variables; the values below are only fallbacks. */ :root { --magpie-bg: #f5f6f8; --magpie-card: #ffffff; --magpie-fg: #23262e; --magpie-muted: #6b7280; --magpie-line: #e2e4e9; --magpie-accent: #5b5bd6; --magpie-green: #1f7a4d; --magpie-red: #b3352f; color-scheme: light; } :root[data-theme="dark"] { --magpie-bg: #15171c; --magpie-card: #1c1f26; --magpie-fg: #e8e9ee; --magpie-muted: #9aa0aa; --magpie-line: #2c3038; --magpie-accent: #8f8ff0; --magpie-green: #5ac08a; --magpie-red: #e0716a; color-scheme: dark; } * { box-sizing: border-box; } body { margin: 0; background: var(--magpie-bg); color: var(--magpie-fg); font: 13px/1.5 var( --magpie-font, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif ); -webkit-font-smoothing: antialiased; } main { display: flex; flex-direction: column; gap: 12px; max-width: 960px; margin: 0 auto; padding: 20px 24px; } h1, h2, p { margin: 0; } h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; } h2 { font-size: 13px; font-weight: 600; } .muted { color: var(--magpie-muted); font-size: 12px; } header, .tools, .range, .chart-head, .axis, footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; } .range { justify-content: flex-start; } .card { padding: 14px 16px; border: 1px solid var(--magpie-line); border-radius: 10px; background: var(--magpie-card); } button, select, input { min-height: 30px; padding: 3px 10px; border: 1px solid var(--magpie-line); border-radius: 8px; background: var(--magpie-card); color: inherit; font: inherit; } button, select { cursor: pointer; } button:hover:not(:disabled) { border-color: var(--magpie-muted); } button:disabled { cursor: default; } :focus-visible { outline: 2px solid var(--magpie-accent); outline-offset: 1px; } svg { width: 16px; height: 16px; vertical-align: -3px; } /* Magpie's own period control: one pill, the chosen period raised in it. */ .segmented { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--magpie-line); } .segmented button { min-height: 26px; padding: 2px 12px; border: 0; border-radius: 7px; background: none; color: var(--magpie-muted); } .segmented button:hover { color: var(--magpie-fg); } .segmented button[aria-pressed="true"] { background: var(--magpie-card); color: var(--magpie-fg); font-weight: 600; } button.icon { padding: 3px 6px; border-color: transparent; background: none; color: var(--magpie-muted); } button.icon.spin svg { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } @media (prefers-reduced-motion: reduce) { button.icon.spin svg { animation: none; } } .errors { border-color: var(--magpie-red); color: var(--magpie-red); overflow-wrap: anywhere; } #board { display: flex; flex-direction: column; gap: 12px; } .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 0; } .tiles div { padding: 12px 16px; border: 1px solid var(--magpie-line); border-radius: 10px; background: var(--magpie-card); } dt { color: var(--magpie-muted); font-size: 12px; } dd { margin: 2px 0 0; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; } .chart-head { margin-bottom: 12px; } #readout { font-variant-numeric: tabular-nums; } .bars { display: flex; align-items: stretch; gap: 2px; height: 120px; border-bottom: 1px solid var(--magpie-line); } /* The whole column is the hover target, not only the painted part. */ .bar { flex: 1 1 0; display: flex; align-items: flex-end; min-width: 0; } .bar i { width: 100%; min-height: 0; border-radius: 3px 3px 0 0; background: var(--magpie-accent); } .bar:hover i, .bar:focus-visible i { filter: brightness(1.25); } .bar:focus-visible { outline-offset: -1px; } .bars.dense { gap: 0; } .bars.dense .bar i { border-radius: 0; } .axis { margin-top: 6px; } .scroll { overflow-x: auto; } table { width: 100%; margin-top: 8px; border-collapse: collapse; font-variant-numeric: tabular-nums; } th, td { padding: 7px 0 7px 16px; text-align: right; white-space: nowrap; font-weight: 400; } th:first-child { padding-left: 0; text-align: left; } thead th { color: var(--magpie-muted); font-size: 12px; } tbody tr { border-top: 1px solid var(--magpie-line); } details { color: var(--magpie-muted); } summary { cursor: pointer; } details p, details ul { max-width: 72ch; margin: 8px 0 0; } ul { padding-left: 18px; } footer { overflow-wrap: anywhere; } [hidden] { display: none !important; } @media (max-width: 520px) { main { padding: 16px; } }