/* Colors */ :root { --ink: #1a2748; --muted: #5a6b92; --line: #e6eaf2; --line-strong: #dce8fc; --surface: #ffffff; --tint: #f3f7fe; --canvas: #f7f9fc; --accent: #054fb3; --accent-tint: #e7f0fe; --pin: #e5484d; --focus: #7db6ff; --shadow: rgb(7 32 76 / 0.04); } /* The tools, above the pages */ .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; } .segmented { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 1px 2px var(--shadow); } .segment, .button { font: inherit; font-size: 13px; font-weight: 550; line-height: 1; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; } .segment { min-width: 64px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; padding: 8px 12px; } .segment:hover { color: var(--ink); background: var(--tint); } .segment[aria-pressed='true'] { color: var(--accent); background: var(--accent-tint); } .button { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 10px 13px; box-shadow: 0 1px 2px var(--shadow); } .button:hover { background: var(--tint); border-color: var(--line-strong); } .button:disabled { opacity: 0.45; cursor: not-allowed; } .segment:focus-visible, .button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; } .readout { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; } /* A pin: its tip on the point that was clicked */ .pin { position: absolute; box-sizing: border-box; min-width: 24px; height: 24px; padding: 0 5px; transform: translate(-50%, calc(-100% - 7px)); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--surface); background: var(--pin); border: 2px solid var(--surface); border-radius: 999px; box-shadow: 0 2px 6px rgb(7 32 76 / 0.3); pointer-events: none; } .pin::after { content: ''; position: absolute; left: 50%; top: 100%; border: 6px solid transparent; border-top-color: var(--pin); transform: translate(-50%, 1px); } /* The pages */ .stage { height: 420px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); box-shadow: 0 1px 2px var(--shadow), 0 18px 40px -28px rgb(7 32 76 / 0.28); } .loading { margin: 0; padding: 24px 0; text-align: center; font-size: 13px; color: var(--muted); }