:host {
  --bun-error-color: #e33737;
  --bun-error-monospace:
    ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace",
    "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace;
  --bun-error-width: 512px;
}

:host a {
  color: inherit;
  text-decoration: none;
}

:host a:hover {
  text-decoration: underline;
}
#BunErrorOverlay-container {
  box-shadow:
    0px 16px 24px rgba(0, 0, 0, 0.06),
    0px 2px 6px rgba(0, 0, 0, 0.1),
    0px 0px 1px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(42px);
  backface-visibility: visible;
  border: inset 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 17px;
  background-color: rgba(255, 255, 255, 0.92);
  width: var(--bun-error-width);

  position: fixed;
  top: 120px;
  right: 48px;
  z-index: 999999;

  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
}

.BunErrorRoot--FullPage #BunErrorOverlay-container {
  position: static;
  top: unset;
  right: unset;
  margin: 60px auto;
}

.BunError-error-message--quoted {
  color: rgb(25, 46, 9);
}

:host a {
  color: inherit;
}

.BunError-Summary-ErrorIcon {
  content: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJiSURBVHgBzZdLUttAEIa7RwpVeKUD4Ip8hFSB7V3kG8AJgBPgG+CcAG4QcwPfIFpiigU5gRWcqmy1AVwVaTo9Y+yyiEeakc3jX7j0GEmfe7r/6QH4IELYUJNuN/LyPMwRU2g04lYcp1BDtUEYIPSJvvNhtHI5QcTB3vX1FThKQE0xxI8XEEohEQ2n+/sROKoWyP3BwYn6qHGA553DW4CgEFUfin6328fwmiDTbldBhFXjiHNlEkUBWMoJRCUoSNm3HB6Kx0fbsW4gnpQDQLT/l4hntlGxBlHR4NJ0mndW4D08WCWuNYgv5YXhVsJmNASi0bqbnNj9P2pKtwGiyxXxcM2tJNvd/bI3Hp82b26OJOK3dc9nc+PbHMRUrhyJgqV7QowMr4iqTK4SpNK8VvRXSnNiVphcKYhO0BLzIkvAZ5WaXCmID6AeDGFLYpO7NJWzEUSbF9EAHKTagYohgcnkjCDavKoVgqNMJrcWpKZ5AQlh46LBp6enCysQ36LuFy8tnBFZ2Tkn+cnLcv6vQ1PlypViC6I+PsiEUB3ZomMLLZ+Mm+Nxzwgy7XQmsMVKKVWe95q3t7E6LEyNi3ktRZSWrTWl8rxl5JcgVeZlUJI1Gq3FWsM+cQpuCn91Ov0CiEd0Bo7RkERXq2tNPps5R4UBzlU5axAdDQDrbmr5EsSvhQs7OxG4S5ucTtb7dntYxzeeNWLzi3MhWpwnxy4d3IpSX/0yxGeor0OGmPcqWHu/FixypNY2cZvSINxZ/YT3VTIHmc0u1Qm8k9R+WYO07u7SDLHH+1bnzfNGYjPkhfJIbdr/AfAS02LsKGiuAAAAAElFTkSuQmCC");
  width: 20px;
  height: 19px;

  margin-right: 6px;
  display: block;
}

.BunError-Summary-CloseIcon {
  content: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKKSURBVHgBxZjpTsMwEISnaTmLKLf4AX94/7fiFlRcJaUKl6exK8e1k7XTY6QVUbDjj/V4bdNBe2Uquio2nPdfKn6RqA7StKuir2JHxXZNO4LlKkb65zeWBLavYxdpelMxhABQCkaQI6QDuRrqCEoCdqjiFItXoeIagex1Gzqfo8zUMsSxByo+Vfz4fokaqH0sVx09xhxcCOwY5RSuQgbuHVZ58YGx0RlWK8LtoYT74wsXjEXyHM3eW4Y4JgFZ76ZV2xancAPrE+3T44MNRiCp2bnd5MK29A0rfyFsP7VRz3pxLOxoF8ctFZeYz7wRPfOgn/mHX6B5Rui1zP7gDmQaWc8TlEXytwGKKpy+dRoYMG41Um+52fHBuVBG0jH6ZpAtyMVV20MYLgRFq+xBpm1TFrjtbAo7dfUAI1SzxMr9ocF8UFIPUx2TsQxx4pTQ9G7migVAVYBiwagQnK0kKBsotdITblDz7eRDgAH7QZrop9CBj/67gbywVmTAxGdxVKEeGtoQKgkusz4QoxDUbK+zZOCibkzGW/yYtMawTNx73tPkJ/CXEj7zMEjPSY7zRWYNJtUwAGVWX2i1sgi/QabcgJn7X4p8JSEEJ139467TqS/oxAvup34+QrhOmR1ijHLV89uS2xY9+WjPN7N3hbRiu0hNj1U2BKfzGesVs/XCBzc7r0j32iLEbE1Xs2/aHtHivzQtxEzNTia+VUIoGnaA1Yl3iEptDC1fblGcb2nRbSNC3cGZpbq6MtGdCJf6f7Qm0c+38BwiJANKbzexeoJegT7FZOIA5SbdFjDXUJO6RrFTRChe82Jv7PQPbcFyMJZ0aOMd3qx47SMoyw5B6VnjF2aECyjXMFEl6B+GYop4atKAigAAAABJRU5ErkJggg==");
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
}

.BunError-Summary-CloseIcon:hover {
  transform: scale(1.2);

  background-color: rgb(255, 255, 255);
}

.BunError-Summary {
  display: grid;
  grid-template-columns: min-content auto min-content min-content;
  grid-template-rows: 46px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid rgb(220, 220, 220);
}

.BunError-footer {
  display: flex;
  border-top: 1px solid rgb(220, 220, 220);
  align-items: center;

  grid-template-columns: auto auto;
  justify-content: space-between;
}

.BunError-footerItem {
  padding: 12px 18px;
}

.BunError-Summary-Title {
  font-weight: 500;
  letter-spacing: 0.36px;
}

.BunError-ErrorTag,
.BunError-error-code {
  color: rgb(165, 165, 165);
  font-weight: 500;
  font-size: 12pt;
}

.BunError-ErrorTag {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 300;
}

.BunError-error-header {
  display: flex;
  align-items: center;
  gap: 0.5ch;
}

.BunError-error-message {
  color: var(--bun-error-color);
  font-size: 16pt;
  font-weight: bold;
}

.BunError-list {
  margin-top: 14px;
  gap: 14px;
}

.BunError-error-subtitle,
.BunError-error-header,
.BunError-error-message {
  padding-left: 18px;
  padding-right: 18px;
}

.BunError-error-subtitle {
  font-size: 500;
}

.BunError-NativeStackTrace {
  margin-top: 0;
  width: 100%;
}

.BunError-NativeStackTrace-filename {
  padding: 8px 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-weight: 500;
  letter-spacing: 0.36px;
  margin-bottom: 8px;
  display: block;
}

.BunError-NativeStackTrace-filename:hover {
  text-decoration: underline;
}

.BunError-SourceLines-lines a {
  text-decoration: none;
}

.BunError-SourceLine-text::selection,
.BunError-SourceLine-text *::selection {
  background-color: #6437e3;
  color: white;
}

.BunError-SourceLine-text:active:before {
  width: 61px;
  z-index: -1;
  pointer-events: none;
}

.BunError-SourceLines-lines {
}

.BunError-SourceLine {
  display: grid;
  grid-template-columns: min-content auto;
}

.BunError-SourceLines {
  font-size: 14px;
  align-items: center;
  overflow-x: auto;
}

.BunError-CopyButton {
  font-weight: 500;
  font-size: 1em;
  vertical-align: middle;
  display: flex;
  align-content: center;
  align-items: center;
  border-right: 1px solid #ccc;
  background: #fcfcfc;
  border-bottom-left-radius: 12px;
  color: #333;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.1s linear;
}

.BunError-CopyButton,
#BunError-poweredBy {
  padding: 12px 12px;
}
.BunError-Summary-help {
  display: flex;
  white-space: nowrap;
  gap: 9px;
  margin-right: 18px;

  border-right: 1px solid rgb(220, 220, 220);
  height: 100%;
  align-items: center;
  padding-right: 18px;
  text-decoration: none;
  cursor: pointer;
}

.BunError-Summary-help svg {
  opacity: 0.5;
}

#BunErrorOverlay-container .BunError-Summary-help {
  color: #999;
}

#BunErrorOverlay-container .BunError-Summary-help:hover {
  color: #5865f2;
}

#BunErrorOverlay-container .BunError-Summary-help:hover svg {
  opacity: 1;
}

.BunError-CopyButton svg {
  width: 18px;
  margin-right: 0.7em;
  opacity: 0.75;
  margin-left: 6px;
  fill: currentColor;
  stroke: currentColor;
}

.BunError-CopyButton:hover {
  background: #6437e3;
  color: white;

  border-right-color: #6437e3;
}

.BunError-CopyButton:active {
  transform: scale(1.03, 1.03);
  transform-origin: center center;
}

.BunError-SourceLine-text {
  white-space: pre;
  cursor: text;
  display: block;
  position: relative;

  font-family: var(--bun-error-monospace);
}

.BunError-SourceLine-number {
  font-variant: tabular-nums;
  display: block;
  border-left: 4px solid transparent;
  margin-left: -1px;
  cursor: pointer;
  padding-left: 14px;
  padding-right: 12px;
  text-align: right;

  text-decoration: none;
  position: relative;
}

.BunError-SourceLine-number,
.BunError-SourceLine-number * {
  user-select: none;
  -webkit-user-select: none;
}

.BunError-SourceLine-number:active + .BunError-SourceLine-text {
  background-color: #6437e3;
  color: white;
}

.BunError-SourceLine-number:hover {
  background-color: #7443fa;
  color: white;
}

.BunError-SourceLine:hover .BunError-SourceLine-number {
  border-left-color: #7443fa;
}

.BunError-SourceLine-number--empty {
  color: rgb(165, 165, 165);
}

.BunError-SourceLine-number,
.BunError-SourceLine-text {
  height: 18px;
}

.BunError-SourceLines-highlighter--0,
.BunError-SourceLines-highlighter--1,
.BunError-SourceLines-highlighter--2,
.BunError-SourceLines-highlighter--3,
.BunError-SourceLines-highlighter--4,
.BunError-SourceLines-highlighter--5 {
  position: absolute;
}

#BunErrorOverlay-container .BunError-SourceLine-text--highlight {
  color: #e33737;
}

#BunError-poweredBy {
  height: 16px;

  content: url("data:image/png;base64, ");
}

#BunError-SourceLine-text-highlightExpression {
  font-weight: bold;
  text-decoration-style: wavy;
}

.BunError-JSException--TypeError #BunError-SourceLine-text-highlightExpression {
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.BunError-Indented {
  display: inline-block;
  user-select: none;
  -webkit-user-select: none;
}

.BunError-divet {
  vertical-align: bottom;
  user-select: none;
  -webkit-user-select: none;
}

.BunError-error-typename {
  font-family: var(--bun-error-monospace);
  color: #e39437;
  font-weight: bold;
}

.BunError-error-muted {
  font-weight: normal;
  user-select: none;
  -webkit-user-select: none;
}

.BunError-error-muted,
.BunError-StackFrame--muted {
  color: rgb(165, 165, 165);
}

.BunError-NativeStackTrace .BunError-error-typename {
  user-select: none;
  -webkit-user-select: none;
}

.BunError-StackFrame-link {
  text-align: right;
}

.BunError-StackFrame-link-content {
  display: flex;
  justify-content: flex-end;
  text-align: right;
  gap: 0.25ch;
  white-space: nowrap;
}

.BunError-StackFrame {
  display: table-row;
}

.BunError-StackFrame:hover {
  border-left-color: #5865f2;
}

.BunError-StackFrame-identifier {
  padding-right: 18px;
  font-size: 0.8em;
  font-family: var(--bun-error-monospace);
  letter-spacing: 0.49px;
  width: var(--max-length, auto);
  max-width: 48ch;
  white-space: nowrap;
  text-overflow: clip;
  overflow: hidden;
}

.BunError-error-message--mono {
  font-family: var(--bun-error-monospace);
}
.BunError-StackFrame-identifier,
.BunError-StackFrame-link {
  display: table-cell;
  font-weight: 500;
}

.BunError-BuildError {
  padding-bottom: 18px;
}

.BunError-StackFrame-link-content {
  font-size: 0.8em;
}

.BunError-StackFrames {
  display: table;
  table-layout: auto;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  border-radius: 4px;
  line-height: 1.2;
  border-collapse: separate;
  border-spacing: 12px 6px;

  background-color: rgb(244, 244, 244);
}

.BunError-StackFrames-container {
  overflow-x: auto;
  max-width: var(--bun-error-width);
}
