/* REQ-126: release sign-offs. The colour tokens (:root) and shared components are in ../styles.css; this file never defines :root variables. */

/* Release sign-offs (REQ-25), a section of Waiting for you (REQ-62). Pending first, then history; one column on a phone. */
.sg .sg-filter { margin: 4px 0 8px; flex-wrap: wrap; overflow-x: visible; }
.sg-body { display: flex; flex-direction: column; gap: 10px; }
.sg-body h3.sg-sub { font-family: var(--font-display); font-weight: 800; font-size: 19px; margin: 14px 0 0; }
.sg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sg-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.sg-card.pending { border-color: color-mix(in srgb, var(--needs) 45%, var(--line)); }
.sg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.sg-product { font-size: 16px; }
.sg-sha { font-family: var(--font-mono); font-size: 12.5px; color: var(--mute); min-width: 0; max-width: 100%; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-chip { margin-left: auto; display: inline-flex; align-items: center; font: 700 10.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.sg-chip.pending { color: var(--needs); background: var(--needs-soft); }
.sg-chip.approved { color: var(--done); background: var(--done-soft); }
.sg-chip.rejected { color: var(--blocked); background: var(--blocked-soft); }
.sg-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 13.5px; }
.sg-meta dt { color: var(--faint); font: 700 10.5px/1.9 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.sg-meta dd { margin: 0; overflow-wrap: anywhere; }
.sg-meta a { color: var(--accent); font-weight: 700; }
.sg-meta a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sg-decide { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.sg-label { font: 700 10.5px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.sg-note { flex: none; width: 100%; box-sizing: border-box; resize: vertical; font: 14px/1.4 var(--font-body); }
.sg-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sg-btns .btn { min-height: 44px; }
.sg-decide .err { margin: 0; }
/* REQ-69.2: what a sign-off closes (Pablo): two lists, each row the id and
   title (a 44 px link), won't-close rows with the status chip and why in words. */
.sg-plan { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.sg-plan .note { margin: 0; }
.sg-reqs { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sg-reqs summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.sg-reqs summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sg-rlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sg-rlist li { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; min-width: 0; border-top: 1px solid var(--line); }
.sg-rlist li:first-child { border-top: 0; }
.sg-req { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 0; color: var(--ink); text-decoration: none; }
.sg-req b { font: 700 12.5px/1 var(--font-mono); color: var(--accent); white-space: nowrap; }
.sg-req .sg-rtitle { overflow-wrap: anywhere; }
.sg-req:hover .sg-rtitle { text-decoration: underline; }
.sg-req:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sg-why { color: var(--mute); font-size: 13px; }
@media (max-width: 700px) {
  .sg-meta { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sg-meta dd { margin-bottom: 6px; }
  .sg-chip { margin-left: 0; }
}
.sg-chip.bt-chip { margin-left: 0; gap: 6px; }
.sg-chip.bt-chip.unconfirmed { color: var(--idle); background: var(--idle-soft); }
.sg-chip.bt-chip.confirmed { color: var(--working); background: var(--working-soft); }
.sg-chip.bt-chip.invited { color: var(--done); background: var(--done-soft); }
.sg-chip.bt-chip.withdrawn { color: var(--blocked); background: var(--blocked-soft); }
