#patchCoverage { flex-shrink: 0; padding: 12px; border-top: 1px solid var(--line); background: var(--panel); color: var(--ink); max-height: none; overflow: visible; }
#patchCoverage[hidden] { display: none; }
.patch-heading { display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap:wrap; }
#patchFeedStatus { display:block; margin-top:4px; }
.patch-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:10px 0; }
.patch-actions label { display:flex; gap:5px; align-items:center; flex-wrap:wrap; }
.patch-actions input, .patch-actions select { max-width:100%; }
.patch-source { padding:10px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.patch-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:10px; margin:10px 0; }
.patch-metrics > div { background:var(--primary-soft); padding:12px; border-radius:8px; }
.patch-metrics strong { font-size:1.4rem; }
.patch-badge { display:inline-block; padding:3px 8px; border-radius:12px; background:var(--chip); font-size:12px; font-weight:600; }
.patch-available,.patch-observed { color:var(--good); border:1px solid var(--good); }
.patch-candidate { color:var(--warn); border:1px solid var(--warn); }
.patch-unconfirmed { color:var(--risk); }
.patch-providers { display:block; margin-top:4px; }
.patch-target { padding:12px; border:1px solid var(--line); border-radius:8px; margin:10px 0; overflow-wrap:anywhere; }
.patch-detail pre, #patchCoverage pre { white-space:pre-wrap; max-height:250px; overflow:auto; font-size:11px; }
#patchMessage:empty { display:none; }
#patchScope { margin-bottom:0; }
#patchSourcesManager { border:1px solid var(--line); padding:12px; border-radius:8px; }
#patchRequestMount { padding:20px; }
#patchRequestMount[hidden] { display:none; }
#patchRequestMount summary { cursor:pointer; font-weight:600; }
#patchRequestMount pre { white-space:pre-wrap; max-height:320px; overflow:auto; }
#requestForm { border:1px solid var(--line); padding:16px; margin-top:16px; border-radius:8px; }
#requestForm textarea { min-width:240px; min-height:70px; background:var(--panel); color:var(--ink); }
#requestForm .patch-actions label { flex-direction:column; align-items:flex-start; }
.patch-warning { color:var(--warn); }
#requestMessage { margin:12px 0; font-weight:600; }

/* Libraries keeps patch administration compact; all controls scroll with rows. */
#patchMessage[data-kind="success"] { display:none; }
#patchCoverage[data-mode="libraries"] { padding:8px 12px; }
#patchCoverage[data-mode="libraries"] .patch-actions { margin:4px 0; }
#patchCoverage[data-mode="libraries"] #patchFeedStatus,
#patchCoverage[data-mode="libraries"] #patchSourcesSummary,
#patchCoverage[data-mode="libraries"] > .patch-actions > .small { display:none; }
#inventoryViews button[aria-pressed="true"] { background:var(--primary-soft); border-color:var(--good); font-weight:700; }
#inventorySearch { width:min(100%,340px); margin:8px 0; }
#inventoryViews[hidden], .patch-actions[hidden] { display:none; }
#inventoryViews [hidden] { display:none; }
.patch-market { padding:16px; }
.patch-market-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; }
.patch-market-card { display:flex; flex-direction:column; gap:10px; align-items:stretch; text-align:left; padding:18px; background:var(--panel); color:var(--ink); border:1px solid var(--line); border-radius:12px; cursor:pointer; overflow-wrap:anywhere; min-width:0; }
.patch-market-card:hover, .patch-market-card.selected { background:var(--primary-soft); border-color:var(--good); }
.patch-market-card:focus-visible { outline:2px solid var(--good); outline-offset:2px; }
.patch-market-card > strong { font-size:18px; }
.patch-market-top { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.patch-coordinate { font-family:monospace; overflow-wrap:anywhere; }
.patch-market-presence { border-top:1px solid var(--line); padding-top:10px; margin-top:auto; font-size:12px; }
.patch-advisories { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 12px; margin:12px 0; }
.patch-advisory { display:inline; white-space:nowrap; }
.patch-advisory a, .patch-advisory button.cve-link {
  font:inherit; font-weight:600; line-height:1.5; color:var(--link);
  text-decoration:underline; text-decoration-color:var(--link); padding:0; margin:0; border:0; border-radius:0;
  background:transparent; cursor:pointer;
}
.patch-advisory a:hover, .patch-advisory button.cve-link:hover { text-decoration-thickness:2px; }
.patch-estate { background:var(--primary-soft); border:1px solid var(--line); padding:14px; margin:18px 0; border-radius:12px; }
.patch-estate h4 { margin:0; }
.patch-estate-stats { display:flex; gap:24px; margin:16px 0; }
.patch-estate-stats strong { display:block; font-size:24px; }
.patch-estate-stats span { font-size:12px; }
.patch-consumers { border-top:1px solid var(--line); padding:12px 0; }
.patch-consumers summary { cursor:pointer; }
.patch-consumers ul { list-style:none; padding:0; }
.patch-consumers li { display:flex; justify-content:space-between; gap:10px; padding:8px 0; overflow-wrap:anywhere; }
.patch-consumers li > span:first-child { min-width:0; }
.patch-library-versions { border:1px solid var(--line); border-radius:10px; padding:14px; margin:16px 0; background:var(--primary-soft); }
.patch-library-versions h4 { margin:0 0 8px; }
.patch-library-versions pre { white-space:pre-wrap; overflow:auto; max-height:220px; }
.osera-version-row { background:var(--primary-soft); }
.osera-version-row td:first-child { border-left:3px solid var(--link); font-weight:700; }
.osera-version-badge { color:var(--link); border:1px solid var(--link); font-weight:700; }
.osera-version-row td:last-child { white-space:normal; min-width:220px; }

.request-workspace { padding: 24px; max-width: 1100px; margin: auto; }
.request-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.request-heading h2, .request-heading h3 { margin:0; }
.request-steps { display:flex; flex-wrap:wrap; gap:32px; padding:16px 24px; background:var(--primary-soft); border-radius:10px; }
.request-workspace > p, .request-tools { margin:16px 0; }
.request-card { padding:20px; margin:16px 0; border:1px solid var(--line); border-radius:12px; }
.request-card details { margin:12px 0; }
.request-empty { padding:32px; text-align:center; background:var(--primary-soft); border-radius:12px; margin:24px 0; }
.request-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; margin:16px 0; }
.request-fields label { display:flex; flex-direction:column; gap:8px; }
.request-fields input,.request-fields textarea,.request-fields select { width:100%; box-sizing:border-box; }
.request-fields textarea { min-height:90px; }
#requestEditor { border:1px solid var(--line); border-radius:10px; padding:16px; margin:20px 0; }
#requestEditor summary,.request-tools summary { cursor:pointer; }
#requestPreview { margin-top:24px; }
.request-summary { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; padding:20px; background:var(--primary-soft); border-radius:10px; }

#filterShell[hidden], #tranchePills[hidden] { display:none !important; }
