granclaw 0.0.1-beta.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 (53) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +61 -0
  3. package/bin/granclaw.js +2 -0
  4. package/dist/backend/agent/process.js +246 -0
  5. package/dist/backend/agent/runner-pi.js +993 -0
  6. package/dist/backend/agent/runner.js +334 -0
  7. package/dist/backend/agent/telegram-adapter.js +261 -0
  8. package/dist/backend/agent/telegram-http-client.js +133 -0
  9. package/dist/backend/agent-db.js +108 -0
  10. package/dist/backend/assets/stealth-extension/manifest.json +15 -0
  11. package/dist/backend/assets/stealth-extension/stealth.js +220 -0
  12. package/dist/backend/browser/session-manager.js +213 -0
  13. package/dist/backend/browser/stealth.js +140 -0
  14. package/dist/backend/browser-sessions.js +197 -0
  15. package/dist/backend/config.js +57 -0
  16. package/dist/backend/data-db.js +99 -0
  17. package/dist/backend/esm-import.js +25 -0
  18. package/dist/backend/index.js +53 -0
  19. package/dist/backend/lib/i18n-telegram.js +104 -0
  20. package/dist/backend/logs-db.js +51 -0
  21. package/dist/backend/messages-db.js +112 -0
  22. package/dist/backend/orchestrator/agent-manager.js +139 -0
  23. package/dist/backend/orchestrator/browser-live.js +533 -0
  24. package/dist/backend/orchestrator/server.js +1669 -0
  25. package/dist/backend/providers-config.js +138 -0
  26. package/dist/backend/routes/logs.js +20 -0
  27. package/dist/backend/scheduler.js +66 -0
  28. package/dist/backend/schedules-db.js +125 -0
  29. package/dist/backend/secrets-vault.js +33 -0
  30. package/dist/backend/takeover-messages.js +45 -0
  31. package/dist/backend/takeover-state.js +101 -0
  32. package/dist/backend/takeover-timeout.js +51 -0
  33. package/dist/backend/tasks-db.js +115 -0
  34. package/dist/backend/usage-scanner.js +109 -0
  35. package/dist/backend/workflows/runner.js +267 -0
  36. package/dist/backend/workflows-db.js +235 -0
  37. package/dist/backend/workspace-pool.js +189 -0
  38. package/dist/frontend/assets/index-CZcU3XNC.js +143 -0
  39. package/dist/frontend/assets/index-CkgRytfR.css +1 -0
  40. package/dist/frontend/browser-onboarding.png +0 -0
  41. package/dist/frontend/chat-history-options.html +304 -0
  42. package/dist/frontend/granclaw-logo.png +0 -0
  43. package/dist/frontend/index.html +36 -0
  44. package/dist/home.js +51 -0
  45. package/dist/index.js +159 -0
  46. package/package.json +58 -0
  47. package/templates/AGENT.onboarding.md +74 -0
  48. package/templates/SYSTEM.md +58 -0
  49. package/templates/agents.config.json +3 -0
  50. package/templates/skills/housekeeping/SKILL.md +202 -0
  51. package/templates/skills/memory/SKILL.md +109 -0
  52. package/templates/skills/schedules/SKILL.md +80 -0
  53. package/templates/skills/workflows/SKILL.md +315 -0
@@ -0,0 +1 @@
1
+ *,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,system-ui,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:JetBrains Mono,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background: 254 249 239;--on-background: 29 28 22;--on-surface: 29 28 22;--on-surface-variant: 58 55 47;--surface-bright: 254 249 239;--surface-dim: 222 218 208;--surface-container-lowest: 251 246 235;--surface-container-low: 248 243 233;--surface-container: 242 237 227;--surface-container-high: 237 227 207;--surface-container-highest: 231 226 216;--primary: 93 57 224;--on-primary: 255 255 255;--primary-fixed: 230 222 255;--primary-fixed-dim: 202 190 255;--surface-tint: 96 60 227;--secondary: 177 46 9;--secondary-container: 253 100 61;--tertiary-fixed: 243 228 143;--outline: 121 117 135;--outline-variant: 201 196 216;--error: 186 26 26;--success: 16 122 75;--warning: 202 138 4;--info: 37 99 235}.dark{--background: 29 28 22;--on-background: 245 240 224;--on-surface: 245 240 224;--on-surface-variant: 185 179 195;--surface-bright: 58 54 39;--surface-dim: 20 19 16;--surface-container-lowest: 20 19 16;--surface-container-low: 36 34 26;--surface-container: 46 45 34;--surface-container-high: 58 55 43;--surface-container-highest: 70 67 52;--primary: 202 190 255;--on-primary: 34 16 112;--primary-fixed: 230 222 255;--primary-fixed-dim: 93 57 224;--surface-tint: 202 190 255;--secondary: 255 180 167;--secondary-container: 142 26 0;--tertiary-fixed: 92 81 42;--outline: 141 134 148;--outline-variant: 71 70 79;--error: 255 180 171;--success: 94 218 160;--warning: 250 204 21;--info: 96 165 250}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:72px}body{--tw-bg-opacity: 1;background-color:rgb(var(--background) / var(--tw-bg-opacity, 1));font-family:Inter,system-ui,sans-serif;--tw-text-opacity: 1;color:rgb(var(--on-surface) / var(--tw-text-opacity, 1));background-image:linear-gradient(rgb(var(--on-surface) / .03) 1px,transparent 1px),radial-gradient(circle,rgb(var(--on-surface) / .02) 1px,transparent 1px);background-size:100% 28px,16px 16px;background-attachment:fixed;min-height:100vh}h1,h2,h3{font-family:"Noto Serif",Georgia,serif;--tw-text-opacity: 1;color:rgb(var(--on-surface) / var(--tw-text-opacity, 1))}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:rgb(var(--outline-variant));border-radius:999px}::-webkit-scrollbar-thumb:hover{background:rgb(var(--outline))}::-moz-selection{background:rgb(var(--primary-fixed));color:rgb(var(--on-primary))}::selection{background:rgb(var(--primary-fixed));color:rgb(var(--on-primary))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.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);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.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] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.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] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.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] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.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);font-weight:600;margin-top:1.25em}.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] *)){font-weight:500;font-style:italic;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}.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);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.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] *)){display:block;margin-top:2em;margin-bottom:2em}.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] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.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] *)){color:inherit}.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] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.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);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.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] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.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);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.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);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: rgb(17 24 39 / 10%);--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: rgb(255 255 255 / 10%);--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;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] *)){padding-inline-start:.375em}.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] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.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:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.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}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.noise-overlay{pointer-events:none;position:fixed;top:0;right:0;bottom:0;left:0;background-image:url(https://www.transparenttextures.com/patterns/paper-fibers.png);opacity:.05;z-index:9999;mix-blend-mode:multiply}.dark .noise-overlay{opacity:.1;mix-blend-mode:screen}.highlight-marker{background:linear-gradient(104deg,rgb(var(--tertiary-fixed) / 0) .9%,rgb(var(--tertiary-fixed) / 1) 2.4%,rgb(var(--tertiary-fixed) / .5) 5.8%,rgb(var(--tertiary-fixed) / .1) 93%,rgb(var(--tertiary-fixed) / .7) 96%,rgb(var(--tertiary-fixed) / 0) 98%),linear-gradient(183deg,rgb(var(--tertiary-fixed) / 0),rgb(var(--tertiary-fixed) / .3) 7.9%,rgb(var(--tertiary-fixed) / 0) 15%);padding:.1em .3em}.shadow-callout{box-shadow:0 10px 40px #1d1c160f}.dark .shadow-callout{box-shadow:0 10px 40px #0006}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.bottom-\[42px\]{bottom:42px}.left-0{left:0}.left-2\.5{left:.625rem}.left-3{left:.75rem}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.top-0{top:0}.top-1\/2{top:50%}.top-3{top:.75rem}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.m-auto{margin:auto}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-7{margin-left:1.75rem}.ml-\[79px\]{margin-left:79px}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-8{margin-top:2rem}.mt-\[3px\]{margin-top:3px}.mt-\[6px\]{margin-top:6px}.mt-auto{margin-top:auto}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-44{height:11rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-\[5px\]{height:5px}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-48{max-height:12rem}.max-h-52{max-height:13rem}.max-h-80{max-height:20rem}.max-h-full{max-height:100%}.min-h-0{min-height:0px}.min-h-\[120px\]{min-height:120px}.min-h-\[48px\]{min-height:48px}.min-h-\[72px\]{min-height:72px}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-40{width:10rem}.w-44{width:11rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-96{width:24rem}.w-\[52px\]{width:52px}.w-\[5px\]{width:5px}.w-\[70px\]{width:70px}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-\[260px\]{max-width:260px}.max-w-\[60\%\]{max-width:60%}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize-y{resize:vertical}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-y-1{row-gap:.25rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.125rem}.rounded-full{border-radius:.75rem}.rounded-lg{border-radius:.25rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.5rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.border-amber-400\/20{border-color:#fbbf2433}.border-amber-800\/50{border-color:#92400e80}.border-error\/20{border-color:rgb(var(--error) / .2)}.border-info\/20{border-color:rgb(var(--info) / .2)}.border-outline-variant{--tw-border-opacity: 1;border-color:rgb(var(--outline-variant) / var(--tw-border-opacity, 1))}.border-outline-variant\/20{border-color:rgb(var(--outline-variant) / .2)}.border-outline-variant\/30{border-color:rgb(var(--outline-variant) / .3)}.border-outline-variant\/40{border-color:rgb(var(--outline-variant) / .4)}.border-outline-variant\/60{border-color:rgb(var(--outline-variant) / .6)}.border-primary\/20{border-color:rgb(var(--primary) / .2)}.border-primary\/40{border-color:rgb(var(--primary) / .4)}.border-red-800\/50{border-color:#991b1b80}.border-secondary\/30{border-color:rgb(var(--secondary) / .3)}.border-success\/20{border-color:rgb(var(--success) / .2)}.border-success\/30{border-color:rgb(var(--success) / .3)}.border-warning\/20{border-color:rgb(var(--warning) / .2)}.border-warning\/30{border-color:rgb(var(--warning) / .3)}.border-white\/\[0\.03\]{border-color:#ffffff08}.border-l-primary{--tw-border-opacity: 1;border-left-color:rgb(var(--primary) / var(--tw-border-opacity, 1))}.border-t-primary{--tw-border-opacity: 1;border-top-color:rgb(var(--primary) / var(--tw-border-opacity, 1))}.bg-amber-400\/10{background-color:#fbbf241a}.bg-amber-500\/20{background-color:#f59e0b33}.bg-amber-950\/40{background-color:#451a0366}.bg-background{--tw-bg-opacity: 1;background-color:rgb(var(--background) / var(--tw-bg-opacity, 1))}.bg-black\/60{background-color:#0009}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity, 1))}.bg-blue-400\/60{background-color:#60a5fa99}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-500\/10{background-color:#3b82f61a}.bg-blue-500\/5{background-color:#3b82f60d}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.bg-emerald-500\/10{background-color:#10b9811a}.bg-error{--tw-bg-opacity: 1;background-color:rgb(var(--error) / var(--tw-bg-opacity, 1))}.bg-error\/10{background-color:rgb(var(--error) / .1)}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-info{--tw-bg-opacity: 1;background-color:rgb(var(--info) / var(--tw-bg-opacity, 1))}.bg-info\/10{background-color:rgb(var(--info) / .1)}.bg-on-surface-variant\/30{background-color:rgb(var(--on-surface-variant) / .3)}.bg-outline{--tw-bg-opacity: 1;background-color:rgb(var(--outline) / var(--tw-bg-opacity, 1))}.bg-outline\/50{background-color:rgb(var(--outline) / .5)}.bg-outline\/60{background-color:rgb(var(--outline) / .6)}.bg-primary{--tw-bg-opacity: 1;background-color:rgb(var(--primary) / var(--tw-bg-opacity, 1))}.bg-primary-fixed{--tw-bg-opacity: 1;background-color:rgb(var(--primary-fixed) / var(--tw-bg-opacity, 1))}.bg-primary\/10{background-color:rgb(var(--primary) / .1)}.bg-primary\/15{background-color:rgb(var(--primary) / .15)}.bg-primary\/20{background-color:rgb(var(--primary) / .2)}.bg-primary\/25{background-color:rgb(var(--primary) / .25)}.bg-primary\/40{background-color:rgb(var(--primary) / .4)}.bg-primary\/50{background-color:rgb(var(--primary) / .5)}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-500\/10{background-color:#ef44441a}.bg-red-500\/20{background-color:#ef444433}.bg-red-950\/15{background-color:#450a0a26}.bg-red-950\/30{background-color:#450a0a4d}.bg-red-950\/40{background-color:#450a0a66}.bg-secondary{--tw-bg-opacity: 1;background-color:rgb(var(--secondary) / var(--tw-bg-opacity, 1))}.bg-secondary-container{--tw-bg-opacity: 1;background-color:rgb(var(--secondary-container) / var(--tw-bg-opacity, 1))}.bg-secondary\/15{background-color:rgb(var(--secondary) / .15)}.bg-secondary\/20{background-color:rgb(var(--secondary) / .2)}.bg-secondary\/60{background-color:rgb(var(--secondary) / .6)}.bg-success{--tw-bg-opacity: 1;background-color:rgb(var(--success) / var(--tw-bg-opacity, 1))}.bg-success\/10{background-color:rgb(var(--success) / .1)}.bg-success\/15{background-color:rgb(var(--success) / .15)}.bg-surface-container{--tw-bg-opacity: 1;background-color:rgb(var(--surface-container) / var(--tw-bg-opacity, 1))}.bg-surface-container-high{--tw-bg-opacity: 1;background-color:rgb(var(--surface-container-high) / var(--tw-bg-opacity, 1))}.bg-surface-container-highest{--tw-bg-opacity: 1;background-color:rgb(var(--surface-container-highest) / var(--tw-bg-opacity, 1))}.bg-surface-container-low{--tw-bg-opacity: 1;background-color:rgb(var(--surface-container-low) / var(--tw-bg-opacity, 1))}.bg-surface-container-lowest{--tw-bg-opacity: 1;background-color:rgb(var(--surface-container-lowest) / var(--tw-bg-opacity, 1))}.bg-surface-container-lowest\/90{background-color:rgb(var(--surface-container-lowest) / .9)}.bg-surface-container\/30{background-color:rgb(var(--surface-container) / .3)}.bg-surface-dim\/50{background-color:rgb(var(--surface-dim) / .5)}.bg-tertiary-fixed{--tw-bg-opacity: 1;background-color:rgb(var(--tertiary-fixed) / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-warning{--tw-bg-opacity: 1;background-color:rgb(var(--warning) / var(--tw-bg-opacity, 1))}.bg-warning\/10{background-color:rgb(var(--warning) / .1)}.bg-yellow-400\/30{background-color:#facc154d}.bg-yellow-500\/50{background-color:#eab30880}.object-contain{-o-object-fit:contain;object-fit:contain}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[12px\]{padding-left:12px;padding-right:12px}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\[1px\]{padding-top:1px;padding-bottom:1px}.py-\[2px\]{padding-top:2px;padding-bottom:2px}.py-\[5px\]{padding-top:5px;padding-bottom:5px}.py-\[7px\]{padding-top:7px;padding-bottom:7px}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-8{padding-left:2rem}.pr-1{padding-right:.25rem}.pr-7{padding-right:1.75rem}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-16{padding-top:4rem}.pt-20{padding-top:5rem}.pt-4{padding-top:1rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-headline{font-family:"Noto Serif",Georgia,serif}.font-label{font-family:Space Grotesk,sans-serif}.font-mono{font-family:JetBrains Mono,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.text-\[17px\]{font-size:17px}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.text-\[32px\]{font-size:32px}.text-\[7px\]{font-size:7px}.text-\[8px\]{font-size:8px}.text-\[9px\]{font-size:9px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-\[-0\.01em\]{letter-spacing:-.01em}.tracking-\[0\.08em\]{letter-spacing:.08em}.tracking-\[0\.14em\]{letter-spacing:.14em}.tracking-\[0\.15em\]{letter-spacing:.15em}.tracking-\[0\.18em\]{letter-spacing:.18em}.tracking-\[0\.1em\]{letter-spacing:.1em}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-amber-500\/30{color:#f59e0b4d}.text-amber-500\/60{color:#f59e0b99}.text-error{--tw-text-opacity: 1;color:rgb(var(--error) / var(--tw-text-opacity, 1))}.text-error\/30{color:rgb(var(--error) / .3)}.text-error\/40{color:rgb(var(--error) / .4)}.text-error\/60{color:rgb(var(--error) / .6)}.text-error\/70{color:rgb(var(--error) / .7)}.text-error\/80{color:rgb(var(--error) / .8)}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-info{--tw-text-opacity: 1;color:rgb(var(--info) / var(--tw-text-opacity, 1))}.text-info\/60{color:rgb(var(--info) / .6)}.text-on-primary{--tw-text-opacity: 1;color:rgb(var(--on-primary) / var(--tw-text-opacity, 1))}.text-on-surface{--tw-text-opacity: 1;color:rgb(var(--on-surface) / var(--tw-text-opacity, 1))}.text-on-surface-variant{--tw-text-opacity: 1;color:rgb(var(--on-surface-variant) / var(--tw-text-opacity, 1))}.text-on-surface-variant\/20{color:rgb(var(--on-surface-variant) / .2)}.text-on-surface-variant\/25{color:rgb(var(--on-surface-variant) / .25)}.text-on-surface-variant\/35{color:rgb(var(--on-surface-variant) / .35)}.text-on-surface-variant\/50{color:rgb(var(--on-surface-variant) / .5)}.text-on-surface-variant\/60{color:rgb(var(--on-surface-variant) / .6)}.text-on-surface-variant\/70{color:rgb(var(--on-surface-variant) / .7)}.text-on-surface\/70{color:rgb(var(--on-surface) / .7)}.text-on-surface\/80{color:rgb(var(--on-surface) / .8)}.text-on-surface\/90{color:rgb(var(--on-surface) / .9)}.text-primary{--tw-text-opacity: 1;color:rgb(var(--primary) / var(--tw-text-opacity, 1))}.text-primary\/40{color:rgb(var(--primary) / .4)}.text-primary\/50{color:rgb(var(--primary) / .5)}.text-primary\/60{color:rgb(var(--primary) / .6)}.text-primary\/70{color:rgb(var(--primary) / .7)}.text-secondary{--tw-text-opacity: 1;color:rgb(var(--secondary) / var(--tw-text-opacity, 1))}.text-secondary\/50{color:rgb(var(--secondary) / .5)}.text-secondary\/60{color:rgb(var(--secondary) / .6)}.text-secondary\/70{color:rgb(var(--secondary) / .7)}.text-secondary\/80{color:rgb(var(--secondary) / .8)}.text-success{--tw-text-opacity: 1;color:rgb(var(--success) / var(--tw-text-opacity, 1))}.text-transparent{color:transparent}.text-warning{--tw-text-opacity: 1;color:rgb(var(--warning) / var(--tw-text-opacity, 1))}.text-warning\/30{color:rgb(var(--warning) / .3)}.text-warning\/50{color:rgb(var(--warning) / .5)}.text-warning\/60{color:rgb(var(--warning) / .6)}.text-warning\/80{color:rgb(var(--warning) / .8)}.text-yellow-200{--tw-text-opacity: 1;color:rgb(254 240 138 / var(--tw-text-opacity, 1))}.placeholder-on-surface-variant::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(var(--on-surface-variant) / var(--tw-placeholder-opacity, 1))}.placeholder-on-surface-variant::placeholder{--tw-placeholder-opacity: 1;color:rgb(var(--on-surface-variant) / var(--tw-placeholder-opacity, 1))}.opacity-0{opacity:0}.opacity-10{opacity:.1}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-90{opacity:.9}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-callout{--tw-shadow: 0 10px 40px rgba(29, 28, 22, .06);--tw-shadow-colored: 0 10px 40px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-primary\/30{--tw-ring-color: rgb(var(--primary) / .3)}.ring-primary\/60{--tw-ring-color: rgb(var(--primary) / .6)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[grid-template-rows\]{transition-property:grid-template-rows;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.hover\:shadow-callout:hover{box-shadow:0 10px 40px #1d1c160f}.dark .hover\:shadow-callout:hover{box-shadow:0 10px 40px #0006}.dark\:prose-invert:is(.dark *){--tw-prose-body: var(--tw-prose-invert-body);--tw-prose-headings: var(--tw-prose-invert-headings);--tw-prose-lead: var(--tw-prose-invert-lead);--tw-prose-links: var(--tw-prose-invert-links);--tw-prose-bold: var(--tw-prose-invert-bold);--tw-prose-counters: var(--tw-prose-invert-counters);--tw-prose-bullets: var(--tw-prose-invert-bullets);--tw-prose-hr: var(--tw-prose-invert-hr);--tw-prose-quotes: var(--tw-prose-invert-quotes);--tw-prose-quote-borders: var(--tw-prose-invert-quote-borders);--tw-prose-captions: var(--tw-prose-invert-captions);--tw-prose-kbd: var(--tw-prose-invert-kbd);--tw-prose-kbd-shadows: var(--tw-prose-invert-kbd-shadows);--tw-prose-code: var(--tw-prose-invert-code);--tw-prose-pre-code: var(--tw-prose-invert-pre-code);--tw-prose-pre-bg: var(--tw-prose-invert-pre-bg);--tw-prose-th-borders: var(--tw-prose-invert-th-borders);--tw-prose-td-borders: var(--tw-prose-invert-td-borders)}.placeholder\:italic::-moz-placeholder{font-style:italic}.placeholder\:italic::placeholder{font-style:italic}.placeholder\:text-on-surface-variant::-moz-placeholder{--tw-text-opacity: 1;color:rgb(var(--on-surface-variant) / var(--tw-text-opacity, 1))}.placeholder\:text-on-surface-variant::placeholder{--tw-text-opacity: 1;color:rgb(var(--on-surface-variant) / var(--tw-text-opacity, 1))}.placeholder\:text-on-surface-variant\/25::-moz-placeholder{color:rgb(var(--on-surface-variant) / .25)}.placeholder\:text-on-surface-variant\/25::placeholder{color:rgb(var(--on-surface-variant) / .25)}.placeholder\:text-on-surface-variant\/40::-moz-placeholder{color:rgb(var(--on-surface-variant) / .4)}.placeholder\:text-on-surface-variant\/40::placeholder{color:rgb(var(--on-surface-variant) / .4)}.placeholder\:text-on-surface-variant\/60::-moz-placeholder{color:rgb(var(--on-surface-variant) / .6)}.placeholder\:text-on-surface-variant\/60::placeholder{color:rgb(var(--on-surface-variant) / .6)}.last\:border-0:last-child{border-width:0px}.hover\:border-outline:hover{--tw-border-opacity: 1;border-color:rgb(var(--outline) / var(--tw-border-opacity, 1))}.hover\:border-primary\/40:hover{border-color:rgb(var(--primary) / .4)}.hover\:bg-error\/10:hover{background-color:rgb(var(--error) / .1)}.hover\:bg-primary\/10:hover{background-color:rgb(var(--primary) / .1)}.hover\:bg-primary\/25:hover{background-color:rgb(var(--primary) / .25)}.hover\:bg-primary\/30:hover{background-color:rgb(var(--primary) / .3)}.hover\:bg-primary\/80:hover{background-color:rgb(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:rgb(var(--primary) / .9)}.hover\:bg-red-500\/30:hover{background-color:#ef44444d}.hover\:bg-red-950\/30:hover{background-color:#450a0a4d}.hover\:bg-red-950\/50:hover{background-color:#450a0a80}.hover\:bg-secondary\/30:hover{background-color:rgb(var(--secondary) / .3)}.hover\:bg-surface-container:hover{--tw-bg-opacity: 1;background-color:rgb(var(--surface-container) / var(--tw-bg-opacity, 1))}.hover\:bg-surface-container-highest:hover{--tw-bg-opacity: 1;background-color:rgb(var(--surface-container-highest) / var(--tw-bg-opacity, 1))}.hover\:bg-surface-container-lowest:hover{--tw-bg-opacity: 1;background-color:rgb(var(--surface-container-lowest) / var(--tw-bg-opacity, 1))}.hover\:bg-surface-container\/40:hover{background-color:rgb(var(--surface-container) / .4)}.hover\:bg-surface-container\/50:hover{background-color:rgb(var(--surface-container) / .5)}.hover\:bg-surface-dim\/50:hover{background-color:rgb(var(--surface-dim) / .5)}.hover\:bg-surface-tint:hover{--tw-bg-opacity: 1;background-color:rgb(var(--surface-tint) / var(--tw-bg-opacity, 1))}.hover\:bg-white\/\[0\.02\]:hover{background-color:#ffffff05}.hover\:\!text-error:hover{--tw-text-opacity: 1 !important;color:rgb(var(--error) / var(--tw-text-opacity, 1))!important}.hover\:text-error:hover{--tw-text-opacity: 1;color:rgb(var(--error) / var(--tw-text-opacity, 1))}.hover\:text-on-surface:hover{--tw-text-opacity: 1;color:rgb(var(--on-surface) / var(--tw-text-opacity, 1))}.hover\:text-on-surface-variant:hover{--tw-text-opacity: 1;color:rgb(var(--on-surface-variant) / var(--tw-text-opacity, 1))}.hover\:text-on-surface-variant\/60:hover{color:rgb(var(--on-surface-variant) / .6)}.hover\:text-on-surface-variant\/70:hover{color:rgb(var(--on-surface-variant) / .7)}.hover\:text-primary:hover{--tw-text-opacity: 1;color:rgb(var(--primary) / var(--tw-text-opacity, 1))}.hover\:text-primary\/70:hover{color:rgb(var(--primary) / .7)}.hover\:text-primary\/80:hover{color:rgb(var(--primary) / .8)}.hover\:text-primary\/90:hover{color:rgb(var(--primary) / .9)}.hover\:text-surface-tint:hover{--tw-text-opacity: 1;color:rgb(var(--surface-tint) / var(--tw-text-opacity, 1))}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-90:hover{opacity:.9}.hover\:shadow-callout:hover{--tw-shadow: 0 10px 40px rgba(29, 28, 22, .06);--tw-shadow-colored: 0 10px 40px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:brightness-110:hover{--tw-brightness: brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\:border-primary:focus{--tw-border-opacity: 1;border-color:rgb(var(--primary) / var(--tw-border-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-primary\/20:focus{--tw-ring-color: rgb(var(--primary) / .2)}.focus\:ring-primary\/25:focus{--tw-ring-color: rgb(var(--primary) / .25)}.focus\:ring-primary\/30:focus{--tw-ring-color: rgb(var(--primary) / .3)}.focus\:ring-primary\/40:focus{--tw-ring-color: rgb(var(--primary) / .4)}.active\:scale-\[0\.98\]:active{--tw-scale-x: .98;--tw-scale-y: .98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-default:disabled{cursor:default}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-20:disabled{opacity:.2}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:text-on-surface-variant\/70{color:rgb(var(--on-surface-variant) / .7)}.group:hover .group-hover\:text-on-surface\/90{color:rgb(var(--on-surface) / .9)}.group:hover .group-hover\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-80{opacity:.8}.prose-headings\:mb-1 :is(:where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *))){margin-bottom:.25rem}.prose-headings\:mt-3 :is(:where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *))){margin-top:.75rem}.prose-p\:my-1 :is(:where(p):not(:where([class~=not-prose],[class~=not-prose] *))){margin-top:.25rem;margin-bottom:.25rem}.prose-a\:text-secondary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){--tw-text-opacity: 1;color:rgb(var(--secondary) / var(--tw-text-opacity, 1))}.prose-strong\:text-on-surface :is(:where(strong):not(:where([class~=not-prose],[class~=not-prose] *))){--tw-text-opacity: 1;color:rgb(var(--on-surface) / var(--tw-text-opacity, 1))}.prose-code\:rounded :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){border-radius:.125rem}.prose-code\:bg-surface-dim :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){--tw-bg-opacity: 1;background-color:rgb(var(--surface-dim) / var(--tw-bg-opacity, 1))}.prose-code\:px-1 :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){padding-left:.25rem;padding-right:.25rem}.prose-code\:text-xs :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.75rem;line-height:1rem}.prose-pre\:bg-surface-dim :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){--tw-bg-opacity: 1;background-color:rgb(var(--surface-dim) / var(--tw-bg-opacity, 1))}.prose-pre\:text-xs :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.75rem;line-height:1rem}.prose-ol\:my-1 :is(:where(ol):not(:where([class~=not-prose],[class~=not-prose] *))){margin-top:.25rem;margin-bottom:.25rem}.prose-ul\:my-1 :is(:where(ul):not(:where([class~=not-prose],[class~=not-prose] *))){margin-top:.25rem;margin-bottom:.25rem}.prose-li\:my-0 :is(:where(li):not(:where([class~=not-prose],[class~=not-prose] *))){margin-top:0;margin-bottom:0}.prose-table\:w-full :is(:where(table):not(:where([class~=not-prose],[class~=not-prose] *))){width:100%}.prose-table\:border-collapse :is(:where(table):not(:where([class~=not-prose],[class~=not-prose] *))){border-collapse:collapse}.prose-table\:text-xs :is(:where(table):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.75rem;line-height:1rem}.prose-th\:border :is(:where(th):not(:where([class~=not-prose],[class~=not-prose] *))){border-width:1px}.prose-th\:border-outline-variant\/40 :is(:where(th):not(:where([class~=not-prose],[class~=not-prose] *))){border-color:rgb(var(--outline-variant) / .4)}.prose-th\:bg-surface-dim :is(:where(th):not(:where([class~=not-prose],[class~=not-prose] *))){--tw-bg-opacity: 1;background-color:rgb(var(--surface-dim) / var(--tw-bg-opacity, 1))}.prose-th\:px-2 :is(:where(th):not(:where([class~=not-prose],[class~=not-prose] *))){padding-left:.5rem;padding-right:.5rem}.prose-th\:py-1 :is(:where(th):not(:where([class~=not-prose],[class~=not-prose] *))){padding-top:.25rem;padding-bottom:.25rem}.prose-th\:text-left :is(:where(th):not(:where([class~=not-prose],[class~=not-prose] *))){text-align:left}.prose-th\:font-medium :is(:where(th):not(:where([class~=not-prose],[class~=not-prose] *))){font-weight:500}.prose-td\:border :is(:where(td):not(:where([class~=not-prose],[class~=not-prose] *))){border-width:1px}.prose-td\:border-outline-variant\/40 :is(:where(td):not(:where([class~=not-prose],[class~=not-prose] *))){border-color:rgb(var(--outline-variant) / .4)}.prose-td\:px-2 :is(:where(td):not(:where([class~=not-prose],[class~=not-prose] *))){padding-left:.5rem;padding-right:.5rem}.prose-td\:py-1 :is(:where(td):not(:where([class~=not-prose],[class~=not-prose] *))){padding-top:.25rem;padding-bottom:.25rem}@media (min-width: 768px){.md\:inline{display:inline}}
@@ -0,0 +1,304 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <title>Chat History — Architecture Options</title>
6
+ <script src="https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js"></script>
7
+ <style>
8
+ :root {
9
+ --bg: #0d0d0d;
10
+ --surface: #161616;
11
+ --card: #1e1e1e;
12
+ --border: #2a2a2a;
13
+ --text: #e8e8e8;
14
+ --muted: #888;
15
+ --accent-a: #7c3aed;
16
+ --accent-b: #0ea5e9;
17
+ --accent-c: #10b981;
18
+ --warn: #f59e0b;
19
+ }
20
+
21
+ * { box-sizing: border-box; margin: 0; padding: 0; }
22
+
23
+ body {
24
+ background: var(--bg);
25
+ color: var(--text);
26
+ font-family: 'Inter', system-ui, sans-serif;
27
+ padding: 48px 32px;
28
+ }
29
+
30
+ h1 {
31
+ font-size: 1.5rem;
32
+ font-weight: 700;
33
+ margin-bottom: 8px;
34
+ letter-spacing: -0.02em;
35
+ }
36
+
37
+ .subtitle {
38
+ color: var(--muted);
39
+ font-size: 0.875rem;
40
+ margin-bottom: 48px;
41
+ }
42
+
43
+ .options {
44
+ display: grid;
45
+ grid-template-columns: repeat(3, 1fr);
46
+ gap: 24px;
47
+ margin-bottom: 48px;
48
+ }
49
+
50
+ .option {
51
+ background: var(--card);
52
+ border: 1px solid var(--border);
53
+ border-radius: 12px;
54
+ overflow: hidden;
55
+ }
56
+
57
+ .option-header {
58
+ padding: 16px 20px 12px;
59
+ border-bottom: 1px solid var(--border);
60
+ }
61
+
62
+ .option-label {
63
+ font-size: 0.7rem;
64
+ font-weight: 600;
65
+ letter-spacing: 0.1em;
66
+ text-transform: uppercase;
67
+ margin-bottom: 4px;
68
+ }
69
+
70
+ .option-a .option-label { color: var(--accent-a); }
71
+ .option-b .option-label { color: var(--accent-b); }
72
+ .option-c .option-label { color: var(--accent-c); }
73
+
74
+ .option-title {
75
+ font-size: 1rem;
76
+ font-weight: 600;
77
+ }
78
+
79
+ .diagram {
80
+ padding: 20px;
81
+ }
82
+
83
+ /* Hand-drawn style diagrams with SVG */
84
+ .diagram svg {
85
+ width: 100%;
86
+ height: auto;
87
+ }
88
+
89
+ .tradeoffs {
90
+ padding: 16px 20px;
91
+ border-top: 1px solid var(--border);
92
+ display: flex;
93
+ flex-direction: column;
94
+ gap: 8px;
95
+ }
96
+
97
+ .tradeoff {
98
+ display: flex;
99
+ align-items: flex-start;
100
+ gap: 8px;
101
+ font-size: 0.78rem;
102
+ line-height: 1.4;
103
+ }
104
+
105
+ .tradeoff .icon {
106
+ flex-shrink: 0;
107
+ margin-top: 1px;
108
+ }
109
+
110
+ .pro { color: var(--accent-c); }
111
+ .con { color: #f87171; }
112
+
113
+ .recommendation {
114
+ background: var(--card);
115
+ border: 1px solid var(--accent-c);
116
+ border-radius: 12px;
117
+ padding: 24px;
118
+ }
119
+
120
+ .recommendation h2 {
121
+ font-size: 0.7rem;
122
+ font-weight: 600;
123
+ letter-spacing: 0.1em;
124
+ text-transform: uppercase;
125
+ color: var(--accent-c);
126
+ margin-bottom: 8px;
127
+ }
128
+
129
+ .recommendation h3 {
130
+ font-size: 1.1rem;
131
+ font-weight: 600;
132
+ margin-bottom: 16px;
133
+ }
134
+
135
+ .rec-diagram {
136
+ background: var(--surface);
137
+ border-radius: 8px;
138
+ padding: 20px;
139
+ }
140
+
141
+ /* Mermaid theme overrides */
142
+ .mermaid {
143
+ background: transparent !important;
144
+ }
145
+ </style>
146
+ </head>
147
+ <body>
148
+
149
+ <h1>Chat History — Architecture Options</h1>
150
+ <p class="subtitle">How should agent-brother store messages so agents remember across channels and the UI can display history?</p>
151
+
152
+ <div class="options">
153
+
154
+ <!-- OPTION A -->
155
+ <div class="option option-a">
156
+ <div class="option-header">
157
+ <div class="option-label">Option A</div>
158
+ <div class="option-title">Session per conversation</div>
159
+ </div>
160
+ <div class="diagram">
161
+ <div class="mermaid">
162
+ %%{init: {'theme': 'dark', 'themeVariables': {'background': '#1e1e1e', 'primaryColor': '#7c3aed', 'primaryTextColor': '#e8e8e8', 'primaryBorderColor': '#7c3aed', 'lineColor': '#555', 'secondaryColor': '#2a2a2a', 'tertiaryColor': '#1e1e1e', 'edgeLabelBackground': '#1e1e1e', 'fontSize': '12px'}}}%%
163
+ flowchart TD
164
+ WA["📱 WhatsApp"] -->|msg + channel:wa| B
165
+ LI["💼 LinkedIn"] -->|msg + channel:li| B
166
+ UI["🖥 Dashboard UI"] -->|msg + channel:ui| B
167
+
168
+ B["Backend\nOrchestrator"]
169
+
170
+ B -->|resume session_wa| AG
171
+ B -->|resume session_li| AG
172
+ B -->|resume session_ui| AG
173
+
174
+ AG["🤖 Agent\nRunner"]
175
+ AG -->|spawns| CL["claude CLI\n--resume &lt;session_id&gt;"]
176
+
177
+ AG -->|stores| DB[("SQLite\nsession_wa\nsession_li\nsession_ui")]
178
+
179
+ B -->|log msg| MG[("MongoDB\nmessages")]
180
+
181
+ MG -->|history| UI
182
+ </div>
183
+ </div>
184
+ <div class="tradeoffs">
185
+ <div class="tradeoff pro"><span class="icon">✓</span><span>Each channel has its own Claude context window — no cross-talk</span></div>
186
+ <div class="tradeoff pro"><span class="icon">✓</span><span>Fast — no extra tokens injected per request</span></div>
187
+ <div class="tradeoff con"><span class="icon">✗</span><span>Claude sessions expire — agent loses memory cold on restart</span></div>
188
+ <div class="tradeoff con"><span class="icon">✗</span><span>Can't move a conversation between channels</span></div>
189
+ </div>
190
+ </div>
191
+
192
+ <!-- OPTION B -->
193
+ <div class="option option-b">
194
+ <div class="option-header">
195
+ <div class="option-label">Option B</div>
196
+ <div class="option-title">Inject history, no sessions</div>
197
+ </div>
198
+ <div class="diagram">
199
+ <div class="mermaid">
200
+ %%{init: {'theme': 'dark', 'themeVariables': {'background': '#1e1e1e', 'primaryColor': '#0ea5e9', 'primaryTextColor': '#e8e8e8', 'primaryBorderColor': '#0ea5e9', 'lineColor': '#555', 'secondaryColor': '#2a2a2a', 'tertiaryColor': '#1e1e1e', 'edgeLabelBackground': '#1e1e1e', 'fontSize': '12px'}}}%%
201
+ flowchart TD
202
+ WA["📱 WhatsApp"] -->|msg| B
203
+ LI["💼 LinkedIn"] -->|msg| B
204
+ UI["🖥 Dashboard UI"] -->|msg| B
205
+
206
+ B["Backend\nOrchestrator"]
207
+
208
+ B -->|fetch last N msgs| MG[("MongoDB\nmessages")]
209
+ MG -->|history| B
210
+
211
+ B -->|prompt = history + msg| AG["🤖 Agent\nRunner"]
212
+ AG -->|spawns fresh| CL["claude CLI\n-p 'prev: ...\nuser: ...'"]
213
+
214
+ AG -->|save reply| MG
215
+
216
+ MG -->|display| UI
217
+ </div>
218
+ </div>
219
+ <div class="tradeoffs">
220
+ <div class="tradeoff pro"><span class="icon">✓</span><span>Full control over what agent sees — no session expiry surprises</span></div>
221
+ <div class="tradeoff pro"><span class="icon">✓</span><span>Conversation can move freely across channels</span></div>
222
+ <div class="tradeoff con"><span class="icon">✗</span><span>Extra tokens on every request — slower and more expensive</span></div>
223
+ <div class="tradeoff con"><span class="icon">✗</span><span>Context window fills up on long conversations</span></div>
224
+ </div>
225
+ </div>
226
+
227
+ <!-- OPTION C -->
228
+ <div class="option option-c">
229
+ <div class="option-header">
230
+ <div class="option-label">Option C — Recommended</div>
231
+ <div class="option-title">Hybrid: resume + fallback inject</div>
232
+ </div>
233
+ <div class="diagram">
234
+ <div class="mermaid">
235
+ %%{init: {'theme': 'dark', 'themeVariables': {'background': '#1e1e1e', 'primaryColor': '#10b981', 'primaryTextColor': '#e8e8e8', 'primaryBorderColor': '#10b981', 'lineColor': '#555', 'secondaryColor': '#2a2a2a', 'tertiaryColor': '#1e1e1e', 'edgeLabelBackground': '#1e1e1e', 'fontSize': '12px'}}}%%
236
+ flowchart TD
237
+ WA["📱 WhatsApp"] --> B
238
+ LI["💼 LinkedIn"] --> B
239
+ UI["🖥 Dashboard UI"] --> B
240
+
241
+ B["Backend\nOrchestrator"]
242
+ B -->|save msg| MG[("MongoDB\nmessages")]
243
+ B -->|run| AG["🤖 Agent\nRunner"]
244
+
245
+ AG -->|happy path| CL1["claude CLI\n--resume session_id"]
246
+ CL1 -->|exit 1 / expired| FB["⚠ Session expired\nfallback"]
247
+
248
+ FB -->|fetch last 20 msgs| MG
249
+ MG --> FB
250
+ FB -->|inject as context| CL2["claude CLI\nfresh + history"]
251
+
252
+ CL1 -->|reply| B
253
+ CL2 -->|reply + new session_id| B
254
+
255
+ B -->|save reply| MG
256
+ MG -->|display| UI
257
+ </div>
258
+ </div>
259
+ <div class="tradeoffs">
260
+ <div class="tradeoff pro"><span class="icon">✓</span><span>Fast on happy path (--resume, no extra tokens)</span></div>
261
+ <div class="tradeoff pro"><span class="icon">✓</span><span>Survives session expiry — injects history automatically</span></div>
262
+ <div class="tradeoff pro"><span class="icon">✓</span><span>Full message log in MongoDB for UI + cross-channel queries</span></div>
263
+ <div class="tradeoff con"><span class="icon">✗</span><span>Slightly more complex runner logic (already partially there)</span></div>
264
+ </div>
265
+ </div>
266
+
267
+ </div>
268
+
269
+ <!-- DATA MODEL -->
270
+ <div class="recommendation">
271
+ <h2>Recommended data model — Option C</h2>
272
+ <h3>MongoDB <code>messages</code> collection + SQLite <code>agent_sessions</code> per (agent, channel, conversation)</h3>
273
+ <div class="rec-diagram">
274
+ <div class="mermaid">
275
+ %%{init: {'theme': 'dark', 'themeVariables': {'background': '#161616', 'primaryColor': '#10b981', 'primaryTextColor': '#e8e8e8', 'primaryBorderColor': '#10b981', 'lineColor': '#555', 'secondaryColor': '#2a2a2a', 'tertiaryColor': '#161616', 'edgeLabelBackground': '#161616', 'fontSize': '13px'}}}%%
276
+ erDiagram
277
+ MESSAGE {
278
+ string id PK
279
+ string agentId
280
+ string channelId "ui | whatsapp | linkedin"
281
+ string conversationId "groups a thread"
282
+ string role "user | assistant"
283
+ string content
284
+ number createdAt
285
+ }
286
+
287
+ AGENT_SESSION {
288
+ string agentId PK
289
+ string channelId PK
290
+ string conversationId PK
291
+ string sessionId "Claude resume token"
292
+ number updatedAt
293
+ }
294
+
295
+ MESSAGE }o--|| AGENT_SESSION : "linked by agentId+channelId+conversationId"
296
+ </div>
297
+ </div>
298
+ </div>
299
+
300
+ <script>
301
+ mermaid.initialize({ startOnLoad: true, theme: 'dark' });
302
+ </script>
303
+ </body>
304
+ </html>
Binary file
@@ -0,0 +1,36 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <link rel="icon" type="image/png" href="/granclaw-logo.png" />
7
+ <title>GranClaw</title>
8
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
9
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
10
+ <link
11
+ href="https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap"
12
+ rel="stylesheet"
13
+ />
14
+ <link
15
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap"
16
+ rel="stylesheet"
17
+ />
18
+ <script>
19
+ // Pre-paint theme class to avoid a light/dark flash on load. Reads the
20
+ // persisted choice, falling back to prefers-color-scheme. Kept inline
21
+ // and synchronous so it runs before React mounts.
22
+ (function () {
23
+ try {
24
+ var stored = localStorage.getItem('granclaw-theme');
25
+ var isDark = stored === 'dark' || (!stored && window.matchMedia('(prefers-color-scheme: dark)').matches);
26
+ if (isDark) document.documentElement.classList.add('dark');
27
+ } catch (_) { /* SSR / blocked storage — ignore */ }
28
+ })();
29
+ </script>
30
+ <script type="module" crossorigin src="/assets/index-CZcU3XNC.js"></script>
31
+ <link rel="stylesheet" crossorigin href="/assets/index-CkgRytfR.css">
32
+ </head>
33
+ <body class="bg-background text-on-surface">
34
+ <div id="root"></div>
35
+ </body>
36
+ </html>
package/dist/home.js ADDED
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.resolveHome = resolveHome;
7
+ exports.seedHomeIfNeeded = seedHomeIfNeeded;
8
+ const fs_1 = __importDefault(require("fs"));
9
+ const os_1 = __importDefault(require("os"));
10
+ const path_1 = __importDefault(require("path"));
11
+ /**
12
+ * Resolve the GranClaw home directory.
13
+ *
14
+ * Priority (highest first):
15
+ * 1. --home CLI flag (passed in as `cliFlag`)
16
+ * 2. GRANCLAW_HOME env var
17
+ * 3. ~/.granclaw
18
+ *
19
+ * Whitespace-only values are treated as unset so callers do not land
20
+ * on paths like "<cwd> " when a shell accidentally exports a padded value.
21
+ */
22
+ function resolveHome(cliFlag) {
23
+ const flag = cliFlag?.trim();
24
+ if (flag)
25
+ return path_1.default.resolve(flag);
26
+ const envHome = process.env.GRANCLAW_HOME?.trim();
27
+ if (envHome)
28
+ return path_1.default.resolve(envHome);
29
+ return path_1.default.join(os_1.default.homedir(), '.granclaw');
30
+ }
31
+ /**
32
+ * Create the home directory and seed it from bundled templates if it does
33
+ * not already exist. Idempotent: existing files are never overwritten.
34
+ *
35
+ * After this runs, homeDir contains:
36
+ * agents.config.json (copied from <templatesDir>/agents.config.json)
37
+ * data/ (empty, for SQLite DBs)
38
+ * workspaces/ (empty, for per-agent workspace dirs)
39
+ * logs/ (empty, for CLI stdout/stderr tee)
40
+ */
41
+ function seedHomeIfNeeded(homeDir, templatesDir) {
42
+ fs_1.default.mkdirSync(homeDir, { recursive: true });
43
+ fs_1.default.mkdirSync(path_1.default.join(homeDir, 'data'), { recursive: true });
44
+ fs_1.default.mkdirSync(path_1.default.join(homeDir, 'workspaces'), { recursive: true });
45
+ fs_1.default.mkdirSync(path_1.default.join(homeDir, 'logs'), { recursive: true });
46
+ const targetConfig = path_1.default.join(homeDir, 'agents.config.json');
47
+ if (!fs_1.default.existsSync(targetConfig)) {
48
+ const sourceConfig = path_1.default.join(templatesDir, 'agents.config.json');
49
+ fs_1.default.copyFileSync(sourceConfig, targetConfig);
50
+ }
51
+ }