/* Colors */ :root { --ink: #1a2748; --muted: #5a6b92; --line: #e6eaf2; --line-strong: #dce8fc; --surface: #ffffff; --tint: #f3f7fe; --canvas: #f7f9fc; --accent: #054fb3; --focus: #7db6ff; --shadow: rgb(7 32 76 / 0.04); } /* The pages and the settings 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 { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 14px; background: var(--surface); } @container (min-width: 620px) { .stage { flex: 1 1 0; min-width: 0; height: 440px; } .panel { flex: 0 0 220px; align-self: flex-start; } } .hint { font-size: 13px; color: var(--muted); } /* One setting: a label over its input, or a checkbox beside its label */ .setting { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); } .input { font: inherit; font-size: 13px; font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; } .input:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgb(125 182 255 / 0.35); } .check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); } .check input { accent-color: var(--accent); } .button { font: inherit; font-size: 13px; font-weight: 550; line-height: 1; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 8px 13px; cursor: pointer; box-shadow: 0 1px 2px var(--shadow); } .button:hover { background: var(--tint); border-color: var(--line-strong); } .button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; } .loading { margin: 0; padding: 24px 0; text-align: center; font-size: 13px; color: var(--muted); }