/* Preview addition: compact patch ticker in Simplified view only. */
.pu-compact-status { display:none; }
html[data-pu-view="simplified"] .pu-compact-status {
  display:block; position:relative; min-width:0; font:12px/1.4 var(--pl-mono);
}
.pu-compact-status>summary {
  display:grid; grid-template-columns:auto auto; align-content:center;
  gap:1px 12px; min-height:44px; padding:6px 27px 6px 10px;
  border:1px solid var(--pl-hair-hi); background:var(--pl-bg-alt);
  color:var(--pl-ink); cursor:pointer; list-style:none; position:relative;
}
.pu-compact-status>summary::-webkit-details-marker { display:none; }
.pu-compact-status>summary:hover,.pu-compact-status[open]>summary { border-color:var(--pl-green); }
.pu-compact-status>summary:focus-visible,.pu-status-source-link:focus-visible { outline:2px solid var(--pl-green); outline-offset:3px; }
.pu-status-feed { grid-column:1/-1; display:flex; align-items:center; gap:6px; font-weight:600; min-width:0; overflow-wrap:anywhere; }
.pu-status-dot { width:6px; height:6px; background:currentColor; flex-shrink:0; }
.pu-compact-status[data-status-tone="green"] .pu-status-feed { color:var(--pl-green); }
.pu-compact-status[data-status-tone="high"] .pu-status-feed { color:var(--pl-high); }
.pu-compact-status[data-status-tone="crit"] .pu-status-feed,.pu-status-critical { color:var(--pl-crit); }
.pu-status-chevron { position:absolute; right:9px; top:50%; transform:translateY(-50%); color:var(--pl-muted); }
.pu-compact-status[open] .pu-status-chevron { transform:translateY(-50%) rotate(180deg); }
.pu-status-wide { display:none; }
.pu-status-neutral { color:var(--pl-muted); }
.pu-status-panel {
  position:absolute; top:calc(100% + 8px); right:0; z-index:90;
  width:370px; max-width:calc(100vw - 32px); max-height:min(65vh,560px); overflow:auto;
  background:var(--pl-panel); color:var(--pl-ink); border:1px solid var(--pl-hair-hi);
  box-shadow:0 12px 28px #0005; font:12px/1.6 var(--pl-mono);
}
.pu-status-heading { display:flex; justify-content:space-between; gap:12px; padding:12px 14px; border-bottom:1px solid var(--pl-hair); background:var(--pl-bg-alt); }
.pu-status-heading span,.pu-status-context,.pu-status-footnote { color:var(--pl-muted); }
.pu-status-explanation { margin:0; padding:12px 14px; border-bottom:1px solid var(--pl-hair); }
.pu-status-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0; }
.pu-status-metrics>div { padding:12px 14px; min-width:0; border-bottom:1px solid var(--pl-hair); }
.pu-status-metrics>div:nth-child(odd) { border-right:1px solid var(--pl-hair); }
.pu-status-metrics dt { color:var(--pl-ink-soft); }
.pu-status-metrics dd { margin:3px 0 0; font-size:20px; font-weight:600; }
.pu-status-metrics .pu-status-context { font-size:12px; font-weight:400; line-height:1.5; }
.pu-status-footnote { padding:12px 14px; margin:0; }
.pu-status-source-link { display:flex; min-height:44px; align-items:center; padding:10px 14px; color:var(--pl-green); border-top:1px solid var(--pl-hair); }
html[data-pu-view="simplified"] .pl-theme-wrap:has(.pu-compact-status) { gap:8px; }
html[data-pu-view="simplified"] .pl-theme-wrap:has(.pu-compact-status)>.pl-theme-button { min-height:44px; }
html[data-pu-view="simplified"] .pl-theme-wrap:has(.pu-compact-status)>.pl-theme-menu { position:absolute; top:calc(100% + 8px); right:0; max-width:100%; max-height:65vh; overflow:auto; }
@media(min-width:1100px) {
  .pu-compact-status>summary { display:flex; align-items:center; gap:14px; }
  .pu-status-wide { display:inline; color:var(--pl-ink-soft); }
}
@media(max-width:1400px) {
  html[data-pu-view="simplified"] .pl-theme-wrap:has(.pu-compact-status)>.pl-theme-button { width:44px; min-width:44px; }
}
@media(min-width:1100px) {
  html[data-pu-view="simplified"] .pl-theme-wrap:has(.pu-compact-status)>.pl-theme-button { display:grid; width:auto; min-width:118px; padding:0 9px; }
  html[data-pu-view="simplified"] .pl-theme-wrap:has(.pu-compact-status) .pl-theme-button-copy,
  html[data-pu-view="simplified"] .pl-theme-wrap:has(.pu-compact-status) .pl-theme-active { display:block; }
}
@media(max-width:700px) {
  html[data-pu-view="simplified"] .pl-theme-wrap:has(.pu-compact-status) { width:100%; display:grid; grid-template-columns:minmax(0,1fr) 44px 116px; gap:6px; margin-left:0; }
  html[data-pu-view="simplified"] .pl-theme-wrap:has(.pu-compact-status)>.pl-theme-button { width:44px; min-width:44px; display:flex; justify-content:center; padding:0; }
  html[data-pu-view="simplified"] .pl-theme-wrap:has(.pu-compact-status) .pl-theme-button-copy,
  html[data-pu-view="simplified"] .pl-theme-wrap:has(.pu-compact-status) .pl-theme-active { display:none; }
  html[data-pu-view="simplified"] .pl-theme-wrap:has(.pu-compact-status)>.pl-view-switch { padding:6px; gap:6px; font-size:12px; min-height:48px; }
  html[data-pu-view="simplified"] .pl-theme-wrap:has(.pu-compact-status) .pl-view-indicator { font-size:11px; gap:2px; flex-direction:column; line-height:1; }
  html[data-pu-view="simplified"] .pl-theme-wrap:has(.pu-compact-status) .pl-view-track { width:21px; }
  .pu-compact-status { position:static !important; }
  .pu-compact-status>summary { min-height:48px; padding:6px 20px 6px 7px; font-size:12px; grid-template-columns:minmax(0,1fr); gap:0; }
  .pu-status-feed { gap:4px; font-weight:400; }
  .pu-status-chevron { right:6px; }
  .pu-status-panel { left:0; right:auto; width:370px; max-width:100%; }
}
@media(max-width:360px) {
  html[data-pu-view="simplified"] .pl-theme-wrap:has(.pu-compact-status) { grid-template-columns:minmax(0,1fr) 44px 104px; }
  html[data-pu-view="simplified"] .pl-theme-wrap:has(.pu-compact-status)>.pl-view-switch { font-size:11px; padding:4px; gap:3px; }
  .pu-compact-status>summary { padding-inline:5px 14px; }
  .pu-status-feed { gap:3px; }
  .pu-status-dot { width:5px; height:5px; }
  .pu-status-chevron { right:4px; }
}
@media(forced-colors:active) {
  .pu-compact-status>summary,.pu-status-panel { border-color:ButtonText; }
  .pu-status-dot { forced-color-adjust:none; background:CanvasText; }
  .pu-compact-status>summary:focus-visible,.pu-status-source-link:focus-visible { outline-color:Highlight; }
}
