reading-notebook,reading-library{display:block}reading-notebook{margin:0 0 2rem;color:rgb(var(--studio-ink))}reading-notebook:not(:defined) .notebook-tools,reading-library:not(:defined) .notebook-library__filters,reading-library:not(:defined) .notebook-library__utilities{display:none}.notebook-tools{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem 1rem;padding-bottom:.5rem;border-bottom:1px solid rgb(var(--studio-line))}.notebook-tools :is(button,a),.notebook-dialog button,.notebook-entry__actions :is(button,a),.notebook-library__utilities button,.notebook-library__notice button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:44px;padding:.45rem .5rem;color:rgb(var(--studio-muted));background:transparent;border:0;text-decoration:none;font:inherit;font-size:.8125rem;cursor:pointer;transition:color .16s ease,background-color .16s ease}.notebook-tools a{margin-left:auto}.notebook-tools svg,.notebook-dialog svg,.notebook-selection svg,.notebook-library svg{flex:none;width:1.05rem;height:1.05rem;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.notebook-tools :is(button,a):is(:hover,:focus-visible),.notebook-tools button[aria-pressed=true],.notebook-dialog button:is(:hover,:focus-visible),.notebook-entry__actions :is(button,a):is(:hover,:focus-visible){color:rgb(var(--studio-accent));background:rgb(var(--studio-soft))}.notebook-hint,.notebook-local-note{margin:.6rem 0 0;font-size:.75rem;line-height:1.8;color:rgb(var(--studio-muted))}.notebook-hint:empty{margin:0}.notebook-hint[data-error=true],.notebook-message,[data-library-status][data-error=true]{color:rgb(var(--studio-ink))}.notebook-selection{position:fixed;z-index:46;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%);display:flex;gap:.25rem;align-items:center;width:max-content;max-width:calc(100vw - 32px);padding:.35rem .6rem;color:rgb(var(--studio-ink));background:rgb(var(--studio-surface));box-shadow:0 8px 28px rgb(var(--studio-shadow) / .22);border-radius:8px;animation:notebook-selection-in .18s var(--studio-ease-out)}.notebook-selection[hidden],.notebook-dialog [hidden],.notebook-library [hidden]{display:none}.notebook-selection span{font-size:.75rem;padding:0 .5rem;white-space:nowrap;color:rgb(var(--studio-muted))}.notebook-selection button{min-height:44px;padding:.5rem .65rem;border:0;background:transparent;color:inherit;font-size:.8125rem;white-space:nowrap;cursor:pointer}.notebook-selection button:is(:hover,:focus-visible){background:rgb(var(--studio-soft));color:rgb(var(--studio-accent))}.notebook-passage-button{display:block;width:fit-content;min-height:44px;margin:-.6rem 0 1.3rem auto;padding:.35rem .6rem;border:1px solid rgb(var(--studio-line));background:rgb(var(--studio-bg));color:rgb(var(--studio-accent));font:.75rem/1.5 sans-serif;cursor:pointer}.notebook-picking [data-passage-id]{outline:1px dashed rgb(var(--studio-line));outline-offset:6px}.notebook-dialog{box-sizing:border-box;inset:0;margin:auto;width:min(650px,calc(100vw - 40px));max-width:calc(100vw - 24px);max-height:min(88svh,1000px);overflow:auto;padding:2rem;color:rgb(var(--studio-ink));background:rgb(var(--studio-surface));border:0;border-radius:2px;box-shadow:0 18px 65px rgb(var(--studio-shadow) / .28);overscroll-behavior:contain}.notebook-dialog[open]{animation:notebook-dialog-in .24s var(--studio-ease-out)}.notebook-dialog::backdrop{background:rgb(var(--studio-shadow) / .45)}.notebook-dialog__head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}.notebook-dialog h2{margin:0;font:500 clamp(1.25rem,3vw,1.65rem)/1.5 var(--studio-serif)}.notebook-dialog__head button{flex:none;min-width:44px}.notebook-source{margin:.25rem 0 1rem;font-size:.8125rem;line-height:1.8;color:rgb(var(--studio-muted))}.notebook-dialog blockquote,.notebook-entry blockquote{white-space:pre-wrap;overflow-wrap:anywhere;margin:1.4rem 0;padding:0 0 0 1rem;border-left:1px solid rgb(var(--studio-line));color:rgb(var(--studio-ink));font-family:var(--studio-sans);font-size:1rem;line-height:2}.notebook-dialog blockquote{max-height:32svh;overflow:auto;padding-right:.5rem}.notebook-dialog label{display:block;margin-bottom:.5rem;font-size:.875rem}.notebook-dialog label span{color:rgb(var(--studio-muted));margin-left:.35rem;font-size:.75rem}.notebook-dialog textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:100px;padding:.8rem;border:1px solid rgb(var(--studio-line));border-radius:0;color:rgb(var(--studio-ink));background:rgb(var(--studio-bg));font-family:inherit;font-size:1rem;line-height:1.8;caret-color:rgb(var(--studio-accent))}.notebook-dialog textarea::placeholder{color:rgb(var(--studio-muted))}.notebook-dialog__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem;padding-top:1rem;border-top:1px solid rgb(var(--studio-line))}.notebook-dialog button.notebook-primary{padding-inline:1rem;color:rgb(var(--studio-surface));background:rgb(var(--studio-ink))}.notebook-dialog button.notebook-primary:is(:hover,:focus-visible){background:rgb(var(--studio-accent))}.notebook-dialog button:disabled{opacity:.5;cursor:wait}.notebook-message{min-height:1.5em;margin:1rem 0;font-size:.8125rem;line-height:1.7}.notebook-card-controls{display:flex;align-items:center;gap:.7rem;margin-bottom:1.2rem;font-size:.8125rem}.notebook-card-controls label{margin:0}.notebook-card-controls select,.notebook-library__filters :is(input,select){min-height:44px;padding:.5rem .75rem;border:1px solid rgb(var(--studio-line));color:rgb(var(--studio-ink));background:rgb(var(--studio-bg));border-radius:0;font:inherit}.notebook-card-controls span{margin-left:auto;font-size:.75rem;color:rgb(var(--studio-muted))}.notebook-card-preview{min-height:120px;max-height:48svh;overflow:auto;background:rgb(var(--studio-bg))}.notebook-card-preview img{display:block;width:100%;height:auto}.notebook-library{max-width:980px;margin-inline:auto}.notebook-library__head{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;padding-bottom:2rem;border-bottom:1px solid rgb(var(--studio-line))}.notebook-library__head h1{margin:0 0 .8rem;font:500 clamp(2rem,4vw,3rem)/1.4 var(--studio-serif);letter-spacing:.04em}.notebook-library__head p{margin:0;color:rgb(var(--studio-muted));font-size:.875rem}.notebook-library__head a,.notebook-empty a{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;color:rgb(var(--studio-accent));text-decoration:none;font-size:.8125rem}.notebook-library__nav{display:flex;flex-wrap:wrap;gap:1.6rem;margin:1rem 0 2.5rem}.notebook-library__nav a{display:inline-flex;min-height:44px;align-items:center;color:rgb(var(--studio-muted));text-decoration:none;font-size:.8125rem;border-bottom:1px solid transparent}.notebook-library__nav a[aria-current=page]{color:rgb(var(--studio-accent));border-bottom-color:currentColor}.notebook-library__filters{display:grid;grid-template-columns:2fr 1fr 1.2fr;gap:1rem}.notebook-library__filters label{display:grid;min-width:0;gap:.5rem;color:rgb(var(--studio-muted));font-size:.8125rem}.notebook-library__filters :is(input,select){width:100%;min-width:0;box-sizing:border-box;font-size:1rem}.notebook-library__filters input::placeholder{color:rgb(var(--studio-muted))}.notebook-library__utilities{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-top:1rem}.notebook-library__utilities p{color:rgb(var(--studio-muted));font-size:.8125rem}.notebook-library__notice{display:flex;align-items:baseline;gap:.75rem;min-height:1.5rem;margin-top:.5rem;font-size:.8125rem}.notebook-list{list-style:none;padding:0;margin:1rem 0}.notebook-entry{border-top:1px solid rgb(var(--studio-line));padding:2rem 0 1.5rem}.notebook-entry__meta{display:flex;gap:1.2rem;align-items:center;color:rgb(var(--studio-muted));font-size:.75rem;font-variant-numeric:tabular-nums}.notebook-entry h2{margin:.65rem 0 .2rem;font:500 1.25rem/1.7 var(--studio-serif)}.notebook-entry h2 a{text-decoration:none}.notebook-entry h2 a:hover{color:rgb(var(--studio-accent))}.notebook-entry__note{white-space:pre-wrap;overflow-wrap:anywhere;margin:1.25rem 0;font-size:.875rem;line-height:1.9;color:rgb(var(--studio-muted))}.notebook-entry__actions{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem 1rem}.notebook-entry__actions [data-entry-delete]{margin-left:auto}.notebook-empty{margin:3rem 0 2rem;padding:2.5rem 0;border-block:1px solid rgb(var(--studio-line))}.notebook-empty h2{font:500 1.5rem/1.6 var(--studio-serif);margin:0 0 1rem}.notebook-empty p{max-width:48em;color:rgb(var(--studio-muted));font-size:.875rem;line-height:1.9}@keyframes notebook-dialog-in{0%{opacity:.5;transform:translateY(10px)}to{opacity:1;transform:none}}@keyframes notebook-selection-in{0%{opacity:.5;translate:0 6px}to{opacity:1;translate:0 0}}@media(max-width:640px){.notebook-selection{flex-wrap:wrap;justify-content:center}.notebook-tools{gap:.2rem .5rem}.notebook-tools a{margin-left:0}.notebook-selection{bottom:max(12px,env(safe-area-inset-bottom));max-width:calc(100vw - 20px);padding-inline:.25rem}.notebook-selection span{display:none}.notebook-selection button{font-size:.75rem;padding-inline:.5rem}.notebook-dialog{width:calc(100vw - 24px);max-height:90svh;padding:1.25rem}.notebook-dialog__head{margin-bottom:1rem}.notebook-dialog__actions{justify-content:stretch}.notebook-dialog__actions button{flex:1 1 auto}.notebook-card-controls{flex-wrap:wrap}.notebook-card-controls span{width:100%;margin-left:0}.notebook-library__head{display:block;padding-bottom:1.3rem}.notebook-library__head>a{margin-top:.7rem}.notebook-library__nav{gap:1rem;margin-bottom:1.5rem}.notebook-library__filters{grid-template-columns:1fr 1fr;gap:.8rem}.notebook-library__filters label:first-child{grid-column:1 / -1}.notebook-library__utilities{gap:.25rem;flex-wrap:wrap}.notebook-entry{padding-block:1.5rem}.notebook-entry__actions{gap:.2rem .5rem}.notebook-entry__actions [data-entry-delete]{margin-left:0}.notebook-entry blockquote{font-size:.9375rem;padding-left:.75rem}}@media(prefers-reduced-motion:reduce){.notebook-dialog[open],.notebook-selection{animation:none}.notebook-tools *,.notebook-dialog *,.notebook-entry__actions *{transition:none}}@media print{reading-notebook,.notebook-passage-button{display:none}}
