[x-cloak] {
  display: none !important;
}

html {
  color-scheme: light;
  background: #f8fafc;
}

body {
  background: #f8fafc;
  color: #0f172a;
  font-family:
    "Inter Variable", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", "Linear Thai", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-weight: 450;
}

a[href],
button:not(:disabled),
summary,
[role="button"] {
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

.markdown-body {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.72;
  overflow-wrap: break-word;
}

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

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

.markdown-body > * + * {
  margin-top: 1rem;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  color: #111827;
  font-weight: 650;
  line-height: 1.32;
  margin-bottom: 0.45rem;
  margin-top: 1.65rem;
  scroll-margin-top: 5rem;
}

.markdown-body h1 {
  border-bottom: 1px solid #e2e8f0;
  font-size: 1.55rem;
  padding-bottom: 0.45rem;
}

.markdown-body h2 {
  border-bottom: 1px solid #e2e8f0;
  font-size: 1.28rem;
  padding-bottom: 0.28rem;
}

.markdown-body h3 {
  font-size: 1.12rem;
}

.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  font-size: 1rem;
}

.markdown-body p,
.markdown-body li {
  color: #334155;
}

.markdown-body strong {
  color: #111827;
  font-weight: 650;
}

.markdown-body a {
  color: #2563eb;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.markdown-body a:hover {
  color: #1d4ed8;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.55rem;
}

.markdown-body ul {
  list-style: disc;
}

.markdown-body ol {
  list-style: decimal;
}

.markdown-body li {
  padding-left: 0.1rem;
}

.markdown-body li + li {
  margin-top: 0.28rem;
}

.markdown-body li > p {
  margin-top: 0.45rem;
}

.markdown-body input[type="checkbox"] {
  margin-right: 0.45rem;
  transform: translateY(1px);
}

.markdown-body blockquote {
  background: #f8fafc;
  border-left: 0.25rem solid #cbd5e1;
  border-radius: 0.375rem;
  color: #475569;
  margin-left: 0;
  padding: 0.45rem 0.75rem 0.45rem 1rem;
}

.markdown-body blockquote > * {
  color: inherit;
}

.markdown-body code {
  background: #f1f5f9;
  border-radius: 0.375rem;
  color: #0f172a;
  font-size: 0.86em;
  padding: 0.14rem 0.34rem;
}

.markdown-body pre {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
  padding: 1rem;
  tab-size: 2;
}

.markdown-body pre code {
  background: transparent;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
  padding: 0;
}

.markdown-body hr {
  background: #e2e8f0;
  border: 0;
  height: 1px;
  margin: 1.75rem 0;
}

.markdown-body table {
  border-collapse: collapse;
  display: block;
  font-size: 0.92rem;
  overflow-x: auto;
  width: 100%;
}

.markdown-body tr {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.markdown-body tr:nth-child(2n) {
  background: #f8fafc;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.markdown-body th {
  color: #111827;
  font-weight: 650;
}

.markdown-body img {
  border-radius: 0.5rem;
  max-width: 100%;
}

.markdown-body :target {
  scroll-margin-top: 5rem;
}

.md-card ::selection {
  background: #bfdbfe;
}

.description-clamp.is-collapsed {
  max-height: calc(1.72em * 12);
  overflow: hidden;
}

[data-result][data-active="true"] {
  background: #eff6ff;
}

.queue-sidebar {
  scrollbar-gutter: stable;
}

.queue-item {
  transition:
    background-color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease,
    opacity 120ms ease;
}

.queue-item[data-active="true"] {
  box-shadow: inset 3px 0 0 #2563eb;
}

.queue-item.is-dragging {
  opacity: 0.72;
  transform: scale(0.995);
}

.queue-drop-indicator {
  background: #2563eb;
  border-radius: 999px;
  box-shadow: 0 0 0 4px #dbeafe;
  height: 3px;
  margin: -1px 0;
}

[data-queue-drag-handle] {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

[data-queue-drag-handle]:active,
.queue-drag-active {
  cursor: grabbing;
}

.issue-shell {
  max-width: calc(220px + 1.25rem + 78ch);
}

.search-hint {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-hint mark {
  font-weight: 650;
}

[data-toc] a {
  overflow: hidden;
}

[data-toc] .toc-link-text {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

time[data-local-time] {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .issue-jump-buttons {
    display: none !important;
  }
}

@media print {
  @page {
    margin: 0.65in;
  }

  html,
  body {
    background: #ffffff !important;
  }

  body {
    min-height: auto !important;
  }

  body > main {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
  }

  body > main > div {
    margin: 0 !important;
    max-width: none !important;
  }

  body > main > div > * {
    display: none !important;
  }

  body > main > div > #issue-content {
    display: block !important;
  }

  #issue-content > * {
    display: none !important;
  }

  #print-ticket {
    display: block !important;
    color: #0f172a;
    font-family:
      "Inter Variable", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
      Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", "Linear Thai", sans-serif;
    margin: 0 auto;
    max-width: 78ch;
    position: static !important;
    width: auto;
  }

  #print-ticket .print-title {
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 24px;
    font-weight: 650;
    line-height: 1.3;
    margin: 0 0 0.15in;
    padding-bottom: 0.12in;
  }

  #print-ticket .print-meta {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 0.25in;
  }

  #print-ticket .markdown-body {
    max-width: 78ch;
  }

  #print-ticket .print-comments > h2 {
    break-after: avoid;
    border-bottom: 1px solid #e2e8f0;
    color: #111827;
    font-size: 1.28rem;
    font-weight: 650;
    line-height: 1.32;
    margin: 0.35in 0 0.12in;
    padding-bottom: 0.28rem;
  }

  #print-ticket .print-comments h3 {
    break-after: avoid;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.32;
    margin: 0.24in 0 0.06in;
  }

  #print-ticket .print-comments h3 span {
    color: #64748b;
    font-weight: 400;
  }

  #print-ticket .markdown-body pre,
  #print-ticket .markdown-body table {
    break-inside: avoid;
    max-width: 100%;
    overflow: visible;
    white-space: pre-wrap;
  }

  #command-palette,
  .print-hidden {
    display: none !important;
  }
}
