/* @region feature-release-gates — readiness panel, rules table, sign-off card, gate rules and sign-off dialogs, dashboard widget */
.ft-release-gates-panel { display: grid; gap: 16px; min-width: 0; }
.ft-release-gates-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.ft-release-gates-head-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.ft-release-gates-head-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ft-release-gates-summary { font-size: 14px; color: var(--text); }
.ft-release-gates-muted { font-size: 12px; color: var(--muted); margin: 0; }
.ft-release-gates-verdict { text-transform: uppercase; letter-spacing: .04em; }
.ft-release-gates-verdict.is-large { height: 28px; padding: 0 12px; font-size: 13px; }
.ft-release-gates-rules, .ft-release-gates-rules-m { display: grid; gap: 8px; min-width: 0; }
.ft-release-gates-table { width: 100%; min-width: 0; border-collapse: collapse; }
.ft-release-gates-table th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.ft-release-gates-table td { padding: 9px 10px; border-bottom: 1px solid var(--border-soft); vertical-align: top; font-size: 13px; color: var(--text); }
.ft-release-gates-table .is-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ft-release-gates-table tr.is-off td { color: var(--muted); }
.ft-release-gates-expand { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.ft-release-gates-expand:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; border-radius: 4px; }
.ft-release-gates-rule-label { font-weight: 600; }
.ft-release-gates-level { margin-left: 8px; font-size: 11px; color: var(--muted); }
.ft-release-gates-items-row td { background: var(--panel-alt); }
.ft-release-gates-items { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.ft-release-gates-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.ft-release-gates-item-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ft-release-gates-link { display: inline-flex; min-width: 0; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; text-align: left; }
.ft-release-gates-link:hover { text-decoration: underline; }
.ft-release-gates-signoff { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.ft-release-gates-signoff-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ft-release-gates-subhead { font-size: 13px; font-weight: 600; color: var(--text); }
.ft-release-gates-note { margin: 0; font-size: 13px; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.ft-release-gates-approvers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft-release-gates-approver { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-xs); background: var(--panel); }
.ft-release-gates-approver-main { min-width: 0; }
.ft-release-gates-approver-name { font-weight: 600; font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.ft-release-gates-quote { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.ft-release-gates-approver-trail { display: flex; align-items: center; gap: 8px; flex: none; }
.ft-release-gates-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-release-gates-snapshot { display: grid; gap: 8px; padding: 10px 12px; border-radius: var(--radius-xs); background: var(--panel-alt); border: 1px solid var(--border-soft); }
.ft-release-gates-snapshot-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.ft-release-gates-snaplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ft-release-gates-snaplist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.ft-release-gates-ci { padding-top: 12px; border-top: 1px solid var(--border-soft); min-width: 0; }
.ft-release-gates-wlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ft-release-gates-wrow { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 6px; border: 0; border-bottom: 1px solid var(--border-soft); background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.ft-release-gates-wrow:hover { background: var(--panel-alt); }
.ft-release-gates-wmain { display: grid; gap: 2px; min-width: 0; }
.ft-release-gates-wname { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-release-gates-wtrail { flex: none; }
.ft-release-gates-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--text); }
.ft-release-gates-compact { display: grid; gap: 12px; }
.ft-release-gates-live { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.ft-release-gates-fieldset { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.ft-release-gates-fieldset .st-help { margin: 2px 0 8px; }
.ft-release-gates-pick { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.ft-release-gates-pick-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid var(--border-soft); border-radius: var(--radius-xs); }
.ft-release-gates-pick-row.is-on { border-color: var(--accent); background: var(--accent-soft); }
.ft-release-gates-check { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; min-width: 0; font-size: 13px; color: var(--text); cursor: pointer; overflow-wrap: anywhere; }
.ft-release-gates-role { width: 160px; max-width: 100%; }
.ft-release-gates-textarea { width: 100%; min-height: 72px; resize: vertical; }
.ft-release-gates-edit-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.ft-release-gates-edit-rule { padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: var(--radius-xs); background: var(--panel); display: grid; gap: 8px; }
.ft-release-gates-edit-rule.is-off .ft-release-gates-edit-label { color: var(--muted); }
.ft-release-gates-edit-head { display: flex; align-items: center; gap: 10px; }
.ft-release-gates-edit-label { font-weight: 600; font-size: 13px; color: var(--text); }
.ft-release-gates-edit-fields { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; }
.ft-release-gates-edit-fields .st-field { min-width: 140px; }
.ft-release-gates-num { width: 120px; }
.ft-release-gates-chipfield { display: grid; gap: 6px; }
.ft-release-gates-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-release-gates-chip { height: 28px; padding: 0 10px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--panel); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.ft-release-gates-chip.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ft-release-gates-chip:disabled { cursor: default; opacity: .6; }
@media (max-width: 900px) {
  .ft-release-gates-head { align-items: flex-start; }
  .ft-release-gates-mlist.tf-m-list { margin: 0; list-style: none; padding: 0; border: 1px solid var(--border-soft); border-radius: var(--radius-xs); overflow: hidden; }
  .ft-release-gates-mlist .tf-m-row { min-height: 56px; padding: 10px 12px; }
  .ft-release-gates-approver.is-phone { flex-wrap: wrap; border: 0; border-bottom: 1px solid var(--border-soft); border-radius: 0; padding: 12px; }
  .ft-release-gates-approver.is-phone .ft-release-gates-approver-trail.has-actions { width: 100%; }
  .ft-release-gates-panel .ft-release-gates-approver-trail .btn.ft-release-gates-touch { min-height: 44px; flex: 1 1 0; justify-content: center; font-size: 14px; }
  .ft-release-gates-panel .ft-release-gates-actions .btn.small, .ft-release-gates-panel .ft-release-gates-head .btn.small { min-height: 44px; }
  .ft-release-gates-check { min-height: 44px; font-size: 15px; }
  .ft-release-gates-role { width: 100%; }
  .ft-release-gates-edit-fields .st-field { min-width: 0; flex: 1 1 140px; }
  .ft-release-gates-num { width: 100%; }
  .ft-release-gates-chip { height: 36px; padding: 0 14px; }
  .ft-release-gates-snaplist li { grid-template-columns: minmax(0, 1fr) auto; }
  .ft-release-gates-snaplist li > .ft-release-gates-muted { grid-column: 1 / 2; grid-row: 2; }
}
/* @endregion feature-release-gates */
