/* Detail pane: header, sections, related, files. */

#detail-body { padding: 24px 28px; }
#detail-body > .state-empty { margin-top: 12vh; }

.detail-head { margin-bottom: 22px; }
.detail-title { margin: 0 0 10px; font-size: 21px; font-weight: 680; letter-spacing: -0.02em; line-height: 1.25; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.detail-meta .meta-item { font-size: 12px; color: var(--text-2); }
.stem {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 2px 7px;
  cursor: pointer;
}
.stem:hover { color: var(--text); border-color: var(--border-strong); }

.sec { margin-bottom: 24px; }
.sec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sec-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); }
.sec-count { font-size: 11px; color: var(--text-3); background: var(--surface-2); border-radius: 999px; padding: 0 7px; font-variant-numeric: tabular-nums; }
.muted-inline { margin: 0; font-size: 13px; color: var(--text-3); }

/* Related tasks */
.related { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.related-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-md); font-size: 13.5px; color: var(--text); }
.related-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ico-mut { color: var(--text-3); }
.related-link { cursor: pointer; }
.related-link:hover { background: var(--surface-2); }
.related-chevron { color: var(--text-3); opacity: 0; transition: opacity 0.12s ease; }
.related-link:hover .related-chevron { opacity: 1; }

/* Files */
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.file { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-md); cursor: pointer; }
.file:hover { background: var(--surface-2); }
.file-path { min-width: 0; font-family: var(--mono); font-size: 12.5px; color: var(--text); background: none; border: 0; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prio { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; padding: 2px 7px; border-radius: 5px; }
.prio-P0 { color: #cd2b41; background: #fdecef; }
.prio-P1 { color: #bb6a00; background: #fdf4e3; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; flex: none; }
.tag { font-size: 11px; color: var(--text-2); background: var(--surface-2); border-radius: 5px; padding: 1px 6px; }
