bell-reader 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +75 -2
  3. package/README.zh-TW.md +55 -0
  4. package/bin/bell-reader.mjs +202 -0
  5. package/dist/assets/caveat-cyrillic-400-normal-9cDH9rLW.woff2 +0 -0
  6. package/dist/assets/caveat-cyrillic-400-normal-CebvvJET.woff +0 -0
  7. package/dist/assets/caveat-cyrillic-500-normal-DLSfp5IU.woff +0 -0
  8. package/dist/assets/caveat-cyrillic-500-normal-DpMZbbjM.woff2 +0 -0
  9. package/dist/assets/caveat-cyrillic-ext-400-normal-3iEGd-c5.woff2 +0 -0
  10. package/dist/assets/caveat-cyrillic-ext-400-normal-Cg0RnRQ5.woff +0 -0
  11. package/dist/assets/caveat-cyrillic-ext-500-normal-DcrB4vVx.woff2 +0 -0
  12. package/dist/assets/caveat-cyrillic-ext-500-normal-DqTXtm5N.woff +0 -0
  13. package/dist/assets/caveat-latin-400-normal-BzhAQZkN.woff +0 -0
  14. package/dist/assets/caveat-latin-400-normal-D6LQsQ_v.woff2 +0 -0
  15. package/dist/assets/caveat-latin-500-normal-B9SDL8cy.woff2 +0 -0
  16. package/dist/assets/caveat-latin-500-normal-Do9veZfZ.woff +0 -0
  17. package/dist/assets/caveat-latin-ext-400-normal-D7hBUiug.woff2 +0 -0
  18. package/dist/assets/caveat-latin-ext-400-normal-DtiRFvw0.woff +0 -0
  19. package/dist/assets/caveat-latin-ext-500-normal-jKqJW7bC.woff2 +0 -0
  20. package/dist/assets/caveat-latin-ext-500-normal-wUUXxlbS.woff +0 -0
  21. package/dist/assets/index-D9OudjOw.js +84 -0
  22. package/dist/assets/index-KEOK2cPN.css +1 -0
  23. package/dist/assets/newsreader-latin-ext-opsz-normal-BQn1nviT.woff2 +0 -0
  24. package/dist/assets/newsreader-latin-opsz-normal-s-izfB6B.woff2 +0 -0
  25. package/dist/assets/newsreader-vietnamese-opsz-normal-BjhtXyW2.woff2 +0 -0
  26. package/dist/fonts/LICENSE-geist-mono.txt +93 -0
  27. package/dist/fonts/LICENSE-geist.txt +93 -0
  28. package/dist/fonts/geist-latin-wght.woff2 +0 -0
  29. package/dist/fonts/geist-mono-latin-wght.woff2 +0 -0
  30. package/dist/fonts/iansui-tc.ttf +0 -0
  31. package/dist/fonts/naikai-tc.woff2 +0 -0
  32. package/dist/index.html +13 -0
  33. package/package.json +77 -4
  34. package/server/ai.ts +1391 -0
  35. package/server/app.ts +644 -0
  36. package/server/config.ts +140 -0
  37. package/server/errors.ts +22 -0
  38. package/server/explain-bridge.ts +320 -0
  39. package/server/extractor.ts +548 -0
  40. package/server/index.ts +28 -0
  41. package/server/security.ts +78 -0
  42. package/server/store.ts +595 -0
  43. package/shared/suite.ts +248 -0
  44. package/shared/types.ts +132 -0
@@ -0,0 +1 @@
1
+ @font-face{font-family:Newsreader Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/assets/newsreader-vietnamese-opsz-normal-BjhtXyW2.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Newsreader Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/assets/newsreader-latin-ext-opsz-normal-BQn1nviT.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Newsreader Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/assets/newsreader-latin-opsz-normal-s-izfB6B.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Caveat;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/caveat-cyrillic-ext-400-normal-3iEGd-c5.woff2) format("woff2"),url(/assets/caveat-cyrillic-ext-400-normal-Cg0RnRQ5.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Caveat;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/caveat-cyrillic-400-normal-9cDH9rLW.woff2) format("woff2"),url(/assets/caveat-cyrillic-400-normal-CebvvJET.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Caveat;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/caveat-latin-ext-400-normal-D7hBUiug.woff2) format("woff2"),url(/assets/caveat-latin-ext-400-normal-DtiRFvw0.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Caveat;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/caveat-latin-400-normal-D6LQsQ_v.woff2) format("woff2"),url(/assets/caveat-latin-400-normal-BzhAQZkN.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Caveat;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/caveat-cyrillic-ext-500-normal-DcrB4vVx.woff2) format("woff2"),url(/assets/caveat-cyrillic-ext-500-normal-DqTXtm5N.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Caveat;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/caveat-cyrillic-500-normal-DpMZbbjM.woff2) format("woff2"),url(/assets/caveat-cyrillic-500-normal-DLSfp5IU.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Caveat;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/caveat-latin-ext-500-normal-jKqJW7bC.woff2) format("woff2"),url(/assets/caveat-latin-ext-500-normal-wUUXxlbS.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Caveat;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/caveat-latin-500-normal-B9SDL8cy.woff2) format("woff2"),url(/assets/caveat-latin-500-normal-Do9veZfZ.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Geist;src:url(/fonts/geist-latin-wght.woff2) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+2013-2014,U+2018-2019,U+201C-201D,U+2022,U+20AC,U+2122,U+2190-2193,U+2212}@font-face{font-family:Geist Mono;src:url(/fonts/geist-mono-latin-wght.woff2) format("woff2");font-weight:100 900;font-display:swap}@font-face{font-family:NaikaiFont;src:url(/fonts/naikai-tc.woff2) format("woff2");font-weight:400 700;font-display:swap}@font-face{font-family:Iansui;src:url(/fonts/iansui-tc.ttf) format("truetype");font-weight:400 700;font-display:swap}:root{--font-sans: "Geist", "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", system-ui, sans-serif;--font-serif: "Newsreader Variable", "Iowan Old Style", "Noto Serif TC", "Noto Serif CJK TC", "Songti TC", Georgia, serif;--font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;--font-pen: "Caveat", "NaikaiFont", "Iansui", "HanziPen TC", "BiauKaiTC", "Kaiti TC", "STKaiti", cursive, sans-serif;--text-micro: 11px;--lh-micro: 16px;--text-meta: 12.5px;--lh-meta: 18px;--text-ui: 13px;--lh-ui: 20px;--text-body: 14.5px;--lh-body: 23px;--text-lg: 16px;--lh-lg: 24px;--text-title: 24px;--lh-title: 32px;--text-display: 30px;--lh-display: 40px;--text-reading: 16.5px;--lh-reading: 30px;--tracking-tight: -.02em;--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--space-8: 32px;--row: 34px;--row-touch: 44px;--radius-xs: 2px;--radius-sm: 3px;--radius-md: 4px;--radius-lg: 6px;--radius-pill: 999px;--dur-1: .12s;--dur-2: .18s;--dur-3: .24s;--ease-out: cubic-bezier(.16, 1, .3, 1);--ink-950: #0F1012;--ink-900: #141518;--ink-800: #1B1D22;--ink-750: #23262D;--terracotta-300: #E59266;--terracotta-700: #9A4A25;--forest-300: #46D992;--forest-700: #175A40;--violet-300: #ABA0FF;--violet-600: #5B45E0;--violet-700: #5640D8;--sky-300: #6EC8FF;--sky-400: #38AEF8;--sky-600: #0B6BCB;--sky-700: #0958A8;--red-400: #FF7873;--red-600: #B82824}:root,[data-theme=light]{color-scheme:light;--chrome: #F6F5F1;--panel: #FAF9F6;--raised: #FFFFFF;--raised-2: #F0EEE8;--overlay: rgba(255, 255, 255, .97);--text: #18181B;--text-2: #3F3F46;--text-3: #6B6A64;--text-4: #9B988F;--line: rgba(24, 24, 27, .1);--line-2: rgba(24, 24, 27, .17);--fill-hover: rgba(24, 24, 27, .04);--fill-active: rgba(24, 24, 27, .07);--scrim: rgba(24, 24, 27, .32);--shadow-panel: 0 1px 2px rgba(24, 24, 27, .04);--shadow-card: 0 1px 2px rgba(24, 24, 27, .04);--shadow-pop: 0 12px 32px -6px rgba(24, 24, 27, .16), 0 0 0 1px rgba(24, 24, 27, .08);--personal-text: var(--terracotta-700);--personal-tint: rgba(164, 83, 44, .1);--pr-text: var(--forest-700);--pr-tint: rgba(31, 109, 80, .1);--explain: var(--violet-600);--explain-text: var(--violet-700);--explain-tint: rgba(91, 69, 224, .09);--reader: #18181B;--reader-text: #1D4ED8;--reader-on: #FFFFFF;--reader-tint: rgba(24, 24, 27, .06);--campaign-text: #89214D;--campaign-tint: #F9ECF1;--paper-sheet: #FFFFFF;--paper-sheet-border: rgba(24, 24, 27, .08);--paper-shadow: 0 1px 2px rgba(24, 24, 27, .03);--highlighter-blend: multiply;--danger: var(--red-600);--focus: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--reader);--bell-surface: var(--panel);--bell-surface-raised: var(--raised);--bell-text: var(--text);--bell-text-muted: var(--text-3);--bell-border: var(--line);--bell-accent: var(--reader);--bell-focus: var(--focus);--bell-radius: var(--radius-md);--bell-shadow: var(--shadow-pop);--ink-amber-wash: rgba(250, 204, 21, .42);--ink-amber-stroke: #9A5500;--ink-amber-border: rgba(154, 85, 0, .3);--ink-mint-wash: rgba(52, 211, 153, .34);--ink-mint-stroke: #0F6E4D;--ink-mint-border: rgba(15, 110, 77, .28);--ink-violet-wash: rgba(167, 139, 250, .32);--ink-violet-stroke: #5338B8;--ink-violet-border: rgba(83, 56, 184, .28);--ink-coral-wash: rgba(251, 113, 133, .3);--ink-coral-stroke: #B22036;--ink-coral-border: rgba(178, 32, 54, .28);--ink-sky-wash: rgba(56, 189, 248, .32);--ink-sky-stroke: #1353A3;--ink-sky-border: rgba(19, 83, 163, .28)}[data-theme=dark]{color-scheme:dark;--chrome: #11100E;--panel: #171512;--raised: #221F1B;--raised-2: #2C2722;--overlay: rgba(31, 28, 24, .97);--text: #EFE8DC;--text-2: #C5BCB0;--text-3: #90887C;--text-4: #5F584F;--line: rgba(244, 234, 216, .085);--line-2: rgba(244, 234, 216, .165);--fill-hover: rgba(248, 238, 222, .055);--fill-active: rgba(248, 238, 222, .105);--scrim: rgba(7, 6, 5, .7);--shadow-panel: 0 1px 4px rgba(0, 0, 0, .42);--shadow-card: 0 2px 6px rgba(0, 0, 0, .38);--shadow-pop: 0 18px 44px -8px rgba(0, 0, 0, .78), 0 0 0 1px rgba(244, 234, 216, .11);--personal-text: #EE9B6D;--personal-tint: rgba(238, 155, 109, .14);--pr-text: #59DBA0;--pr-tint: rgba(89, 219, 160, .13);--explain: #7A67F0;--explain-text: #B8AEFF;--explain-tint: rgba(154, 140, 252, .15);--reader: #7CC0FF;--reader-text: #90CAFF;--reader-on: #11100E;--reader-tint: rgba(124, 192, 255, .14);--campaign-text: #F28BB4;--campaign-tint: #2C1923;--paper-sheet: #191714;--paper-sheet-border: rgba(244, 234, 216, .085);--paper-shadow: 0 2px 10px rgba(0, 0, 0, .34);--highlighter-blend: normal;--danger: var(--red-400);--focus: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--reader);--ink-amber-wash: rgba(238, 180, 70, .24);--ink-amber-stroke: #F3C468;--ink-amber-border: rgba(243, 196, 104, .34);--ink-mint-wash: rgba(88, 212, 154, .21);--ink-mint-stroke: #6CE0A8;--ink-mint-border: rgba(108, 224, 168, .32);--ink-violet-wash: rgba(173, 158, 255, .23);--ink-violet-stroke: #C2B5FF;--ink-violet-border: rgba(194, 181, 255, .32);--ink-coral-wash: rgba(248, 128, 120, .22);--ink-coral-stroke: #FF9992;--ink-coral-border: rgba(255, 153, 146, .32);--ink-sky-wash: rgba(102, 188, 255, .22);--ink-sky-stroke: #87CAFF;--ink-sky-border: rgba(135, 202, 255, .32)}@media(prefers-reduced-motion:reduce){:root{--dur-1: 1ms;--dur-2: 1ms;--dur-3: 1ms}}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-serif:ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.absolute{position:absolute}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.block{display:block}.inline{display:inline}.table{display:table}.transform{transform:var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, )}.resize{resize:both}.underline{text-decoration-line:underline}.ring{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}*,:before,:after{box-sizing:border-box}html,body,#root{background:var(--panel);min-height:100%;color:var(--text);font-family:var(--font-sans);font-size:var(--text-body);line-height:var(--lh-body);-webkit-font-smoothing:antialiased;margin:0}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{box-shadow:var(--focus);outline:none}.reading-progress-bar{background:var(--reader);transform-origin:0;z-index:60;pointer-events:none;height:2px;position:fixed;top:0;left:0;right:0}.app-shell{min-height:100vh;transition:grid-template-columns .18s var(--ease-out);grid-template-columns:232px minmax(0,1fr);display:grid}.app-shell.is-sidebar-collapsed{grid-template-columns:0 minmax(0,1fr)}.app-sidebar{background:var(--chrome);border-right:1px solid var(--line);width:232px;height:100vh;transition:opacity .14s var(--ease-out),transform .18s var(--ease-out);flex-direction:column;display:flex;position:sticky;top:0;overflow:hidden}.app-shell.is-sidebar-collapsed .app-sidebar{opacity:0;pointer-events:none;border-right-color:#0000}.sidebar-head{border-bottom:1px solid var(--line);flex-shrink:0;align-items:center;height:48px;padding:0 10px;display:flex}.sidebar-scroll{flex-direction:column;flex:1;gap:18px;min-height:0;padding:12px 10px;display:flex;overflow-y:auto}.sidebar-nav,.sidebar-section{flex-direction:column;gap:2px;display:flex}.sidebar-footer{border-top:1px solid var(--line);flex-direction:column;flex-shrink:0;gap:2px;padding:8px 10px 10px;display:flex}.sidebar-action-row{text-align:left;cursor:pointer;background:0 0;border:none;width:100%}.sidebar-backdrop{display:none}.suite-brand-btn{border-radius:var(--radius-sm);cursor:pointer;width:100%;min-width:0;height:34px;transition:background var(--dur-1) var(--ease-out),border-color var(--dur-1) var(--ease-out);background:0 0;border:1px solid #0000;align-items:center;gap:8px;padding:0 8px 0 6px;display:inline-flex}.suite-brand-btn:hover{background:var(--fill-hover);border-color:var(--line)}.brand-tile{border-radius:var(--radius-sm);background:var(--reader-tint);width:24px;height:24px;color:var(--reader-text);border:1px solid var(--line-2);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.brand-wordmark{color:var(--text);letter-spacing:-.01em;white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:500;overflow:hidden}.brand-wordmark b{letter-spacing:.02em;font-weight:700}.brand-chevron{color:var(--text-3);flex-shrink:0;margin-left:auto}.app-main{flex-direction:column;min-width:0;display:flex}.main-topbar{z-index:35;background:var(--panel);flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;height:48px;padding:0 20px 0 12px;display:flex;position:sticky;top:0}@supports (color:color-mix(in lab,red,red)){.main-topbar{background:color-mix(in srgb,var(--panel) 92%,transparent)}}.main-topbar{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}.main-topbar-left,.main-topbar-right{align-items:center;gap:8px;min-width:0;display:flex}.topbar-title-group,.topbar-reader-meta{align-items:center;gap:8px;min-width:0;display:inline-flex}.topbar-section-title{color:var(--text);white-space:nowrap;text-overflow:ellipsis;font-size:13.5px;font-weight:600;overflow:hidden}.topbar-count-pill{font-family:var(--font-mono);color:var(--text-3);background:var(--fill-hover);border-radius:999px;padding:1px 6px;font-size:11px}.workspace-container{width:100%;max-width:720px;margin:0 auto;padding:44px 24px 88px}.workspace-container.is-library,.workspace-container.is-topics{max-width:820px;padding-top:28px}.status-banner{border-radius:var(--radius-sm);border:1px solid var(--line-2);background:var(--raised);justify-content:space-between;align-items:center;gap:12px;max-width:720px;margin:16px auto 0;padding:10px 14px;font-size:13px;display:flex}.status-banner.is-error{border-color:var(--danger);color:var(--danger)}.status-banner button{cursor:pointer;color:var(--text-3);background:0 0;border:none}.suite-return-bar{color:var(--text-3);align-items:center;gap:6px;margin-bottom:16px;font-size:12.5px;display:inline-flex}.suite-return-bar:hover{color:var(--text)}.icon-ghost-btn{border-radius:var(--radius-sm);min-width:30px;height:30px;color:var(--text-3);cursor:pointer;white-space:nowrap;transition:background var(--dur-1) var(--ease-out),color var(--dur-1) var(--ease-out);background:0 0;border:1px solid #0000;justify-content:center;align-items:center;gap:5px;padding:0 8px;font-size:12.5px;display:inline-flex}.icon-ghost-btn.is-xs{min-width:24px;height:24px;padding:0 4px}.icon-ghost-btn:hover{background:var(--fill-hover);color:var(--text)}.icon-ghost-btn.is-explain-link:hover{color:var(--explain-text)}.btn-primary{border-radius:var(--radius-sm);border:1px solid var(--reader);background:var(--reader);height:34px;color:var(--reader-on);cursor:pointer;white-space:nowrap;transition:opacity var(--dur-1) var(--ease-out);justify-content:center;align-items:center;gap:6px;padding:0 14px;font-size:13px;font-weight:500;display:inline-flex}.btn-primary:hover:not(:disabled){opacity:.88}.btn-primary:disabled{opacity:.4;cursor:not-allowed}.btn-primary.is-compact{height:30px;padding:0 12px;font-size:12.5px}.btn-secondary{border-radius:var(--radius-sm);border:1px solid var(--line-2);background:var(--raised);height:34px;color:var(--text-2);cursor:pointer;white-space:nowrap;transition:border-color var(--dur-1),color var(--dur-1),background var(--dur-1);justify-content:center;align-items:center;gap:6px;padding:0 12px;font-size:12.5px;font-weight:500;display:inline-flex}.btn-secondary:hover:not(:disabled){border-color:var(--text-3);color:var(--text)}.btn-secondary.is-compact{height:30px;padding:0 11px;font-size:12.5px}.btn-xs-primary{border-radius:var(--radius-xs);background:var(--reader);height:26px;color:var(--reader-on);cursor:pointer;border:none;padding:0 10px;font-size:12px;font-weight:500}.btn-explain-chip{border-radius:var(--radius-sm);height:28px;color:var(--explain-text);background:var(--explain-tint);transition:opacity var(--dur-1);align-items:center;gap:5px;padding:0 10px;font-size:12px;font-weight:500;display:inline-flex}.btn-explain-chip:hover{opacity:.85}.composer-card{padding-bottom:36px}.composer-header{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:20px;display:flex}.composer-kicker{font-family:var(--font-mono);letter-spacing:.04em;color:var(--text-3);margin-bottom:6px;font-size:11px;display:block}.composer-header h1{font-family:var(--font-serif);letter-spacing:-.02em;color:var(--text);margin:0;font-size:30px;font-weight:600;line-height:1.24}.composer-sub{color:var(--text-3);margin:4px 0 0;font-size:12.5px}.composer-mode-pill{font-family:var(--font-mono);color:var(--reader-text);white-space:nowrap;align-items:center;gap:5px;font-size:11.5px;display:inline-flex}.composer-form{background:var(--paper-sheet);border:1px solid var(--line-2);border-radius:var(--radius-md);box-shadow:var(--paper-shadow);flex-direction:column;display:flex;overflow:hidden}.composer-title-input{border:none;border-bottom:1px solid var(--line);width:100%;color:var(--text);background:0 0;padding:11px 16px;font-size:14px;font-weight:500}.composer-title-input:focus{box-shadow:none}.composer-textarea{resize:vertical;width:100%;min-height:118px;color:var(--text);background:0 0;border:none;padding:14px 16px;font-size:14.5px;line-height:1.65}.composer-textarea:focus{box-shadow:none}.composer-footer{border-top:1px solid var(--line);background:var(--chrome);justify-content:space-between;align-items:center;gap:12px;padding:9px 14px;display:flex}.folder-select-wrap{color:var(--text-3);align-items:center;gap:6px;font-size:12.5px;display:inline-flex}.folder-select-wrap select{border:1px solid var(--line-2);border-radius:var(--radius-xs);background:var(--raised);height:28px;color:var(--text-2);padding:0 8px;font-size:12.5px}.folder-select-wrap.is-compact select{color:var(--text-2);background:0 0;border-color:#0000;padding:0 4px}.folder-select-wrap.is-compact select:hover{background:var(--fill-hover)}.composer-actions{align-items:center;gap:8px;display:flex}.recent-section{border-top:1px solid var(--line);margin-top:12px;padding-top:28px}.section-title-row{justify-content:space-between;align-items:baseline;margin-bottom:10px;display:flex}.section-title-row h2{letter-spacing:.04em;color:var(--text-3);text-transform:uppercase;margin:0;font-size:12px;font-weight:600}.text-link{color:var(--text-2);font-size:12.5px}.text-link:hover{color:var(--reader-text);text-underline-offset:3px;text-decoration:underline}.article-index{border-top:1px solid var(--line);flex-direction:column;display:flex}.article-index-row{border-bottom:1px solid var(--line);transition:background var(--dur-1) var(--ease-out);justify-content:space-between;align-items:flex-start;gap:18px;padding:15px 6px;display:flex}.article-index-row:hover{background:var(--fill-hover)}.article-index-main{flex:1;min-width:0}.article-index-kicker{font-family:var(--font-mono);color:var(--text-3);flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:4px;font-size:11px;display:flex}.index-topic{color:var(--reader-text);font-weight:500}.index-folder,.index-site{align-items:center;gap:5px;display:inline-flex}.article-index-row h3{font-family:var(--font-serif);color:var(--text);margin:0 0 3px;font-size:18.5px;font-weight:600;line-height:1.35}.article-index-row:hover h3{color:var(--reader-text)}.article-index-row p{color:var(--text-3);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:13.5px;line-height:1.55;display:-webkit-box;overflow:hidden}.article-index-aside{flex-shrink:0;padding-top:4px}.ann-count-badge{font-family:var(--font-mono);color:var(--text-3);white-space:nowrap;font-size:11.5px}.ann-count-badge.has-ink{color:var(--reader-text);font-weight:500}.library-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;display:flex}.library-header h1{font-family:var(--font-serif);letter-spacing:-.02em;margin:0;font-size:28px;font-weight:600}.search-input{border:1px solid var(--line-2);border-radius:var(--radius-sm);background:var(--paper-sheet);width:240px;height:32px;padding:0 10px;font-size:12.5px}.search-input.is-topbar{background:var(--chrome);height:30px}.library-layout{grid-template-columns:196px minmax(0,1fr);align-items:start;gap:32px;display:grid}.library-folders-rail{flex-direction:column;gap:2px;display:flex}.rail-head{letter-spacing:.05em;text-transform:uppercase;color:var(--text-3);justify-content:space-between;align-items:center;padding:2px 6px 8px;font-size:11px;font-weight:600;display:flex}.nav-row{border-radius:var(--radius-sm);min-height:32px;color:var(--text-2);transition:background var(--dur-1),color var(--dur-1);align-items:center;gap:8px;padding:4px 8px;font-size:13px;display:flex}.nav-row:hover{background:var(--fill-hover);color:var(--text)}.nav-row.is-active{background:var(--fill-active);color:var(--text);font-weight:600}.nav-count{font-family:var(--font-mono);color:var(--text-3);margin-left:auto;font-size:11px}.folder-row{justify-content:space-between;padding-right:4px}.folder-row-link{flex:1;align-items:center;gap:8px;min-width:0;display:flex}.folder-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.folder-dot{border-radius:50%;flex-shrink:0;width:7px;height:7px}.folder-dot.dot-amber{background:var(--ink-amber-stroke)}.folder-dot.dot-mint{background:var(--ink-mint-stroke)}.folder-dot.dot-violet{background:var(--ink-violet-stroke)}.folder-dot.dot-coral{background:var(--ink-coral-stroke)}.folder-dot.dot-sky{background:var(--ink-sky-stroke)}.folder-dot.is-unfiled{background:var(--text-4)}.folder-del-btn{border-radius:var(--radius-xs);width:22px;height:22px;color:var(--text-4);opacity:0;cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;display:inline-flex}.folder-row:hover .folder-del-btn,.folder-del-btn:focus-visible{opacity:1}.folder-del-btn:hover{color:var(--danger);background:var(--fill-hover)}.new-folder-form{background:var(--raised);border:1px solid var(--line-2);border-radius:var(--radius-sm);flex-direction:column;gap:6px;margin:4px 0 8px;padding:8px;display:flex}.new-folder-form input{border:1px solid var(--line-2);border-radius:var(--radius-xs);background:var(--panel);width:100%;height:28px;padding:0 8px;font-size:12.5px}.new-folder-actions{justify-content:space-between;align-items:center;display:flex}.folder-color-row{align-items:center;gap:5px;display:flex}.empty-box{text-align:center;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--paper-sheet);color:var(--text-3);padding:44px 24px}.topic-groups-list{flex-direction:column;gap:24px;display:flex}.topic-group-card{border-top:1px solid var(--line-2);padding-top:16px}.topic-group-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;display:flex}.topic-group-title{align-items:center;gap:8px;display:flex}.topic-group-title h2{margin:0;font-size:17px;font-weight:600}.explain-smart-chips{flex-wrap:wrap;gap:6px;display:flex}.topic-pages-rows{flex-direction:column;display:flex}.topic-page-row{border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:9px 6px;font-size:13.5px;display:flex}.topic-page-row:hover{background:var(--fill-hover)}.topic-page-name{color:var(--text);flex:1;font-weight:500}.topic-page-tags{gap:6px;display:flex}.mini-tag{font-family:var(--font-mono);color:var(--text-3);border:1px solid var(--line);border-radius:var(--radius-xs);padding:1px 6px;font-size:11px}.reader-view-wrap{width:100%;max-width:1220px;margin:0 auto;padding:28px 24px 96px}.reader-toolbar{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px;padding:0 0 12px;display:flex}.reader-toolbar-left,.reader-toolbar-right{align-items:center;gap:10px;display:flex}.reader-topic-label{font-family:var(--font-mono);color:var(--text-3);border-left:1px solid var(--line);padding-left:10px;font-size:11.5px}.reader-quiet-group{align-items:center;gap:2px;display:inline-flex}.more-menu-wrap{position:relative}.more-popover{background:var(--overlay);border:1px solid var(--line-2);border-radius:var(--radius-md);min-width:210px;box-shadow:var(--shadow-pop);z-index:40;flex-direction:column;padding:4px;display:flex;position:absolute;top:calc(100% + 6px);right:0}.more-menu-item{border-radius:var(--radius-xs);width:100%;color:var(--text-2);text-align:left;cursor:pointer;background:0 0;border:none;align-items:center;gap:8px;padding:7px 10px;font-size:12.5px;display:flex}.more-menu-item:hover{background:var(--fill-hover);color:var(--text)}.more-menu-item.is-danger{color:var(--danger)}.ai-annotate-wrap{position:relative}.ai-annotate-split{border-radius:var(--radius-sm);border:1px solid var(--reader);background:var(--reader);height:30px;color:var(--reader-on);align-items:stretch;display:inline-flex;overflow:hidden}.ai-annotate-split.is-rerun{border-color:var(--line-2);background:var(--raised);color:var(--text)}.ai-annotate-main,.ai-annotate-caret{color:inherit;cursor:pointer;white-space:nowrap;transition:background var(--dur-1) var(--ease-out);background:0 0;border:none;justify-content:center;align-items:center;gap:6px;font-size:12.5px;font-weight:500;display:inline-flex}.ai-annotate-main{padding:0 9px 0 11px}.ai-annotate-caret{border-left:1px solid;width:26px}@supports (color:color-mix(in lab,red,red)){.ai-annotate-caret{border-left:1px solid color-mix(in srgb,currentColor 20%,transparent)}}.ai-annotate-split.is-primary .ai-annotate-main:hover:not(:disabled),.ai-annotate-split.is-primary .ai-annotate-caret:hover:not(:disabled){background:#0000001a}.ai-annotate-split.is-rerun .ai-annotate-main:hover:not(:disabled),.ai-annotate-split.is-rerun .ai-annotate-caret:hover:not(:disabled){background:var(--fill-hover)}.ai-annotate-main:disabled,.ai-annotate-caret:disabled{opacity:.45;cursor:not-allowed}.ink-rhythm-meter{align-items:flex-end;gap:2px;height:11px;margin-left:2px;display:inline-flex}.ink-rhythm-meter i{opacity:.28;background:currentColor;border-radius:1px;width:2.5px;display:block}.ink-rhythm-meter i:first-child{height:5px}.ink-rhythm-meter i:nth-child(2){height:8px}.ink-rhythm-meter i:nth-child(3){height:11px}.ink-rhythm-meter i.is-on{opacity:.92}.ai-annotate-split.is-rerun .ink-rhythm-meter i.is-on{background:var(--ink-amber-stroke)}.density-popover{background:var(--overlay);border:1px solid var(--line-2);border-radius:var(--radius-md);width:316px;box-shadow:var(--shadow-pop);z-index:45;padding:10px;position:absolute;top:calc(100% + 7px);right:0}.density-popover-head{color:var(--text-2);justify-content:space-between;align-items:center;padding:2px 4px 8px;font-size:12px;font-weight:600;display:flex}.density-active-pill{background:var(--chrome);border:1px solid var(--line);color:var(--text);border-radius:999px;padding:1px 7px;font-size:11px;font-weight:500}.density-cards-list{flex-direction:column;gap:6px;display:flex}.density-card{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--paper-sheet);width:100%;color:var(--text);text-align:left;cursor:pointer;transition:border-color var(--dur-1),background var(--dur-1);align-items:center;gap:11px;padding:8px 9px;display:flex}.density-card:hover{border-color:var(--line-2);background:var(--fill-hover)}.density-card.is-active{border-color:var(--ink-amber-stroke);background:var(--ink-amber-wash)}@supports (color:color-mix(in lab,red,red)){.density-card.is-active{background:color-mix(in srgb,var(--ink-amber-wash) 22%,var(--paper-sheet))}}.density-thumb-svg{flex-shrink:0;width:60px;height:44px}.d-thumb-sheet{fill:var(--paper-sheet);stroke:var(--line-2);stroke-width:1px}.d-thumb-line{stroke:var(--line-2);stroke-width:1.5px;stroke-linecap:round}.d-thumb-line.is-title{stroke:var(--text-3);stroke-width:2px}.d-thumb-ink.is-amber{fill:var(--ink-amber-wash)}.d-thumb-stroke.is-violet{stroke:var(--ink-violet-stroke);stroke-width:1.4px;stroke-linecap:round}.d-thumb-box{fill:none;stroke-width:1.25px}.d-thumb-box.is-coral{stroke:var(--ink-coral-stroke)}.d-thumb-box.is-mint{stroke:var(--ink-mint-stroke)}.d-thumb-note{stroke-width:2px;stroke-linecap:round}.d-thumb-note.is-amber{stroke:var(--ink-amber-stroke)}.d-thumb-note.is-violet{stroke:var(--ink-violet-stroke)}.d-thumb-note.is-coral{stroke:var(--ink-coral-stroke)}.d-thumb-note.is-mint{stroke:var(--ink-mint-stroke)}.d-thumb-note-sub{stroke:var(--line-2);stroke-width:1.3px;stroke-linecap:round}.density-card-copy{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.density-card-head{justify-content:space-between;align-items:center;gap:6px;display:flex}.density-card-head strong{color:var(--text);font-size:12.5px;font-weight:600}.density-freq-tag{color:var(--text-3);font-variant-numeric:tabular-nums;font-size:10.5px}.density-card-copy small{color:var(--text-2);font-size:11.5px;line-height:1.38}.density-popover-foot{border-top:1px solid var(--line);margin-top:8px;padding-top:8px}.density-run-btn{width:100%}.ai-ink-progress-card{background:var(--paper-sheet);border:1px solid var(--line-2);border-left:2.5px solid var(--reader);border-radius:var(--radius-sm);justify-content:space-between;align-items:center;gap:14px;max-width:640px;margin:0 auto 22px;padding:10px 14px;display:flex}.ai-ink-progress-main{align-items:center;gap:10px;display:flex}.ai-ink-pulse{border-radius:var(--radius-xs);background:var(--reader-tint);width:28px;height:28px;color:var(--reader-text);justify-content:center;align-items:center;display:inline-flex}.ai-ink-progress-main strong{font-size:13px;font-weight:600;display:block}.ai-ink-progress-main small{color:var(--text-3);font-size:12px;display:block}.reader-doc-header{max-width:640px;margin:0 auto 24px}.reader-doc-source{font-family:var(--font-mono);color:var(--text-3);align-items:center;gap:12px;margin-bottom:8px;font-size:11.5px;display:flex}.source-domain-chip,.source-ext-link{align-items:center;gap:5px;display:inline-flex}.source-ext-link:hover{color:var(--reader-text);text-decoration:underline}.reader-doc-header h1{font-family:var(--font-serif);letter-spacing:-.02em;color:var(--text);margin:0;font-size:32px;font-weight:600;line-height:1.25}.explain-matches-bar{flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;display:flex}.explain-bar-label{color:var(--text-3);align-items:center;gap:5px;font-size:12px;display:inline-flex}.ink-stage{background:var(--paper-sheet);border:1px solid var(--paper-sheet-border);border-radius:var(--radius-sm);box-shadow:var(--paper-shadow);position:relative}.ink-stage.has-margins{grid-template-columns:minmax(150px,210px) minmax(0,640px) minmax(150px,210px);justify-content:center;gap:0 22px;padding:40px 24px 68px;display:grid}.ink-stage.is-compact{padding:24px 20px 44px;display:block}.ink-overlay-svg{pointer-events:none;z-index:2;mix-blend-mode:var(--highlighter-blend);position:absolute;inset:0}.ink-image-overlay-svg{pointer-events:none;z-index:5;position:absolute;inset:0}.reader-paper{z-index:3;overflow-wrap:anywhere;min-width:0;font-family:var(--font-sans);font-size:var(--text-reading);line-height:var(--lh-reading);color:var(--text);position:relative}.reader-paper.is-serif{font-family:var(--font-serif);font-size:17.5px;line-height:1.78}.reader-ai-summary{border-left:2px solid var(--line-2);color:var(--text-2);margin:0 0 28px;padding:8px 14px;font-size:14px;line-height:1.65}.summary-scribble-tag{font-family:var(--font-pen);color:var(--reader-text);margin-bottom:2px;font-size:15.5px;font-weight:500;display:inline-block}.reader-ai-summary p{margin:0}.reader-block-row{min-width:0;margin-bottom:18px}.reader-heading{font-family:var(--font-serif);letter-spacing:-.015em;color:var(--text);margin:28px 0 10px;font-weight:600}.reader-heading.level-1{font-size:23px;line-height:1.32}.reader-heading.level-2{font-size:19px;line-height:1.38}.reader-heading.level-3{font-size:16.5px;line-height:1.42}.reader-paragraph{margin:0}.reader-quote{border-left:2px solid var(--line-2);color:var(--text-2);margin:4px 0;padding:4px 0 4px 16px;font-style:italic}.reader-list-item{align-items:baseline;gap:10px;display:flex}.reader-bullet{background:var(--text-3);border-radius:50%;flex-shrink:0;width:5px;height:5px;transform:translateY(-2px)}.reader-list-text{flex:1;min-width:0}.reader-code-wrap{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--chrome);font-family:var(--font-mono);white-space:pre-wrap;word-break:break-word;margin:10px 0;padding:14px 16px;font-size:13px;line-height:1.6;position:relative}.reader-code-lang{color:var(--text-3);text-transform:uppercase;font-size:10.5px;position:absolute;top:6px;right:10px}.reader-table-wrap{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--paper-sheet);margin:16px 0;overflow-x:auto}.reader-table{border-collapse:collapse;text-align:left;width:100%;font-size:14px;line-height:1.55}.reader-table th,.reader-table td{border-bottom:1px solid var(--line);border-right:1px solid var(--line);vertical-align:top;word-break:normal;overflow-wrap:normal;padding:9px 12px}.reader-table th:first-child,.reader-table td:first-child{white-space:nowrap}.reader-table th:last-child,.reader-table td:last-child{border-right:none}.reader-table tbody tr:last-child td{border-bottom:none}.reader-table th{background:var(--chrome);color:var(--text);font-weight:600}.reader-table tbody tr:nth-child(2n) td{background:var(--chrome)}@supports (color:color-mix(in lab,red,red)){.reader-table tbody tr:nth-child(2n) td{background:color-mix(in srgb,var(--chrome) 45%,transparent)}}.reader-figure{margin:20px 0}.reader-figure-frame{max-width:100%;display:inline-block;position:relative}.reader-figure img{border-radius:var(--radius-xs);border:1px solid var(--line);cursor:crosshair;max-width:100%;height:auto;display:block}.figure-pin-hit{cursor:pointer;z-index:4;background:0 0;border:none;border-radius:50%;width:28px;height:28px;position:absolute;transform:translate(-50%,-50%)}.figure-annotate-hint{border-radius:var(--radius-xs);background:var(--paper-sheet);align-items:center;gap:4px;padding:3px 8px;display:inline-flex;position:absolute;bottom:8px;right:8px}@supports (color:color-mix(in lab,red,red)){.figure-annotate-hint{background:color-mix(in srgb,var(--paper-sheet) 90%,transparent)}}.figure-annotate-hint{border:1px solid var(--line-2);color:var(--text-2);pointer-events:none;opacity:0;transition:opacity var(--dur-1) var(--ease-out);font-size:11px}.reader-figure-frame:hover .figure-annotate-hint{opacity:1}.reader-figure figcaption{color:var(--text-3);margin-top:6px;font-size:12.5px}mark.ink-text-hit{color:inherit;cursor:pointer;transition:background var(--dur-1);background:0 0;border-radius:2px}mark.ink-text-hit.is-active{background:var(--fill-hover)}.margin-lane{z-index:4;min-width:0;position:relative}.margin-lane-hint{font-family:var(--font-pen);color:var(--text-3);margin:12px 0 0;font-size:15px;line-height:1.45}.inline-notes-layer{pointer-events:none;z-index:4;position:absolute;inset:0}.inline-notes-layer .pen-note{pointer-events:auto;position:absolute}.near-notes-row{flex-direction:column;gap:12px;margin-top:10px;padding-top:4px;padding-bottom:6px;display:flex}.under-note-slot{max-width:100%}.under-note-slot .pen-note{max-width:380px}.under-note-slot .pen-note.has-sketch,.mobile-margin-stack .pen-note.has-sketch{max-width:min(500px,100%)}.mobile-margin-stack{flex-direction:column;gap:8px;margin-top:10px;padding-left:12px;display:flex}.pen-note{box-shadow:none;color:var(--ink-sky-stroke);font-family:var(--font-pen);cursor:pointer;transition:opacity var(--dur-1) var(--ease-out);background:0 0;border:none;padding:2px 3px}.margin-lane .pen-note{position:absolute;left:0;right:0}.margin-lane-left .pen-note{text-align:right}.margin-lane-left .pen-note-meta{justify-content:flex-end}.pen-note.is-compact{border-left:1.5px solid;padding-left:10px}.pen-ink-amber{color:var(--ink-amber-stroke)}.pen-ink-mint{color:var(--ink-mint-stroke)}.pen-ink-violet{color:var(--ink-violet-stroke)}.pen-ink-coral{color:var(--ink-coral-stroke)}.pen-ink-sky{color:var(--ink-sky-stroke)}.pen-note-meta{justify-content:space-between;align-items:center;gap:8px;margin-bottom:1px;display:flex}.pen-note-tag{font-family:var(--font-sans);letter-spacing:.02em;opacity:.72;font-size:10.5px;font-weight:600}.pen-note-actions{opacity:.25;transition:opacity var(--dur-1);align-items:center;gap:4px;display:inline-flex}.pen-note:hover .pen-note-actions,.pen-note.is-active .pen-note-actions,.pen-note:focus-within .pen-note-actions{opacity:1}.pen-note-btn{border-radius:var(--radius-xs);font-family:var(--font-sans);color:var(--text-3);cursor:pointer;background:0 0;border:none;align-items:center;gap:3px;padding:1px 5px;font-size:10.5px;display:inline-flex}.pen-note-btn:hover{background:var(--fill-hover);color:var(--text)}.pen-note-btn.is-danger:hover{color:var(--danger)}.pen-note-body{overflow-wrap:break-word;margin:0;font-size:15.5px;font-weight:400;line-height:1.42}.pen-note.is-active .pen-note-body{text-underline-offset:4px;text-decoration:underline;text-decoration-thickness:1px}.pen-note-quote-ref{font-family:var(--font-sans);color:var(--text-3);margin-top:4px;font-size:11px;line-height:1.35}.hand-sketch{border-radius:var(--radius-sm);border:1px dashed;width:100%;max-width:460px;margin:8px 0 0;padding:10px 12px 8px}@supports (color:color-mix(in lab,red,red)){.hand-sketch{border:1px dashed color-mix(in srgb,currentColor 30%,transparent)}}.hand-sketch{background:var(--paper-sheet)}@supports (color:color-mix(in lab,red,red)){.hand-sketch{background:color-mix(in srgb,var(--paper-sheet) 90%,currentColor 5%)}}.hand-sketch{text-align:center}.margin-lane .hand-sketch{max-width:224px;padding:6px 6px 5px}.margin-lane-left .hand-sketch{margin-left:auto}.hand-sketch.is-compact{max-width:280px;padding:5px 6px 4px}.hand-sketch-svg{width:100%;height:auto;display:block;overflow:visible}.hand-sketch-fill{stroke:none;opacity:.44}.hand-sketch-fill.ink-fill-amber{fill:var(--ink-amber-wash)}.hand-sketch-fill.ink-fill-mint{fill:var(--ink-mint-wash)}.hand-sketch-fill.ink-fill-violet{fill:var(--ink-violet-wash)}.hand-sketch-fill.ink-fill-coral{fill:var(--ink-coral-wash)}.hand-sketch-fill.ink-fill-sky{fill:var(--ink-sky-wash)}.hand-sketch-stroke{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;opacity:.88}.hand-sketch-stroke.is-dashed{stroke-dasharray:5 4;opacity:.72}.hand-sketch-accent{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}.hand-sketch-dot{fill:currentColor;stroke:var(--paper-sheet);stroke-width:1.5px}.hand-sketch-label{fill:currentColor;font-family:var(--font-pen);paint-order:stroke fill;stroke:var(--paper-sheet);stroke-width:3.5px;stroke-linejoin:round;font-size:13.5px;font-weight:500}.hand-sketch-label.is-sm{opacity:.92;font-size:11.5px}.hand-sketch-label.is-lg{font-size:15.5px;font-weight:600}.hand-sketch-caption{font-family:var(--font-sans);color:var(--text-2);margin-top:4px;font-size:11.5px;line-height:1.38}.selection-pen-bar{z-index:30;background:var(--overlay);border:1px solid var(--line-2);border-radius:var(--radius-md);box-shadow:var(--shadow-pop);flex-direction:column;gap:6px;padding:6px 8px;display:flex;position:absolute}.pen-bar-row{align-items:center;gap:8px;display:flex}.pen-styles,.pen-colors{border-right:1px solid var(--line);align-items:center;gap:4px;padding-right:6px;display:flex}.pen-icon-btn{border-radius:var(--radius-xs);width:26px;height:26px;color:var(--text-2);cursor:pointer;background:0 0;border:1px solid #0000;justify-content:center;align-items:center;display:inline-flex}.pen-icon-btn.is-selected{background:var(--reader-tint);color:var(--reader-text);border-color:var(--line-2)}.pen-color-dot{cursor:pointer;border:1.5px solid #0000;border-radius:50%;width:14px;height:14px}.pen-color-dot.dot-amber{background:var(--ink-amber-stroke)}.pen-color-dot.dot-mint{background:var(--ink-mint-stroke)}.pen-color-dot.dot-violet{background:var(--ink-violet-stroke)}.pen-color-dot.dot-coral{background:var(--ink-coral-stroke)}.pen-color-dot.dot-sky{background:var(--ink-sky-stroke)}.pen-color-dot.is-selected{box-shadow:0 0 0 2px var(--paper-sheet),0 0 0 3.5px var(--text)}.pen-action-btn{border-radius:var(--radius-xs);border:1px solid var(--line-2);background:var(--raised);cursor:pointer;align-items:center;gap:4px;height:26px;padding:0 9px;font-size:12px;display:inline-flex}.pen-action-btn.is-primary{background:var(--reader);border-color:var(--reader);color:var(--reader-on)}.selection-pen-bar.is-image-mode .pen-colors{border-right:none;padding-right:0}.pen-image-mode-title{color:var(--text-2);border-right:1px solid var(--line);align-items:center;gap:5px;padding-right:6px;font-size:12px;font-weight:600;display:inline-flex}.pen-close-btn{margin-left:auto}.pen-manual-form{flex-direction:column;align-items:stretch;gap:6px;display:flex}.pen-manual-row{align-items:center;gap:6px;display:flex}.pen-manual-form input{border:1px solid var(--line-2);border-radius:var(--radius-xs);background:var(--paper-sheet);flex:1;min-width:190px;height:28px;padding:0 8px;font-size:12.5px}.pen-manual-form input.pen-label-input{flex:0 0 118px;min-width:0}.pen-sketch-composer{border-top:1px solid var(--line);flex-direction:column;gap:5px;padding-top:4px;display:flex}.pen-sketch-kinds,.pen-sketch-shapes{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.pen-sketch-chip{border:1px solid var(--line-2);border-radius:var(--radius-xs);background:var(--paper-sheet);height:22px;color:var(--text-2);cursor:pointer;transition:background var(--dur-1),border-color var(--dur-1),color var(--dur-1);padding:0 7px;font-size:11px}.pen-sketch-chip:hover{background:var(--fill-hover);color:var(--text)}.pen-sketch-chip.is-selected{background:var(--text);border-color:var(--text);color:var(--paper-sheet)}.pen-sketch-fields{flex-direction:column;gap:5px;display:flex}.pen-sketch-preview{justify-content:center;padding:2px 0;display:flex}.p-command-overlay,.p-dialog-overlay{background:var(--scrim);z-index:80;position:fixed;inset:0}.p-command-content{background:var(--overlay);border:1px solid var(--line-2);border-radius:var(--radius-lg);width:min(460px,100vw - 32px);box-shadow:var(--shadow-pop);z-index:90;position:fixed;top:14vh;left:50%;overflow:hidden;transform:translate(-50%)}.p-command{flex-direction:column;display:flex}.p-command-search{border-bottom:1px solid var(--line);min-height:46px;color:var(--text-3);align-items:center;gap:10px;padding:0 14px;display:flex}.p-command-search-icon{color:var(--text-3);flex-shrink:0}.p-command-search input,.p-command-search input:focus,.p-command-search input:focus-visible{min-width:0;color:var(--text);caret-color:var(--reader-text);flex:1;font-size:13.5px;box-shadow:none!important;background:0 0!important;border:0!important;outline:none!important}.p-command-search input::placeholder{color:var(--text-3)}.p-kbd{border:1px solid var(--line-2);background:var(--chrome);height:20px;font-family:var(--font-mono);color:var(--text-3);letter-spacing:.02em;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;padding:0 6px;font-size:10.5px;line-height:1;display:inline-flex}.p-command-list{max-height:340px;padding:8px;overflow-y:auto}.p-command-group [cmdk-group-heading]{color:var(--text-3);letter-spacing:.06em;text-transform:uppercase;padding:4px 10px 6px;font-size:11px;font-weight:600}.p-command-item{border-radius:var(--radius-md);cursor:pointer;min-height:54px;transition:background var(--dur-1) var(--ease-out);align-items:center;gap:12px;padding:8px 10px;display:flex}.p-command-item[data-selected=true],.p-command-item:hover{background:var(--fill-hover)}.p-command-item.is-current{background:var(--reader-tint)}@supports (color:color-mix(in lab,red,red)){.p-command-item.is-current{background:color-mix(in srgb,var(--reader-tint) 65%,transparent)}}.p-command-item.is-unlinked{opacity:.65}.p-app-icon{border-radius:var(--radius-sm);border:1px solid var(--line);flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;display:inline-flex}.p-app-personal{background:var(--personal-tint);color:var(--personal-text)}.p-app-explain{background:var(--explain-tint);color:var(--explain-text)}.p-app-pr{background:var(--pr-tint);color:var(--pr-text)}.p-app-reader{background:var(--reader-tint);color:var(--reader-text)}.p-app-campaign{background:var(--campaign-tint);color:var(--campaign-text)}.p-command-app-meta{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.p-command-app-name{color:var(--text);letter-spacing:-.01em;font-size:13.5px;font-weight:600;line-height:1.25}.p-command-app-summary{color:var(--text-3);white-space:nowrap;text-overflow:ellipsis;font-size:12px;line-height:1.3;overflow:hidden}.p-command-app-state{flex-shrink:0;align-items:center;gap:8px;display:inline-flex}.p-state-current{background:var(--reader-tint);color:var(--reader-text);border-radius:999px;align-items:center;gap:3px;padding:2px 7px;font-size:11px;font-weight:600;display:inline-flex}.p-state-arrow{color:var(--text-3);transition:transform var(--dur-1) var(--ease-out),color var(--dur-1)}.p-command-item:hover .p-state-arrow,.p-command-item[data-selected=true] .p-state-arrow{color:var(--text);transform:translate(1px,-1px)}.p-state-unlinked{color:var(--text-3);font-size:11px}.p-command-footer{border-top:1px solid var(--line);background:var(--chrome);color:var(--text-3);justify-content:space-between;align-items:center;padding:8px 14px;font-size:11.5px;display:flex}.p-command-empty,.p-command-error{text-align:center;color:var(--text-3);padding:20px 14px;font-size:13px}.p-command-retry{border-radius:var(--radius-xs);border:1px solid var(--line-2);background:var(--raised);cursor:pointer;height:28px;margin-top:8px;padding:0 12px}.p-dialog-content{background:var(--overlay);border:1px solid var(--line-2);border-radius:var(--radius-lg);width:min(440px,100vw - 32px);box-shadow:var(--shadow-pop);z-index:90;padding:18px 20px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.p-dialog-head{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.p-dialog-head h2{margin:0;font-size:16px;font-weight:600}.settings-form{flex-direction:column;gap:14px;display:flex}.field-block{color:var(--text-2);flex-direction:column;gap:5px;font-size:12.5px;display:flex}.field-block input,.field-block select{border:1px solid var(--line-2);border-radius:var(--radius-sm);background:var(--paper-sheet);height:34px;padding:0 10px;font-size:13px}.checkbox-row{color:var(--text-2);align-items:center;gap:8px;font-size:13px;display:flex}.dialog-actions{justify-content:flex-end;gap:8px;margin-top:6px;display:flex}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:900px){.app-shell,.app-shell.is-sidebar-collapsed{grid-template-columns:minmax(0,1fr)}.app-sidebar,.app-shell.is-sidebar-collapsed .app-sidebar{z-index:65;opacity:1;pointer-events:auto;border-right:1px solid var(--line-2);box-shadow:var(--shadow-pop);position:fixed;top:0;bottom:0;left:0;transform:translate(-100%)}.app-sidebar.is-open,.app-shell.is-sidebar-collapsed .app-sidebar.is-open{transform:translate(0)}.sidebar-backdrop{background:var(--scrim);z-index:60;display:block;position:fixed;inset:0}.main-topbar{padding:0 12px 0 8px}.workspace-container,.workspace-container.is-library,.workspace-container.is-topics{padding:24px 16px 56px}.reader-view-wrap{padding:16px 12px 56px}.composer-header{flex-direction:column;align-items:stretch}.search-input.is-topbar{width:170px}}@media(max-width:640px){.app-main{min-width:0;overflow-x:clip}.main-topbar{gap:6px}.reader-topic-label,.icon-ghost-btn.is-explain-link{display:none}.reader-quiet-group{gap:2px}.icon-ghost-btn span{display:none}.folder-select-wrap.is-compact{max-width:68px;padding:0 6px}.folder-select-wrap.is-compact select{max-width:40px}.icon-ghost-btn{padding:0 5px}.ai-annotate-main{gap:4px;padding:0 6px 0 8px;font-size:12px}.ai-annotate-caret{width:22px}.density-popover{width:min(304px,100vw - 20px)}}[data-theme=dark] .app-sidebar{background:linear-gradient(#12110f,#0f0e0c);border-right-color:#f4ead814}[data-theme=dark] .main-topbar{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#171512e0;border-bottom-color:#f4ead814}[data-theme=dark] .reader-ai-summary{border-radius:0 var(--radius-sm) var(--radius-sm) 0;background:#f4ead808;border-left-color:#7cc0ff73}[data-theme=dark] .hand-sketch{background:#211e1a}@supports (color:color-mix(in lab,red,red)){[data-theme=dark] .hand-sketch{background:color-mix(in srgb,#211e1a 90%,currentColor 5%)}}[data-theme=dark] .hand-sketch{border-color:currentColor}@supports (color:color-mix(in lab,red,red)){[data-theme=dark] .hand-sketch{border-color:color-mix(in srgb,currentColor 28%,#f4ead81f)}}[data-theme=dark] .hand-sketch-fill{opacity:.34}[data-theme=dark] .reader-figure img{filter:brightness(.89)contrast(.98)saturate(.95);border-color:#f4ead824;box-shadow:0 10px 26px #0000006b}[data-theme=dark] .reader-code{background:#13110f;border-color:#f4ead817}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
@@ -0,0 +1,93 @@
1
+ Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font.git) GeistMono-Italic[wght].ttf: Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font.git)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font) Geist-Italic[wght].ttf: Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file
Binary file
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="zh-Hant">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>BELL Web Reader</title>
7
+ <script type="module" crossorigin src="/assets/index-D9OudjOw.js"></script>
8
+ <link rel="stylesheet" crossorigin href="/assets/index-KEOK2cPN.css">
9
+ </head>
10
+ <body>
11
+ <div id="root"></div>
12
+ </body>
13
+ </html>
package/package.json CHANGED
@@ -1,6 +1,79 @@
1
1
  {
2
2
  "name": "bell-reader",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "Local-first web article snapshot & organic ink annotation reader — standalone or part of BELL Suite.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/Suzu1Dev/bell-reader.git"
10
+ },
11
+ "homepage": "https://github.com/Suzu1Dev/bell-reader#readme",
12
+ "bin": {
13
+ "bell-reader": "./bin/bell-reader.mjs"
14
+ },
15
+ "files": [
16
+ "bin",
17
+ "dist",
18
+ "server",
19
+ "!server/**/*.test.ts",
20
+ "shared",
21
+ "!shared/**/*.test.ts",
22
+ "LICENSE",
23
+ "README.md",
24
+ "README.zh-TW.md"
25
+ ],
26
+ "scripts": {
27
+ "dev": "concurrently -k -n api,web \"tsx watch --env-file-if-exists=.env server/index.ts\" \"vite --host 127.0.0.1\"",
28
+ "build": "tsc --noEmit && vite build",
29
+ "prepare": "node -e \"import('node:fs').then(fs=>{if(fs.existsSync('node_modules/vite')&&!fs.existsSync('dist/index.html'))import('node:child_process').then(cp=>cp.execSync('npm run build',{stdio:'inherit'}))})\"",
30
+ "prepack": "npm run build",
31
+ "start": "tsx --env-file-if-exists=.env server/index.ts",
32
+ "test": "BELL_LOG=off tsx --test --test-timeout=60000 server/*.test.ts src/lib/*.test.ts",
33
+ "typecheck": "tsc --noEmit"
34
+ },
35
+ "dependencies": {
36
+ "@fontsource-variable/newsreader": "^5.3.0",
37
+ "@fontsource/caveat": "^5.3.0",
38
+ "@tailwindcss/typography": "^0.5.20",
39
+ "@tailwindcss/vite": "^4.3.5",
40
+ "cheerio": "^1.1.2",
41
+ "compression": "^1.8.2",
42
+ "express": "^5.1.0",
43
+ "ipaddr.js": "^2.2.0",
44
+ "lucide-react": "^0.468.0",
45
+ "motion": "^14.13.0",
46
+ "perfect-freehand": "^1.2.3",
47
+ "react": "^19.1.0",
48
+ "react-dom": "^19.1.0",
49
+ "rough-notation": "^0.5.1",
50
+ "roughjs": "^4.6.6",
51
+ "tailwindcss": "^4.3.5",
52
+ "tsx": "^4.20.0",
53
+ "undici": "^7.16.0",
54
+ "zod": "^4.1.0"
55
+ },
56
+ "devDependencies": {
57
+ "@radix-ui/react-dialog": "1.3.1",
58
+ "@types/compression": "^1.8.1",
59
+ "@types/express": "^5.0.3",
60
+ "@types/node": "^24.0.0",
61
+ "@types/react": "^19.1.0",
62
+ "@types/react-dom": "^19.1.0",
63
+ "@vitejs/plugin-react": "^5.0.0",
64
+ "cmdk": "1.1.1",
65
+ "concurrently": "^9.2.0",
66
+ "happy-dom": "^20.14.5",
67
+ "typescript": "^5.9.0",
68
+ "vite": "^7.1.0"
69
+ },
70
+ "overrides": {
71
+ "postcss-selector-parser": "^6.1.5"
72
+ },
73
+ "engines": {
74
+ "node": ">=20"
75
+ },
76
+ "publishConfig": {
77
+ "access": "public"
78
+ }
79
+ }