/* Ghost OS UI v4.8: cross-workspace operator context and staged-change safety. */

.ghost-stage-shortcut{
  margin-left:auto;
  color:#58758a;
  font:600 .54rem/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;
  white-space:nowrap;
}
.ghost-control-staged.dirty .ghost-stage-shortcut{color:#9b8359}

.ghost-control-advisories{
  display:grid;
  gap:5px;
  margin:8px 0 0;
  padding:9px 11px;
  border:1px solid rgba(255,184,74,.18);
  border-radius:10px;
  background:rgba(255,184,74,.04);
}
.ghost-control-advisories[hidden]{display:none}
.ghost-control-advisories strong{color:#d9b770;font-size:.61rem}
.ghost-control-advisories p{margin:0!important;color:#9f8a67!important;font-size:.58rem!important;line-height:1.45!important}

.ghost-sentinel-context-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  padding:10px 0 2px;
}
.ghost-sentinel-context-actions button,
.ghost-sentinel-context-reuse{
  border:1px solid rgba(var(--accent-rgb),.13)!important;
  border-radius:9px!important;
  background:rgba(8,29,44,.78)!important;
  color:#afc7d6!important;
  min-height:34px!important;
  padding:0 10px!important;
  font-family:inherit!important;
  font-size:.61rem!important;
  font-weight:650!important;
  line-height:1.2!important;
  cursor:pointer;
}
.ghost-sentinel-context-actions button:first-child{
  border-color:rgba(57,217,255,.21)!important;
  color:#b9edf8!important;
  background:linear-gradient(145deg,rgba(57,217,255,.075),rgba(9,29,44,.78))!important;
}
.ghost-sentinel-context-actions button:hover,
.ghost-sentinel-context-reuse:hover{
  border-color:rgba(var(--accent-rgb),.28)!important;
  color:#f0faff!important;
}
.ghost-sentinel-context-reuse{
  display:block;
  margin:7px 0 0!important;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

#ghostMaintenance[data-ops-domain="sentinel"] .ghost-sentinel-identity + .ghost-sentinel-context-actions{
  border-bottom:1px solid rgba(103,157,191,.065);
  padding-bottom:10px;
  margin-bottom:2px;
}

body[data-ghost-main-width="compact"] .ghost-stage-shortcut{display:none}
body[data-ghost-main-width="compact"] .ghost-sentinel-context-actions{display:grid;grid-template-columns:1fr}
body[data-ghost-main-width="compact"] .ghost-sentinel-context-actions button{width:100%}
