/* issues.css — Issue 列表与详情 */
/* ------------------------------------------------------------------ issue list */

.filterbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 12px; background: var(--canvas-subtle);
  border: 1px solid var(--border); border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
}
.filterbar.bottom { border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); }

.input, .select, .textarea {
  background: var(--canvas); color: var(--fg);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 5px 9px; font-size: 12.5px; font-family: inherit; line-height: 20px;
  outline: none; min-width: 0;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle);
}
.input::placeholder { color: var(--fg-subtle); }
.select { cursor: pointer; appearance: none; padding-right: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238b949e'%3E%3Cpath d='M4.4 6.3 8 9.9l3.6-3.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center; background-size: 14px;
}
.textarea { resize: vertical; width: 100%; min-height: 90px; line-height: 1.6; }
.search { position: relative; flex: 1; min-width: 160px; max-width: 320px; }
.search .input { width: 100%; padding-left: 28px; }
.search svg { position: absolute; left: 8px; top: 7px; width: 14px; height: 14px; color: var(--fg-subtle); }

.issue-list { border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.issue-list.flush { border-radius: var(--radius); }

.issue-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border-muted);
  background: var(--canvas-subtle); cursor: pointer;
}
.issue-row:last-child { border-bottom: none; }
.issue-row:hover { background: var(--canvas-overlay); }
.issue-row .state-icon { margin-top: 2px; flex: none; }
.issue-row .body { flex: 1; min-width: 0; }
.issue-row .title {
  font-size: 13.5px; font-weight: 500; color: var(--fg);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.issue-row:hover .title { color: var(--accent-fg); }
.issue-row .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; font-size: 11.5px; color: var(--fg-subtle); }
.issue-row .right { display: flex; align-items: center; gap: 8px; flex: none; padding-top: 2px; }
.issue-row .comment-count { display: inline-flex; align-items: center; gap: 3px; color: var(--fg-subtle); font-size: 11.5px; }

.state-icon { width: 15px; height: 15px; display: inline-block; flex: none; }
.state-icon svg { width: 100%; height: 100%; display: block; }
.card-head svg { width: 15px; height: 15px; flex: none; color: var(--fg-muted); }
.ms-line > span svg, .act svg { flex: none; }
.state-icon.open { color: var(--success); }
.state-icon.closed { color: var(--done); }
.state-icon.progress { color: var(--attention); }

/* ------------------------------------------------------------------ issue detail */

.issue-title-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.issue-title-row h1 { font-size: 23px; font-weight: 500; margin: 0; line-height: 1.3; letter-spacing: -0.3px; }
.issue-number { color: var(--fg-muted); font-weight: 300; font-size: 23px; }

.md { font-size: 13.5px; line-height: 1.72; color: var(--fg); overflow-wrap: break-word; }
.md p { margin: 0 0 10px; }
.md p:last-child { margin-bottom: 0; }
.md ul, .md ol { margin: 0 0 10px; padding-left: 22px; }
.md li { margin: 2px 0; }
.md code { background: var(--canvas-inset); border: 1px solid var(--border-muted); border-radius: 4px; padding: 1px 5px; }
.md pre { background: var(--canvas-inset); border: 1px solid var(--border-muted); border-radius: var(--radius); padding: 10px 12px; overflow-x: auto; margin: 0 0 10px; }
.md pre code { border: none; background: none; padding: 0; }
.md a { color: var(--accent-fg); }
.md strong { font-weight: 600; }
.md blockquote { margin: 0 0 10px; padding-left: 12px; border-left: 3px solid var(--border); color: var(--fg-muted); }

.comment { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.comment-head {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px;
  background: var(--canvas-subtle); border-bottom: 1px solid var(--border-muted); font-size: 12.5px;
}
.comment-head .who-name { font-weight: 600; }
.comment-head .when { color: var(--fg-subtle); font-size: 11.5px; }
.comment-body { padding: 12px; }

.side-block { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; background: var(--canvas-subtle); }
.side-block h3 {
  margin: 0; padding: 10px 14px; font-size: 12px; font-weight: 600;
  border-bottom: 1px solid var(--border-muted); color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.side-field { padding: 10px 14px; border-bottom: 1px solid var(--border-muted); }
.side-field:last-child { border-bottom: none; }
.side-field .k { font-size: 11.5px; color: var(--fg-muted); margin-bottom: 6px; }
.side-field .select, .side-field .input { width: 100%; }

.label-pick { display: flex; flex-wrap: wrap; gap: 5px; }
.label-pick .label { cursor: pointer; opacity: 0.42; transition: opacity 0.12s; }
.label-pick .label:hover { opacity: 0.75; }
.label-pick .label.on { opacity: 1; }
