blockquote {
  margin: 5px;
  padding-left: 10px;
  border-left: 2px solid #bbb;
  color: #888;
} 

code {
  padding: 0px;
  margin: 0px;
  border: 0px solid #888;
  background-color: #ddd;
  display: block;
  font-family: monospace;
  font-size: 80%;
  white-space: pre;
} 

div.codeblock {
  counter-reset: line 0;
  padding: 2px;
}

code.linenumber::before { 
  content: counter(line) ""; 
  counter-increment: line; 
  display: inline-block;
  min-width: 2em;
  color: green;
  background-color: #ccc;
  text-align: right;
  padding: 0px;
  padding-right: 4px;
}

/* ── Task badge ──────────────────────────────────────────── */
.task-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.85em;
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1.6;
}
.task-badge a.intern { font-weight: 600; }
.task-badge__sep   { color: #bbb; user-select: none; }
.task-badge__title { color: #444; }
.task-badge__status {
    border-radius: 3px;
    padding: 0 5px;
    font-size: 0.8em;
    font-weight: 600;
    color: #fff;
    background: #888;
}

/* Status colours via data-status attribute */
.task-badge[data-status="open"]        .task-badge__status,
.task-badge[data-status="new"]         .task-badge__status { background: #1a73e8; }
.task-badge[data-status="in-progress"] .task-badge__status { background: #e8821a; }
.task-badge[data-status="done"]        .task-badge__status,
.task-badge[data-status="closed"]      .task-badge__status { background: #34a853; }
.task-badge[data-status="blocked"]     .task-badge__status { background: #d93025; }

/* Loading state */
.task-badge--loading { opacity: 0.7; }
.task-badge--loading img { height: 12px; vertical-align: middle; }

/* Error / not-found state */
.task-badge--error { background: #fdf0f0; border-color: #e8b8b8; }
.task-badge--error a.intern { color: #c00; }
.task-badge--error .task-badge__status { background: #d93025; font-size: 0.75em; }

  display: none;
  position: fixed;
  background: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
