/* Colors */ :root { --ink: #1a2748; --muted: #5a6b92; --line: #e6eaf2; --line-strong: #dce8fc; --surface: #ffffff; --tint: #f3f7fe; --canvas: #f7f9fc; --accent: #3858e9; --focus: #7db6ff; --shadow: rgb(7 32 76 / 0.04); } /* The bookmarks beside the pages */ .layout { display: grid; grid-template-columns: 220px 1fr; gap: 14px; } .bookmarks { display: flex; flex-direction: column; height: 420px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px var(--shadow); overflow: hidden; } .bookmarks-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--line); } .bookmarks-title { margin: 0; font-size: 13px; font-weight: 650; color: var(--ink); } .empty { margin: 0; padding: 18px 14px; font-size: 12.5px; color: var(--muted); } /* One row per bookmark: the one being read is marked, the picked one tinted */ .list { margin: 0; padding: 6px; list-style: none; overflow-y: auto; } .row { position: relative; display: flex; align-items: center; border-radius: 8px; } .row[data-selected] { background: var(--tint); } .row[data-current]::before { content: ''; position: absolute; inset: 6px auto 6px 0; width: 3px; border-radius: 3px; background: var(--accent); } .row-title { flex: 1; min-width: 0; font: inherit; font-size: 13px; text-align: start; color: var(--ink); background: none; border: 0; padding: 7px 10px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .row-delete { font: inherit; font-size: 16px; line-height: 1; color: var(--muted); background: none; border: 0; border-radius: 6px; padding: 4px 8px; cursor: pointer; opacity: 0; } .row:hover .row-delete, .row-delete:focus-visible { opacity: 1; } .row-delete:hover { color: var(--ink); background: var(--line); } .button { font: inherit; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 6px 12px; cursor: pointer; box-shadow: 0 1px 2px var(--shadow); } .button.primary { color: #ffffff; background: var(--accent); border-color: var(--accent); } .button:focus-visible, .row-title:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; } .button:disabled, .row-delete:disabled { opacity: 0.45; cursor: not-allowed; } /* 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); }