/* Figma 2195:19976: data-driven local notebook, shared Reader dock outside. */
#reader-notebook-screen { position: relative; width: 100%; height: 100%; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; background: #0b0c0a; color: #fafaf7; font-family: "Geologica Pilcrow", sans-serif; font-weight: 400; font-variation-settings: "CRSV" 0, "SHRP" 0; isolation: isolate; -webkit-overflow-scrolling: touch; }
#reader-notebook-screen[hidden], #reader-notebook-screen [hidden] { display: none !important; }
#reader-notebook-screen::-webkit-scrollbar { display: none; }
#reader-notebook-screen *, #reader-notebook-screen *::before { box-sizing: border-box; }
#reader-notebook-screen h1, #reader-notebook-screen h2, #reader-notebook-screen p, #reader-notebook-screen blockquote { margin: 0; color: inherit; letter-spacing: normal; }
#reader-notebook-screen button { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
#reader-notebook-screen button:disabled { opacity: .45; cursor: default; }
#reader-notebook-screen button:focus-visible, #reader-notebook-screen input:focus-visible, #reader-notebook-screen textarea:focus-visible, #reader-notebook-screen select:focus-visible { outline: 2px solid #ff6c4b; outline-offset: 2px; }
#reader-notebook-screen img { display: block; max-width: none; flex-shrink: 0; }
.notebook-background { position: absolute; inset: 0 0 auto; height: 84px; overflow: hidden; z-index: -1; pointer-events: none; }
.notebook-header { position: relative; padding: max(48px, env(safe-area-inset-top)) 21px 0; }
.notebook-header h1 { font-size: 24px; line-height: 32px; font-weight: 700; }
#reader-notebook-screen .notebook-search-open { position: absolute; top: max(44px, calc(env(safe-area-inset-top) - 4px)); right: 9px; width: 44px; height: 44px; display: grid; place-items: center; }
.notebook-tabs { display: flex; margin-top: 22px; height: 28px; }
#reader-notebook-screen .notebook-tabs button { flex: 1; min-width: 0; padding: 0 0 8px; border-bottom: 1px solid #2b2b2a; color: #bccbd9; font-size: 14px; line-height: 20px; }
#reader-notebook-screen .notebook-tabs button[aria-selected="true"] { color: #f1e2c9; font-weight: 600; border-bottom: 2px solid #f1e2c9; }
.notebook-filters { height: 20px; margin-top: 14px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; line-height: 16px; font-weight: 300; }
.notebook-book-filter { display: flex; position: relative; width: 100px; height: 32px; align-items: center; }
.notebook-book-filter select { appearance: none; -webkit-appearance: none; width: 100%; border: 0; background: none; color: #bccbd9; font: inherit; padding: 0 20px 0 0; text-overflow: ellipsis; }
.notebook-book-filter img { position: absolute; right: 7px; pointer-events: none; }
#reader-notebook-screen .notebook-sort { display: flex; align-items: center; gap: 8px; height: 32px; font-size: 12px; line-height: 16px; font-weight: 300; }
.notebook-result-count { color: #bccbd9; }
.notebook-content { padding: 20px 21px calc(125px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.notebook-card { position: relative; padding: 12px; border: 1px solid #2b2b2a; border-radius: 14px; background: #171919; display: flex; flex-direction: column; gap: 8px; }
.notebook-card-book { display: flex; gap: 14px; height: 72px; position: relative; }
.notebook-cover { width: 54px; height: 72px; border-radius: 5px; overflow: hidden; flex: 0 0 54px; }
.notebook-cover.is-large { width: 64px; height: 86px; flex-basis: 64px; }
#reader-notebook-screen .notebook-cover > * { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.notebook-cover .cover-fallback { display: grid; place-items: center; background: #2b2b2a; color: #bccbd9; font-size: 10px; }
.notebook-card-copy { min-width: 0; flex: 1; padding: 4px 30px 0 0; }
.notebook-card-copy h2 { font-size: 13px; line-height: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#reader-notebook-screen .notebook-card-copy p { color: #bccbd9; font-size: 10px; line-height: 17px; font-weight: 300; margin-top: 4px; }
#reader-notebook-screen .notebook-more { display: grid; place-items: center; position: absolute; top: -4px; right: -8px; width: 40px; height: 32px; }
#reader-notebook-screen .notebook-note-preview { text-align: left; min-height: 60px; display: block; width: 100%; }
.notebook-note-preview strong { font-size: 14px; line-height: 20px; font-weight: 600; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#reader-notebook-screen .notebook-note-preview p { margin-top: 4px; font-size: 12px; line-height: 16px; font-weight: 300; color: #bccbd9; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: pre-line; }
.notebook-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; gap: 12px; font-size: 12px; line-height: 16px; font-weight: 300; color: #bccbd9; }
#reader-notebook-screen .notebook-jump { display: flex; gap: 5px; align-items: center; justify-content: space-between; color: #f1e2c9; width: 115px; font-size: 12px; line-height: 16px; font-weight: 300; text-align: left; }
#reader-notebook-screen .notebook-quote-text { font-size: 14px; line-height: 22px; white-space: pre-wrap; overflow-wrap: anywhere; }
.notebook-bookmark-copy { flex: 1; min-width: 0; padding-top: 4px; }
.notebook-bookmark-copy h2 { font-size: 13px; line-height: 18px; font-weight: 600; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#reader-notebook-screen .notebook-author { margin-top: 4px; font-size: 10px; line-height: 17px; font-weight: 300; color: #bccbd9; }
.notebook-bookmark-list { display: flex; flex-direction: column; }
.notebook-bookmark { position: relative; display: flex; align-items: flex-start; gap: 12px; }
.notebook-bookmark + .notebook-bookmark { padding-top: 12px; border-top: 1px solid #2b2b2a; margin-top: 12px; }
#reader-notebook-screen .notebook-bookmark-open { flex: 1; min-width: 0; text-align: left; }
.notebook-bookmark-open strong { display: block; font-size: 13px; line-height: 18px; font-weight: 600; }
#reader-notebook-screen .notebook-bookmark-open p, .notebook-bookmark-open time { display: block; font-size: 12px; line-height: 16px; font-weight: 300; color: #bccbd9; margin-top: 2px; }
.notebook-bookmark-open { overflow-wrap: anywhere; }
#reader-notebook-screen .notebook-bookmark-actions { width: 26px; height: 30px; margin: -6px -6px 0 0; display: grid; place-items: center; flex-shrink: 0; }
.notebook-empty { text-align: center; padding-top: 114px; }
.notebook-empty-art { position: relative; overflow: hidden; width: 128px; height: 142px; margin: 0 auto 26px; }
.notebook-empty-art img { position: absolute; width: 304.61%; height: 589.07%; left: -101.77%; top: -187.78%; }
.notebook-empty h2 { font-size: 24px; line-height: 32px; font-weight: 700; }
#reader-notebook-screen .notebook-empty p { color: #bccbd9; font-size: 12px; line-height: 16px; font-weight: 300; white-space: pre-line; margin-top: 12px; }
#reader-notebook-screen .notebook-primary { margin-top: 24px; width: 160px; height: 36px; border-radius: 999px; background: #ff6c4b; font-size: 12px; line-height: 16px; font-weight: 600; }
.notebook-no-results { font-size: 14px; line-height: 22px; padding: 40px 0; color: #bccbd9; }
.notebook-search { display: flex; align-items: center; gap: 8px; height: 36px; margin-top: 8px; padding: 0 12px; border: 1px solid #2b2b2a; border-radius: 18px; background: #171919; }
.notebook-search input { min-width: 0; flex: 1; appearance: none; -webkit-appearance: none; border: 0; outline: 0; background: none; color: #fafaf7; font: 300 14px/20px "Geologica Pilcrow", sans-serif; padding: 0; }
.notebook-search input::-webkit-search-cancel-button { display: none; }
#reader-notebook-screen .notebook-search button { display: grid; place-items: center; width: 24px; height: 32px; margin-right: -6px; }
.notebook-header.is-searching .notebook-tabs { margin-top: 16px; }
.notebook-header.is-searching .notebook-filters { margin-top: 18px; }
.notebook-content mark { color: #ff6c4b; background: none; }
.notebook-topbar { display: flex; align-items: center; gap: 12px; position: relative; margin: max(48px, env(safe-area-inset-top)) 21px 16px; height: 32px; }
#reader-notebook-screen .notebook-topbar h1 { flex: 1; font-size: 14px; line-height: 20px; font-weight: 600; color: #f1e2c9; }
#reader-notebook-screen .notebook-topbar > button { width: 24px; height: 32px; display: grid; place-items: center; flex-shrink: 0; }
#reader-notebook-screen .notebook-topbar > .notebook-more { position: static; }
.notebook-detail { padding: 0 21px calc(125px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 20px; }
.notebook-summary { display: flex; gap: 16px; padding: 16px; border: 1px solid #2b2b2a; border-radius: 14px; background: #171919; min-height: 120px; }
.notebook-summary > div:last-child { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.notebook-summary h2 { font-size: 19px; line-height: 26px; font-weight: 600; }
#reader-notebook-screen .notebook-summary p, .notebook-summary time { color: #bccbd9; font-size: 12px; line-height: 16px; font-weight: 300; }
#reader-notebook-screen .notebook-summary p { margin-top: 4px; }
.notebook-summary time { margin-top: auto; padding-top: 12px; }
#reader-notebook-screen .notebook-detail-title { font-size: 24px; line-height: 32px; font-weight: 700; color: #f1e2c9; overflow-wrap: anywhere; }
#reader-notebook-screen .notebook-fragment { padding: 15px 11px 15px 13px; border: 1px solid #2b2b2a; border-radius: 14px; background: #171919; color: #f1e2c9; }
.notebook-fragment p { padding-left: 12px; border-left: 2px solid #f1e2c9; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 22px; }
.notebook-detail-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 22px; }
#reader-notebook-screen .notebook-jump.is-large { width: 100%; min-height: 44px; padding: 11px 14px; border: 1px solid #444545; border-radius: 12px; font-size: 15px; line-height: 20px; font-weight: 400; }
#reader-notebook-screen .notebook-editor-top { margin-bottom: 8px; }
#reader-notebook-screen .notebook-editor-top h1 { text-align: center; color: #fafaf7; }
#reader-notebook-screen .notebook-editor-top .notebook-save { width: 84px; color: #ff6c4b; font-size: 14px; line-height: 20px; font-weight: 300; }
#reader-notebook-screen .notebook-editor-top .notebook-save:disabled { opacity: 1; color: #505050; }
.notebook-editor-top > button:first-child { margin-right: 60px; }
.notebook-editor { padding: 0 21px 64px; }
.notebook-editor-book { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.notebook-editor-book > div:last-child { min-width: 0; padding-top: 16px; }
.notebook-editor-book h2 { font-size: 13px; line-height: 18px; font-weight: 600; }
#reader-notebook-screen .notebook-editor-book p { margin-top: 4px; color: #bccbd9; font-size: 12px; line-height: 16px; font-weight: 300; }
.notebook-editor textarea { display: block; resize: none; width: 100%; border: 0; outline: 0; padding: 0; background: none; color: #fafaf7; font-family: inherit; caret-color: #ff6c4b; overflow: hidden; }
.notebook-editor textarea::placeholder { color: #969794; opacity: 1; }
#reader-notebook-screen .notebook-editor textarea:focus-visible { outline: none; }
.notebook-editor-title { margin: 24px 0 16px; font-size: 19px; line-height: 26px; font-weight: 600; min-height: 26px; }
.notebook-editor-body { font-size: 14px; line-height: 22px; min-height: 180px; }
#reader-notebook-screen .notebook-local-notice { padding: 0 21px 14px; color: #bccbd9; font-size: 10px; line-height: 17px; font-weight: 300; }
.notebook-menu { position: absolute; right: 0; top: 32px; z-index: 10; min-width: 160px; padding: 6px; border: 1px solid #444545; border-radius: 12px; background: #202121; box-shadow: 0 8px 24px #0006; }
#reader-notebook-screen .notebook-menu button { display: block; width: 100%; text-align: left; padding: 12px; font-size: 13px; line-height: 18px; }
#reader-notebook-screen .notebook-menu .notebook-delete { color: #ff6c4b; }
#reader-notebook-screen .notebook-error { position: sticky; bottom: 110px; margin: 12px 21px; background: #202121; color: #ff6c4b; padding: 16px; border: 1px solid #ff6c4b; border-radius: 14px; z-index: 20; font-size: 13px; }
