/* [project]/app/globals.css [app-client] (css) */
:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --ink: #272d28;
  --muted: #61695f;
  --green: #294d3b;
  --line: #dedfd6;
  --paper: #fffefa;
  --topbar-height: 66px;
  font-family: system-ui, -apple-system, PingFang SC, Microsoft YaHei, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  color: var(--ink);
  background: var(--paper);
  margin: 0;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: .52;
}

button, a, input, select, textarea {
  outline-offset: 3px;
}

.topbar {
  min-height: var(--topbar-height);
  border-bottom: 1px solid var(--line);
  z-index: 2;
  background: #f8f8f0;
  align-items: center;
  gap: 24px;
  padding: 10px 24px;
  display: flex;
  position: sticky;
  top: 0;
}

.brand {
  color: var(--green);
  align-items: center;
  gap: 10px;
  font: 700 23px Georgia, serif;
  text-decoration: none;
  display: flex;
}

.brand-mark {
  color: #fff;
  background: var(--green);
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 17px;
}

.version {
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.version label, .breadcrumb {
  color: var(--muted);
  font-size: 12px;
}

.version select {
  max-width: min(380px, 40vw);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px;
}

.version .branch-search {
  width: min(20vw, 132px);
  min-width: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px;
}

.version select {
  min-width: 0;
}

.branch-empty {
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.branch-toggle {
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: min(360px, 46vw);
  overflow: hidden;
}

.comments-toggle {
  white-space: nowrap;
  margin-left: auto;
}

.document-link {
  min-width: 0;
  color: var(--ink);
  white-space: nowrap;
  flex: 1;
  align-items: center;
  font-size: 13px;
  text-decoration: none;
  display: flex;
}

.document-link:hover {
  color: var(--green);
  text-decoration: underline;
}

.tail-text {
  flex: 1;
  min-width: 0;
  display: block;
  overflow: hidden;
}

.tail-gauge {
  visibility: hidden;
  white-space: nowrap;
  position: absolute;
}

.document-link-arrow {
  color: var(--muted);
  flex: none;
  margin-left: 6px;
  font-size: 12px;
}

.document-link ~ .comments-toggle {
  margin-left: 0;
}

.quiet, .primary {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--green);
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 13px;
}

.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.reader-grid {
  --navigation-width: 230px;
  grid-template-columns: var(--navigation-width) minmax(0, 1fr);
  min-height: calc(100dvh - var(--topbar-height));
  display: grid;
}

.navigation {
  border-right: 1px solid var(--line);
  background: #f7f7ef;
  flex-direction: column;
  min-width: 0;
  padding: 24px 16px;
  display: flex;
}

.reader-grid.with-project-files {
  --navigation-width: clamp(280px, 30vw, 430px);
}

@media (min-width: 581px) {
  .navigation {
    top: var(--topbar-height);
    height: calc(100dvh - var(--topbar-height));
    align-self: start;
    position: sticky;
  }
}

.navigation-heading {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  display: flex;
}

.navigation-heading .nav-label {
  margin: 0;
}

.navigation-toggle {
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 21px;
  line-height: 1;
}

.navigation-collapsed {
  --navigation-width: 52px;
}

.navigation-collapsed .navigation {
  padding-inline: 10px;
}

.nav-label {
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 650;
}

.nav-label-link {
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
  color: var(--green);
  text-decoration: none;
  overflow: hidden;
}

.nav-label-link:hover {
  text-decoration: underline;
}

.repository-navigation:not([hidden]) {
  flex: 1;
  min-height: 0;
  display: grid;
}

.with-project-files .repository-navigation {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.project-list, .file-list {
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.with-project-files .file-list {
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 12px;
}

.project-list-scroll, .file-tree-scroll {
  overscroll-behavior: contain;
  min-height: 0;
  overflow: auto;
}

.connect {
  margin-bottom: 6px;
  display: flex;
}

.connect input, textarea {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #cdcec3;
  border-radius: 5px;
  width: 100%;
  min-width: 0;
  padding: 8px;
}

.connect input {
  border-radius: 5px 0 0 5px;
  font-size: 12px;
}

.connect button {
  color: var(--green);
  white-space: nowrap;
  background: #e8eee5;
  border: 1px solid #cdcec3;
  border-left: 0;
  border-radius: 0 5px 5px 0;
  font-size: 12px;
}

.nav-item {
  text-align: left;
  width: 100%;
  color: var(--ink);
  white-space: nowrap;
  text-overflow: ellipsis;
  background: none;
  border: 0;
  border-radius: 5px;
  padding: 7px;
  font-size: 12px;
  display: block;
  overflow: hidden;
}

.nav-item:hover, .nav-item.selected {
  color: var(--green);
  background: #e6ede1;
}

.nav-icon {
  margin-right: 7px;
}

.file-tree {
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-tree .file-tree {
  border-left: 1px solid var(--line);
  margin-left: 8px;
  padding-left: 7px;
}

.file-tree summary.nav-item {
  cursor: pointer;
  list-style-position: inside;
  display: list-item;
}

.reading {
  min-width: 0;
  padding: 30px clamp(18px, 4vw, 70px) 70px;
}

.breadcrumb, .prose {
  max-width: 740px;
  margin: 0 auto;
}

.breadcrumb {
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  display: flex;
}

.breadcrumb code {
  color: var(--green);
}

.document-layout {
  max-width: 980px;
  margin: 0 auto;
}

.document-toc {
  max-width: 740px;
  margin: 16px auto 0;
}

.document-toc summary {
  color: var(--green);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.document-toc nav {
  max-height: min(60vh, 34rem);
  margin-top: 6px;
  overflow: auto;
}

.document-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.document-toc a {
  color: var(--muted);
  overflow-wrap: anywhere;
  border-radius: 4px;
  padding: 5px 6px;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  display: block;
}

.document-toc a:hover, .document-toc a:focus-visible {
  color: var(--green);
  background: #e6ede1;
}

.prose :is(h1, h2, h3, h4, h5, h6) {
  scroll-margin-top: 110px;
}

@media (min-width: 1100px) {
  .reader-grid:not(.with-annotations) .document-layout:has(.document-toc) {
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 24px;
    display: grid;
  }

  .reader-grid:not(.with-annotations) .document-toc {
    border-inline-end: 1px solid var(--line);
    align-self: start;
    margin: 30px 0 0;
    padding-inline-end: 10px;
    position: sticky;
    top: 82px;
  }

  .reader-grid:not(.with-annotations) .document-layout:has(.document-toc) .prose {
    width: 100%;
  }
}

.prose {
  overflow-wrap: anywhere;
  line-height: 1.85;
}

.prose h1, .welcome h1 {
  letter-spacing: -.02em;
  margin: 30px 0 22px;
  font: 700 clamp(28px, 4vw, 48px) / 1.22 Georgia, Songti SC, serif;
}

.prose h2 {
  margin-top: 30px;
  font-size: 22px;
}

.prose a {
  color: var(--green);
  text-decoration-color: #678770;
}

.prose pre {
  background: #f0f0e8;
  border-radius: 6px;
  padding: 14px;
  overflow: auto;
}

.prose code {
  background: #f0f0e8;
  border-radius: 4px;
  padding: 2px 4px;
}

.prose pre code {
  padding: 0;
}

.prose img {
  max-width: 100%;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
}

.prose th, .prose td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 7px 10px;
}

.prose th {
  background: #f1f3ea;
}

.prose blockquote, .thread-quote {
  color: var(--muted);
  border-left: 2px solid #9bb099;
  margin: 8px 0;
  padding-left: 10px;
}

.welcome {
  max-width: 620px;
  margin: 10vh auto 0;
}

.welcome p, .empty {
  color: var(--muted);
  line-height: 1.65;
}

.launcher a {
  color: var(--green);
}

.launcher-form {
  flex-wrap: wrap;
  margin-top: 26px;
  display: flex;
}

.launcher-field {
  flex: 1;
  min-width: 0;
  display: flex;
  position: relative;
}

.launcher-form input {
  background: var(--paper);
  min-width: 0;
  color: var(--ink);
  border: 1px solid #cdcec3;
  border-radius: 6px 0 0 6px;
  flex: 1;
  padding: 12px 14px;
  font-size: 15px;
}

.launcher-field > .primary {
  border: 1px solid var(--green);
  white-space: nowrap;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  padding: 12px 22px;
  font-size: 15px;
}

.launcher-form .error {
  color: #8b3925;
  flex-basis: 100%;
  margin: 12px 0 0;
}

.link-history {
  z-index: 3;
  top: calc(100% + 6px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  position: absolute;
  inset-inline: 0;
  box-shadow: 0 10px 24px #1f36281f, 0 2px 6px #1f362812;
}

.link-history-heading {
  color: var(--muted);
  padding: 6px 8px 5px;
  font-size: 12px;
  font-weight: 650;
}

.link-history-item {
  width: 100%;
  color: var(--ink);
  text-align: left;
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 8px;
  font-size: 13px;
  display: block;
}

.link-history-item:hover, .link-history-item.selected {
  color: var(--green);
  background: #eaf0e6;
}

.link-history-clear {
  border-color: #0000;
  margin: 5px 0 1px auto;
  padding: 4px 8px;
  font-size: 12px;
  display: block;
}

.empty {
  font-size: 13px;
}

.discussion-popover {
  z-index: 3;
  overscroll-behavior: contain;
  background: var(--paper);
  visibility: hidden;
  overflow-wrap: anywhere;
  border: 1px solid #cbd5c7;
  border-radius: 9px;
  width: 320px;
  padding: 12px;
  position: fixed;
  overflow: auto;
  box-shadow: 0 8px 28px #1f36282b;
}

.discussion-popover:focus {
  outline: none;
}

.popover-heading, .actions {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.popover-heading {
  margin-bottom: 8px;
}

.popover-heading h2 {
  margin: 0;
  font-size: 14px;
}

.popover-close {
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 20px;
  line-height: 1;
}

.popover-close:hover, .thread-summary:hover {
  background: #edf1e9;
}

.annotation-sidebar {
  top: var(--topbar-height);
  height: calc(100dvh - var(--topbar-height));
  overscroll-behavior: contain;
  border-left: 1px solid var(--line);
  background: #f7f7ef;
  align-self: start;
  min-width: 0;
  position: sticky;
  overflow: auto;
}

.annotation-sidebar-heading {
  z-index: 1;
  border-bottom: 1px solid var(--line);
  background: #f1f2e8;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 16px;
  display: flex;
  position: sticky;
  top: 0;
}

.annotation-sidebar-heading h2 {
  margin: 0;
  font-size: 14px;
}

.annotation-list {
  padding: 0 12px 16px;
}

.annotation-entries {
  margin: 0;
  padding: 0;
  list-style: none;
}

.annotation-list-item + .annotation-list-item {
  border-top: 1px solid var(--line);
}

.annotation-list .thread-summary[aria-expanded="true"] {
  background: #e6ede1;
}

.annotation-list .thread-quote {
  margin: 4px 0;
}

.annotation-list :is(.thread-quote, .thread-body) {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.annotation-list .thread-body {
  margin: 4px 0 0;
}

@media (min-width: 1000px) {
  .reader-grid.with-annotations {
    grid-template-columns: var(--navigation-width) minmax(0, 1fr) 250px;
  }
}

@media (max-width: 999px) {
  .annotation-sidebar {
    z-index: 2;
    border-top: 1px solid var(--line);
    width: min(300px, 90vw);
    height: min(65dvh, 600px);
    position: fixed;
    inset: auto 0 0 auto;
    box-shadow: 0 6px 24px #1f362826;
  }
}

.thread-summary {
  text-align: left;
  color: inherit;
  overflow-wrap: anywhere;
  background: none;
  border: 0;
  width: 100%;
  padding: 7px 5px;
  display: block;
}

.thread-kind, .thread-summary small {
  color: var(--muted);
  font-size: 11px;
  display: block;
}

.thread-quote {
  white-space: pre-wrap;
  font-size: 12px;
  display: block;
}

.thread-reply {
  white-space: pre-wrap;
  margin: 8px 0;
  font-size: 13px;
}

.thread-body {
  white-space: pre-wrap;
  margin: 8px 0;
  font-size: 14px;
  display: block;
}

textarea {
  resize: vertical;
  margin: 9px 0;
  display: block;
}

.delete {
  color: #a13e32;
}

.error {
  color: #8b3925;
  background: #fff1e5;
  justify-content: space-between;
  padding: 8px 20px;
  display: flex;
}

.error button {
  color: inherit;
  background: none;
  border: 0;
}

@media (max-width: 900px) {
  .reader-grid:not(.navigation-collapsed, .with-project-files) {
    --navigation-width: 175px;
  }
}

@media (max-width: 580px) {
  .topbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
  }

  .version label {
    display: none;
  }

  .topbar .comments-toggle {
    margin-left: auto;
  }

  .document-link {
    flex-basis: 100%;
    order: 9;
  }

  .reader-grid {
    display: block;
  }

  .navigation {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px;
  }

  .navigation-collapsed .navigation-heading {
    margin-bottom: 0;
  }

  .project-list-scroll, .file-tree-scroll {
    max-height: 35vh;
  }
}

@media (min-width: 1320px) {
  .reader-grid.with-annotations .document-layout:has(.document-toc) {
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 24px;
    display: grid;
  }

  .reader-grid.with-annotations .document-toc {
    border-inline-end: 1px solid var(--line);
    align-self: start;
    margin: 30px 0 0;
    padding-inline-end: 10px;
    position: sticky;
    top: 82px;
  }

  .reader-grid.with-annotations .document-layout:has(.document-toc) .prose {
    width: 100%;
  }
}

.reader-grid:has(.agent-panel) {
  --agent-dock-height: 38px;
  --agent-dock-left: var(--navigation-width);
}

.reader-grid:has(.agent-panel[data-expanded="true"]) {
  --agent-dock-height: clamp(120px, var(--agent-requested-height, clamp(180px, 25dvh, 270px)), max(120px, calc(100dvh - 120px)));
}

.reader-grid:has(.agent-panel) .reading {
  padding-bottom: calc(35px + var(--agent-dock-height));
}

.reader-grid:has(.agent-panel) .annotation-sidebar {
  height: calc(100dvh - var(--topbar-height) - var(--agent-dock-height));
}

.reader-grid:has(.agent-panel) .document-toc nav {
  max-height: min(60vh, 34rem, calc(100dvh - 135px - var(--agent-dock-height)));
}

.agent-panel {
  inset: auto 0 0 var(--agent-dock-left);
  z-index: 2;
  height: var(--agent-dock-height);
  color: #e9eee8;
  background: #252e29;
  border-top: 1px solid #46554a;
  flex-direction: column;
  min-width: 0;
  display: flex;
  position: fixed;
}

@media (max-width: 999px) {
  .reader-grid:has(.agent-panel) .annotation-sidebar {
    bottom: var(--agent-dock-height);
    height: min(55dvh, calc(100dvh - var(--topbar-height) - var(--agent-dock-height)));
  }
}

@media (max-width: 580px) {
  .reader-grid:has(.agent-panel) {
    --agent-dock-left: 0px;
  }
}

.agent-heading {
  align-items: center;
  gap: 12px;
  padding: 4px 12px;
  display: flex;
}

.agent-heading button {
  color: inherit;
  background: none;
  border: 0;
  padding: 6px 4px;
}

.agent-heading code {
  color: #b2c5b7;
  font-size: 11px;
}

.agent-content {
  border-top: 1px solid #46574b;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
}

.agent-transcript {
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  padding: 10px 14px;
  overflow: auto;
}

.agent-hint, .agent-error {
  color: #c3d0c6;
  margin: 7px 0;
  font-size: 13px;
}

.agent-error {
  color: #ffb4a1;
}

.agent-message {
  padding: 8px 0;
  font-size: 13px;
}

.agent-message-user {
  color: #f0f7f2;
  background: #34463d;
  border-radius: 6px;
  margin: 5px 0;
  padding: 8px 10px;
}

.agent-message-user > strong {
  color: #b8e2c9;
}

.agent-message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 4px 0;
  line-height: 1.6;
}

.agent-form {
  border-top: 1px solid #46574b;
  flex-shrink: 0;
  padding: 8px 12px;
}

.agent-input, .agent-quote {
  align-items: center;
  gap: 8px;
  display: flex;
}

.agent-input textarea {
  color: inherit;
  resize: vertical;
  background: #303c34;
  border-color: #617367;
  margin: 0;
}

.agent-input textarea::placeholder {
  color: #c3d0c6;
}

.agent-input button {
  flex-shrink: 0;
}

.agent-quote {
  margin-bottom: 6px;
  font-size: 12px;
}

.agent-quote span {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.agent-resize {
  top: -4px;
  cursor: ns-resize;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  background: none;
  border: 0;
  height: 8px;
  padding: 0;
  position: absolute;
  inset-inline: 0;
}

.agent-resize:hover, .agent-resize:active, .agent-resize:focus-visible {
  background: #829f87;
}

.agent-status {
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d4dfd6;
  min-width: 0;
  font-size: 12px;
  overflow: hidden;
}

.agent-tools {
  color: #d4dfd6;
  padding: 8px 0;
  font-size: 12px;
}

.agent-tools summary {
  cursor: pointer;
}

.agent-tools ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.agent-tools li {
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  display: flex;
}

.agent-tools code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.agent-tools li span {
  flex-shrink: 0;
}

.agent-markdown {
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.agent-message .agent-markdown p {
  white-space: normal;
  margin: .45em 0;
}

.agent-markdown :is(h1, h2, h3, h4, h5, h6) {
  margin: .8em 0 .35em;
  line-height: 1.35;
}

.agent-markdown :is(h1, h2) {
  font-size: 1.2em;
}

.agent-markdown :is(h3, h4, h5, h6) {
  font-size: 1.05em;
}

.agent-markdown :is(ul, ol) {
  margin: .45em 0;
  padding-inline-start: 1.6em;
}

.agent-markdown a {
  color: #b7dfc4;
}

.agent-markdown :not(pre) > code {
  background: #344239;
  border-radius: 3px;
  padding: .1em .3em;
}

.agent-markdown pre {
  background: #18211b;
  border-radius: 5px;
  padding: 10px;
  overflow: auto;
}

.agent-markdown blockquote {
  border-inline-start: 2px solid #829f87;
  margin: .5em 0;
  padding-inline-start: 10px;
}

.agent-markdown table {
  border-collapse: collapse;
  max-width: 100%;
  display: block;
  overflow: auto;
}

.agent-markdown :is(th, td) {
  border: 1px solid #526459;
  padding: 4px 8px;
}

.agent-markdown img {
  max-width: 100%;
}

.agent-conversations {
  min-width: 0;
  max-width: min(26vw, 240px);
  color: inherit;
  background: #303c34;
  border: 1px solid #617367;
  border-radius: 4px;
  padding: 3px 5px;
  font-size: 12px;
}

.agent-heading > button {
  white-space: nowrap;
}

.annotation-list-item {
  position: relative;
}

.annotation-list-item .thread-kind {
  padding-inline-end: 90px;
}

.annotation-list-item > .comment-copy {
  position: absolute;
  inset: 5px 5px auto auto;
}

.comment-copy {
  padding: 2px 6px;
  font-size: 11px;
}

.comment-reply-row {
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  display: flex;
}

.comment-reply-row .comment-copy {
  flex-shrink: 0;
}

.comment-markdown {
  white-space: normal;
  min-width: 0;
  line-height: 1.55;
}

.comment-markdown > :first-child {
  margin-top: 0;
}

.comment-markdown > :last-child {
  margin-bottom: 0;
}

.comment-markdown :is(ul, ol) {
  padding-inline-start: 1.4em;
}

.comment-markdown :is(h1, h2, h3, h4, h5, h6) {
  font-size: 1.1em;
}

.comment-markdown a {
  color: var(--green);
}

.comment-markdown code {
  background: #edf0e8;
}

.comment-markdown pre {
  background: #edf0e8;
  padding: 8px;
  overflow: auto;
}

.comment-markdown table {
  border-collapse: collapse;
  display: block;
  overflow: auto;
}

.comment-markdown :is(th, td) {
  border: 1px solid var(--line);
  padding: 3px 6px;
}

.comment-markdown img {
  max-width: 100%;
}

.document-comments {
  border-top: 1px solid var(--line);
  max-width: 740px;
  margin: 36px auto 0;
  padding-top: 16px;
}

.document-comments h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.document-comment {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 14px;
}

.document-comment-actions {
  gap: 6px;
  margin-top: 8px;
  display: flex;
}

.popover-drag-handle {
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  flex: 1;
  padding-block: 3px;
}

.popover-drag-handle:active {
  cursor: grabbing;
}

.document-comment {
  scroll-margin-top: calc(var(--topbar-height) + 16px);
}

.prose code.file-ref {
  color: var(--green);
  background: #edf2ea;
  border-bottom: 1px dashed #678770;
  border-radius: 4px 4px 2px 2px;
  transition: background-color .12s, border-color .12s;
}

.workspace[data-preview-modifier="true"] .prose code.file-ref:hover {
  border-bottom-color: var(--green);
  cursor: pointer;
  background: #dce9da;
}

.prose a.file-ref-link {
  text-underline-offset: 3px;
  text-decoration-style: dashed;
}

.file-preview-popover {
  z-index: 4;
  background: var(--paper);
  visibility: hidden;
  border: 1px solid #c3d0c1;
  border-radius: 9px;
  flex-direction: column;
  width: min(680px, 100vw - 20px);
  display: flex;
  position: fixed;
  overflow: hidden;
  box-shadow: 0 12px 34px #1f36282e;
}

.file-preview-popover.pinned {
  border-color: #829f87;
  box-shadow: 0 14px 38px #1f36283d;
}

.file-preview-header {
  border-bottom: 1px solid var(--line);
  background: #f3f5ec;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  display: flex;
}

.file-preview-title {
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  display: flex;
  overflow: hidden;
}

.file-preview-title code {
  color: var(--green);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
}

.file-preview-meta {
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 11px;
}

.file-preview-actions {
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  display: flex;
}

.file-preview-btn {
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1.3;
}

.file-preview-btn.active {
  background: #e2ebe0;
  border-color: #829f87;
}

.file-preview-body {
  overscroll-behavior: contain;
  background: #fbfbf6;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.file-preview-status {
  color: var(--muted);
  margin: 0;
  padding: 16px 14px;
  font-size: 13px;
}

.file-preview-error {
  color: #8b3925;
}

.file-preview-notice {
  color: var(--muted);
  border-block: 1px solid var(--line);
  background: #f1f2e9;
  padding: 6px 12px;
  font-size: 11px;
}

.file-preview-code {
  width: max-content;
  min-width: 100%;
  padding: 8px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.file-preview-line {
  padding-right: 14px;
  display: flex;
}

.file-preview-line.highlighted {
  background: #e4f0e1;
}

.file-preview-ln {
  text-align: right;
  color: #8a9488;
  -webkit-user-select: none;
  user-select: none;
  border-right: 1px solid #e5e7de;
  flex-shrink: 0;
  min-width: 46px;
  margin-right: 12px;
  padding: 0 12px 0 8px;
}

.file-preview-line.highlighted .file-preview-ln {
  color: var(--green);
  font-weight: 600;
}

.file-preview-text {
  white-space: pre;
  color: var(--ink);
}

.auth-page {
  text-align: center;
  padding: 3rem 1.5rem;
}

.gitlab-login {
  background: var(--green);
  min-height: 44px;
  color: var(--paper);
  border-radius: .5rem;
  justify-content: center;
  align-items: center;
  padding: .625rem 1.25rem;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  display: inline-flex;
}

.gitlab-login:hover {
  background: #203d2f;
}

.gitlab-login:active {
  background: #193226;
}

.gitlab-login:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.account-menu {
  z-index: 20;
  margin-left: auto;
  position: relative;
}

.account-menu summary {
  color: var(--green);
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: .55rem;
  align-items: center;
  gap: .55rem;
  padding: .35rem .55rem;
  font-size: .875rem;
  font-weight: 600;
  list-style: none;
  display: flex;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu summary:after {
  content: "";
  border-bottom: 1.5px solid;
  border-right: 1.5px solid;
  width: .38rem;
  height: .38rem;
  margin: -.2rem .15rem 0 .1rem;
  transform: rotate(45deg);
}

.account-menu[open] summary, .account-menu summary:hover {
  background: #eaf0e6;
  border-color: #dce5d8;
}

.account-menu[open] summary:after {
  margin-top: .2rem;
  transform: rotate(225deg);
}

.account-trigger-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(11rem, 26vw);
  overflow: hidden;
}

.account-avatar {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--green);
  background: #e6ede1;
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-size: .75rem;
  font-weight: 650;
  display: grid;
  overflow: hidden;
}

.account-avatar img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.account-menu-items {
  z-index: 1;
  width: min(16rem, 100vw - 2rem);
  max-height: min(28rem, calc(100dvh - var(--topbar-height) - 1rem));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: .35rem;
  position: absolute;
  inset-block-start: calc(100% + .55rem);
  inset-inline-end: 0;
  overflow: auto;
  box-shadow: 0 10px 24px #1f36281f, 0 2px 6px #1f362812;
}

.account-menu-profile {
  background: #f0f3ea;
  border-radius: .5rem;
  align-items: center;
  gap: .65rem;
  margin: .15rem .15rem .35rem;
  padding: .65rem;
  display: flex;
}

.account-menu-profile .account-avatar {
  width: 2rem;
  height: 2rem;
  font-size: .875rem;
}

.account-menu-identity {
  gap: .15rem;
  min-width: 0;
  line-height: 1.2;
  display: grid;
}

.account-menu-identity strong, .account-menu-identity > span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.account-menu-identity strong {
  font-size: .875rem;
  font-weight: 650;
}

.account-menu-identity > span, .account-switch-label {
  color: var(--muted);
  font-size: .75rem;
}

.account-menu-group + .account-menu-group {
  border-top: 1px solid var(--line);
  margin-top: .3rem;
  padding-top: .3rem;
}

.account-menu-action {
  width: 100%;
  min-height: 2.25rem;
  color: var(--ink);
  text-align: start;
  background: none;
  border: 0;
  border-radius: .4rem;
  align-items: center;
  gap: .6rem;
  padding: .45rem .65rem;
  font-size: .85rem;
  line-height: 1.3;
  text-decoration: none;
  display: flex;
}

.account-switch-label {
  margin-inline-start: auto;
}

.account-menu-action:not(:disabled):hover {
  background: #eaf0e6;
}

.account-menu :is(summary, .account-menu-action):focus-visible {
  outline-offset: -2px;
  outline: 2px solid #587362;
}

.account-menu-signout button {
  color: #983b2d;
}

.account-menu-signout button:not(:disabled):hover {
  background: #f8ece6;
}

.account-menu-error {
  color: #983b2d;
  margin: .35rem .65rem;
  font-size: .75rem;
}

.annotation-byline {
  color: var(--muted);
  flex-wrap: wrap;
  gap: .35rem .65rem;
  font-size: .75rem;
  line-height: 1.4;
  display: flex;
}

.token-page {
  max-width: 760px;
  margin: auto;
  padding: 2rem 1.25rem 4rem;
}

.token-page section {
  margin-top: 2.5rem;
}

.token-create {
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  display: flex;
}

.token-create input {
  border: 1px solid var(--line);
  border-radius: .35rem;
  min-width: 0;
  padding: .5rem;
}

.token-list {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.token-list li {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  display: flex;
}

.token-secret, .token-page pre {
  background: #f0f3ea;
  border-radius: .4rem;
  padding: .75rem;
  overflow: auto;
}

.token-secret {
  margin-top: 1rem;
}

.token-secret p {
  margin-top: 0;
}

.token-secret code {
  overflow-wrap: anywhere;
  margin-inline-end: .5rem;
}

.token-secret button {
  margin: .25rem;
}

.skill-download-heading {
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  display: flex;
}

.skill-download-heading h2 {
  margin: 0;
}

.skill-download {
  white-space: nowrap;
  text-decoration: none;
}

.skill-download:hover {
  background: #1f3b2d;
}

.token-page h3 {
  margin: 1.25rem 0 .45rem;
  font-size: .95rem;
}

.token-page h3 + pre {
  margin-top: 0;
}

/*# sourceMappingURL=app_globals_0jn8.0u.css.map*/