pre code.hljs {
  display: block;
  overflow-x: auto;
  padding: 1em
}
code.hljs {
  padding: 3px 5px
}
/*!
  Theme: GitHub Dark
  Description: Dark theme as seen on github.com
  Author: github.com
  Maintainer: @Hirse
  Updated: 2021-05-15

  Outdated base version: https://github.com/primer/github-syntax-dark
  Current colors taken from GitHub's CSS
*/
.hljs {
  color: #c9d1d9;
  background: #0d1117
}
.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-variable.language_ {
  /* prettylights-syntax-keyword */
  color: #ff7b72
}
.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
  /* prettylights-syntax-entity */
  color: #d2a8ff
}
.hljs-attr,
.hljs-attribute,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-operator,
.hljs-variable,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id {
  /* prettylights-syntax-constant */
  color: #79c0ff
}
.hljs-regexp,
.hljs-string,
.hljs-meta .hljs-string {
  /* prettylights-syntax-string */
  color: #a5d6ff
}
.hljs-built_in,
.hljs-symbol {
  /* prettylights-syntax-variable */
  color: #ffa657
}
.hljs-comment,
.hljs-code,
.hljs-formula {
  /* prettylights-syntax-comment */
  color: #8b949e
}
.hljs-name,
.hljs-quote,
.hljs-selector-tag,
.hljs-selector-pseudo {
  /* prettylights-syntax-entity-tag */
  color: #7ee787
}
.hljs-subst {
  /* prettylights-syntax-storage-modifier-import */
  color: #c9d1d9
}
.hljs-section {
  /* prettylights-syntax-markup-heading */
  color: #1f6feb;
  font-weight: bold
}
.hljs-bullet {
  /* prettylights-syntax-markup-list */
  color: #f2cc60
}
.hljs-emphasis {
  /* prettylights-syntax-markup-italic */
  color: #c9d1d9;
  font-style: italic
}
.hljs-strong {
  /* prettylights-syntax-markup-bold */
  color: #c9d1d9;
  font-weight: bold
}
.hljs-addition {
  /* prettylights-syntax-markup-inserted */
  color: #aff5b4;
  background-color: #033a16
}
.hljs-deletion {
  /* prettylights-syntax-markup-deleted */
  color: #ffdcd7;
  background-color: #67060c
}
.hljs-char.escape_,
.hljs-link,
.hljs-params,
.hljs-property,
.hljs-punctuation,
.hljs-tag {
  /* purposely ignored */
  
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

#portal {
  min-height: 100vh;
}

/* Markdown rendering used by AI chat bubbles. Ported from teanode's
   index.tsx GlobalStyles, simplified to a flat stylesheet so the chat
   page can rely on CSS specificity rather than MUI emotion injection. */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  font-weight: 600;
  margin: 12px 0 6px;
}
.markdown-content h1 {
  font-size: 1.4em;
}
.markdown-content h2 {
  font-size: 1.25em;
}
.markdown-content h3 {
  font-size: 1.1em;
}
.markdown-content p {
  margin-bottom: 8px;
}
.markdown-content p:last-child {
  margin-bottom: 0;
}
.markdown-content strong {
  font-weight: 600;
}
.markdown-content em {
  font-style: italic;
}
.markdown-content a,
.markdown-content a:visited {
  color: #e76125;
  text-decoration: none;
}
.markdown-content a:hover {
  color: #c84f17;
  text-decoration: underline;
}
.markdown-content a:focus-visible {
  outline: 2px solid #e76125;
  outline-offset: 2px;
  border-radius: 2px;
}
.markdown-content code {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  padding: 2px 5px;
  border-radius: 3px;
  background-color: rgba(127, 127, 127, 0.12);
}
.markdown-content .code-block {
  position: relative;
  margin: 8px 0;
}
/* Code-block chrome — pre-themed surfaces so the panel stands out
   against either page background. The dark variant is the chat
   default (matches the github-dark.css tokens loaded globally); the
   light variant is the override applied by MessageBubble when MUI is
   in light mode. */
.markdown-content--dark .code-block .code-header,
.markdown-content--dark .code-block pre {
  background-color: #161b22;
  border-color: #30363d;
  color: #f0f6fc;
}
/* Override github-dark.css's `.hljs { color: #c9d1d9 }` default so
   un-tokenized code text (the bulk of any code block) reads with the
   same brighter contrast as the surrounding chrome. github-dark.css's
   per-token colors (.hljs-keyword, .hljs-string, …) are already vivid
   enough against the dark surface and stay as-is. */
.markdown-content--dark .hljs {
  color: #f0f6fc;
}
.markdown-content--light .code-block .code-header,
.markdown-content--light .code-block pre {
  background-color: #f6f8fa;
  border-color: #d0d7de;
  color: #24292e;
}
.markdown-content .code-block .code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  font-size: 11px;
  padding: 4px 8px 4px 12px;
  border: 1px solid;
  border-bottom: none;
}
.markdown-content .code-block .code-lang {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
}
.markdown-content .code-block .copy-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  color: inherit;
  /* Pin the button to the icon's intrinsic size so it can't grow
     with the codeblock width — flex parents would otherwise stretch
     an inline-flex child when the row had spare height. */
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}
.markdown-content .code-block .copy-btn svg {
  /* Lock the SVG dimensions. The HTML attributes `width="14"`
     `height="14"` aren't authoritative — any descendant `svg { width:
     1em }` (MUI-style icon defaults) or `svg { width: 100% }` would
     override and balloon the icon, dragging the flex row's height up
     and inflating the header band. */
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}
/* Force the stroke + fill via CSS rather than relying on the SVG's
   `stroke="currentColor" fill="none"` presentation attributes. SVG
   presentation attributes have LOWER priority than any CSS selector,
   so an unrelated runtime rule (MUI emotion, devtools-injected
   sheet, browser extension reset) that sets `svg { stroke: none }`
   or similar would wipe the icon. Setting them in CSS at the same
   selector specificity restores authority. */
.markdown-content .code-block .copy-btn svg,
.markdown-content .code-block .copy-btn svg * {
  stroke: currentColor;
  fill: none;
}
.markdown-content .code-block .copy-btn:hover {
  opacity: 1;
  background-color: rgba(127, 127, 127, 0.15);
}
/* Explicit per-mode colors. `color: inherit` does flow from
   `.code-header` (which we already paint #f0f6fc / #24292e), but
   keeping the value on the button itself avoids relying on the
   inheritance chain in case a future MUI/emotion rule injects its
   own `color` on <button>. The icon's stroke is `currentColor`, so
   this also paints the SVG. */
.markdown-content--dark .code-block .copy-btn {
  color: #c9d1d9;
}
.markdown-content--dark .code-block .copy-btn:hover {
  color: #f0f6fc;
  background-color: rgba(255, 255, 255, 0.08);
}
.markdown-content--light .code-block .copy-btn {
  color: #57606a;
}
.markdown-content--light .code-block .copy-btn:hover {
  color: #24292e;
  background-color: rgba(0, 0, 0, 0.06);
}
.markdown-content .code-block pre {
  border-radius: 0 0 8px 8px;
  overflow-x: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid;
  border-top: none;
}
.markdown-content pre {
  border-radius: 8px;
  overflow-x: auto;
  margin: 8px 0;
  padding: 12px;
}
.markdown-content pre code {
  background-color: transparent;
  padding: 0;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
  font-size: 13px;
}
.markdown-content ul,
.markdown-content ol {
  padding-left: 20px;
  margin: 8px 0;
}
.markdown-content li {
  margin-bottom: 4px;
}
.markdown-content li > p {
  margin-bottom: 4px;
}
.markdown-content blockquote {
  border-left: 3px solid rgba(127, 127, 127, 0.4);
  padding-left: 12px;
  margin: 8px 0;
  opacity: 0.8;
}
.markdown-content table {
  border-collapse: collapse;
  margin: 8px 0;
  width: 100%;
}
.markdown-content th,
.markdown-content td {
  border: 1px solid rgba(127, 127, 127, 0.24);
  text-align: left;
  padding: 6px 10px;
}
.markdown-content th {
  background-color: rgba(127, 127, 127, 0.08);
  font-weight: 600;
}
.markdown-content hr {
  border: none;
  border-top: 1px solid rgba(127, 127, 127, 0.24);
  margin: 12px 0;
}
.markdown-content img {
  max-width: 100%;
  border-radius: 8px;
}

/* Light-mode highlight.js token overrides. The global @import at the
   top of this file pulls in github-dark.css, whose token colors are
   tuned for a dark background and become unreadable on a light page
   bg (e.g. light-blue strings #a5d6ff vanish on white). MessageBubble
   tags the assistant bubble with .markdown-content--light when MUI is
   in light mode; these scoped rules then re-apply github.css's
   light-theme palette. Specificity (0,2,0) outranks the unscoped
   github-dark rules (0,1,0) so the overrides win without !important. */
.markdown-content--light .hljs {
  color: #24292e;
  background: transparent;
}
.markdown-content--light .hljs-doctag,
.markdown-content--light .hljs-keyword,
.markdown-content--light .hljs-meta .hljs-keyword,
.markdown-content--light .hljs-template-tag,
.markdown-content--light .hljs-template-variable,
.markdown-content--light .hljs-type,
.markdown-content--light .hljs-variable.language_ {
  color: #d73a49;
}
.markdown-content--light .hljs-title,
.markdown-content--light .hljs-title.class_,
.markdown-content--light .hljs-title.class_.inherited__,
.markdown-content--light .hljs-title.function_ {
  color: #6f42c1;
}
.markdown-content--light .hljs-attr,
.markdown-content--light .hljs-attribute,
.markdown-content--light .hljs-literal,
.markdown-content--light .hljs-meta,
.markdown-content--light .hljs-number,
.markdown-content--light .hljs-operator,
.markdown-content--light .hljs-variable,
.markdown-content--light .hljs-selector-attr,
.markdown-content--light .hljs-selector-class,
.markdown-content--light .hljs-selector-id {
  color: #005cc5;
}
.markdown-content--light .hljs-regexp,
.markdown-content--light .hljs-string,
.markdown-content--light .hljs-meta .hljs-string {
  color: #032f62;
}
.markdown-content--light .hljs-built_in,
.markdown-content--light .hljs-symbol {
  color: #e36209;
}
.markdown-content--light .hljs-comment,
.markdown-content--light .hljs-code,
.markdown-content--light .hljs-formula {
  color: #6a737d;
}
.markdown-content--light .hljs-name,
.markdown-content--light .hljs-quote,
.markdown-content--light .hljs-selector-tag,
.markdown-content--light .hljs-selector-pseudo {
  color: #22863a;
}
.markdown-content--light .hljs-subst {
  color: #24292e;
}
.markdown-content--light .hljs-section {
  color: #005cc5;
  font-weight: bold;
}
.markdown-content--light .hljs-bullet {
  color: #735c0f;
}
.markdown-content--light .hljs-emphasis {
  color: #24292e;
  font-style: italic;
}
.markdown-content--light .hljs-strong {
  color: #24292e;
  font-weight: bold;
}
.markdown-content--light .hljs-addition {
  color: #22863a;
  background-color: #f0fff4;
}
.markdown-content--light .hljs-deletion {
  color: #b31d28;
  background-color: #ffeef0;
}

