/* Colors */ :root { --ink: #1a2748; --text: #3b4b7a; --muted: #5a6b92; --line: #e6eaf2; --line-strong: #dce8fc; --surface: #ffffff; --tint: #f3f7fe; --canvas: #f7f9fc; --accent: #054fb3; --focus: #7db6ff; --shadow: rgb(7 32 76 / 0.04); } /* One choice of a few: the pressed button is the current one */ .segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--tint); border: 1px solid var(--line); border-radius: 11px; } .segmented button { font: inherit; font-size: 12.5px; font-weight: 550; color: var(--muted); background: transparent; border: 0; border-radius: 8px; padding: 6px 12px; cursor: pointer; white-space: nowrap; } .segmented button:hover { color: var(--ink); } .segmented button[aria-pressed='true'] { color: var(--accent); background: var(--surface); box-shadow: 0 1px 2px rgb(7 32 76 / 0.1); } .segmented button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; } /* The list: a kind filter, then one row per annotation */ .panel .segmented { margin-bottom: 8px; } .count { margin: 0 0 6px; font-size: 12px; color: var(--muted); } .items { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; } .item { display: flex; flex-direction: column; gap: 2px; width: 100%; font: inherit; font-size: 13px; text-align: left; color: var(--text); background: transparent; border: 0; border-radius: 9px; padding: 8px 10px; cursor: pointer; } .item:hover { background: var(--tint); } .item:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; } .kind { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); } /* The pages and the panel: stacked, and side by side where there's room */ .viewer { container-type: inline-size; display: flex; flex-wrap: wrap; gap: 12px; } .stage, .panel { flex: 1 1 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px var(--shadow), 0 18px 40px -28px rgb(7 32 76 / 0.28); } .stage { height: 340px; background: var(--canvas); } .panel { max-height: 260px; overflow-y: auto; margin: 0; padding: 12px; background: var(--surface); } @container (min-width: 620px) { .stage { flex: 1 1 0; min-width: 0; height: 420px; } .panel { flex: 0 0 260px; max-height: 420px; } } .loading { margin: 0; padding: 24px 0; text-align: center; font-size: 13px; color: var(--muted); }