
/* Renewal document evidence uses the existing operational card language. */
.doc-card h2 { margin: 8px 0; overflow-wrap: anywhere; }
.doc-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:16px 0; }
.doc-actions .btn:last-child { margin-left:auto; }
.doc-review { margin-top:18px; border-top:1px solid var(--line,#dde2ec); padding-top:16px; }
.doc-review summary { cursor:pointer; font-weight:600; }
.doc-review p { max-width:80ch; line-height:1.6; color:var(--muted,#6c7586); }
.doc-form { display:grid; gap:16px; margin-top:18px; max-width:720px; }
.doc-form label { display:grid; gap:8px; font-size:13px; font-weight:600; }
.doc-form select,.doc-form textarea { width:100%; padding:11px 12px; border:1px solid #ccd3e1; border-radius:8px; font:inherit; background:#fff; color:#15212e; }
.doc-form textarea { min-height:90px; resize:vertical; }
.doc-form .btn { justify-self:start; }

.grid-review .co-card{margin-bottom:18px}.grid-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.grid-source{border:1px solid #dde2eb;border-radius:10px;padding:16px;overflow-wrap:anywhere}.grid-source h3{margin:8px 0}.grid-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.grid-stats div{padding:14px;border:1px solid #dde2eb;border-radius:10px}.grid-stats span{display:block;color:#697386;font-size:12px}.grid-stats strong{font-size:24px}.grid-table-wrap{overflow-x:auto}.grid-table{width:100%;border-collapse:collapse;font-size:14px}.grid-table th,.grid-table td{padding:12px;text-align:left;border-bottom:1px solid #e4e7ee;vertical-align:top}.grid-table th{font-weight:600}.grid-warning{font-size:13px;color:#8b601a}.grid-review small{font-size:13px;font-weight:400}.grid-history{padding:14px 0;border-bottom:1px solid #e4e7ee}.grid-history p{margin:5px 0}@media(max-width:800px){.grid-pair{grid-template-columns:1fr}.grid-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.registry-search label{display:grid;gap:8px;flex:1;min-width:220px;font-size:13px;font-weight:600}.registry-search input{width:100%;padding:10px;border:1px solid #ccd3e1;border-radius:8px;font:inherit}.registry-search{align-items:end}.registry-selected{background:#eef4ff}.grid-mapping{margin-top:18px;padding:16px;border:1px solid #dde2eb;border-radius:10px}.doc-form .registry-confirm{display:flex;align-items:start;font-weight:400;line-height:1.5}.registry-confirm input{width:auto;flex:none;margin-top:4px}.registry-catalog h3{margin:8px 0}

.doc-coverage{margin:18px 0}.doc-origins{margin:14px 0}.doc-origins summary{cursor:pointer;font-weight:600}.doc-origins li{margin:10px 0;overflow-wrap:anywhere}

.doc-coverage .grid-pair{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}

.selection-form{max-width:900px}.selection-form fieldset{border:1px solid #dde2eb;border-radius:10px;padding:16px;display:grid;gap:16px;min-width:0}.selection-form legend{padding:0 6px;font-weight:600}.selection-form input{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #ccd3e1;border-radius:8px;font:inherit}.selection-observations{display:grid;grid-template-columns:minmax(160px,1fr) 2fr;gap:10px;font-size:13px}.selection-observations dt{color:#697386}.selection-observations dd{margin:0;overflow-wrap:anywhere}.selection-failure{border-left:3px solid #d49936;padding:4px 16px;margin:16px 0;background:#faf9f6}.selection-failure li{margin:8px 0}.selection-failure h3{margin:8px 0}

/* ── Close worklist (#/close) ────────────────────────────────────────────────────────────────
   The layout is the prototype's CloseScreen, built on the shared v2 classes it uses: .ph-badge,
   .note, .secwrap/.sec, .dcard, .rpanel/.rgrid/.rconc, .profile-strip and .signals. Rules here only
   cover what those classes do not, and every one is prefixed .close- so nothing collides with the
   document-evidence rules above or with the .doc-, .grid- and .registry- families this file carries. */
.close-page .ph-row{flex-wrap:wrap}
.close-head-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:none}

/* How the close phase is scoped: one line under the banner, the detail a click away. Opened, the
   detail takes the full width beneath the line rather than squeezing beside it. */
.close-context{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px 16px;margin:0 0 26px;font-size:12px;color:var(--text-muted)}
.close-context>details>summary{cursor:pointer;font-weight:600;color:var(--text-2)}
.close-context>details[open]{order:2;flex-basis:100%}
.close-context-read{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px}
.close-context-body{margin-top:10px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
.close-context-body p{margin:0 0 8px;font-size:12.5px;line-height:1.65;color:var(--text-2)}
.close-context-body p:last-child{margin-bottom:0}
.close-caution{display:flex;gap:8px;align-items:flex-start;color:var(--amber-deep)!important}
.close-caution>svg{flex:none;margin-top:3px}
.close-muted-line{font-size:11.5px!important;color:var(--text-muted)!important}
.close-offladder{margin:0 0 8px}
.close-offladder summary{cursor:pointer;font-size:12.5px;font-weight:600;color:var(--text-2)}
.close-offladder ul{margin:6px 0 0;padding-left:18px;font-size:12px;line-height:1.9;color:var(--text-2)}

/* A withheld panel: the reason, then what would close it. Same shape as .co-withheld, kept
   separate so the close screen can indent it without changing the cycle-overview panels. */
.close-reason{border-left:3px solid var(--co-line-strong);padding-left:14px}
.close-reason p{margin:0;font-size:12.5px;line-height:1.7;color:var(--co-text-2)}
.close-reason .co-withheld-closes{margin-top:8px;font-size:11.5px;color:var(--co-text-muted)}

/* The bands. The cards are the renewal's own; on this screen they sit in a stack, as the
   prototype's do, rather than with the renewal page's larger gap beneath its one card. */
.close-page .mvp-next{margin-bottom:12px}
.close-page .mvp-ra-cleared{border:1px solid var(--line);border-left:3px solid var(--green);margin-bottom:12px}
.dcard-h a.who{color:var(--text)}
.dcard-h a.who:hover{color:var(--blue-deep)}
.mvp-ready-link{margin-top:10px}
.close-band-empty{margin:0;padding:12px 16px;border:1px dashed var(--line-2);border-radius:var(--r-lg);font-size:12.5px;line-height:1.6;color:var(--text-muted)}
.close-footnote{display:flex;gap:8px;align-items:flex-start;margin:14px 0 0;font-size:12px;line-height:1.6;color:var(--text-muted)}
/* The note under the bands tucks up beneath the last band rather than standing a section away. */
.close-band-note{margin:-20px 0 34px}
.close-footnote>svg{flex:none;margin-top:2px}

/* Release readiness, opened from a card. */
.close-rpanel .close-chain p{margin:0 0 8px;font-size:13px;line-height:1.65;color:var(--text-2);max-width:78ch}
.close-rpanel .close-chain b{color:var(--text)}
.close-rpanel .close-chain .co-withheld-closes{font-size:11.5px;color:var(--text-muted)}
.close-rpanel .dcard-chips{margin:4px 0 0}
.close-chip-off{border-style:dashed;color:var(--text-muted)}
.close-chip-off b{font-weight:500;font-style:italic}
.close-panel-note{margin:10px 0 0;font-size:11.5px;line-height:1.65;color:var(--text-muted)}
/* A gate that reads nothing has not passed — it has not been computed, and it looks it. */

/* The reasons behind a strip or a grid, one entry per figure. */

/* Cutover evidence and the registry summary. A measurement with no source shows a dash, never a
   zero: a zero here is a finding about the shadow cycle and "there is no denominator" is not one. */
.close-note{margin-top:12px}
.close-note>svg{flex:none;margin-top:2px;color:var(--text-muted)}
.close-note p{margin:0 0 6px}
.close-note p:last-child{margin-bottom:0}
.close-page .secwrap>.close-note:last-child{margin-bottom:0}
