/* Colors */ :root { --ink: #1a2748; --muted: #5a6b92; --line: #e6eaf2; --line-strong: #dce8fc; --surface: #ffffff; --tint: #f3f7fe; --canvas: #f7f9fc; --mark: #ffe36e; --focus: #7db6ff; --shadow: rgb(7 32 76 / 0.04); } /* The pages and the panel: stacked, and side by side where there's room */ .workspace { 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: 10px; padding: 12px; background: var(--surface); } @container (min-width: 620px) { .stage { flex: 1 1 0; min-width: 0; height: 420px; } .panel { flex: 0 0 250px; } } /* Inside the panel */ .panel-header { display: flex; align-items: center; justify-content: space-between; } .panel-title { margin: 0; font-size: 14px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; } .close { width: 28px; height: 28px; font: inherit; font-size: 18px; line-height: 1; color: var(--muted); background: transparent; border: 0; border-radius: 8px; cursor: pointer; } .close:hover { color: var(--ink); background: var(--tint); } .page { margin: 0; font-size: 12px; font-weight: 650; color: var(--muted); } .snippet { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); } .snippet mark { background: var(--mark); color: inherit; border-radius: 2px; } .steps { display: flex; gap: 8px; margin-top: auto; } .button { flex: 1; 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: 9px 10px; cursor: pointer; box-shadow: 0 1px 2px var(--shadow); transition: background-color 0.15s ease, border-color 0.15s ease; } .button:hover { background: var(--tint); border-color: var(--line-strong); } .button:disabled { opacity: 0.45; cursor: not-allowed; } .button:focus-visible, .close: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); }