.workflow-status, .workflow-blocked {
  display: inline-block;
  border-radius: 5px;
  padding: 2px 6px;
  line-height: 1.4;
  font-size: .73rem;
  font-weight: 600;
}
.workflow-status {
  color: var(--ink);
  background: var(--surface-hover);
}
.workflow-blocked {
  color: #813e0d;
  background: #fff0da;
}
.workflow-release { overflow-wrap: anywhere; }
.issue-dependencies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 16px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.issue-dependencies h3 { margin: 0 0 8px; font-size: .9rem; }
.issue-dependencies ul, .blocker-picker ul { list-style: none; margin: 0; padding: 0; }
.issue-dependencies li, .blocker-selected li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding-block: 4px;
  overflow-wrap: anywhere;
}
.blocker-picker summary { cursor: pointer; width: fit-content; min-height: 32px; }
.blocker-picker .field-label { margin-top: 8px; }
.blocker-selected button, .blocker-results button { min-height: 44px; }
.blocker-message { margin: 6px 0; color: var(--muted); font-size: .82rem; }
.blocker-results { max-height: 220px; overflow-y: auto; }
.blocker-results button {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 8px;
  width: 100%;
  padding: 6px 9px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface-soft);
  text-align: start;
  overflow-wrap: anywhere;
}
.blocker-results button:hover { background: var(--surface-hover); }
.blocker-results button:focus-visible { outline-offset: -2px; }

.release-badge, .priority-badge { display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; border-radius: 5px; padding: 2px 6px; font-size: .73rem; font-weight: 600; line-height: 1.4; }
.release-badge { color: #345071; background: #edf2f8; }
.release-badge span { overflow-wrap: anywhere; min-width: 0; }
.release-badge svg { width: 13px; height: 13px; }
.priority-low { color: #535660; }
.priority-badge.priority-low { background: #f0f0f1; }
.priority-high { color: #81510c; }
.priority-badge.priority-high { background: #fff1d4; }
.priority-urgent { color: #9b251e; }
.priority-badge.priority-urgent { background: #fbe8e5; }
.editable-metadata { position:relative; max-width:100%; }
.editable-metadata > button { display:inline-grid; align-items:start; gap:2px; min-height:44px; max-width:100%; padding:3px 2px; border:0; background:transparent; color:inherit; font:inherit; text-align:left; overflow-wrap:anywhere; cursor:pointer; vertical-align:middle; }
.editable-metadata .metadata-label { display:flex; align-items:center; gap:.35rem; color:var(--muted); font-size:.78rem; }
.editable-metadata > button:hover .metadata-label { text-decoration:underline; }
.editable-roster > button { min-height:0; }
.editable-roster > button::after { content:""; position:absolute; inset:0; }
.editable-roster details { position:relative; }
.quick-release-link { display:inline-flex; align-items:center; justify-content:center; min-width:32px; min-height:40px; vertical-align:middle; }
#modal:has([data-reload-field]) { max-width:min(26rem,calc(100vw - 1.5rem)); }
#modal [data-reload-field][hidden], #modal [type=submit][hidden] { display:none; }
.row-field-control { min-height:24px; display:inline-flex; align-items:center; justify-content:center; max-width:100%; border:0; border-radius:4px; padding:0; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.row-field-control:hover, .row-field-control:focus-visible { background:var(--surface-soft); outline:1px solid var(--muted); }
.row-edit-fields { width:26px; height:26px; color:var(--muted); }
.row-edit-fields svg { width:14px; height:14px; }
.row-release-pair { display:inline-flex; align-items:center; max-width:100%; gap:2px; }
.row-release-pair a { display:inline-grid; place-items:center; min-width:24px; min-height:24px; }
.row-fields-menu { display:grid; }
.row-fields-menu button { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.65rem .4rem; text-align:left; background:none; color:inherit; border:0; border-bottom:1px solid var(--line); cursor:pointer; }
.row-fields-menu button:hover, .row-fields-menu button:focus-visible { background:var(--surface-soft); }
.row-fields-menu button span { color:var(--muted); overflow-wrap:anywhere; }
#modal:has(.row-fields-menu) { max-width:min(26rem,calc(100vw - 1.5rem)); }
.row-fields-menu button span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:410px) {
  :is(.task-row,.child-task):has(> .task-meta > .row-edit-fields:first-child) { grid-template-columns:20px minmax(0,1fr) auto; }
  .task-meta:has(> .row-edit-fields:first-child) { grid-column:3; }
}
