/* ===== Collection notebook, round 2 (the user, 2026-11-17): wider; ruled paper with a red margin line; a small mark for
   each kind in the margin (no small-caps labels); entries tipped in — bookplate, card, epigraph, photo corners, film —
   instead of dropped on top; a smaller initial, three lines deep. Loaded after collnotebook.css. ===== */
html body #app#app main .nbk{max-width:1080px!important}
html body #app .nbk .nbk-sheet{padding:40px 72px 64px 132px!important}
/* the red margin rule, full height of the sheet */
html body #app .nbk .nbk-sheet::before{content:"";position:absolute;left:100px;top:0;bottom:0;width:1px;background:rgba(196,0,12,.28);pointer-events:none}
/* ruled lines under the text, 34px apart (the text sits on them) */
html body #app .nbk .nbk-text{--lh:34px;background:repeating-linear-gradient(transparent 0 calc(var(--lh) - 1px),rgba(110,140,170,.17) calc(var(--lh) - 1px) var(--lh));
  background-position:0 -2px;margin:0 -72px 0 -132px;padding:0 72px 0 132px;min-height:340px}
html.night body #app .nbk .nbk-text{background-image:repeating-linear-gradient(transparent 0 33px,rgba(236,232,224,.09) 33px 34px)}
/* no more margin words */
html body #app .nbk-text > *::before,html body #app .nbk-p .nbk-nt::before{content:none!important;display:none!important}
/* the marks: a small icon left of the red rule, level with the entry's first line */
html body #app .nbk .nbk-mk{position:absolute;left:-74px;top:5px;width:22px;height:22px;display:grid;place-items:center;color:var(--ink3)}
html body #app .nbk .nbk-mk svg{width:17px;height:17px}
html body #app .nbk .nbk-grip{left:-104px!important}
html body #app .nbk-text > *{position:relative}

/* your writing and passages: on the lines */
html body #app#app .nbk .nbk-w,html body #app#app .nbk .nbk-hl{font:400 22px/34px "EB Garamond Pkg","EB Garamond",serif!important;color:var(--ink)!important}
html body #app#app .nbk .nbk-w{margin:0 0 34px}
html body #app#app .nbk .nbk-p{margin:0 0 34px;font-size:22px!important;line-height:34px!important}
html body #app#app .nbk .nbk-p > .nbk-src{display:block;margin:0!important;font:italic 400 14.5px/34px "EB Garamond Pkg","EB Garamond",serif!important;letter-spacing:0!important;text-transform:none!important;color:var(--ink3)}
/* your note, under its passage: brown italic, hung from the line */
html body #app#app .nbk .nbk-nt{position:relative;margin:0 0 0 0!important;padding:0;font:inherit!important}
html body #app#app .nbk .nbk-nt p{margin:0;font:italic 400 21px/34px "EB Garamond Pkg","EB Garamond",serif;color:#7A6A4F}
html body #app#app .nbk .nbk-nt .nbk-src{display:block;margin:0!important;font:italic 400 14px/34px "EB Garamond Pkg","EB Garamond",serif!important;letter-spacing:0!important;text-transform:none!important;color:var(--ink3)}
html.night body #app#app .nbk .nbk-nt p{color:#C9B48F}
/* comment: a tinted card with a face */
html body #app#app .nbk .nbk-cm{display:grid;grid-template-columns:34px 1fr;gap:12px;margin:0 0 34px!important;padding:14px 16px;border-radius:8px;background:rgba(62,107,138,.06);font:inherit!important;color:var(--ink)!important}
html body #app#app .nbk .nbk-cm .nbk-mk{top:16px}
html body #app#app .nbk .nbk-cm .av{width:34px;height:34px;border-radius:50%;background:#D9D2C4;display:grid;place-items:center;font:600 14px "EB Garamond Pkg","EB Garamond",serif;color:#1C1B19}
html body #app#app .nbk .nbk-cm .who{font:400 15px "EB Garamond Pkg","EB Garamond",serif}
html body #app#app .nbk .nbk-cm .who b{font-weight:600;letter-spacing:0;text-transform:none;margin-right:8px}
html body #app#app .nbk .nbk-cm .who span{font-style:italic;color:var(--ink3)}
html body #app#app .nbk .nbk-cm p{margin:4px 0 0;font:400 19px/1.45 "EB Garamond Pkg","EB Garamond",serif;color:var(--ink)}
/* chapter: a bookplate pasted in, slightly askew */
html body #app#app .nbk .nbk-ch{display:block;margin:0 0 34px!important;text-decoration:none}
html body #app#app .nbk .nbk-ch .nbk-mk{top:22px}
html body #app .nbk .nbk-plate{display:grid;grid-template-columns:52px 1fr auto;gap:18px;align-items:center;padding:12px 18px;background:#fff;border:1px solid var(--rule);
  outline:1px solid var(--rule);outline-offset:-6px;transform:rotate(-.5deg);box-shadow:-3px 4px 8px -6px rgba(40,25,10,.4)}
html body #app .nbk .nbk-plate img{width:52px;box-shadow:-1px 1px 1.5px rgba(50,35,20,.3)}
html body #app .nbk .nbk-pt{display:flex;flex-direction:column;gap:3px;min-width:0}
html body #app .nbk .nbk-pt .k{font:400 11px "Times New Roman",Times,serif;letter-spacing:.16em;text-transform:uppercase;color:#C4000C}
html body #app .nbk .nbk-pt .t{font:400 21px/1.2 "EB Garamond Pkg","EB Garamond",serif;color:var(--ink)}
html body #app .nbk .nbk-pt .b{font:italic 15px "EB Garamond Pkg","EB Garamond",serif;color:var(--ink3)}
html body #app .nbk .nbk-plate .go{font:400 12px "Times New Roman",Times,serif;letter-spacing:.14em;text-transform:uppercase;color:#C4000C}
html.night body #app .nbk .nbk-plate{background:#26221C}
/* quote from elsewhere: an epigraph with large marks */
html body #app#app .nbk .nbk-qt{margin:0 0 34px!important;text-align:left!important;font:inherit!important}
html body #app .nbk .nbk-qt blockquote{position:relative;margin:0;padding:4px 0 0 34px;font:400 23px/34px "EB Garamond Pkg","EB Garamond",serif;color:var(--ink)}
html body #app .nbk .nbk-qt blockquote::before{content:"“";position:absolute;left:-4px;top:-12px;font:400 68px/1 "EB Garamond Pkg","EB Garamond",serif;color:#C4000C;opacity:.55}
html body #app .nbk .nbk-qt cite{display:block;margin:0 0 0 34px;font:400 12.5px/34px "Times New Roman",Times,serif;letter-spacing:.14em;text-transform:uppercase;font-style:normal;color:#C4000C}
/* picture: tipped in with photo corners */
html body #app .nbk .nbk-im{margin:0 0 34px;text-align:left}
html body #app .nbk .nbk-im figure{position:relative;display:inline-block;margin:0;padding:10px 10px 8px;background:#fff;box-shadow:-2px 3px 8px -4px rgba(40,25,10,.4);transform:rotate(1deg)}
html body #app .nbk .nbk-im img{display:block;max-width:300px;max-height:220px;background:#F6F1E6;mix-blend-mode:normal}
html body #app .nbk .nbk-im figure::before,html body #app .nbk .nbk-im figure::after,html body #app .nbk .nbk-im .c2::before,html body #app .nbk .nbk-im .c2::after{content:"";position:absolute;width:16px;height:16px;background:#2A2522;opacity:.82}
html body #app .nbk .nbk-im figure::before{left:-4px;top:-4px;clip-path:polygon(0 0,100% 0,0 100%)}html body #app .nbk .nbk-im figure::after{right:-4px;top:-4px;clip-path:polygon(0 0,100% 0,100% 100%)}
html body #app .nbk .nbk-im .c2::before{left:-4px;bottom:-4px;clip-path:polygon(0 0,100% 100%,0 100%)}html body #app .nbk .nbk-im .c2::after{right:-4px;bottom:-4px;clip-path:polygon(100% 0,100% 100%,0 100%)}
html body #app .nbk .nbk-im figcaption{margin-top:6px;font:italic 15px "EB Garamond Pkg","EB Garamond",serif;letter-spacing:0;text-transform:none;color:var(--ink2)}
/* video: a film frame */
html body #app .nbk .nbk-vd{display:grid;grid-template-columns:240px 1fr;gap:18px;align-items:center;margin:0 0 34px}
html body #app .nbk .nbk-vd .fr{height:136px;border-radius:3px;padding:14px 0;display:grid;place-items:center;background:#1D1A17;
  background-image:radial-gradient(circle,#FFFEFA 2.3px,transparent 2.5px),radial-gradient(circle,#FFFEFA 2.3px,transparent 2.5px);background-size:16px 14px,16px 14px;background-position:4px 0,4px 100%;background-repeat:repeat-x}
html body #app .nbk .nbk-vd .fr span{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.9);display:grid;place-items:center}
html body #app .nbk .nbk-vd .t{font:400 20px/1.25 "EB Garamond Pkg","EB Garamond",serif;color:var(--ink);text-decoration:none}
html body #app .nbk .nbk-vd .ln{font:400 15px "EB Garamond Pkg","EB Garamond",serif;color:#6B4E7A}
html body #app .nbk .nbk-ln{margin:0 0 34px;font:400 21px/34px "EB Garamond Pkg","EB Garamond",serif}

/* the initial: smaller, three lines deep, set in its own box like the mockup */
html body #app#app .nbk-text > :is(.nbk-p,.nbk-w):not(:is(.nbk-p,.nbk-w) ~ *)::first-letter{font-size:4.6em!important;line-height:.8!important;margin:.05em .14em 0 0!important}
@media (max-width:980px){html body #app .nbk .nbk-sheet{padding:28px 20px 48px 64px!important}html body #app .nbk .nbk-sheet::before{left:46px}
  html body #app .nbk .nbk-text{margin:0 -20px 0 -64px;padding:0 20px 0 64px}html body #app .nbk .nbk-mk{left:-58px}html body #app .nbk .nbk-vd{grid-template-columns:1fr}}
html body #app#app .nbk .nbk-ch .nbk-pt :is(.t,.b){text-transform:none!important;letter-spacing:0!important}
html body #app#app .nbk .nbk-ch .nbk-pt .t{font:400 21px/1.2 "EB Garamond Pkg","EB Garamond",serif!important;color:var(--ink)!important}
html body #app#app .nbk .nbk-ch .nbk-pt .b{font:italic 15px "EB Garamond Pkg","EB Garamond",serif!important;color:var(--ink3)!important}

/* ===== round 3 (the user, 2026-11-18): written like the passage card — larger, airier, a red quote mark, quiet sources;
   each passage in the colour you highlighted it in; lowercase words in the margin; aged paper ===== */
/* aged paper: warm off-white with grain, faint clouding and flecks; ruled lines kept, fainter, at the new line height */
html body #app .nbk .nbk-sheet,html body #app .nbk .nbk-tabs button.on::before{background-color:#F4F0E8!important;
  background-image:url("img/paper-aged.svg?v=3")!important;background-size:600px 600px!important}
html body #app .nbk .nbk-sheet{box-shadow:0 1px 2px rgba(60,45,30,.08),0 30px 60px -40px rgba(60,45,30,.45)!important}
html.night body #app .nbk .nbk-sheet,html.night body #app .nbk .nbk-tabs button.on::before{background-color:#201C17!important;background-blend-mode:soft-light}
html body #app .nbk .nbk-text{--lh:40px;background:repeating-linear-gradient(transparent 0 39px,rgba(110,130,150,.12) 39px 40px)!important;background-position:0 -4px!important}
/* the writing: like the card — 24px, generous leading, ink */
html body #app#app .nbk .nbk-w,html body #app#app .nbk .nbk-hl{font:400 24px/40px "EB Garamond Pkg","EB Garamond",serif!important}
html body #app#app .nbk :is(.nbk-w,.nbk-p,.nbk-cm,.nbk-ch,.nbk-qt,.nbk-im,.nbk-vd,.nbk-ln){margin-bottom:40px!important}
html body #app#app .nbk .nbk-p{line-height:40px!important}
/* the passage in your highlight's colour: a soft band behind the words, as in the reader */
html body #app#app .nbk .nbk-hl{background:linear-gradient(transparent 14%,color-mix(in srgb,var(--hc,#E7C46A) 32%,transparent) 14% 90%,transparent 90%);
  -webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 2px}
/* the red quote mark, hung just left of the text like the card's */
html body #app .nbk .nbk-q{position:absolute;left:-26px;top:-2px;font:400 34px/1 "EB Garamond Pkg","EB Garamond",serif;color:#C4000C;pointer-events:none}
/* the source: one quiet line under it */
html body #app#app .nbk .nbk-p > .nbk-src,html body #app#app .nbk .nbk-nt .nbk-src{font:400 13px/40px "Times New Roman",Times,serif!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:var(--ink3)!important}
html body #app#app .nbk .nbk-nt p{font:italic 400 22px/40px "EB Garamond Pkg","EB Garamond",serif!important}
/* lowercase words in the margin, left of the red rule */
html body #app .nbk .nbk-mk{left:-122px!important;top:0!important;width:84px!important;height:40px!important;display:flex!important;align-items:center;justify-content:flex-end;
  font:italic 400 16px/1 "EB Garamond Pkg","EB Garamond",serif;color:#8a8172;letter-spacing:0}
html body #app .nbk .nbk-cm .nbk-mk{top:12px!important;left:-138px!important}
html body #app .nbk .nbk-ch .nbk-mk{top:18px!important}
html body #app .nbk .nbk-nt .nbk-mk{left:-122px!important}
html body #app .nbk .nbk-grip{left:-24px!important;top:10px!important}
html body #app .nbk .nbk-p .nbk-grip{left:-44px!important}
/* the initial follows the new leading: three lines */
html body #app#app .nbk-text > :is(.nbk-p,.nbk-w):not(:is(.nbk-p,.nbk-w) ~ *)::first-letter{font-size:4.9em!important;line-height:.82!important}
html body #app .nbk .nbk-p:not(.nbk-p ~ .nbk-p):not(.nbk-w ~ .nbk-p) .nbk-q{display:none}
@media (max-width:980px){html body #app .nbk .nbk-mk{display:none!important}html body #app .nbk .nbk-q{left:-18px}}

/* writing: one line per ruled line; the page is paper you can click into anywhere */
html body #app#app .nbk .nbk-w{margin:0!important;min-height:40px}
html body #app#app .nbk .nbk-w + :not(.nbk-w){margin-top:40px}
html body #app#app .nbk :not(.nbk-w) + .nbk-w{margin-top:0}
html body #app .nbk .nbk-text{cursor:text;padding-bottom:160px!important}
html body #app .nbk .nbk-text > :not(.nbk-w){cursor:default}
html body #app .nbk .nbk-text > a{cursor:pointer}
/* "Write…" only on the line you're on (or on an empty page) */
html body #app .nbk .nbk-w:empty::before{content:none}
html body #app .nbk .nbk-w:empty:focus::before,html body #app .nbk .nbk-text > .nbk-w:only-child:empty::before{content:"Write…";color:var(--ink3);font-style:italic}

/* margin marks are icons again — buttons: hover names them, click opens Materials on that kind */
html body #app .nbk .nbk-mk{all:unset;box-sizing:border-box;position:absolute;left:-76px!important;top:8px!important;width:26px!important;height:26px!important;display:grid!important;place-items:center;
  cursor:pointer;border-radius:5px;color:var(--ink3);font:inherit!important;transition:background .15s}
html body #app .nbk .nbk-mk svg{width:17px;height:17px}
@media (hover:hover){html body #app .nbk .nbk-mk:hover{background:rgba(28,27,25,.07)}}
html body #app .nbk .nbk-mk:focus-visible{outline:2px solid #C4000C;outline-offset:2px}
html body #app .nbk .nbk-cm .nbk-mk{top:18px!important;left:-92px!important}
html body #app .nbk .nbk-ch .nbk-mk{top:24px!important}
html body #app .nbk .nbk-nt .nbk-mk{left:-76px!important}
/* the drag handle: at the sheet's far edge, clear of the marks */
html body #app .nbk .nbk-grip,html body #app .nbk .nbk-p .nbk-grip{left:-120px!important;top:12px!important}
html body #app .nbk .nbk-cm .nbk-grip{left:-136px!important}
@media (max-width:980px){html body #app .nbk .nbk-mk{display:grid!important;left:-52px!important}html body #app .nbk .nbk-grip{display:none}}
/* the site's line lock, not an emoji */
html body #app .nbk .nbk-src .nbk-lk,html body #app .nbk .nbk-src svg.nbk-lk{display:inline-block;width:12px;height:12px;vertical-align:-1px;margin-right:4px;stroke:currentColor;stroke-width:2}

/* white sheet, grey ground (the user, 2026-11-18): no beige anywhere on the notebook */
html body:has(main.nbkp),html body:has(main.nbkp) #app,html body:has(main.nbkp) header.top{background-color:#EEEDEB!important;background-image:none!important}
html body #app .nbk .nbk-sheet,html body #app .nbk .nbk-tabs button.on::before{background-color:#FFFFFF!important;background-image:none!important}
html body #app .nbk{--b2:#E2E1DE;--b3:#D8D7D3}
html body #app .nbk .nbk-tabs button:not(.on):not(.nbk-new)::before{background:var(--b3)!important}
html body #app .nbk .nbk-tabs button:nth-child(even):not(.on):not(.nbk-new)::before{background:var(--b2)!important}
html body #app .nbk .nbk-plate{background:#FFFFFF}
html.night body:has(main.nbkp),html.night body:has(main.nbkp) #app,html.night body:has(main.nbkp) header.top{background-color:#121110!important}
html.night body #app .nbk .nbk-sheet,html.night body #app .nbk .nbk-tabs button.on::before{background-color:#1E1C19!important}

/* Materials → Highlights: each one set like a quotation, grouped under its colour */
body > .nbk-marks li.nbk-hg{display:flex!important;align-items:center;gap:9px;cursor:default;padding:22px 0 8px!important;border-top:0!important;
  font:400 12.5px/1 "Times New Roman",Times,serif!important;letter-spacing:.14em;text-transform:uppercase;color:var(--ink2)!important}
body > .nbk-marks li.nbk-hg:first-child{padding-top:6px!important}
body > .nbk-marks li.nbk-hg i{width:11px;height:11px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
body > .nbk-marks li.nbk-hg span{margin-left:auto;letter-spacing:.06em;color:var(--ink3)}
body > .nbk-marks li.nbk-hq{padding:18px 0 20px!important;border-top:1px solid var(--rule)}
body > .nbk-marks li.nbk-hq p{margin:0 0 12px;font:400 21px/1.35 "EB Garamond Pkg","EB Garamond",serif;color:var(--ink)}
body > .nbk-marks li.nbk-hq .by{display:block;font:400 16px/1.3 "EB Garamond Pkg","EB Garamond",serif;color:var(--ink2)}
body > .nbk-marks li.nbk-hq .by i{font-style:italic}
body > .nbk-marks li.nbk-hq .by em{display:block;margin-top:6px;font:400 11px "Times New Roman",Times,serif;font-style:normal;letter-spacing:.12em;text-transform:uppercase;color:#C4000C}
/* every margin icon on one column, whatever the entry (cards and plates included) */
html body #app .nbk .nbk-text .nbk-mk,html body #app .nbk .nbk-cm .nbk-mk,html body #app .nbk .nbk-nt .nbk-mk,html body #app .nbk .nbk-ch .nbk-mk{left:-76px!important}
html body #app#app .nbk .nbk-cm,html body #app#app .nbk .nbk-nt{margin-left:0!important}
/* no page counter in the page's heading strip (the bottom bar keeps one) */
html body #app .nbk .nbk-sl .n{display:none!important}

/* ===== texture, a quieter bar, the books on the title line (the user, 2026-11-18) ===== */
html body:has(main.nbkp),html body:has(main.nbkp) #app,html body:has(main.nbkp) header.top{background-color:#ECEBE8!important;background-image:url("img/paper-ground.svg?v=2")!important;background-size:700px 700px!important}
html body #app .nbk .nbk-sheet,html body #app .nbk .nbk-tabs button.on::before{background-color:#FFFEFD!important;background-image:url("img/paper-laid.svg?v=2")!important;background-size:480px 480px!important}
/* the books it draws from: their symbols on the title line, right */
html body #app .nbk .nbk-hd{display:flex!important;align-items:center!important}
html body #app .nbk .nbk-books{margin-left:auto;display:flex;align-items:center;gap:14px;padding-right:4px}
html body #app .nbk .nbk-books a{display:block;width:40px;height:40px;opacity:.9;transition:opacity .2s,transform .2s}
html body #app .nbk .nbk-books img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
html.night body #app .nbk .nbk-books img{mix-blend-mode:normal}
@media (hover:hover){html body #app .nbk .nbk-books a:hover{opacity:1;transform:translateY(-2px)}}
/* the bar: a word and an arrow, on the notebook's own edges */
html:root body > .nbk-dock .dk{position:absolute!important;left:var(--dl,50%)!important;width:var(--dw,680px)!important;max-width:none!important;margin:0!important;transform:none!important;justify-content:space-between!important}
html:root body > .nbk-dock .dk .nbk-mat{all:unset;cursor:pointer;position:relative;padding:10px 14px 9px;margin-left:-14px;font:400 14px/1 "Times New Roman",Times,Tinos,serif!important;letter-spacing:.1em;text-transform:uppercase;color:#1C1B19}
html:root body > .nbk-dock .dk .nbk-mat::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(28,27,25,.075);opacity:0;transition:opacity .2s;
  clip-path:polygon(7px 0,calc(100% - 7px) 0,100% 7px,100% calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,0 calc(100% - 7px),0 7px)}
@media (hover:hover){html:root body > .nbk-dock .dk .nbk-mat:hover::before{opacity:1}}
html:root body.nbk-open > .nbk-dock .dk .nbk-mat{color:#C4000C}
html:root body > .nbk-dock .dk .nbk-arr{all:unset;cursor:pointer;display:grid;place-items:center;width:40px;height:40px;margin-right:-10px;color:#1C1B19}
html:root body > .nbk-dock .dk .nbk-arr .ic,html:root body > .nbk-dock .dk .nbk-arr svg{width:22px;height:22px}
@media (hover:hover){html:root body > .nbk-dock .dk .nbk-arr:hover{color:#C4000C}}
html.night:root body > .nbk-dock .dk :is(.nbk-mat,.nbk-arr){color:#ECE8E0}

/* ===== Materials panel, after a clean app sidebar: a name, colour dots, a row per kind that opens in place ===== */
body > .nbk-marks{padding:0!important;background:#FFFEFD url("img/paper-laid.svg?v=2")!important;background-size:480px 480px!important;border-left:1px solid rgba(60,48,36,.12)!important}
body > .nbk-marks .nbk-ph{padding:96px 34px 26px;border-bottom:1px solid rgba(60,48,36,.12)}
body > .nbk-marks .nbk-ph b{display:block;font:400 26px/1.15 "Times New Roman",Times,Tinos,serif;letter-spacing:.04em;text-transform:uppercase;color:#1C1B19}
body > .nbk-marks .nbk-ph > span{display:block;margin-top:6px;font:400 17px "EB Garamond Pkg","EB Garamond",serif;color:#8a8172}
/* colour dots */
.nbk-dots{display:flex;gap:10px;margin-top:20px}
.nbk-dots button{all:unset;cursor:pointer;width:18px;height:18px;border-radius:50%;background:var(--dc);box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);transition:transform .15s}
.nbk-dots button.all{background:conic-gradient(#E7C46A 0 25%,#A9C08F 0 50%,#9DB6D3 0 75%,#DFA3A0 0)}
.nbk-dots button.none{opacity:.35}
.nbk-dots button.on{box-shadow:0 0 0 2px #FFFEFD,0 0 0 3.5px #1C1B19}
@media (hover:hover){.nbk-dots button:hover{transform:scale(1.15)}}
/* the rows */
.nbk-secs{display:flex;flex-direction:column}
.nbk-row{all:unset;box-sizing:border-box;position:relative;cursor:pointer;display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:22px;padding:22px 34px;
  border-bottom:1px solid rgba(60,48,36,.1);font:400 21px/1 "EB Garamond Pkg","EB Garamond",serif;color:#1C1B19;transition:background .18s}
.nbk-row .ic,.nbk-row svg{width:22px;height:22px;stroke-width:1.6}
.nbk-row i{font:400 14px "Times New Roman",Times,serif;font-style:normal;letter-spacing:.06em;color:#8a8172}
@media (hover:hover){.nbk-row:hover{background:rgba(28,27,25,.045)}}
.nbk-row.on{background:rgba(28,27,25,.035)}
.nbk-row.on::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#C4000C}
.nbk-row:focus-visible{outline:2px solid #C4000C;outline-offset:-2px}
.nbk-open-list{padding:6px 34px 18px;border-bottom:1px solid rgba(60,48,36,.1)}
.nbk-open-list ol{list-style:none;margin:0;padding:0}
.nbk-open-list li{cursor:grab}
.nbk-open-list .nbk-add{margin-top:14px}
html.night body > .nbk-marks{background:#1E1C19!important}
html.night body > .nbk-marks :is(.nbk-ph b,.nbk-row){color:#ECE8E0}
/* the cover symbol in the margin */
html body #app .nbk .nbk-mk.sym{width:34px!important;height:34px!important;left:-80px!important;top:3px!important;border-radius:0}
html body #app .nbk .nbk-mk.sym img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;transition:transform .18s}
html.night body #app .nbk .nbk-mk.sym img{mix-blend-mode:normal}
@media (hover:hover){html body #app .nbk .nbk-mk.sym:hover{background:none}html body #app .nbk .nbk-mk.sym:hover img{transform:scale(1.12)}}
html body #app .nbk .nbk-cm .nbk-mk.sym{top:14px!important}
html body #app .nbk .nbk-ch .nbk-mk.sym{top:20px!important}
/* one bin, the trash tab and list */
html body #app .nbk .nbk-foot{justify-content:flex-end}
html body #app .nbk .nbk-foot button{width:34px;height:34px;justify-content:center;border-radius:6px}
html body #app .nbk .nbk-foot .ic{width:18px;height:18px}
@media (hover:hover){html body #app .nbk .nbk-foot button:hover{background:rgba(196,0,12,.07)}}
html body #app .nbk .nbk-tabs .nbk-trtab{min-width:0;padding:0 20px;gap:7px;color:var(--ink3);font-size:13px}
html body #app .nbk .nbk-tabs .nbk-trtab .ic{width:14px;height:14px}
html body #app .nbk .nbk-tabs .nbk-trtab::before{background:transparent!important}
html body #app .nbk .nbk-tabs .nbk-trtab.on{color:#C4000C}
html body #app .nbk .nbk-tabs .nbk-trtab.on::before{background:#FFFEFD!important}
.nbk-trash{padding:4px 0 40px}
.nbk-trh{margin:0 0 18px;font:italic 18px "EB Garamond Pkg","EB Garamond",serif;color:var(--ink3)}
.nbk-trash ol{list-style:none;margin:0;padding:0}
.nbk-trash li{display:flex;align-items:baseline;gap:18px;padding:14px 0;border-top:1px solid var(--rule)}
.nbk-trash .t{font:400 22px "EB Garamond Pkg","EB Garamond",serif;color:var(--ink)}
.nbk-trash .d{font:italic 15px "EB Garamond Pkg","EB Garamond",serif;color:var(--ink3);margin-right:auto}
.nbk-trash button{all:unset;cursor:pointer;padding:6px 10px;font:400 13px "Times New Roman",Times,serif;letter-spacing:.1em;text-transform:uppercase;color:var(--ink)}
.nbk-trash button.x{color:var(--ink3)}
@media (hover:hover){.nbk-trash button:hover{background:rgba(28,27,25,.07)}.nbk-trash button.x:hover{color:#C4000C}}
html body #app .nbk a.nbk-mk.sym{text-decoration:none}
body > .nbk-marks li.nbk-hq.out p{color:#55504a}
body > .nbk-marks li.nbk-hq .by em.o{color:#8a8172}
body > .nbk-marks li.fresh{animation:nbk-fresh 2.4s ease-out}
@keyframes nbk-fresh{0%{background:rgba(196,0,12,.10)}100%{background:transparent}}
/* the handle: a real draggable element, easy to grab */
html body #app .nbk .nbk-grip{display:grid;place-items:center;width:22px;height:30px;border-radius:5px;cursor:grab;color:var(--ink3)}
html body #app .nbk .nbk-grip svg{width:12px;height:20px;pointer-events:none}
@media (hover:hover){html body #app .nbk .nbk-grip:hover{background:rgba(28,27,25,.07);color:var(--ink)}}
html body #app .nbk .nbk-grip:active{cursor:grabbing}
html body #app .nbk .nbk-moving{opacity:.35}
html body #app .nbk .nbk-drop{border-top:2px solid #C4000C!important;position:relative}
html body #app .nbk .nbk-drop::before{content:"";position:absolute;left:-5px;top:-5px;width:8px;height:8px;border-radius:50%;background:#C4000C}
html body #app#app .nbk .nbk-nt{display:flex;align-items:baseline;gap:10px}
html body #app#app .nbk .nbk-nt .nbk-lkonly{display:inline-flex!important;align-items:center;line-height:1!important}
html body #app#app .nbk .nbk-nt .nbk-lkonly .nbk-lk{width:14px;height:14px;margin:0}
/* a comment opens in place: the passage it answers, the strand, the others on that passage, reply */
html body #app .nbk .nbk-cm{cursor:pointer;transition:background .15s}
@media (hover:hover){html body #app .nbk .nbk-cm:hover{background:rgba(62,107,138,.1)}}
html body #app .nbk .nbk-cm.open{border-radius:8px 8px 0 0;margin-bottom:0!important}
html body #app .nbk .nbk-thread{position:relative;margin:0 0 40px;padding:18px 22px 20px;border-radius:0 0 8px 8px;background:rgba(62,107,138,.035);border-top:1px solid rgba(62,107,138,.12);cursor:default}
html body #app .nbk .nbk-tq{margin:0 0 18px;padding:2px 0 2px 16px;border-left:2px solid #C4000C;font:400 20px/1.45 "EB Garamond Pkg","EB Garamond",serif;color:var(--ink)}
html body #app .nbk .nbk-tq cite{display:block;margin-top:6px;font:400 15px "EB Garamond Pkg","EB Garamond",serif;font-style:normal;color:var(--ink3)}
html body #app .nbk .nbk-tq cite i{font-style:italic}
html body #app .nbk .nbk-th{margin:18px 0 6px;font:400 12.5px "Times New Roman",Times,serif;letter-spacing:.12em;text-transform:uppercase;color:var(--ink3)}
html body #app .nbk .nbk-tc .cm{padding:10px 0;border-top:1px solid rgba(60,48,36,.08)}
html body #app .nbk .nbk-tc .cm .quote{display:none}
html body #app .nbk .nbk-tgo{display:inline-block;margin-top:14px;font:400 13px "Times New Roman",Times,serif;letter-spacing:.1em;text-transform:uppercase;color:#C4000C;text-decoration:none}
/* closed tabs: white paper, a touch shaded, so they read as the next sheets behind */
html body #app .nbk{--b2:#F3F2EF;--b3:#EFEEEB}
html body #app .nbk .nbk-tabs button:not(.on):not(.nbk-new):not(.nbk-trtab)::before{background-color:var(--b3)!important;background-image:url("img/paper-laid.svg?v=2")!important;background-size:480px 480px!important;
  box-shadow:inset 0 -8px 10px -8px rgba(60,48,36,.10),0 -1px 0 rgba(60,48,36,.06)!important}
html body #app .nbk .nbk-tabs button:nth-child(even):not(.on):not(.nbk-new):not(.nbk-trtab)::before{background-color:var(--b2)!important}
html.night body #app .nbk{--b2:#2A2723;--b3:#26231F}
/* the tabs textured like a book cover in the library (the user, 2026-11-18): paper-laid.svg at this size reads as
   flat — the library's own grain (--paper-tex), multiplied in the way its book cards are, actually shows */
html body #app .nbk .nbk-tabs button.on::before{background-image:var(--paper-tex)!important;background-size:320px 320px!important;background-blend-mode:multiply!important}
html body #app .nbk .nbk-tabs button:not(.on):not(.nbk-new):not(.nbk-trtab)::before{background-image:var(--paper-tex)!important;background-size:320px 320px!important;background-blend-mode:multiply!important}

/* ===== the hand-built drag ===== */
html body #app .nbk .nbk-grip{touch-action:none;user-select:none;-webkit-user-select:none}
body > .nbk-marks li[data-ref]{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
body.nbk-dragging,body.nbk-dragging *{cursor:grabbing!important;user-select:none!important;-webkit-user-select:none!important}
/* the lifted copy: rises a touch, casts a soft shadow, follows the pointer */
.nbk-ghost{position:fixed!important;z-index:200;margin:0!important;pointer-events:none;will-change:transform;transform-origin:30px 20px;
  background:#FFFEFD;border-radius:8px;padding:10px 16px;box-shadow:0 0 0 rgba(40,25,10,0);transition:box-shadow .2s cubic-bezier(.2,.9,.25,1),scale .2s cubic-bezier(.2,.9,.25,1)}
.nbk-ghost.lifted{scale:1.025;box-shadow:0 2px 4px rgba(40,25,10,.08),0 22px 44px -16px rgba(40,25,10,.38)}
.nbk-ghost.settling{scale:1;box-shadow:0 1px 2px rgba(40,25,10,.06)}
.nbk-ghost .nbk-grip,.nbk-ghost .nbk-mk{display:none!important}
.nbk-ghost.from-list{list-style:none;font:400 19px/1.4 "EB Garamond Pkg","EB Garamond",serif;color:#1C1B19}
.nbk-ghost.from-list p{margin:0 0 8px}
html.night .nbk-ghost{background:#26221C;color:#ECE8E0}
/* the gap it will land in: a soft well on the page */
html body #app .nbk .nbk-gap{border-radius:8px;background:rgba(196,0,12,.045);box-shadow:inset 0 0 0 1.5px rgba(196,0,12,.18);margin:0 0 40px;transition:height .24s cubic-bezier(.2,.9,.25,1)}
body > .nbk-marks li.dragging{opacity:.35}
html body #app .nbk .nbk-drop{display:none}
@media (prefers-reduced-motion:reduce){.nbk-ghost,.nbk-ghost.lifted{transition:none;scale:1}}
html body #app .nbk .nbk-ch[data-go]{cursor:pointer}
